[Paper Review] Explaining Deep Neural Networks Using Spectrum-Based Fault Localization
This paper proposes DeepCover, a novel method that uses spectrum-based fault localization (SFL) from software engineering to explain deep neural network decisions by identifying minimal, relevant input features. It outperforms state-of-the-art methods like GradCAM, LIME, SHAP, RISE, and Extremal, achieving 76.7% accuracy on a benchmark with ground truth—6% higher than the next best method.
The black-box nature of deep neural networks (DNNs) makes it impossible to understand why a particular output is produced, creating demand for Explainable AI. In this paper, we show that statistical fault localization (SFL) techniques from software engineering deliver high quality explanations of the outputs of DNNs, where we define an explanation as a minimal subset of features sufficient for making the same decision as for the original input. We present an algorithm and a tool called DeepCover, which synthesizes a ranking of the features of the inputs using SFL and constructs explanations for the decisions of the DNN based on this ranking. We compare explanations produced by DeepCover with those of the state-of-the-art tools GradCAM, LIME, SHAP, RISE and Extremal and show that explanations generated by DeepCover are consistently better across a broad set of experiments. On a benchmark set with known ground truth, DeepCover achieves 76.7% accuracy, which is 6% better than the second best Extremal.
Motivation & Objective
- To address the lack of interpretability in deep neural networks (DNNs), which hinders trust and debugging in real-world AI applications.
- To develop a method that generates minimal, high-quality explanations by identifying the smallest set of input features sufficient for a DNN’s prediction.
- To improve upon existing explainability tools by leveraging statistical fault localization techniques from software engineering.
- To evaluate the method on a benchmark with known ground truth and compare it comprehensively against state-of-the-art explainability tools.
Proposed method
- DeepCover applies spectrum-based fault localization (SFL) to DNN inputs by treating misclassified samples as 'faults' and features as potential causes.
- It constructs a spectrum matrix where each row represents a feature and each column a test input, with values indicating feature activation patterns across inputs.
- The SFL algorithm computes a suspiciousness score for each feature based on how frequently it co-occurs with incorrect predictions, ranking features by their contribution to errors.
- The top-ranked features are selected as the explanation, forming a minimal subset sufficient to reproduce the DNN’s output decision.
- The method synthesizes explanations by selecting features with the highest suspiciousness scores, ensuring minimal and relevant feature sets.
- The tool integrates with DNN inference pipelines to automatically generate explanations for any input without requiring model retraining.
Experimental results
Research questions
- RQ1Can spectrum-based fault localization (SFL) be effectively adapted to explain decisions made by deep neural networks?
- RQ2How does the quality of explanations generated by SFL-based methods compare to state-of-the-art explainability tools like GradCAM, LIME, SHAP, RISE, and Extremal?
- RQ3Does the SFL-based approach produce more accurate and minimal explanations than existing methods on benchmarks with known ground truth?
- RQ4Can SFL-based explanations consistently outperform other methods across diverse datasets and network architectures?
Key findings
- DeepCover achieved 76.7% accuracy in identifying correct input features for DNN predictions on a benchmark with ground truth, significantly outperforming the next best method, Extremal, which achieved 70.7%.
- The SFL-based approach produced more consistent and higher-quality explanations than GradCAM, LIME, SHAP, and RISE across all evaluated datasets and models.
- Explanations generated by DeepCover were consistently more minimal, focusing on the smallest set of features sufficient to reproduce the model’s decision.
- The method demonstrated robustness across different network architectures and datasets, maintaining high performance without requiring architectural modifications or retraining.
- The use of SFL enabled precise identification of salient features, reducing noise and irrelevant contributions common in gradient-based or perturbation-based methods.
- The results confirm that SFL techniques from software engineering are highly effective for explaining DNN behavior, offering a new, reliable paradigm for explainable AI.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.