As deep learning models become increasingly complex, researchers and practitioners rely heavily on "saliency methods" to explain their decisions. These methods produce heatmaps that highlight which pixels in an input image were most important for a specific prediction. But how do we know if these heatmaps are actually telling the truth about the model's inner workings?
Historically, the field has lacked principled ways to evaluate these explanations. Most methods are judged by "visual appeal"—if the heatmap clearly outlines the object being classified (e.g., a bird or a dog), we assume the explanation is good. The authors of this paper argue that this is a dangerous trap: an explanation that looks "correct" to a human might be completely independent of the model's actual learned parameters or the relationship between the data and its labels.
The Proposed Sanity Checks
To address this evaluation gap, the authors propose two actionable "sanity checks" based on randomization. These tests are designed to determine if a saliency method is actually faithful to the model and the data it was trained on.
1. Model Parameter Randomization Test
This test compares the saliency map of a trained model to that of a model with the exact same architecture but randomly initialized weights.
- Cascading Randomization: The authors randomize weights layer-by-layer, starting from the top (output) down to the bottom (input).
- Independent Randomization: They randomize a single layer at a time.
The Logic: If the explanation is truly explaining the model's learned behavior, the heatmap should change significantly—degrading into noise—as the model's "knowledge" is systematically destroyed.
2. Data Randomization Test
This test compares a saliency map from a model trained on a real dataset to one trained on the same data but with randomly permuted labels.
The Logic: A model trained on random labels is forced to memorize noise rather than learn generalizable features. If a saliency method produces the same output for both models, it isn't capturing the true relationship between features and labels in the data.
Key Insights and Results
The experiments were conducted across several standard benchmarks (ImageNet, MNIST, Fashion MNIST) using various architectures (Inception v3, MLPs, CNNs) to ensure the findings weren't architecture-specific. To quantify the changes, the authors used metrics like Spearman rank correlation, Structural Similarity (SSIM), and HOGs (Histogram of Oriented Gradients).
The results revealed a stark dichotomy between different saliency methods:
- The "Visual Appeal" Illusion: Methods like Guided Backprop produce very clean, human-interpretable images. However, the paper shows these images are essentially edge detectors. They highlight sharp transitions in the input image regardless of what the neural network has actually learned. The authors demonstrated that a simple, non-learned edge detector produces outputs strikingly similar to the saliency methods that failed the sanity checks.
- Invariance to Model Weights (The Failures): To the authors' surprise, Guided Backprop and Guided GradCAM were almost entirely invariant to model randomization. You could replace the "brain" of the network with random noise, and the "explanation" would look exactly the same. The Spearman correlation between the original and randomized-model explanations remained high even after significant weight randomization.
- Sensitivity to the Model (The Passes): Methods like Vanilla Gradient and GradCAM passed the tests. As shown in the cascading randomization figure, their visualizations degraded into random noise as the model parameters were randomized, indicating they are actually sensitive to the model's state.
- Input Dominance: In methods that involve an element-wise product of the input and the gradient (like Integrated Gradients), the structure of the input image often dominates the visualization. This can mislead an analyst into thinking the model is "looking" at the object, when the map is just reflecting the input's raw pixels. Integrated Gradients showed sensitivity to the sign of the attributions but maintained visual structure due to this input dominance, making it a "partial" pass that requires careful interpretation.
Conclusion and Future Work
This paper serves as a critical "red flag" for the interpretability community. It proves that passing the "eye test" is not enough; in fact, the methods that look the most pleasing to human eyes are often the ones failing to explain the model at all.
While randomization is a powerful sanity check, the authors note that passing it doesn't automatically mean an explanation is perfectly "correct" or "useful"—it only means it isn't broken in this specific way. Future research must focus on creating methods explicitly designed to be faithful to the model's decision-making process, rather than optimizing solely for visually clear heatmaps.
Summary updated