Deterministic and probabilistic rounding error analysis of neural networks in floating-point arithmetic
Abstract The use of artificial neural networks is now becoming widespread across a wide variety of tasks. In this context of very rapid development issues related to the storage and computational performance of these models emerge, since networks are sometimes very deep and comprise up to trillions of parameters. For all these reasons the use of reduced precision is increasingly being considered, although, until now, its accuracy and robustness had been approached mostly from a practical standpoint or verified by software. The aim of this work is to provide formal tools to better understand, explain and predict the accuracy and stability of neural networks when using floating-point arithmetic. To this end, we apply a rounding error analysis based on existing tools in numerical linear algebra to obtain both forward and backward error bounds. This includes both deterministic worst-case bounds as well as probabilistic bounds that are sharper on average. Since the exact backward error is not directly computable the backward error bounds are validated experimentally through a linearized backward error. These bounds both ensure the proper functioning of neural networks once trained and provide recommendations on architectures and training methods to enhance the robustness of neural networks.
Authors
- Serge Gratton (ORCID: https://orcid.org/0000-0002-5021-2357)
- Théo Mary (ORCID: https://orcid.org/0000-0001-9949-4634)
- Théo Beuzeville (ORCID: https://orcid.org/0009-0002-6031-0900)
- Alfredo Buttari (ORCID: https://orcid.org/0000-0003-3207-7021)
Institutions
- Centre National de la Recherche Scientifique (FR)
- Université Toulouse III - Paul Sabatier (FR)
- Institut National Polytechnique de Toulouse (FR)
- Université Toulouse-I-Capitole (FR)
- Sorbonne Université (FR)
- Institut de Recherche en Informatique de Toulouse (FR)
- Université Toulouse - Jean Jaurès (FR)
- Laboratoire Jacques-Louis Lions (FR)
- Institut Polytechnique de Bordeaux (FR)
Publication Details
- Journal
- IMA Journal of Numerical Analysis
- Published
- 2025-10-20
- DOI
- https://doi.org/10.1093/imanum/draf130
- Primary Topic
- Neural Networks and Applications
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Agence Nationale de la Recherche
- Université de Toulouse