Lune

ASE2023Top-tier venue

Mutation-based Fault Localization of Deep Neural Networks

Ali Ghanbari, Deepak-George Thomas, Muhammad Arbab Arshad, Hridesh Rajan

Abstract

Deep neural networks (DNNs) are susceptible to bugs, just like other types of software systems. A significant uptick in using DNN, and its applications in wide-ranging areas, including safety-critical systems, warrant extensive research on software engineering tools for improving the reliability of DNN-based systems. One such tool that has gained significant attention in the recent years is DNN fault localization. This paper revisits mutation-based fault localization in the context of DNN models and proposes a novel technique, named deepmufl, applicable to a wide range of DNN models. We have implemented deepmufl and have evaluated its effectiveness using 109 bugs obtained from StackOverflow. Our results show that deepmufl detects 53/109 of the bugs by ranking the buggy layer in top-1 position, outperforming state-of-the-art static and dynamic DNN fault localization systems that are also designed to target the class of bugs supported by deepmufl. Moreover, we observed that we can halve the fault localization time for a pre-trained model using mutation selection, yet losing only 7.55% of the bugs localized in ton-1 position.

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.

9 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

  • Using Fourier Analysis and Mutant Clustering to Accelerate DNN Mutation Testing cites DeepCrime: mutation testing of deep learning systems based on real faults
  • Using Fourier Analysis and Mutant Clustering to Accelerate DNN Mutation Testing cites Decomposition of Deep Neural Networks into Modules via Mutation Analysis
  • BDefects4NN: A Backdoor Defect Database for Controlled Localization Studies in Neural Networks cites DeepLocalize: Fault Localization for Deep Neural Networks
  • BDefects4NN: A Backdoor Defect Database for Controlled Localization Studies in Neural Networks cites DeepCrime: mutation testing of deep learning systems based on real faults
  • QuanForge: A Mutation Testing Framework for Quantum Neural Networks cites DeepCrime: mutation testing of deep learning systems based on real faults
  • Improved Detection and Diagnosis of Faults in Deep Neural Networks Using Hierarchical and Explainable Classification cites AUTOTRAINER: An Automatic DNN Training Problem Detection and Repair System
  • Improved Detection and Diagnosis of Faults in Deep Neural Networks Using Hierarchical and Explainable Classification cites Taxonomy of real faults in deep learning systems
  • Improved Detection and Diagnosis of Faults in Deep Neural Networks Using Hierarchical and Explainable Classification cites DeepLocalize: Fault Localization for Deep Neural Networks
  • Improved Detection and Diagnosis of Faults in Deep Neural Networks Using Hierarchical and Explainable Classification cites DeepCrime: mutation testing of deep learning systems based on real faults
  • DeepLocalize: Fault Localization for Deep Neural Networks cites Repairing deep neural networks: fix patterns and challenges
  • DeepCrime: mutation testing of deep learning systems based on real faults cites Taxonomy of real faults in deep learning systems
  • Decomposition of Deep Neural Networks into Modules via Mutation Analysis cites DeepCrime: mutation testing of deep learning systems based on real faults
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers9

  1. Decomposition of Deep Neural Networks into Modules via Mutation AnalysisAli GhanbariISSTA 2024 · 4 citations
  2. 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
  3. Using Fourier Analysis and Mutant Clustering to Accelerate DNN Mutation TestingAli Ghanbari, Sasan TavakkolASE 2025 · 1 citation
  4. BDefects4NN: A Backdoor Defect Database for Controlled Localization Studies in Neural NetworksYisong Xiao, Aishan Liu, Xinwei Zhang, Tianyuan Zhang et al.ICSE 2025
  5. QuanForge: A Mutation Testing Framework for Quantum Neural NetworksMinqi Shao, Shangzhou Xia, Jianjun ZhaoFSE 2026

Builds on8

  1. Taxonomy of real faults in deep learning systemsNargiz Humbatova, Gunel Jahangirova, Gabriele Bavota, Vincenzo Riccio et al.ICSE 2020 · 281 citations
  2. DeepCrime: mutation testing of deep learning systems based on real faultsNargiz Humbatova, Gunel Jahangirova, Paolo TonellaISSTA 2021 · 114 citations
  3. Repairing deep neural networks: fix patterns and challengesMd Johirul Islam, Rangeet Pan, Giang Nguyen, Hridesh RajanICSE 2020 · 102 citations
  4. DeepLocalize: Fault Localization for Deep Neural NetworksMohammad Wardat, Wei Le, Hridesh RajanICSE 2021 · 93 citations
  5. AUTOTRAINER: An Automatic DNN Training Problem Detection and Repair SystemXiaoyu Zhang, Juan Zhai, Shiqing Ma, Chao ShenICSE 2021 · 62 citations

Related papers

  1. Dynamic Data Fault Localization for Deep Neural NetworksYining Yin, Yang Feng, Shihao Weng, Zixi Liu et al.FSE 2023 · 10 citations
  2. DeepDiagnosis: Automatically Diagnosing Faults and Recommending Actionable Fixes in Deep Learning ProgramsMohammad Wardat, Breno Dantas Cruz, Wei Le, Hridesh RajanICSE 2022 · 46 citations
  3. Element-Based Automated DNN Repair with Fine-Tuned Masked Language ModelXu Wang, Mingming Zhang, Xiangxin Meng, Jian Zhang et al.FSE 2025
  4. Provably Lossless Acceleration of DNN Mutation Testing via MemoizationAli Ghanbari, Ben Greenman, Sasan Tavakkol, Shibbir AhmedISSTA 2026
  5. In Defense of Simple Techniques for Neural Network Test Case SelectionShenglin Bao, Chaofeng Sha, Bihuan Chen, Xin Peng et al.ISSTA 2023 · 9 citations
Dusk over the sea between two cliffs drawn in fine vertical lines