DeepDiagnosis: Automatically Diagnosing Faults and Recommending Actionable Fixes in Deep Learning Programs
摘要
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.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 12 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Design by Contract for Deep Learning APIs 引用了 Repairing deep neural networks: fix patterns and challenges
- Design by Contract for Deep Learning APIs 引用了 UMLAUT: Debugging Deep Learning Programs using Program Structure and Model Behavior
- Design by Contract for Deep Learning APIs 引用了 AUTOTRAINER: An Automatic DNN Training Problem Detection and Repair System
- Design by Contract for Deep Learning APIs 引用了 Manas: Mining Software Repositories to Assist AutoML
- Design by Contract for Deep Learning APIs 引用了 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 引用了 DeepLocalize: Fault Localization for Deep Neural Networks
- Mutation-based Fault Localization of Deep Neural Networks 引用了 Repairing deep neural networks: fix patterns and challenges
- Mutation-based Fault Localization of Deep Neural Networks 引用了 UMLAUT: Debugging Deep Learning Programs using Program Structure and Model Behavior
- Mutation-based Fault Localization of Deep Neural Networks 引用了 AUTOTRAINER: An Automatic DNN Training Problem Detection and Repair System
- Mutation-based Fault Localization of Deep Neural Networks 引用了 DeepLocalize: Fault Localization for Deep Neural Networks
- Manas: Mining Software Repositories to Assist AutoML 引用了 Repairing deep neural networks: fix patterns and challenges
- Manas: Mining Software Repositories to Assist AutoML 引用了 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 引用了 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 引用了 DeepLocalize: Fault Localization for Deep Neural Networks
- IRepair: An Intent-Aware Approach to Repair Data-Driven Errors in Large Language Models 引用了 AUTOTRAINER: An Automatic DNN Training Problem Detection and Repair System
- DeepLocalize: Fault Localization for Deep Neural Networks 引用了 Repairing deep neural networks: fix patterns and challenges
引用它的顶会 Paper12
- 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 次引用
- Mutation-based Fault Localization of Deep Neural NetworksAli Ghanbari, Deepak-George Thomas, Muhammad Arbab Arshad, Hridesh RajanASE 2023 · 20 次引用
- Manas: Mining Software Repositories to Assist AutoMLGiang Nguyen, Md Johirul Islam, Rangeet Pan, Hridesh RajanICSE 2022 · 15 次引用
- Design by Contract for Deep Learning APIsShibbir Ahmed, Sayem Mohammad Imtiaz, Syeda Khairunnesa Samantha, Breno Dantas Cruz 等FSE 2023 · 10 次引用
- IRepair: An Intent-Aware Approach to Repair Data-Driven Errors in Large Language ModelsSayem Mohammad Imtiaz, Astha Singh, Fraol Batole, Hridesh RajanFSE 2025 · 3 次引用
它引用的 Paper5
- Repairing deep neural networks: fix patterns and challengesMd Johirul Islam, Rangeet Pan, Giang Nguyen, Hridesh RajanICSE 2020 · 102 次引用
- DeepLocalize: Fault Localization for Deep Neural NetworksMohammad Wardat, Wei Le, Hridesh RajanICSE 2021 · 93 次引用
- Detecting numerical bugs in neural network architecturesYuhao Zhang, Luyao Ren, Liqian Chen, Yingfei Xiong 等FSE 2020 · 66 次引用
- AUTOTRAINER: An Automatic DNN Training Problem Detection and Repair SystemXiaoyu Zhang, Juan Zhai, Shiqing Ma, Chao ShenICSE 2021 · 62 次引用
- UMLAUT: Debugging Deep Learning Programs using Program Structure and Model BehaviorEldon Schoop, Forrest Huang, Bjoern HartmannCHI 2021 · 50 次引用
相关 Paper
- DeepFD: Automated Fault Diagnosis and Localization for Deep Learning ProgramsJialun Cao, Meiziniu Li, Xiao Chen, Ming Wen 等ICSE 2022 · 42 次引用
- Dynamic Data Fault Localization for Deep Neural NetworksYining Yin, Yang Feng, Shihao Weng, Zixi Liu 等FSE 2023 · 10 次引用
- AI-Lancet: Locating Error-inducing Neurons to Optimize Neural NetworksYue Zhao, Hong Zhu, Kai Chen, Shengzhi ZhangCCS 2021 · 17 次引用
- 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 次引用
- Element-Based Automated DNN Repair with Fine-Tuned Masked Language ModelXu Wang, Mingming Zhang, Xiangxin Meng, Jian Zhang 等FSE 2025
