Silent Bugs in Deep Learning Frameworks: An Empirical Study of Keras and TensorFlow
Not on the map. Why?
Abstract (arXiv)
Deep Learning (DL) frameworks are now widely used, simplifying the creation of complex models as well as their integration to various applications even to non DL experts. However, like any other programs, they are prone to bugs. This paper deals with the subcategory of bugs named silent bugs: they lead to wrong behavior but they do not cause system crashes or hangs, nor show an error message to the user. Such bugs are even more dangerous in DL applications and frameworks due to the "black-box" and stochastic nature of the systems (the end user can not understand how the model makes decisions). This paper presents the first empirical study of Keras and TensorFlow silent bugs, and their impact on users' programs. We extracted closed issues related to Keras from the TensorFlow GitHub repository. Out of the 1,168 issues that we gathered, 77 were reproducible silent bugs affecting users' programs. We categorized the bugs based on the effects on the users' programs and the components where the issues occurred, using information from the issue reports. We then derived a threat level for each of the issues, based on the impact they had on the users' programs. To assess the relevance of identified categories and the impact scale, we conducted an online survey with 103 DL developers. The participants generally agreed with the significant impact of silent bugs in DL libraries and acknowledged our findings (i.e., categories of silent bugs and the proposed impact scale). Finally, leveraging our analysis, we provide a set of guidelines to facilitate safeguarding against such bugs in DL frameworks.
Key facts. Cited by 25 papers in the map (data through 7 Oct 2026). Builds on 4 of its 62 references that are in the map. First posted on arXiv 26 Dec 2021.
Builds on
4 of 62 references.
References · 4
- 2019Machine Learning Testing: Survey, Landscapes and Horizonscited by 213
- 2019Taxonomy of Real Faults in Deep Learning Systemscited by 90
- 2019A Comprehensive Study on Deep Learning Bug Characteristicscited by 65
- 2021Faults in Deep Reinforcement Learning Programs: A Taxonomy and A Detection Approachcited by 18
Built on by
Citing papers per year: 2022: 4; 2023: 4; 2024: 8; 2025: 5; 2026: 4.
25 papers.
Sort:
By area:
- 2024Bugs in Large Language Models Generated Code: An Empirical Studycited by 59
- 2024Impacts of floating-point non-associativity on reproducibility for HPC and deep learning applicationscited by 24
- 2022Bugs in Machine Learning-based Systems: A Faultload Benchmarkcited by 15
- 2024LLM-Powered Test Case Generation for Detecting Bugs in Plausible Programscited by 14
- 2023Bug Characterization in Machine Learning-based Systemscited by 10
- 2024A Survey on Failure Analysis and Fault Injection in AI Systemscited by 7
- 2024Towards Enhancing the Reproducibility of Deep Learning Bugs: An Empirical Studycited by 6
- 2023To Build Our Future, We Must Know Our Past: Contextualizing Paradigm Shifts in Natural Language Processingcited by 4
- 2024Deep Learning Library Testing: Definition, Methods and Challengescited by 4
- 2024Enhancing Differential Testing With LLMs For Testing Deep Learning Librariescited by 4
- 2022COMET: Coverage-guided Model Generation For Deep Learning Library Testingcited by 3
- 2023Reliability Assurance for Deep Neural Network Architectures Against Numerical Defectscited by 3
13 more
- 2022Challenges in Migrating Imperative Deep Learning Programs to Graph Execution: An Empirical Studycited by 2
- 2024Unraveling Code Clone Dynamics in Deep Learning Frameworkscited by 2
- 2023An Empirical Study on Bugs Inside PyTorch: A Replication Studycited by 1
- 2025PyResBugs: A Dataset of Residual Python Bugs for Natural Language-Driven Fault Injectioncited by 1
- 2025TTrace: Lightweight Error Checking and Diagnosis for Distributed Trainingcited by 1
- 2025Why Attention Fails: A Taxonomy of Faults in Attention-Based Neural Networkscited by 1
- 2025Imitation Game: Reproducing Deep Learning Bugs Leveraging an Intelligent Agentcited by 1
- 2026Understanding Agent-Reactive Bugs at the Model-Harness Boundary: An Empirical Study of LLM Agent Issue Reportscited by 1
- 2022Comparative analysis of real bugs in open-source Machine Learning projects -- A Registered Reportcited by 0
- 2025Verifying Computational Graphs in Production-Grade Distributed Machine Learning Frameworkscited by 0
- 2026Demystifying the Silence of Correctness Bugs in PyTorch Compilercited by 0
- 2026Relaxed activation analysis of dataflow networks - A clock calculus for machine learning and real-time schedulingcited by 0
- 2026Silent Failures Beyond the 32-Bit Index Range: A Differential Characterization of Large-Tensor Matrix Multiplication in PyTorch's MPS Backendcited by 0
- 2026Silent Failures Beyond the 32-Bit Index Range: A Differential Characterization of Large-Tensor Matrix Multiplication in PyTorch's MPS Backend19 Sep 2026
- 2026Relaxed activation analysis of dataflow networks - A clock calculus for machine learning and real-time scheduling23 Jul 2026
- 2026Understanding Agent-Reactive Bugs at the Model-Harness Boundary: An Empirical Study of LLM Agent Issue Reports17 Jul 2026
- 2026Demystifying the Silence of Correctness Bugs in PyTorch Compiler9 Apr 2026
- 2025Imitation Game: Reproducing Deep Learning Bugs Leveraging an Intelligent Agent17 Dec 2025
- 2025Verifying Computational Graphs in Production-Grade Distributed Machine Learning Frameworks12 Sep 2025
- 2025Why Attention Fails: A Taxonomy of Faults in Attention-Based Neural Networks6 Aug 2025
- 2025TTrace: Lightweight Error Checking and Diagnosis for Distributed Training10 Jun 2025
- 2025PyResBugs: A Dataset of Residual Python Bugs for Natural Language-Driven Fault Injection9 May 2025
- 2024Impacts of floating-point non-associativity on reproducibility for HPC and deep learning applications9 Aug 2024
- 2024A Survey on Failure Analysis and Fault Injection in AI Systems28 Jun 2024
- 2024Enhancing Differential Testing With LLMs For Testing Deep Learning Libraries12 Jun 2024
13 more
- 2024Deep Learning Library Testing: Definition, Methods and Challenges27 Apr 2024
- 2024Unraveling Code Clone Dynamics in Deep Learning Frameworks25 Apr 2024
- 2024LLM-Powered Test Case Generation for Detecting Bugs in Plausible Programs16 Apr 2024
- 2024Bugs in Large Language Models Generated Code: An Empirical Study13 Mar 2024
- 2024Towards Enhancing the Reproducibility of Deep Learning Bugs: An Empirical Study5 Jan 2024
- 2023To Build Our Future, We Must Know Our Past: Contextualizing Paradigm Shifts in Natural Language Processing11 Oct 2023
- 2023Bug Characterization in Machine Learning-based Systems26 Jul 2023
- 2023An Empirical Study on Bugs Inside PyTorch: A Replication Study25 Jul 2023
- 2023Reliability Assurance for Deep Neural Network Architectures Against Numerical Defects13 Feb 2023
- 2022Comparative analysis of real bugs in open-source Machine Learning projects -- A Registered Report20 Sep 2022
- 2022COMET: Coverage-guided Model Generation For Deep Learning Library Testing2 Aug 2022
- 2022Bugs in Machine Learning-based Systems: A Faultload Benchmark24 Jun 2022
- 2022Challenges in Migrating Imperative Deep Learning Programs to Graph Execution: An Empirical Study24 Jan 2022
- 2024Bugs in Large Language Models Generated Code: An Empirical Studycited by 59
- 2024Impacts of floating-point non-associativity on reproducibility for HPC and deep learning applicationscited by 24
- 2022Bugs in Machine Learning-based Systems: A Faultload Benchmarkcited by 15
- 2024LLM-Powered Test Case Generation for Detecting Bugs in Plausible Programscited by 14
- 2023Bug Characterization in Machine Learning-based Systemscited by 10
- 2024A Survey on Failure Analysis and Fault Injection in AI Systemscited by 7
- 2024Towards Enhancing the Reproducibility of Deep Learning Bugs: An Empirical Studycited by 6
- 2023To Build Our Future, We Must Know Our Past: Contextualizing Paradigm Shifts in Natural Language Processingcited by 4
- 2024Deep Learning Library Testing: Definition, Methods and Challengescited by 4
- 2024Enhancing Differential Testing With LLMs For Testing Deep Learning Librariescited by 4
- 2022COMET: Coverage-guided Model Generation For Deep Learning Library Testingcited by 3
- 2023Reliability Assurance for Deep Neural Network Architectures Against Numerical Defectscited by 3
12 most cited of 23 All 23 (JSON)
- 2026Silent Failures Beyond the 32-Bit Index Range: A Differential Characterization of Large-Tensor Matrix Multiplication in PyTorch's MPS Backend19 Sep 2026
- 2026Relaxed activation analysis of dataflow networks - A clock calculus for machine learning and real-time scheduling23 Jul 2026
- 2026Demystifying the Silence of Correctness Bugs in PyTorch Compiler9 Apr 2026
- 2025Verifying Computational Graphs in Production-Grade Distributed Machine Learning Frameworks12 Sep 2025
- 2025Why Attention Fails: A Taxonomy of Faults in Attention-Based Neural Networks6 Aug 2025
- 2025TTrace: Lightweight Error Checking and Diagnosis for Distributed Training10 Jun 2025
- 2025PyResBugs: A Dataset of Residual Python Bugs for Natural Language-Driven Fault Injection9 May 2025
- 2024Impacts of floating-point non-associativity on reproducibility for HPC and deep learning applications9 Aug 2024
- 2024A Survey on Failure Analysis and Fault Injection in AI Systems28 Jun 2024
- 2024Enhancing Differential Testing With LLMs For Testing Deep Learning Libraries12 Jun 2024
- 2024Deep Learning Library Testing: Definition, Methods and Challenges27 Apr 2024
- 2024Unraveling Code Clone Dynamics in Deep Learning Frameworks25 Apr 2024
12 newest of 23 All 23 (JSON)