mlsanityData to 7 Oct 2026

DeepLocalize: Fault Localization for Deep Neural Networks

arXiv 2103.03376 ↗First posted 4 Mar 2021cs.SEcited by 37

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

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 6; 2022: 3; 2023: 12; 2024: 4; 2025: 5; 2026: 7.

37 papers.

Sort:

By area:

  1. 2021Fair Preprocessing: Towards Understanding Compositional Fairness of Data Transformers in Machine Learning Pipelinecited by 49
  2. 2021DeepDiagnosis: Automatically Diagnosing Faults and Recommending Actionable Fixes in Deep Learning Programscited by 19
  3. 2022DeepFD: Automated Fault Diagnosis and Localization for Deep Learning Programscited by 16
  4. 2022Bugs in Machine Learning-based Systems: A Faultload Benchmarkcited by 15
  5. 2021Decomposing Convolutional Neural Networks into Reusable and Replaceable Modulescited by 14
  6. 2021Understanding Performance Problems in Deep Learning Systemscited by 12
  7. 2023Challenges and Practices of Deep Learning Model Reengineering: A Case Study on Computer Visioncited by 11
  8. 2023Bug Characterization in Machine Learning-based Systemscited by 10
  9. 2021AequeVox: Automated Fairness Testing of Speech Recognition Systemscited by 9
  10. 2023FedDebug: Systematic Debugging for Federated Learning Applicationscited by 6
  11. 2021Manas: Mining Software Repositories to Assist AutoMLcited by 5
  12. 2023Mutation-based Fault Localization of Deep Neural Networkscited by 5
25 more
  1. 2023An investigation of challenges encountered when specifying training data and runtime monitors for safety critical ML applicationscited by 4
  2. 2023LUNA: A Model-Based Universal Analysis Framework for Large Language Modelscited by 4
  3. 2024Deep Learning Library Testing: Definition, Methods and Challengescited by 4
  4. 2022COMET: Coverage-guided Model Generation For Deep Learning Library Testingcited by 3
  5. 2023Reliability Assurance for Deep Neural Network Architectures Against Numerical Defectscited by 3
  6. 2023FetaFix: Automatic Fault Localization and Repair of Deep Learning Model Conversionscited by 3
  7. 2025Debugging and Runtime Analysis of Neural Networks with VLMs (A Case Study)cited by 3
  8. 2023Fault Localization for Buggy Deep Learning Framework Conversions in Image Recognitioncited by 2
  9. 2025Can Hessian-Based Insights Support Fault Diagnosis in Attention-based Models?cited by 2
  10. 2025Feature-Guided Analysis of Neural Networks: A Replication Studycited by 2
  11. 2023Tensor-Aware Energy Accountingcited by 1
  12. 2023DREAM: Debugging and Repairing AutoML Pipelinescited by 1
  13. 2024Toward Debugging Deep Reinforcement Learning Programs with RLExplorercited by 1
  14. 2025Why Attention Fails: A Taxonomy of Faults in Attention-Based Neural Networkscited by 1
  15. 2025Imitation Game: Reproducing Deep Learning Bugs Leveraging an Intelligent Agentcited by 1
  16. 2026SelfHeal: Empirical Fix Pattern Analysis and Bug Repair in LLM Agentscited by 1
  17. 2023Path Analysis for Effective Fault Localization in Deep Neural Networkscited by 0
  18. 2024Fuzzy Logic Guided Reward Function Variation: An Oracle for Testing Reinforcement Learning Programscited by 0
  19. 2024An Empirical Study of Fault Localisation Techniques for Deep Learningcited by 0
  20. 2026Multi-Agent Coordinated Rename Refactoringcited by 0
  21. 2026BTTackler: A Diagnosis-based Framework for Efficient Deep Learning Hyperparameter Optimizationcited by 0
  22. 2026Quality-Driven Selective Mutation for Deep Learningcited by 0
  23. 2026Hierarchical Fault Detection and Diagnosis for Transformer Architecturescited by 0
  24. 2026Evaluation-Strategy Gap in Fault Diagnosis of Deep Learning Programscited by 0
  25. 2026Deep4ge: DNN Training Trajectories for Fault Detection and Diagnosiscited by 0