Lune

ICSE2022Top-tier venue

DeepDiagnosis: Automatically Diagnosing Faults and Recommending Actionable Fixes in Deep Learning Programs

Mohammad Wardat, Breno Dantas Cruz, Wei Le, Hridesh Rajan

Abstract

Deep Neural Networks (DNNs) are used in a wide variety of applications. However, as in any software application, DNN-based apps are afflicted with bugs. Previous work observed that DNN bug fix patterns are different from traditional bug fix patterns. Furthermore, those buggy models are non-trivial to diagnose and fix due to inexplicit errors with several options to fix them. To support developers in locating and fixing bugs, we propose DeepDiagnosis, a novel debugging approach that localizes the faults, reports error symptoms and suggests fixes for DNN programs. In the first phase, our technique monitors a training model, periodically checking for eight types of error conditions. Then, in case of problems, it reports messages containing sufficient information to perform actionable repairs to the model. In the evaluation, we thoroughly examine 444 models -53 real-world from GitHub and Stack Overflow, and 391 curated by AUTOTRAINER. DeepDiagnosis provides superior accuracy when compared to UMLUAT and DeepLocalize. Our technique is faster than AUTOTRAINER for fault localization. The results show that our approach can support additional types of models, while state-of-the-art was only able to handle classification ones. Our technique was able to report bugs that do not manifest as numerical errors during training. Also, it can provide actionable insights for fix whereas DeepLocalize can only report faults that lead to numerical errors during training. DeepDiagnosis manifests the best capabilities of fault detection, bug localization, and symptoms identification when compared to other approaches.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

12 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Design by Contract for Deep Learning APIs cites Repairing deep neural networks: fix patterns and challenges
  • Design by Contract for Deep Learning APIs cites UMLAUT: Debugging Deep Learning Programs using Program Structure and Model Behavior
  • Design by Contract for Deep Learning APIs cites AUTOTRAINER: An Automatic DNN Training Problem Detection and Repair System
  • Design by Contract for Deep Learning APIs cites Manas: Mining Software Repositories to Assist AutoML
  • Design by Contract for Deep Learning APIs cites The Art and Practice of Data Science Pipelines: A Comprehensive Study of Data Science Pipelines In Theory, In-The-Small, and In-The-Large
  • Design by Contract for Deep Learning APIs cites DeepLocalize: Fault Localization for Deep Neural Networks
  • Mutation-based Fault Localization of Deep Neural Networks cites Repairing deep neural networks: fix patterns and challenges
  • Mutation-based Fault Localization of Deep Neural Networks cites UMLAUT: Debugging Deep Learning Programs using Program Structure and Model Behavior
  • Mutation-based Fault Localization of Deep Neural Networks cites AUTOTRAINER: An Automatic DNN Training Problem Detection and Repair System
  • Mutation-based Fault Localization of Deep Neural Networks cites DeepLocalize: Fault Localization for Deep Neural Networks
  • Manas: Mining Software Repositories to Assist AutoML cites Repairing deep neural networks: fix patterns and challenges
  • Manas: Mining Software Repositories to Assist AutoML cites DeepLocalize: Fault Localization for Deep Neural Networks
  • The Art and Practice of Data Science Pipelines: A Comprehensive Study of Data Science Pipelines In Theory, In-The-Small, and In-The-Large cites Repairing deep neural networks: fix patterns and challenges
  • The Art and Practice of Data Science Pipelines: A Comprehensive Study of Data Science Pipelines In Theory, In-The-Small, and In-The-Large cites DeepLocalize: Fault Localization for Deep Neural Networks
  • IRepair: An Intent-Aware Approach to Repair Data-Driven Errors in Large Language Models cites AUTOTRAINER: An Automatic DNN Training Problem Detection and Repair System
  • DeepLocalize: Fault Localization for Deep Neural Networks cites Repairing deep neural networks: fix patterns and challenges
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers12

  1. The Art and Practice of Data Science Pipelines: A Comprehensive Study of Data Science Pipelines In Theory, In-The-Small, and In-The-LargeSumon Biswas, Mohammad Wardat, Hridesh RajanICSE 2022 · 64 citations
  2. Mutation-based Fault Localization of Deep Neural NetworksAli Ghanbari, Deepak-George Thomas, Muhammad Arbab Arshad, Hridesh RajanASE 2023 · 20 citations
  3. Manas: Mining Software Repositories to Assist AutoMLGiang Nguyen, Md Johirul Islam, Rangeet Pan, Hridesh RajanICSE 2022 · 15 citations
  4. Design by Contract for Deep Learning APIsShibbir Ahmed, Sayem Mohammad Imtiaz, Syeda Khairunnesa Samantha, Breno Dantas Cruz et al.FSE 2023 · 10 citations
  5. IRepair: An Intent-Aware Approach to Repair Data-Driven Errors in Large Language ModelsSayem Mohammad Imtiaz, Astha Singh, Fraol Batole, Hridesh RajanFSE 2025 · 3 citations

Builds on5

  1. Repairing deep neural networks: fix patterns and challengesMd Johirul Islam, Rangeet Pan, Giang Nguyen, Hridesh RajanICSE 2020 · 102 citations
  2. DeepLocalize: Fault Localization for Deep Neural NetworksMohammad Wardat, Wei Le, Hridesh RajanICSE 2021 · 93 citations
  3. Detecting numerical bugs in neural network architecturesYuhao Zhang, Luyao Ren, Liqian Chen, Yingfei Xiong et al.FSE 2020 · 66 citations
  4. AUTOTRAINER: An Automatic DNN Training Problem Detection and Repair SystemXiaoyu Zhang, Juan Zhai, Shiqing Ma, Chao ShenICSE 2021 · 62 citations
  5. UMLAUT: Debugging Deep Learning Programs using Program Structure and Model BehaviorEldon Schoop, Forrest Huang, Bjoern HartmannCHI 2021 · 50 citations

Related papers

  1. DeepFD: Automated Fault Diagnosis and Localization for Deep Learning ProgramsJialun Cao, Meiziniu Li, Xiao Chen, Ming Wen et al.ICSE 2022 · 42 citations
  2. Dynamic Data Fault Localization for Deep Neural NetworksYining Yin, Yang Feng, Shihao Weng, Zixi Liu et al.FSE 2023 · 10 citations
  3. AI-Lancet: Locating Error-inducing Neurons to Optimize Neural NetworksYue Zhao, Hong Zhu, Kai Chen, Shengzhi ZhangCCS 2021 · 17 citations
  4. Improved Detection and Diagnosis of Faults in Deep Neural Networks Using Hierarchical and Explainable ClassificationSigma Jahan, Mehil B. Shah, Parvez Mahbub, Mohammad Masudur RahmanICSE 2025 · 2 citations
  5. Element-Based Automated DNN Repair with Fine-Tuned Masked Language ModelXu Wang, Mingming Zhang, Xiangxin Meng, Jian Zhang et al.FSE 2025
Dusk over the sea between two cliffs drawn in fine vertical lines