A Comprehensive Study on Deep Learning Bug Characteristics
Not on the map. Why?
Abstract (arXiv)
Deep learning has gained substantial popularity in recent years. Developers mainly rely on libraries and tools to add deep learning capabilities to their software. What kinds of bugs are frequently found in such software? What are the root causes of such bugs? What impacts do such bugs have? Which stages of deep learning pipeline are more bug prone? Are there any antipatterns? Understanding such characteristics of bugs in deep learning software has the potential to foster the development of better deep learning platforms, debugging mechanisms, development practices, and encourage the development of analysis and verification frameworks. Therefore, we study 2716 high-quality posts from Stack Overflow and 500 bug fix commits from Github about five popular deep learning libraries Caffe, Keras, Tensorflow, Theano, and Torch to understand the types of bugs, root causes of bugs, impacts of bugs, bug-prone stage of deep learning pipeline as well as whether there are some common antipatterns found in this buggy software. The key findings of our study include: data bug and logic bug are the most severe bug types in deep learning software appearing more than 48% of the times, major root causes of these bugs are Incorrect Model Parameter (IPS) and Structural Inefficiency (SI) showing up more than 43% of the times. We have also found that the bugs in the usage of deep learning libraries have some common antipatterns that lead to a strong correlation of bug types among the libraries.
Key facts. Cited by 65 papers in the map (data through 7 Oct 2026). First posted on arXiv 3 Jun 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 12; 2022: 11; 2023: 11; 2024: 12; 2025: 8; 2026: 11.
65 papers.
Sort:
By area:
- 2021Software Engineering for AI-Based Systems: A Surveycited by 68
- 2024What's Wrong with Your Code Generated by Large Language Models? An Extensive Studycited by 52
- 2021Fair Preprocessing: Towards Understanding Compositional Fairness of Data Transformers in Machine Learning Pipelinecited by 49
- 2021Silent Bugs in Deep Learning Frameworks: An Empirical Study of Keras and TensorFlowcited by 25
- 2021An Empirical Study on Deployment Faults of Deep Learning Based Mobile Applicationscited by 20
- 2021DeepDiagnosis: Automatically Diagnosing Faults and Recommending Actionable Fixes in Deep Learning Programscited by 19
- 2021Faults in Deep Reinforcement Learning Programs: A Taxonomy and A Detection Approachcited by 18
- 2022DeepFD: Automated Fault Diagnosis and Localization for Deep Learning Programscited by 16
- 2022Bugs in Machine Learning-based Systems: A Faultload Benchmarkcited by 15
- 2021DeepMetis: Augmenting a Deep Learning Test Set to Increase its Mutation Scorecited by 12
- 2021Understanding Performance Problems in Deep Learning Systemscited by 12
- 2023Challenges and Practices of Deep Learning Model Reengineering: A Case Study on Computer Visioncited by 11
38 more
- 2021Design Smells in Deep Learning Programs: An Empirical Studycited by 10
- 2023Bug Characterization in Machine Learning-based Systemscited by 10
- 2021Automatic Fault Detection for Deep Learning Programs Using Graph Transformationscited by 9
- 2022Code Smells for Machine Learning Applicationscited by 7
- 2024A Survey on Failure Analysis and Fault Injection in AI Systemscited by 7
- 2024Understanding the Fundamental Design Decisions of Retrieval-Augmented Generation Systemscited by 7
- 2024Towards Enhancing the Reproducibility of Deep Learning Bugs: An Empirical Studycited by 6
- 2026When Agents Fail: A Comprehensive Study of Bugs in LLM Agents with Automated Labelingcited by 6
- 2021Yes We Care! -- Certification for Machine Learning Methods through the Care Label Frameworkcited by 5
- 2021Manas: Mining Software Repositories to Assist AutoMLcited by 5
- 2023Mutation-based Fault Localization of Deep Neural Networkscited by 5
- 2022Data Smells: Categories, Causes and Consequences, and Detection of Suspicious Data in AI-based Systemscited by 4
- 2022DNNAbacus: Toward Accurate Computational Cost Prediction for Deep Neural Networkscited by 4
- 2023An investigation of challenges encountered when specifying training data and runtime monitors for safety critical ML applicationscited by 4
- 2024Deep Learning Library Testing: Definition, Methods and Challengescited by 4
- 2024RogueGPT: dis-ethical tuning transforms ChatGPT4 into a Rogue AI in 158 Wordscited by 4
- 2025Deep-Bench: Deep Learning Benchmark Dataset for Code Generationcited by 3
- 2026Will It Survive? Deciphering the Fate of AI-Generated Code in Open Sourcecited by 3
- 2026CR-Bench: Evaluating the Real-World Utility of AI Code Review Agentscited by 3
- 2026Agent Skills Can Be Harmful: An Empirical Study of Skill-Induced Failures in LLM Agentscited by 3
- 2022Challenges in Migrating Imperative Deep Learning Programs to Graph Execution: An Empirical Studycited by 2
- 2022What is Software Quality for AI Engineers? Towards a Thinning of the Fogcited by 2
- 2022Testing Feedforward Neural Networks Training Programscited by 2
- 2022Software Engineering Approaches for TinyML based IoT Embedded Vision: A Systematic Literature Reviewcited by 2
- 2022An Empirical Study of Library Usage and Dependency in Deep Learning Frameworkscited by 2
- 2023What Kinds of Contracts Do ML APIs Need?cited by 2
- 2024Unraveling Code Clone Dynamics in Deep Learning Frameworkscited by 2
- 2026Why Does the LLM Stop Computing: An Empirical Study of User-Reported Failures in Open-Source LLMscited by 2
- 2023An Empirical Study on Bugs Inside PyTorch: A Replication Studycited by 1
- 2024Inferring Data Preconditions from Deep Learning Models for Trustworthy Prediction in Deploymentcited by 1
- 2024Toward Debugging Deep Reinforcement Learning Programs with RLExplorercited by 1
- 2025Why Attention Fails: A Taxonomy of Faults in Attention-Based Neural Networkscited by 1
- 2025xMem: A CPU-Based Approach for Accurate Estimation of GPU Memory in Deep Learning Training Workloadscited by 1
- 2025Imitation Game: Reproducing Deep Learning Bugs Leveraging an Intelligent Agentcited by 1
- 2026Using Small Language Models to Reverse-Engineer Machine Learning Pipelines Structurescited by 1
- 2026SelfHeal: Empirical Fix Pattern Analysis and Bug Repair in LLM Agentscited 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
50 most cited of 65 All 65 (JSON)
- 2026Agent Skills Can Be Harmful: An Empirical Study of Skill-Induced Failures in LLM Agents12 Aug 2026
- 2026Understanding Agent-Reactive Bugs at the Model-Harness Boundary: An Empirical Study of LLM Agent Issue Reports17 Jul 2026
- 2026Deep4ge: DNN Training Trajectories for Fault Detection and Diagnosis14 Jul 2026
- 2026Evaluation-Strategy Gap in Fault Diagnosis of Deep Learning Programs25 Jun 2026
- 2026Hierarchical Fault Detection and Diagnosis for Transformer Architectures30 Apr 2026
- 2026SelfHeal: Empirical Fix Pattern Analysis and Bug Repair in LLM Agents20 Apr 2026
- 2026CR-Bench: Evaluating the Real-World Utility of AI Code Review Agents10 Mar 2026
- 2026Will It Survive? Deciphering the Fate of AI-Generated Code in Open Source23 Jan 2026
- 2026When Agents Fail: A Comprehensive Study of Bugs in LLM Agents with Automated Labeling21 Jan 2026
- 2026Why Does the LLM Stop Computing: An Empirical Study of User-Reported Failures in Open-Source LLMs20 Jan 2026
- 2026Using Small Language Models to Reverse-Engineer Machine Learning Pipelines Structures7 Jan 2026
- 2025Imitation Game: Reproducing Deep Learning Bugs Leveraging an Intelligent Agent17 Dec 2025
38 more
- 2025xMem: A CPU-Based Approach for Accurate Estimation of GPU Memory in Deep Learning Training Workloads23 Oct 2025
- 2025GPU Temperature Simulation-Based Testing for In-Vehicle Deep Learning Frameworks19 Sep 2025
- 2025TopoMap: A Feature-based Semantic Discriminator of the Topographical Regions in the Test Input Space3 Sep 2025
- 2025Why Attention Fails: A Taxonomy of Faults in Attention-Based Neural Networks6 Aug 2025
- 2025Speculative Automated Refactoring of Imperative Deep Learning Programs to Graph Execution7 Apr 2025
- 2025Accurate GPU Memory Prediction for Deep Learning Jobs through Dynamic Analysis4 Apr 2025
- 2025Deep-Bench: Deep Learning Benchmark Dataset for Code Generation26 Feb 2025
- 2024Understanding the Fundamental Design Decisions of Retrieval-Augmented Generation Systems29 Nov 2024
- 2024Toward Debugging Deep Reinforcement Learning Programs with RLExplorer6 Oct 2024
- 2024What's Wrong with Your Code Generated by Large Language Models? An Extensive Study8 Jul 2024
- 2024A Survey on Failure Analysis and Fault Injection in AI Systems28 Jun 2024
- 2024On Security Weaknesses and Vulnerabilities in Deep Learning Systems12 Jun 2024
- 2024RogueGPT: dis-ethical tuning transforms ChatGPT4 into a Rogue AI in 158 Words11 Jun 2024
- 2024Deep Learning Library Testing: Definition, Methods and Challenges27 Apr 2024
- 2024Unraveling Code Clone Dynamics in Deep Learning Frameworks25 Apr 2024
- 2024Beyond Accuracy: An Empirical Study on Unit Testing in Open-source Deep Learning Projects26 Feb 2024
- 2024Inferring Data Preconditions from Deep Learning Models for Trustworthy Prediction in Deployment26 Jan 2024
- 2024An Exploratory Study on Automatic Identification of Assumptions in the Development of Deep Learning Frameworks8 Jan 2024
- 2024Towards Enhancing the Reproducibility of Deep Learning Bugs: An Empirical Study5 Jan 2024
- 2023ActiveClean: Generating Line-Level Vulnerability Data via Active Learning4 Dec 2023
- 2023Mutation-based Fault Localization of Deep Neural Networks10 Sep 2023
- 2023A Comprehensive Empirical Study of Bugs in Open-Source Federated Learning Frameworks9 Aug 2023
- 2023Bug Characterization in Machine Learning-based Systems26 Jul 2023
- 2023What Kinds of Contracts Do ML APIs Need?26 Jul 2023
- 2023An Empirical Study on Bugs Inside PyTorch: A Replication Study25 Jul 2023
- 2023What Causes Exceptions in Machine Learning Applications? Mining Machine Learning-Related Stack Traces on Stack Overflow25 Apr 2023
- 2023Analysis of Failures and Risks in Deep Learning Model Converters: A Case Study in the ONNX Ecosystem30 Mar 2023
- 2023Challenges and Practices of Deep Learning Model Reengineering: A Case Study on Computer Vision13 Mar 2023
- 2023Understanding Bugs in Multi-Language Deep Learning Frameworks5 Mar 2023
- 2023An investigation of challenges encountered when specifying training data and runtime monitors for safety critical ML applications31 Jan 2023
- 2022An Empirical Study of Library Usage and Dependency in Deep Learning Frameworks28 Nov 2022
- 2022Comparative analysis of real bugs in open-source Machine Learning projects -- A Registered Report20 Sep 2022
- 2022Bugs in Machine Learning-based Systems: A Faultload Benchmark24 Jun 2022
- 2022DNNAbacus: Toward Accurate Computational Cost Prediction for Deep Neural Networks24 May 2022
- 2022DeepFD: Automated Fault Diagnosis and Localization for Deep Learning Programs4 May 2022
- 2022Software Engineering Approaches for TinyML based IoT Embedded Vision: A Systematic Literature Review19 Apr 2022
- 2022Testing Feedforward Neural Networks Training Programs1 Apr 2022
- 2022Code Smells for Machine Learning Applications25 Mar 2022
50 newest of 65 All 65 (JSON)
- 2026When Agents Fail: A Comprehensive Study of Bugs in LLM Agents with Automated Labelingcited by 6
- 2026CR-Bench: Evaluating the Real-World Utility of AI Code Review Agentscited by 3
- 2026Agent Skills Can Be Harmful: An Empirical Study of Skill-Induced Failures in LLM Agentscited by 3
- 2025Imitation Game: Reproducing Deep Learning Bugs Leveraging an Intelligent Agentcited by 1
- 2026SelfHeal: Empirical Fix Pattern Analysis and Bug Repair in LLM Agentscited by 1
- 2026Understanding Agent-Reactive Bugs at the Model-Harness Boundary: An Empirical Study of LLM Agent Issue Reportscited by 1
- 2026Agent Skills Can Be Harmful: An Empirical Study of Skill-Induced Failures in LLM Agents12 Aug 2026
- 2026Understanding Agent-Reactive Bugs at the Model-Harness Boundary: An Empirical Study of LLM Agent Issue Reports17 Jul 2026
- 2026SelfHeal: Empirical Fix Pattern Analysis and Bug Repair in LLM Agents20 Apr 2026
- 2026CR-Bench: Evaluating the Real-World Utility of AI Code Review Agents10 Mar 2026
- 2026When Agents Fail: A Comprehensive Study of Bugs in LLM Agents with Automated Labeling21 Jan 2026
- 2025Imitation Game: Reproducing Deep Learning Bugs Leveraging an Intelligent Agent17 Dec 2025
- 2021Software Engineering for AI-Based Systems: A Surveycited by 68
- 2024What's Wrong with Your Code Generated by Large Language Models? An Extensive Studycited by 52
- 2021Fair Preprocessing: Towards Understanding Compositional Fairness of Data Transformers in Machine Learning Pipelinecited by 49
- 2021Silent Bugs in Deep Learning Frameworks: An Empirical Study of Keras and TensorFlowcited by 25
- 2021An Empirical Study on Deployment Faults of Deep Learning Based Mobile Applicationscited by 20
- 2021DeepDiagnosis: Automatically Diagnosing Faults and Recommending Actionable Fixes in Deep Learning Programscited by 19
- 2021Faults in Deep Reinforcement Learning Programs: A Taxonomy and A Detection Approachcited by 18
- 2022DeepFD: Automated Fault Diagnosis and Localization for Deep Learning Programscited by 16
- 2022Bugs in Machine Learning-based Systems: A Faultload Benchmarkcited by 15
- 2021DeepMetis: Augmenting a Deep Learning Test Set to Increase its Mutation Scorecited by 12
- 2021Understanding Performance Problems in Deep Learning Systemscited by 12
- 2023Challenges and Practices of Deep Learning Model Reengineering: A Case Study on Computer Visioncited by 11
12 most cited of 57 All 57 (JSON)
- 2026Deep4ge: DNN Training Trajectories for Fault Detection and Diagnosis14 Jul 2026
- 2026Evaluation-Strategy Gap in Fault Diagnosis of Deep Learning Programs25 Jun 2026
- 2026Hierarchical Fault Detection and Diagnosis for Transformer Architectures30 Apr 2026
- 2026Will It Survive? Deciphering the Fate of AI-Generated Code in Open Source23 Jan 2026
- 2026Why Does the LLM Stop Computing: An Empirical Study of User-Reported Failures in Open-Source LLMs20 Jan 2026
- 2026Using Small Language Models to Reverse-Engineer Machine Learning Pipelines Structures7 Jan 2026
- 2025xMem: A CPU-Based Approach for Accurate Estimation of GPU Memory in Deep Learning Training Workloads23 Oct 2025
- 2025GPU Temperature Simulation-Based Testing for In-Vehicle Deep Learning Frameworks19 Sep 2025
- 2025TopoMap: A Feature-based Semantic Discriminator of the Topographical Regions in the Test Input Space3 Sep 2025
- 2025Why Attention Fails: A Taxonomy of Faults in Attention-Based Neural Networks6 Aug 2025
- 2025Speculative Automated Refactoring of Imperative Deep Learning Programs to Graph Execution7 Apr 2025
- 2025Accurate GPU Memory Prediction for Deep Learning Jobs through Dynamic Analysis4 Apr 2025
12 newest of 57 All 57 (JSON)