TL;DR
This paper challenges the fundamental assumption that gradients, commonly used in "saliency maps" for explaining deep learning models, actually capture feature importance. Through carefully crafted experiments, they demonstrate that gradients primarily measure feature sensitivity to small changes, which doesn't always align with what truly drives a model's prediction. This has significant implications for how we interpret and trust AI explanations.
What Problem Does This Paper Address?
Deep learning models are increasingly used in critical applications, making interpretability crucial for building trust. A popular approach to interpretability is generating "saliency maps," which highlight important input features (e.g., pixels in an image) that contribute to a model's decision. Many of these methods rely on calculating gradients of the model's output with respect to its inputs. The underlying assumption is that a large gradient indicates a feature is important. However, the authors argue that this assumption is flawed: gradients inherently measure how sensitive the output is to small changes in an input feature, not necessarily its overall importance for the prediction. This distinction is critical because models that are robust to small perturbations (i.e., have small gradients) might be considered less "important" by these methods, even if they are crucial for accurate predictions.
Methods
The core of the paper's methodology involves creating a controlled experimental setup to disentangle feature sensitivity from feature importance. They designed a synthetic dataset based on CIFAR-10 where a single, specially crafted "discriminative pixel" was introduced. This pixel was made highly informative for the model during training. The key idea is that if an attribution method correctly identifies importance, it should highlight this discriminative pixel.
They then evaluated several gradient-based attribution methods, including:
- Gradient Magnitude (vanilla gradient): The absolute value of the gradient.
- Gradients × Input: The gradient multiplied by the input feature value.
- Integrated Gradients (IG): A method that interpolates between a baseline input (e.g., a black image) and the target input to accumulate gradients, aiming for a more robust measure.
To assess "importance," they defined two metrics:
- Additive Importance: Measures the change in accuracy when adding the attributed pixel.
- Subtractive Importance: Measures the change in accuracy when removing the attributed pixel.
By comparing the attribution method's identified "most important pixel" with the known discriminative pixel, and then evaluating the importance of both using the additive and subtractive metrics, they could empirically test the methods' ability to capture true importance versus sensitivity.
Datasets
The experiments utilize a custom, artificial dataset built upon the CIFAR-10 dataset. This dataset is specifically designed to have a single, highly discriminative pixel that is crucial for classification. The discriminative pixel's color is class-dependent, and its position is randomized across training samples. This controlled dataset allows for a clear ground truth to evaluate attribution methods.
Key Insights and Ideas
- Sensitivity vs. Importance: The central idea is that gradients measure sensitivity (how much the output changes with a tiny input change), not necessarily importance (the overall contribution of a feature to the prediction). A model might be very sensitive to a feature that is actually redundant or easily compensated for by other features.
- Gradient-based methods are inherently biased towards sensitivity: Because gradients are local approximations, they are naturally attuned to how small changes affect the output. This makes them prone to highlighting features that are sensitive, even if those features aren't the primary drivers of the model's decision.
- "Sanity Checks" might not be enough: While some methods pass existing "sanity checks" (like those proposed by Adebayo et al.), these checks might not be sufficient to distinguish between sensitivity and true importance.
- Models can learn "shortcuts": Deep learning models are known to exploit simple patterns or shortcuts. In this setup, the discriminative pixel is a clear shortcut, and the authors show that even when a model relies heavily on it, gradient-based methods don't always pinpoint it.
Key Results
- High "Pointing Accuracy" doesn't guarantee importance: Methods like gradient magnitude and integrated gradients achieved very high "pointing accuracy" (correctly identifying the discriminative pixel), suggesting they are good at finding sensitive features.
- Attributed pixels are often less important than the discriminative pixel: In cases where attribution methods failed to point at the discriminative pixel, the pixels they did highlight were often less important according to the additive and subtractive importance metrics. For example, Table 2 shows that for integrated gradients, the attributed pixel's importance (measured by accuracy) was often worse than that of the discriminative pixel.
- Gradient × Input performed poorly: This method showed significantly lower pointing accuracy, likely because the feature values themselves were designed to be low for some classes, making the gradient less informative in this specific setup.
Limitations and Future Work
- Dataset Bias: The authors acknowledge that their dataset is designed to isolate a single pixel, which might introduce bias. They suggest that real-world datasets are more complex, and attribution methods might assign non-zero attributions to multiple pixels.
- Future Work: The authors propose developing new datasets and methodologies that can effectively decouple importance from sensitivity. They also suggest that future research should focus on understanding why gradient-based methods appear to work well in practice, potentially due to models being overly sensitive. They hope their work encourages researchers to be more mindful of what their attribution methods are truly capturing and to be clearer about the distinction between sensitivity and importance.
Summary updated