Geometrically Guided Integrated Gradients

Md Mahfuzur Rahman, Noah Lewis, Sergey M. PlisarXiv 2022

Abstract: Interpretability methods for deep neural networks mainly focus on the sensitivity of the class score with respect to the original or perturbed input, usually measured using actual or modified gradients. Some methods also use a model-agnostic approach to understanding the rationale behind every prediction. In this paper, we argue and demonstrate that local geometry of the model parameter space relative to the input can also be beneficial for improved post-hoc explanations. To achieve this goal, we introduce an interpretability method called "geometrically-guided integrated gradients" that builds on top of the gradient calculation along a linear path as traditionally used in integrated gradient methods. However, instead of integrating gradient information, our method explores the model's dynamic behavior from multiple scaled versions of the input and captures the best possible attribution for each input. We demonstrate through extensive experiments that the proposed approach outperforms vanilla and integrated gradients in subjective and quantitative assessment. We also propose a "model perturbation" sanity check to complement the traditionally used "model randomization" test.

Introduction

Deep learning models are often considered "black boxes," which limits their adoption in safety-critical fields like healthcare or criminal justice. To address this, researchers use saliency techniques—heatmaps that highlight which pixels in an image most influenced a model's decision.

However, existing methods have significant flaws. "Vanilla" gradients are often noisy and fail basic sanity checks. The popular Integrated Gradients (IG) method, while theoretically grounded, can produce blurry results or suffer from "input-dominance," where the raw image features overwhelm the actual logic of the model. This paper argues that these methods fail to account for the local geometry of the model's parameter space—specifically, how the model's confidence changes in the immediate neighborhood of the input path.

Methods: Navigating the Loss Landscape

The authors introduce Geometrically Guided Integrated Gradients (GGIG). While IG calculates gradients along a straight linear path from a "blank" baseline to the input, GGIG explores the local geometry at each step of that path.

Figure 3: Visualization of the GGIG approach. The algorithm explores the local loss landscape (logit for the prediction) by performing gradient ascent at multiple points along the interpolation path from baseline $x'$ to input $x$.

The GGIG Pipeline

  1. Linear Pathing: Like IG, the process begins with a set of linearly interpolated points between a baseline (e.g., a black image) and the actual input.
  2. Local Ascension: At each point along this path, GGIG does not simply take a single gradient. Instead, it performs several iterations of gradient ascent to find the direction that most increases the model's confidence (the class-specific logit).
  3. Maximum Attribution: It collects all gradients generated during these "ascensions" and selects the maximum attribution for each pixel across the search.

By "climbing" the loss landscape at each step, the algorithm identifies which features the model finds most discriminative, effectively filtering out background noise and focus-robbing artifacts. Additionally, the paper proposes a new sanity check called $\sigma$-perturbation. This test gradually adds noise to the model's weights to ensure that the explanation "evaporates" as the model becomes randomized, proving the explanation is truly tied to the model's learned parameters.

Evaluation and Datasets

The researchers evaluated GGIG using two standard computer vision benchmarks:

  • MNIST: Used for initial quantitative validation of handwritten digit classification.
  • ImageNet: A large-scale dataset of natural images. GGIG was tested on ImageNet using ResNet-101 and Inception V3 architectures.

Key Insights

  • Geometry Matters: The model's dynamic behavior in the neighborhood of an input contains more information than a single gradient snapshot. Exploring the local "slope" of the decision boundary finds features more robustly linked to the class.
  • Avoiding Input Dominance: Many saliency methods multiply the gradient by the input image to "sharpen" the result, which can be deceptive. GGIG achieves sharpness through its search process alone, avoiding this misleading multiplication.
  • Saliency vs. Edge Detection: Through background replacement experiments, the authors show that GGIG ignores sharp artificial edges (like checkerboard patterns) and stays focused on the actual object, proving it captures learned concepts rather than just image contrast.

Results

Quantitative Superiority

On MNIST, GGIG significantly outperformed both Vanilla Gradients (GRAD) and IG across four metrics: Spearman Rank Correlation, Weighted Jaccard Similarity, Structural Similarity, and Normalized Mean Square Error. Its Jaccard Similarity (0.332) was nearly 50% higher than IG (0.214). On ImageNet, GGIG consistently beat other methods on the Softmax Information Curve (SIC) and Accuracy Information Curve (AIC), which measure the density of useful information in a saliency map.

Visual Clarity

Qualitatively, GGIG maps are much cleaner. As shown in comparative grids, GGIG highlights specific textures and shapes of the target object while almost entirely discarding the background.

Figure 6: Qualitative comparison of saliency maps across various ImageNet samples. GGIG produces sharper, more focused attributions compared to Gradients and Integrated Gradients, while avoiding the simple edge-detection behavior of standard filters.

Limitations and Future Work

While GGIG demonstrates strong results, it comes with a higher computational cost because it performs multiple iterations of gradient ascent for every interpolation point. Future work may focus on optimizing this inference time. Additionally, the method introduces new hyperparameters, such as the number of ascent iterations and the learning rate, which may require tuning for different data modalities like medical imaging or natural language processing.

Summary updated

BibTeX
@misc{rahman2022geometrically,
  author = {Md Mahfuzur Rahman and Noah Lewis and Sergey M. Plis},
  title = {{Geometrically Guided Integrated Gradients}},
  year = {2022},
  eprint = {2206.05903},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.05903},
}
Figure