Guided Integrated Gradients: An Adaptive Path Method for Removing Noise

Andrei Kapishnikov, Subhashini Venugopalan, Besim Avci, Ben Wedin, Michael Terry, Tolga Bolukbasi

Abstract

Feature attribution methods are essential for interpreting deep learning models, yet popular techniques like Integrated Gradients (IG) often suffer from significant noise. We present Guided Integrated Gradients (Guided IG), an adaptive path method that minimizes noise by choosing an integration path that avoids high-gradient, irrelevant regions. By greedily advancing features with the lowest absolute partial derivatives, Guided IG produces explanations that better align with model logic and human intuition.

Introduction

Deep learning models are frequently deployed in high-stakes environments, necessitating transparent explanations of their decision-making processes. Feature attribution methods, such as Integrated Gradients (IG), aim to identify the input features most influential to a model's output. IG calculates the integral of gradients along a straight-line path from a baseline to the input. However, this model-agnostic path often traverses regions of the model's landscape characterized by high, irregular gradients, resulting in "noisy" saliency maps where irrelevant background pixels are highlighted.

Methodology: Adaptive Path Selection

To address the limitations of straight-line integration, we introduce Adaptive Path Methods (APMs). Unlike standard IG, APMs condition the integration path on the model's gradient landscape.

Guided Integrated Gradients (Guided IG)

Guided IG implements a greedy strategy to navigate the input space. At each step of the integration, the algorithm calculates partial derivatives for all input features and identifies a subset (e.g., the bottom 10%) with the lowest absolute gradient magnitudes. It then advances only these "quiet" features toward their target values.

Schematic comparison of the straight-line path (IG) versus the adaptive path (Guided IG) on a model's output surface.

By avoiding high-gradient regions, the method prevents the accumulation of spurious attributions. To maintain stability and prevent the path from entering out-of-distribution regions, we utilize Bounded Guided IG, which forces the adaptive path to intersect with the standard straight-line path at $K$ anchor points.

Experimental Evaluation

We evaluated Guided IG across three datasets: ImageNet, Open Images V5, and a Diabetic Retinopathy (DR) medical imaging dataset. Performance was measured using the AUC-ROC metric (comparing attributions to human-annotated ground truth) and the Softmax Information Curve (SIC), which measures model confidence drop as important pixels are removed. Additionally, a "closed path" test was used to assess mathematical robustness by checking if a circular path results in zero total attribution.

Results and Discussion

Guided IG consistently outperformed baseline methods (IG, Blur IG, SmoothGrad) across all quantitative metrics. On ImageNet, the method achieved significantly higher AUC-ROC scores, indicating superior alignment with ground-truth features.

Qualitative comparison: (left) original image, (center) standard IG attribution showing significant noise, (right) Guided IG attribution providing a cleaner, more focused explanation.

Qualitatively, Guided IG produces much sharper saliency maps. As shown in the bird classification example, while standard IG highlights a broad cloud of background pixels, Guided IG tightly clusters the attribution on the bird itself. This clarity is particularly vital in medical contexts, where noise could lead to clinical misinterpretation.

Conclusion

Guided Integrated Gradients offers a robust solution to the noise problem in feature attribution. By adaptively navigating the model's gradient landscape, it provides explanations that are both mathematically sound and visually intuitive. Future work will explore the application of adaptive path methods to non-vision domains, such as natural language processing and graph neural networks.

Summary updated

BibTeX
@inproceedings{kapishnikov2021guided,
  author = {Andrei Kapishnikov and Subhashini Venugopalan and Besim Avci and Ben Wedin and Michael Terry and Tolga Bolukbasi},
  title = {{Guided Integrated Gradients: An Adaptive Path Method for Removing Noise}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  url = {https://openreview.net/forum?id=nZd6H3zYBx},
}
Figure