Litcius/Paper detail

An Empirical Study on Numerical Bugs in Deep Learning Programs

Wang Gan, Zan Wang, Junjie Chen, Xiang Chen, Ming Yan

202215 citationsDOIOpen Access PDF

Abstract

The task of a deep learning (DL) program is to train a model with high precision and apply it to different scenarios. A DL program often involves massive numerical calculations. Therefore, the robustness and stability of the numerical calculations are dominant in the quality of DL programs. Indeed, numerical bugs are common in DL programs, producing NaN (Not-a-Number) and INF (Infinite). A numerical bug may render the DL models inaccurate, causing the DL applications unusable. In this work, we conduct the first empirical study on numerical bugs in DL programs by analyzing the programs implemented on the top of two popular DL libraries (i.e., TensorFlow and PyTorch). Specifically, We collect a dataset of 400 numerical bugs in DL programs. Then, we classify these numerical bugs into nine categories based on their root causes and summarize two findings. Finally, we provide the implications of our study on detecting numerical bugs in DL programs.

Topics & Concepts

Computer scienceRobustness (evolution)Numerical modelsNumerical stabilitySoftware bugNumerical analysisDeep learningArtificial intelligenceTask (project management)Stability (learning theory)Machine learningEmpirical researchComputer simulationProgramming languageSoftwareSimulationMathematicsStatisticsEngineeringChemistryMathematical analysisGeneBiochemistrySystems engineeringAdversarial Robustness in Machine LearningMachine Learning and Data ClassificationParallel Computing and Optimization Techniques