Using the Path of Least Resistance to Explain Deep Networks

Sina Salek, Joseph Enguehard
2/17/2025
cs.LGcs.AIstat.ML

No official code found. Best implementation: sina-salek/geodesic-ig (1 star, MIT, last commit 2025-02-20).

Abstract

Integrated Gradients (IG), a widely used axiomatic path-based attribution method, assigns importance scores to input features by integrating model gradients along a straight path from a baseline to the input. While effective in some cases, we show that straight paths can lead to flawed attributions. In this paper, we identify the cause of these misattributions and propose an alternative approach that treats the input space as a Riemannian manifold, computing attributions by integrating gradients along geodesics. We call this method Geodesic Integrated Gradients (GIG). To approximate geodesic paths, we introduce two techniques: a k-Nearest Neighbours-based approach for smaller models and a Stochastic Variational Inference-based method for larger ones. Additionally, we propose a new axiom, Strong Completeness, extending the axioms satisfied by IG. We show that this property is desirable for attribution methods and that GIG is the only method that satisfies it. Through experiments on both synthetic and real-world data, we demonstrate that GIG outperforms existing explainability methods, including IG.

View on arXivView PDF

Code Implementations(1)

MIT
11Shell, PythonNov 25, 20241 years agoMIT

Similar Papers

Cite this paper

@article{salek2025using,
  title  = {Using the Path of Least Resistance to Explain Deep Networks},
  author = {Sina Salek and Joseph Enguehard},
  year   = {2025},
  eprint = {2502.12108},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.12108v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.12108.svg)](https://codeofpaper.com/paper/2502.12108)

Discussion