[Paper Review] A Simple Saliency Method That Passes the Sanity Checks
This paper proposes a simple yet effective modification—competition for pixels—to existing saliency methods, enhancing their validity by incorporating gradients from all class logits, not just the predicted class. The method, implemented as Competitive Gradient × Input (CGI), passes standard sanity checks (parameter and data randomization) while preserving meaningful saliency maps, offering a robust, training-free fix for attribution methods.
There is great interest in "saliency methods" (also called "attribution methods"), which give "explanations" for a deep net's decision, by assigning a "score" to each feature/pixel in the input. Their design usually involves credit-assignment via the gradient of the output with respect to input. Recently Adebayo et al. [arXiv:1810.03292] questioned the validity of many of these methods since they do not pass simple *sanity checks* which test whether the scores shift/vanish when layers of the trained net are randomized, or when the net is retrained using random labels for inputs. We propose a simple fix to existing saliency methods that helps them pass sanity checks, which we call "competition for pixels". This involves computing saliency maps for all possible labels in the classification task, and using a simple competition among them to identify and remove less relevant pixels from the map. The simplest variant of this is "Competitive Gradient $\odot$ Input (CGI)": it is efficient, requires no additional training, and uses only the input and gradient. Some theoretical justification is provided for it (especially for ReLU networks) and its performance is empirically demonstrated.
Motivation & Objective
- To address the critical issue that many saliency methods fail basic sanity checks, such as remaining stable when model weights or labels are randomized.
- To propose a minimal, non-trainable modification to existing saliency methods that improves their reliability and interpretability.
- To demonstrate that incorporating gradients from all output classes, not just the predicted one, leads to more robust and meaningful attribution maps.
- To validate that the proposed method maintains visual fidelity to original saliency maps while passing rigorous sanity tests.
Proposed method
- The core idea is to compute saliency maps for all possible output classes using the gradient of each class's logit with respect to the input.
- For each pixel, scores from all classes are treated as 'votes' in a competition to determine relevance to the predicted class.
- Pixels are zeroed out if their score for the predicted class is less than their score for any other class, enforcing a competitive selection mechanism.
- The method is formalized as Competitive Gradient × Input (CGI), defined as the elementwise product of the input and the gradient of the predicted class's logit, with post-processing via competition.
- The approach is applied to two leading methods: Gradient × Input and Layerwise Relevance Propagation (LRP), resulting in CGI and CLRP variants.
- No additional training is required; the method is efficient and compatible with existing deep learning inference pipelines.
Experimental results
Research questions
- RQ1Can a simple, non-trainable modification to existing saliency methods improve their robustness to model and data randomization?
- RQ2Does incorporating gradients from all class logits—rather than just the predicted class—lead to more reliable attribution maps?
- RQ3Can the competition mechanism between class scores eliminate spurious saliency patterns that persist under sanity checks?
- RQ4Does the proposed method preserve the interpretability and visual quality of original saliency maps while passing rigorous sanity tests?
- RQ5Is the competition mechanism more effective than alternative strategies, such as using softmax gradients instead of logits?
Key findings
- CGI passes both the model parameter randomization and data label randomization sanity checks, unlike standard Gradient × Input, which produces similar maps even when the network is randomized.
- In the parameter randomization test, CGI produces nearly blank saliency maps when any layer is randomized, indicating it correctly detects loss of model structure.
- In cascading randomization experiments, CGI loses saliency structure progressively with layer randomization, while standard Gradient × Input retains visible features like bird outlines.
- On MNIST with randomly permuted labels, CGI removes the visible structure of the digit '3', whereas standard Gradient × Input still shows the digit’s shape, confirming sensitivity to corrupted training.
- CLRP, the competitive variant of LRP, similarly reduces saliency structure under randomization, demonstrating the method’s generalizability beyond Gradient × Input.
- The competition mechanism improves robustness without degrading visual quality on clean data, suggesting it filters out spurious features while preserving meaningful ones.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.