Fixed-Point Code Synthesis For Neural Networks

02/04/2022
by   Hanane Benmaghnia, et al.
0

Over the last few years, neural networks have started penetrating safety critical systems to take decisions in robots, rockets, autonomous driving car, etc. A problem is that these critical systems often have limited computing resources. Often, they use the fixed-point arithmetic for its many advantages (rapidity, compatibility with small memory devices.) In this article, a new technique is introduced to tune the formats (precision) of already trained neural networks using fixed-point arithmetic, which can be implemented using integer operations only. The new optimized neural network computes the output with fixed-point numbers without modifying the accuracy up to a threshold fixed by the user. A fixed-point code is synthesized for the new optimized neural network ensuring the respect of the threshold for any input vector belonging the range [xmin, xmax] determined during the analysis. From a technical point of view, we do a preliminary analysis of our floating neural network to determine the worst cases, then we generate a system of linear constraints among integer variables that we can solve by linear programming. The solution of this system is the new fixed-point format of each neuron. The experimental results obtained show the efficiency of our method which can ensure that the new fixed-point neural network has the same behavior as the initial floating-point neural network.

READ FULL TEXT

page 5

page 15

research
03/08/2017

Deep Convolutional Neural Network Inference with Floating-point Weights and Fixed-point Activations

Deep convolutional neural network (CNN) inference requires significant a...
research
03/26/2022

Discovering dynamical features of Hodgkin-Huxley-type model of physiological neuron using artificial neural network

We consider Hodgkin-Huxley-type model that is a stiff ODE system with tw...
research
12/02/2021

Formal verification of a controller implementation in fixed-point arithmetic

For the implementations of controllers on digital processors, certain li...
research
11/28/2017

An Overflow Free Fixed-point Eigenvalue Decomposition Algorithm: Case Study of Dimensionality Reduction in Hyperspectral Images

We consider the problem of enabling robust range estimation of eigenvalu...
research
04/01/2018

Fixed points of competitive threshold-linear networks

Threshold-linear networks (TLNs) are models of neural networks that cons...
research
09/16/2020

An Integer Arithmetic-Based Sparse Linear Solver Using a GMRES Method and Iterative Refinement

In this paper, we develop a (preconditioned) GMRES solver based on integ...
research
05/10/2016

CORDIC-based Architecture for Powering Computation in Fixed-Point Arithmetic

We present a fixed point architecture (source VHDL code is provided) for...

Please sign up or login with your details

Forgot password? Click here to reset