Mixed precision accumulation for neural network inference guided by componentwise forward error analysis

Read full text
Authors: El-Mehdi El Arar, Silviu-Ioan Filip, Théo Mary, Elisa Riccietti
Cited by: 0

Abstract

Abstract This work proposes a mathematically founded mixed precision accumulation strategy for the inference of neural networks. Our strategy is based on a new componentwise forward error analysis that explains the propagation of errors in the forward pass of neural networks. Specifically, our analysis shows that the error in each component of the output of a linear layer is proportional to the condition number of the inner product between the weights and the input, multiplied by the condition number of the activation function. These condition numbers can vary widely from one component to the other, thus creating a significant opportunity to introduce mixed precision: each component should be accumulated in a precision inversely proportional to the product of these condition numbers. We propose a numerical algorithm that exploits this observation: it first computes all components in low precision, uses this output to estimate the condition numbers and recomputes in higher precision only the components associated with large condition numbers. We test our algorithm on various networks and datasets and confirm experimentally that it can significantly improve the cost–accuracy trade-off compared with uniform precision accumulation baselines.

Fields of Study & Subjects

Neural Networks and Applications Fault Detection and Control Systems Sensor Technology and Measurement Systems

Publication details

Journal / source
IMA Journal of Numerical Analysis
Publication date
23 April 2026
Language
EN