DeepStability: A Study of Unstable Numerical Methods and Their Solutions in Deep Learning
Not on the map. Why?
Abstract (arXiv)
Deep learning (DL) has become an integral part of solutions to various important problems, which is why ensuring the quality of DL systems is essential. One of the challenges of achieving reliability and robustness of DL software is to ensure that algorithm implementations are numerically stable. DL algorithms require a large amount and a wide variety of numerical computations. A naive implementation of numerical computation can lead to errors that may result in incorrect or inaccurate learning and results. A numerical algorithm or a mathematical formula can have several implementations that are mathematically equivalent, but have different numerical stability properties. Designing numerically stable algorithm implementations is challenging, because it requires an interdisciplinary knowledge of software engineering, DL, and numerical analysis. In this paper, we study two mature DL libraries PyTorch and Tensorflow with the goal of identifying unstable numerical methods and their solutions. Specifically, we investigate which DL algorithms are numerically unstable and conduct an in-depth analysis of the root cause, manifestation, and patches to numerical instabilities. Based on these findings, we launch, the first database of numerical stability issues and solutions in DL. Our findings and provide future references to developers and tool builders to prevent, detect, localize and fix numerically unstable algorithm implementations. To demonstrate that, using it DeepStability we have located numerical stability issues in Tensorflow, and submitted a fix which has been accepted and merged in.
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Builds on 5 of its 29 references that are in the map. First posted on arXiv 7 Feb 2022.
Builds on
5 of 29 references.
References · 5
- 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 6,979
- 2018How Does Batch Normalization Help Optimization?cited by 355
- 2013Revisiting Natural Gradient for Deep Networkscited by 157
- 2020Adversarial Machine Learning -- Industry Perspectivescited by 121
- 2015Stochastic gradient variational Bayes for gamma approximating distributionscited by 9
Built on by
Citing papers per year: 2022: 2; 2023: 2; 2024: 1; 2025: 2; 2026: 4.
11 papers.
- 2025Grokking at the Edge of Numerical Stabilitycited by 41
- 2025Your Compiler is Backdooring Your Model: Understanding and Exploiting Compilation Inconsistency Vulnerabilities in Deep Learning Compilerscited by 6
- 2023MixQuant: Mixed Precision Quantization with a Bit-width Optimization Searchcited by 4
- 2024Deep Learning Library Testing: Definition, Methods and Challengescited by 4
- 2023Reliability Assurance for Deep Neural Network Architectures Against Numerical Defectscited by 3
- 2026Fuzzy PyTorch: Rapid Numerical Variability Evaluation for Deep Learning Modelscited by 2
- 2026Trusted Weights, Treacherous Optimizations? Optimization-Triggered Backdoor Attacks on LLMscited by 1
- 2022A Retrospective on ICSE 2022cited by 0
- 2022Numerical Stability of DeepGOPlus Inferencecited by 0
- 2026SemLoc: Structured Grounding of Free-Form LLM Reasoning for Fault Localizationcited by 0
- 2026Demystifying the Silence of Correctness Bugs in PyTorch Compilercited by 0
- 2026Fuzzy PyTorch: Rapid Numerical Variability Evaluation for Deep Learning Models25 May 2026
- 2026Trusted Weights, Treacherous Optimizations? Optimization-Triggered Backdoor Attacks on LLMs20 May 2026
- 2026Demystifying the Silence of Correctness Bugs in PyTorch Compiler9 Apr 2026
- 2026SemLoc: Structured Grounding of Free-Form LLM Reasoning for Fault Localization31 Mar 2026
- 2025Your Compiler is Backdooring Your Model: Understanding and Exploiting Compilation Inconsistency Vulnerabilities in Deep Learning Compilers14 Sep 2025
- 2025Grokking at the Edge of Numerical Stability8 Jan 2025
- 2024Deep Learning Library Testing: Definition, Methods and Challenges27 Apr 2024
- 2023MixQuant: Mixed Precision Quantization with a Bit-width Optimization Search29 Sep 2023
- 2023Reliability Assurance for Deep Neural Network Architectures Against Numerical Defects13 Feb 2023
- 2022Numerical Stability of DeepGOPlus Inference13 Dec 2022
- 2022A Retrospective on ICSE 202226 Jul 2022