Abstract: Post-hoc gradient-based interpretability methods that provide instance-specific explanations of model predictions are often based on assumption (A): magnitude of input gradients -- gradients of logits with respect to input -- noisily highlight discriminative task-relevant features. In this work, we test the validity of assumption (A) using a three-pronged approach. First, we develop an evaluation framework, DiffROAR, to test assumption (A) on four image classification benchmarks. Our results suggest that (i) input gradients of standard models (i.e., trained on original data) may grossly violate (A), whereas (ii) input gradients of adversarially robust models satisfy (A). Second, we introduce BlockMNIST, an MNIST-based semi-real dataset, that by design encodes a priori knowledge of discriminative features. Our analysis on BlockMNIST leverages this information to validate as well as characterize differences between input gradient attributions of standard and robust models. Finally, we theoretically prove that our empirical findings hold on a simplified version of the BlockMNIST dataset. Specifically, we prove that input gradients of standard one-hidden-layer MLPs trained on this dataset do not highlight instance-specific signal coordinates, thus grossly violating assumption (A). Our findings motivate the need to formalize and test common assumptions in interpretability in a falsifiable manner. We believe that the DiffROAR evaluation framework and BlockMNIST-based datasets can serve as sanity checks to audit instance-specific interpretability methods.
Introduction
Many interpretability methods assume that input features with the largest gradient magnitudes are the most important for a model's prediction. This foundational building block is referred to as Assumption (A): the magnitude of input gradients noisily highlights the features most relevant to the model's prediction.
While intuitive, previous studies have shown conflicting results about the actual fidelity of these gradients. This paper sets out to conclusively test whether Assumption (A) holds true in practice and why standard models often produce visually noisy or unhelpful attributions compared to models trained with adversarial robustness.
Methodology
To rigorously test Assumption (A), the authors use a three-pronged approach:
- DiffROAR Framework: An evaluation metric extending the Remove-And-Retrain (ROAR) methodology. It compares the predictive power of a model retrained only on the "top-$k$" most important features against a model retrained only on the "bottom-$k$" least important features. If Assumption (A) holds, the top-$k$ model should vastly outperform the bottom-$k$ model.
- Controlled Synthetic Data (BlockMNIST): A semi-real dataset where each image consists of an MNIST digit (the "signal" block) and a static geometric patch (the "null" block). The digit determines the class, while the patch is non-predictive, allowing for a definitive test of whether gradients highlight the actual signal.
- Theoretical Analysis: Mathematical analysis of infinite-width, one-hidden-layer MLPs to prove the existence of observed flaws like "feature leakage."
Key Insights and Results
The "Feature Leakage" Phenomenon
The authors identify that standard models fail Assumption (A) due to "feature leakage." Input gradients often highlight features relevant to other instances in the dataset rather than the current one. If a model learns that a certain region is discriminative for some images, its gradients might highlight that region in the current image even if the actual signal is elsewhere.
Standard Models vs. Robust Models
Empirical results show that standard models frequently yield negative DiffROAR scores on benchmarks like CIFAR-10 and ImageNet-10. This means the pixels the gradient thought were least important were actually more useful for retraining than the "most" important pixels.
Conversely, models trained to be robust against $L_2$ and $L_\infty$ adversarial attacks consistently satisfy Assumption (A). Adversarial training suppresses feature leakage, forcing the gradients to focus exclusively on instance-specific signals.
Conclusion
This research reveals that standard neural networks fundamentally violate the assumption that high gradient magnitudes indicate feature importance. However, adversarial robustness naturally mitigates this issue, yielding gradients that genuinely highlight discriminative features. These findings suggest that the DiffROAR framework and BlockMNIST can serve as essential sanity checks for auditing interpretability methods.
Summary updated