DeepLocalize: Fault Localization for Deep Neural Networks
Not on the map. Why?
Abstract (arXiv)
Deep neural networks (DNNs) are becoming an integral part of most software systems. Previous work has shown that DNNs have bugs. Unfortunately, existing debugging techniques do not support localizing DNN bugs because of the lack of understanding of model behaviors. The entire DNN model appears as a black box. To address these problems, we propose an approach that automatically determines whether the model is buggy or not, and identifies the root causes. Our key insight is that historic trends in values propagated between layers can be analyzed to identify faults, and localize faults. To that end, we first enable dynamic analysis of deep learning applications: by converting it into an imperative representation and alternatively using a callback mechanism. Both mechanisms allows us to insert probes that enable dynamic analysis over the traces produced by the DNN while it is being trained on the training data. We then conduct dynamic analysis over the traces to identify the faulty layer that causes the error. We propose an algorithm for identifying root causes by capturing any numerical error and monitoring the model during training and finding the relevance of every layer on the DNN outcome. We have collected a benchmark containing 40 buggy models and patches that contain real errors in deep learning applications from Stack Overflow and GitHub. Our benchmark can be used to evaluate automated debugging tools and repair techniques. We have evaluated our approach using this DNN bug-and-patch benchmark, and the results showed that our approach is much more effective than the existing debugging approach used in the state of the practice Keras library. For 34 out of 40 cases, our approach was able to detect faults whereas the best debugging approach provided by Keras detected 32 out of 40 faults. Our approach was able to localize 21 out of 40 bugs whereas Keras did not localize any faults.
Key facts. Cited by 37 papers in the map (data through 7 Oct 2026). First posted on arXiv 4 Mar 2021.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 6; 2022: 3; 2023: 12; 2024: 4; 2025: 5; 2026: 7.
37 papers.
Sort:
By area:
- 2021Fair Preprocessing: Towards Understanding Compositional Fairness of Data Transformers in Machine Learning Pipelinecited by 49
- 2021DeepDiagnosis: Automatically Diagnosing Faults and Recommending Actionable Fixes in Deep Learning Programscited by 19
- 2022DeepFD: Automated Fault Diagnosis and Localization for Deep Learning Programscited by 16
- 2022Bugs in Machine Learning-based Systems: A Faultload Benchmarkcited by 15
- 2021Decomposing Convolutional Neural Networks into Reusable and Replaceable Modulescited by 14
- 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
- 2023Bug Characterization in Machine Learning-based Systemscited by 10
- 2021AequeVox: Automated Fairness Testing of Speech Recognition Systemscited by 9
- 2023FedDebug: Systematic Debugging for Federated Learning Applicationscited by 6
- 2021Manas: Mining Software Repositories to Assist AutoMLcited by 5
- 2023Mutation-based Fault Localization of Deep Neural Networkscited by 5
25 more
- 2023An investigation of challenges encountered when specifying training data and runtime monitors for safety critical ML applicationscited by 4
- 2023LUNA: A Model-Based Universal Analysis Framework for Large Language Modelscited by 4
- 2024Deep Learning Library Testing: Definition, Methods and Challengescited 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
- 2023FetaFix: Automatic Fault Localization and Repair of Deep Learning Model Conversionscited by 3
- 2025Debugging and Runtime Analysis of Neural Networks with VLMs (A Case Study)cited by 3
- 2023Fault Localization for Buggy Deep Learning Framework Conversions in Image Recognitioncited by 2
- 2025Can Hessian-Based Insights Support Fault Diagnosis in Attention-based Models?cited by 2
- 2025Feature-Guided Analysis of Neural Networks: A Replication Studycited by 2
- 2023Tensor-Aware Energy Accountingcited by 1
- 2023DREAM: Debugging and Repairing AutoML Pipelinescited 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
- 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
- 2023Path Analysis for Effective Fault Localization in Deep Neural Networkscited by 0
- 2024Fuzzy Logic Guided Reward Function Variation: An Oracle for Testing Reinforcement Learning Programscited by 0
- 2024An Empirical Study of Fault Localisation Techniques for Deep Learningcited by 0
- 2026Multi-Agent Coordinated Rename Refactoringcited by 0
- 2026BTTackler: A Diagnosis-based Framework for Efficient Deep Learning Hyperparameter Optimizationcited by 0
- 2026Quality-Driven Selective Mutation for Deep Learningcited by 0
- 2026Hierarchical Fault Detection and Diagnosis for Transformer Architecturescited by 0
- 2026Evaluation-Strategy Gap in Fault Diagnosis of Deep Learning Programscited by 0
- 2026Deep4ge: DNN Training Trajectories for Fault Detection and Diagnosiscited by 0
- 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
- 2026Quality-Driven Selective Mutation for Deep Learning24 Apr 2026
- 2026SelfHeal: Empirical Fix Pattern Analysis and Bug Repair in LLM Agents20 Apr 2026
- 2026BTTackler: A Diagnosis-based Framework for Efficient Deep Learning Hyperparameter Optimization27 Feb 2026
- 2026Multi-Agent Coordinated Rename Refactoring1 Jan 2026
- 2025Imitation Game: Reproducing Deep Learning Bugs Leveraging an Intelligent Agent17 Dec 2025
- 2025Feature-Guided Analysis of Neural Networks: A Replication Study28 Oct 2025
- 2025Why Attention Fails: A Taxonomy of Faults in Attention-Based Neural Networks6 Aug 2025
- 2025Can Hessian-Based Insights Support Fault Diagnosis in Attention-based Models?9 Jun 2025
- 2025Debugging and Runtime Analysis of Neural Networks with VLMs (A Case Study)21 Mar 2025
25 more
- 2024An Empirical Study of Fault Localisation Techniques for Deep Learning15 Dec 2024
- 2024Toward Debugging Deep Reinforcement Learning Programs with RLExplorer6 Oct 2024
- 2024Fuzzy Logic Guided Reward Function Variation: An Oracle for Testing Reinforcement Learning Programs28 Jun 2024
- 2024Deep Learning Library Testing: Definition, Methods and Challenges27 Apr 2024
- 2023DREAM: Debugging and Repairing AutoML Pipelines31 Dec 2023
- 2023FetaFix: Automatic Fault Localization and Repair of Deep Learning Model Conversions22 Dec 2023
- 2023Tensor-Aware Energy Accounting19 Nov 2023
- 2023Path Analysis for Effective Fault Localization in Deep Neural Networks29 Oct 2023
- 2023LUNA: A Model-Based Universal Analysis Framework for Large Language Models22 Oct 2023
- 2023Mutation-based Fault Localization of Deep Neural Networks10 Sep 2023
- 2023Bug Characterization in Machine Learning-based Systems26 Jul 2023
- 2023Fault Localization for Buggy Deep Learning Framework Conversions in Image Recognition10 Jun 2023
- 2023Challenges and Practices of Deep Learning Model Reengineering: A Case Study on Computer Vision13 Mar 2023
- 2023Reliability Assurance for Deep Neural Network Architectures Against Numerical Defects13 Feb 2023
- 2023An investigation of challenges encountered when specifying training data and runtime monitors for safety critical ML applications31 Jan 2023
- 2023FedDebug: Systematic Debugging for Federated Learning Applications9 Jan 2023
- 2022COMET: Coverage-guided Model Generation For Deep Learning Library Testing2 Aug 2022
- 2022Bugs in Machine Learning-based Systems: A Faultload Benchmark24 Jun 2022
- 2022DeepFD: Automated Fault Diagnosis and Localization for Deep Learning Programs4 May 2022
- 2021DeepDiagnosis: Automatically Diagnosing Faults and Recommending Actionable Fixes in Deep Learning Programs7 Dec 2021
- 2021Manas: Mining Software Repositories to Assist AutoML6 Dec 2021
- 2021Understanding Performance Problems in Deep Learning Systems3 Dec 2021
- 2021AequeVox: Automated Fairness Testing of Speech Recognition Systems19 Oct 2021
- 2021Decomposing Convolutional Neural Networks into Reusable and Replaceable Modules11 Oct 2021
- 2021Fair Preprocessing: Towards Understanding Compositional Fairness of Data Transformers in Machine Learning Pipeline2 Jun 2021
- 2021Fair Preprocessing: Towards Understanding Compositional Fairness of Data Transformers in Machine Learning Pipelinecited by 49
- 2021DeepDiagnosis: Automatically Diagnosing Faults and Recommending Actionable Fixes in Deep Learning Programscited by 19
- 2022DeepFD: Automated Fault Diagnosis and Localization for Deep Learning Programscited by 16
- 2022Bugs in Machine Learning-based Systems: A Faultload Benchmarkcited by 15
- 2021Decomposing Convolutional Neural Networks into Reusable and Replaceable Modulescited by 14
- 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
- 2023Bug Characterization in Machine Learning-based Systemscited by 10
- 2021AequeVox: Automated Fairness Testing of Speech Recognition Systemscited by 9
- 2023FedDebug: Systematic Debugging for Federated Learning Applicationscited by 6
- 2021Manas: Mining Software Repositories to Assist AutoMLcited by 5
- 2023Mutation-based Fault Localization of Deep Neural Networkscited by 5
12 most cited of 34 All 34 (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
- 2026Quality-Driven Selective Mutation for Deep Learning24 Apr 2026
- 2026BTTackler: A Diagnosis-based Framework for Efficient Deep Learning Hyperparameter Optimization27 Feb 2026
- 2025Feature-Guided Analysis of Neural Networks: A Replication Study28 Oct 2025
- 2025Why Attention Fails: A Taxonomy of Faults in Attention-Based Neural Networks6 Aug 2025
- 2025Can Hessian-Based Insights Support Fault Diagnosis in Attention-based Models?9 Jun 2025
- 2025Debugging and Runtime Analysis of Neural Networks with VLMs (A Case Study)21 Mar 2025
- 2024An Empirical Study of Fault Localisation Techniques for Deep Learning15 Dec 2024
- 2024Toward Debugging Deep Reinforcement Learning Programs with RLExplorer6 Oct 2024
- 2024Fuzzy Logic Guided Reward Function Variation: An Oracle for Testing Reinforcement Learning Programs28 Jun 2024
12 newest of 34 All 34 (JSON)