Related Experiment Video
Updated: Dec 26, 2025

Deep Neural Networks for Image-Based Dietary Assessment
Published on: March 13, 2021
Fast Approximations of Activation Functions in Deep Neural Networks when using Posit Arithmetic
Marco Cococcioni1, Federico Rossi1, Emanuele Ruffaldi2
1Department of Information Engineering, Università di Pisa, Via Girolamo Caruso, 16, 56122 Pisa PI, Italy.
This study introduces L1 operators for the Posit number system, enabling faster Deep Neural Network (DNN) computations using integer arithmetic. Posit formats offer efficient alternatives to standard floating-point numbers, reducing accuracy loss and improving hardware utilization.
Area of Science:
- Computer Science
- Numerical Analysis
- Artificial Intelligence
Background:
- Deep Neural Networks (DNNs) face real-time processing constraints.
- The IEEE 754 floating-point standard presents limitations for efficient hardware implementation.
- The Posit number system offers a promising alternative for faster, hardware-friendly information representation.
Purpose of the Study:
- To explore the potential of the Posit number system for accelerating DNNs.
- To develop novel arithmetic operators for Posits suitable for current hardware (ALUs).
- To evaluate the performance and accuracy of Posit-based DNNs compared to traditional floating-point representations.
Main Methods:
- Introduced a new class of Posit operators, termed L1 operators, using integer arithmetic for approximated operations.
- Focused on Posit configurations with zero exponent bits.
- Emulated Posit arithmetic using existing Arithmetic-Logic Units (ALUs) and their vectorized operations.
- Tested Posit-based activation functions in DNNs, comparing various bit-width Posits against 32-bit floats.
Main Results:
- L1 operators provide faster computation than exact counterparts with negligible accuracy degradation.
- Posit operations can be efficiently emulated on ALUs, enabling vectorization.
- 10-bit to 16-bit Posits serve as effective replacements for 32-bit floats in DNNs.
- 8-bit Posits present a compelling trade-off between performance, storage, and accuracy for DNNs.
Conclusions:
- The Posit number system, particularly with L1 operators, can significantly speed up DNNs on current hardware.
- Posits offer a viable, efficient alternative to floating-point numbers for AI applications, especially with limited hardware support.
- Smaller Posit formats (up to 14 bits) are highly advantageous for future widespread adoption and efficient tabulation of operations.
Related Concept Videos
Accuracy, limits, and approximation
Accuracy is defined as the closeness of the measured value to the true or actual value. In engineering mechanics, repeated measurements are taken during theoretical or experimental analyses to ensure that the result is precise and accurate.
The accuracy of any solution is based on the...
Propagation of Action Potentials
Neurons (nerve cells) have a resting membrane potential, with a slightly negative charge inside compared to outside. This is maintained by ion channels, such as sodium (Na+) and potassium (K+) channels, which control the flow of ions. When a stimulus, like a touch or a signal from another neuron, triggers the neuron, sodium channels open, allowing sodium ions to...
Action Potential
Membrane potential in neurons
Neurons typically have a resting membrane potential of about -70 millivolts (mV). When they receive...
Action Potential
Membrane potential in neurons
Neurons typically have a resting membrane potential of about -70 millivolts (mV). When they receive...
The Role of Ion Channels in Neuronal Computation
Sometimes a single EPSP is strong enough to induce an action potential in the postsynaptic neuron. However, multiple presynaptic inputs must often create EPSPs around the same time for the postsynaptic neuron to be sufficiently depolarized to fire an action potential....
Mason's Rule
Loop gain is determined by identifying and tracing a path from a node back to itself. This involves computing the product of branch gains along the loop. Each loop's gain is crucial for further...
