mlsanityData to 7 Oct 2026

IG-Lens: Exact Additive Probability Attribution Across Transformer Layers via Telescoping Integrated Gradients

arXiv 2606.29693 ↗First posted 29 Jun 2026cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

We ask a simple question about decoder-only transformers: between which two layers is the probability of a predicted token actually produced? Existing layer-wise readout tools answer only approximately. The logit lens and its trained variant report a per-layer level of probability but give no additive decomposition; their estimates are biased and non-monotone across depth. Direct Logit Attribution and related residual-stream methods are additive, but only in logit space, the softmax nonlinearity breaks additivity in probability space, precisely the quantity one usually cares about. Layer Conductance integrates gradients per layer, but attributes each to its own baseline and so does not sum to the total change in prediction. We introduce IG-Lens, a telescoping application of Integrated Gradients along a single path through the hidden states from a baseline to the final layer. Crediting each segment to the layer it terminates at yields a layer-wise attribution whose sum is exactly the change in target probability, with the softmax inside the integration path rather than linearized away. Our default estimator credits each integration step its observed change in target probability (a prediction-aware reweighting in the spirit of IDGI) rather than its raw gradient. Because the readout is a one-dimensional probability, this collapses each segment to a telescoping sum of endpoint values, so completeness holds exactly (to floating point) at any step count, removing Riemann discretization error while suppressing steps that show gradient sensitivity without a change in output. We give the telescoping identity and its proof, verify completeness to floating point, and describe a single-pass batched implementation computing the full token-by-layer map without any backward call. Code: https://github.com/anhnda/IGLens.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 9 of its 13 references that are in the map. First posted on arXiv 29 Jun 2026.

Builds on

9 of 13 references.

References · 9

  1. 2017Axiomatic Attribution for Deep Networkscited by 3,350
  2. 2022Locating and Editing Factual Associations in GPTcited by 2,609
  3. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
  4. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
  5. 2023Eliciting Latent Predictions from Transformers with the Tuned Lenscited by 579
  6. 2020Captum: A unified and generic model interpretability library for PyTorchcited by 542
  7. 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 522
  8. 2018How Important Is a Neuron?cited by 73
  9. 2023IDGI: A Framework to Eliminate Explanation Noise from Integrated Gradientscited by 16

Built on by

Not cited yet.