DeepStability
Authors:
Open Access
- 21 May 2022
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 586-597
Abstract
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 DeepStability, the first database of numerical stability issues and solutions in DL. Our findings and DeepStability provide future references to developers and tool builders to prevent, detect, localize and fix numerically unstable algorithm implementations. To demonstrate that, using DeepStability we have located numerical stability issues in Tensorflow, and submitted a fix which has been accepted and merged in.Keywords
All Related Versions
This publication has 15 references indexed in Scilit:
- Automated backward error analysis for numerical code2015
- RAIVE: runtime assessment of floating-point instability by vectorization2015
- Deep learningNature, 2015
- A dynamic program analysis to find floating-point accuracy problems2012
- Matrix Factorization Techniques for Recommender SystemsComputer, 2009
- Image Denoising Via Sparse and Redundant Representations Over Learned DictionariesIEEE Transactions on Image Processing, 2006
- Hardware implementations of denormalized numbers2004
- 10.1162/153244302760200704Applied Physics Letters, 2000
- Saddle point approximation for the distribution of the sum of independent random variablesAdvances in Applied Probability, 1980
- Towards a formal definition of numerical stabilityNumerische Mathematik, 1977