TL;DR
This paper introduces simple yet powerful "sanity checks" to determine if saliency methods—tools designed to explain deep learning predictions—are actually sensitive to the model and the data. The authors reveal a startling reality: several popular explanation methods produce visually appealing maps that are almost entirely independent of the model's learned weights and the training labels, acting more like sophisticated edge detectors than true explanations.
What Problem Does This Paper Address?
As deep neural networks are deployed in high-stakes domains, we increasingly rely on "saliency maps" to understand why a model made a specific prediction. These maps highlight pixels in an input image that were supposedly "important" to the model.
However, the field has lacked principled ways to evaluate these explanations. Most methods are judged by "visual appeal"—if a map highlights a bird in a "bird" classification, we assume it's working. The authors argue this is a dangerous form of confirmation bias. They set out to answer a fundamental question: Is the explanation actually a function of what the model learned from the data, or is it just highlighting structural properties of the input image?
Methods
The authors propose two actionable randomization tests:
- Model Parameter Randomization Test: The weights of a trained model are randomized, either in a cascading fashion (starting from the top layer down to the input) or an independent fashion (randomizing one layer at a time). If an explanation method is truly explaining the model, the resulting map should change significantly as the model's learned parameters are destroyed.
- Data Randomization Test: A model is trained on a dataset where the labels have been randomly permuted. Such a model can only memorize the noise and cannot learn meaningful relationships between inputs and outputs. If a saliency method produces similar maps for both a normally trained model and a "random label" model, it fails to explain the relationship between inputs and labels.
To move beyond subjective visual assessment, they use quantitative metrics like Spearman rank correlation, Structural Similarity Index (SSIM), and Histogram of Oriented Gradients (HOG) similarity to compare original and randomized maps.
Datasets
The experiments were conducted across a variety of architectures and datasets to ensure the findings were robust:
- ImageNet: Using the Inception v3 architecture.
- MNIST & Fashion MNIST: Using both a standard Convolutional Neural Network (CNN) and a Multi-Layer Perceptron (MLP).
- Skeletal Radiograms: An Inception v4 model trained on medical imaging data (discussed in the appendix).
Key Insights and Ideas
-
The "Edge Detector" Illusion: Some methods, most notably Guided Backpropagation and its variants, act remarkably like edge detectors. As seen in Figure 1, a simple edge detector (which requires no training or model) produces outputs strikingly similar to these complex saliency methods.
Figure 1: Saliency maps for some common methods compared to an edge detector. Saliency masks for 3 different inputs for an Inception v3 model trained on ImageNet. We see that an edge detector produces outputs that are strikingly similar to the outputs of some saliency methods. In fact, edge detectors can also produce masks that highlight features which coincide with what appears to be relevant to a model’s class prediction. Interestingly, we find that the methods that are most similar to an edge detector, i.e., Guided Backprop and its variants, show minimal sensitivity to our randomization tests. -
Invariance to Weights: In the cascading randomization test, Guided Backprop remains visually and quantitatively unchanged even after the top several layers of the network are completely randomized. This suggests these methods are "explaining" the model architecture or the input structure, rather than the learned weights.
- Input Dominance: Methods that involve an element-wise product of the input and the gradient (like $x \odot \nabla x$ or Integrated Gradients) are often dominated by the input's visual structure. Even if the gradient becomes "noisy" due to randomization, the sharp edges of the original image still dictate the final visualization, potentially misleading human observers.
Key Results
- Failures: Guided Backpropagation and Guided Grad-CAM failed both sanity checks. They were largely invariant to both model parameters and data labels.
- Passes: The raw Gradient method and Grad-CAM generally passed the checks, showing significant sensitivity to both the model's weights and the training data.
- Quantitative Evidence: Figure 5 illustrates how different methods respond to cascading randomization. While the Gradient method's similarity to the original map drops sharply as layers are randomized, Guided Backprop maintains high similarity (SSIM and HOG) for much longer.
- Visual Progression: Figure 2 provides a striking visual example. As you move from left to right, more layers are randomized. Notice how the "Grad-CAM" map becomes unrecognizable quickly, while "Guided Backprop" continues to show a clear bird shape even when the model is mostly random noise.
Limitations and Future Work
The authors emphasize that failing these sanity checks doesn't necessarily mean a method is "useless" for all tasks (e.g., it might still be useful for image segmentation). However, it does mean these methods are unsuitable for model debugging or for explaining how a model specifically relates inputs to outputs.
The paper focuses primarily on image classification. Future work could extend these sanity checks to other domains like Natural Language Processing (NLP) or Reinforcement Learning. The authors view this work not as a final verdict, but as a "stepping stone" toward more rigorous and principled evaluation of interpretability in machine learning.
Summary updated