Abstract: Integrated Gradients (IG) is a commonly used feature attribution method for deep neural networks. While IG has many desirable properties, the method often produces spurious/noisy pixel attributions in regions that are not related to the predicted class when applied to visual models. While this has been previously noted, most existing solutions are aimed at addressing the symptoms by explicitly reducing the noise in the resulting attributions. In this work, we show that one of the causes of the problem is the accumulation of noise along the IG path. To minimize the effect of this source of noise, we propose adapting the attribution path itself -- conditioning the path not just on the image but also on the model being explained. We introduce Adaptive Path Methods (APMs) as a generalization of path methods, and Guided IG as a specific instance of an APM. Empirically, Guided IG creates saliency maps better aligned with the model's prediction and the input image that is being explained. We show through qualitative and quantitative experiments that Guided IG outperforms other, related methods in nearly every experiment.
Introduction
Feature attribution methods like Integrated Gradients (IG) are considered a standard for interpreting deep neural network predictions. They are mathematically grounded and satisfy desirable axioms like completeness and sensitivity. However, IG saliency maps often suffer from significant "attribution noise"—spurious "salt-and-pepper" attributions on pixels that are irrelevant to the predicted object.
In this work, researchers from Google Research introduce Guided Integrated Gradients (Guided IG). By fundamentally changing how the algorithm traverses the space from a baseline to the input image, Guided IG strips away noise while maintaining mathematical rigor.
The Problem: Noise Accumulation
The core issue with standard IG is its reliance on a straight-line path in the input space. As the path moves from a baseline (e.g., a black image) to the input, it often crosses regions of the model's manifold where gradients for irrelevant pixels become extremely high. These "spiky" gradients are integrated into the final explanation, resulting in a noisy map where background pixels appear as important as the actual object.
Methodology: Adaptive Path Methods
To address this, the authors propose Adaptive Path Methods (APMs). Unlike standard IG, which uses a fixed path regardless of the model's behavior, an APM chooses its path dynamically based on the model’s gradients.
The Guided IG Algorithm
Guided IG uses a greedy approach to find a "quiet" path through the gradient landscape:
- Greedy Selection: At each step, the algorithm evaluates the gradients of all features.
- Path Steering: It identifies a subset of features with the lowest absolute gradient values and moves only those features closer to their final values in the input image.
- Intuition: By prioritizing the movement of "quiet" pixels, the algorithm navigates around high-gradient spikes that do not contribute to the final prediction, effectively filtering noise at the source.
Bounded Guided IG (Anchors)
To ensure the path remains reliable, the authors introduce anchors. These are points along the original straight-line path that the Guided IG path is forced to intersect. This bounding mechanism prevents the path from wandering into "out-of-distribution" territory where gradients might be unreliable.
Experimental Results
The researchers evaluated Guided IG across ImageNet, Open Images, and a Diabetic Retinopathy (DR) medical dataset.
- Qualitative Superiority: Visually, Guided IG maps are significantly sharper. For example, in bird classification tasks, standard IG often highlights the sky, whereas Guided IG focuses almost exclusively on the bird's features.
- Quantitative Alignment: Using the AUC-ROC metric to measure how well attributions align with human-annotated ground truth, Guided IG consistently outperformed standard IG, Blur IG, and SmoothGrad.
- Medical Utility: On the DR dataset, Guided IG achieved an AUC of 0.863, compared to 0.833 for standard IG. This indicates a superior ability to highlight actual medical pathologies rather than background artifacts.
- Softmax Information Curve (SIC): Guided IG reached higher softmax scores faster when revealing pixels in order of importance, proving it identifies the features the model actually relies on more accurately than previous methods.
Conclusion
Guided IG demonstrates that attribution noise is not an inherent property of the model, but often a byproduct of the integration path. By making the path model-aware, Guided IG provides cleaner, more interpretable explanations while satisfying the Completeness axiom. Future work includes extending these adaptive paths to other modalities like Natural Language Processing (NLP) and optimizing the computational cost of the dynamic path calculation.
Summary updated