Abstract
In explainable artificial intelligence, discriminative feature localization is critical to reveal a blackbox model's decision-making process from raw data to prediction. In this article, we use two real datasets, the MNIST handwritten digits and MIT-BIH Electrocardiogram (ECG) signals, to motivate key characteristics of discriminative features, namely adaptiveness, predictive importance and effectiveness. Then, we develop a localization framework based on adversarial attacks to effectively localize discriminative features. In contrast to existing heuristic methods, we also provide a statistically guaranteed interpretability of the localized features by measuring a generalized partial $R^2$. We apply the proposed method to the MNIST dataset and the MIT-BIH dataset with a convolutional auto-encoder. In the first, the compact image regions localized by the proposed method are visually appealing. Similarly, in the second, the identified ECG features are biologically plausible and consistent with cardiac electrophysiological principles while locating subtle anomalies in a QRS complex that may not be discernible by the naked eye. Overall, the proposed method compares favorably with state-of-the-art competitors. Accompanying this paper is a Python library dnn-locate (https://dnn-locate.readthedocs.io/en/latest/) that implements the proposed approach.
Introduction: The Black Box Problem
Deep learning models have achieved remarkable success in various domains, yet they remain largely "black boxes." While they provide highly accurate predictions, they offer little insight into the underlying decision-making process. Existing Explainable AI (XAI) tools, such as Grad-CAM, LIME, and SHAP, attempt to bridge this gap but often rely on heuristics that produce noisy heatmaps or lack a rigorous statistical foundation.
This research addresses three critical missing pillars in current localization methods:
- Adaptiveness: Features must be specific to individual input instances.
- Predictive Importance: A quantifiable measure of how much a feature contributes to model performance.
- Effectiveness: Explanations should be compact, identifying the smallest set of features that explain the outcome.
Methodology: A Statistically Grounded Framework
The proposed framework treats feature localization as a constrained optimization problem, introducing two key components:
Generalized Partial $R^2$
The core innovation is a metric that mimics the $R^2$ used in classical statistics. It measures the ratio of "full-model risk" to "partial-model risk"—the error incurred when certain features are disrupted. This allows for a precise statement: "These specific pixels explain X% of the model's performance."
The Localizer Network
Instead of relying solely on gradients, the authors train a separate "localizer" network, specifically a Convolutional Auto-Encoder (CAE). This network learns to disrupt the input in the most efficient way possible to degrade the model's performance to a target level. By applying an $L_1$ penalty, the framework ensures that the identified features are both highly important and highly compact.
Evaluation and Validation
The framework was evaluated on two distinct datasets to test its versatility.
MNIST Handwritten Digits
The model was tasked with distinguishing '7' from '9'. This benchmark allows for easy verification of whether the localized features—such as the top bar of a '7' or the loop of a '9'—align with human intuition.
MIT-BIH Electrocardiogram (ECG) Signals
To test the method on complex time-series data, the authors used the MIT-BIH dataset. The framework successfully localized features that are biologically plausible and consistent with cardiac electrophysiological principles.
Key Insights
- The Adversarial Approach: By finding the smallest change that breaks a correct prediction, the method reveals the essential features holding that prediction together.
- Biological Validation: Without prior medical knowledge, the model localized the QRS complex and the P-wave. These are the exact regions cardiologists use to diagnose arrhythmias, reinforcing the model's clinical relevance.
- Statistical Guarantees: The authors provide theoretical proofs showing that their estimated localizer converges to the true optimal localizer as sample size increases.
Results and Performance
The proposed method demonstrates superior compactness compared to state-of-the-art methods like Deep Taylor and Grad-CAM. In numerical comparisons, it achieved significantly higher $R^2$ values for the same amount of feature disruption. For instance, on a specific task where a gradient-based explainer showed an $R^2$ of 0.289, this method achieved 0.714.
Limitations and Future Directions
While powerful, the method involves computational overhead due to the need to train a separate localizer network. Furthermore, the localizer is inherently tied to the quality of the underlying "black-box" model. Future work aims to develop formal hypothesis tests to determine if a localized feature is "genuinely important" in a statistical sense, potentially leading to the discovery of new scientific patterns.
Summary updated