Generalizing Backpropagation for Gradient-Based Interpretability
Not on the map. Why?
Abstract (arXiv)
Many popular feature-attribution methods for interpreting deep neural networks rely on computing the gradients of a model's output with respect to its inputs. While these methods can indicate which input features may be important for the model's prediction, they reveal little about the inner workings of the model itself. In this paper, we observe that the gradient computation of a model is a special case of a more general formulation using semirings. This observation allows us to generalize the backpropagation algorithm to efficiently compute other interpretable statistics about the gradient graph of a neural network, such as the highest-weighted path and entropy. We implement this generalized algorithm, evaluate it on synthetic datasets to better understand the statistics it computes, and apply it to study BERT's behavior on the subject-verb number agreement task (SVA). With this method, we (a) validate that the amount of gradient flow through a component of a model reflects its importance to a prediction and (b) for SVA, identify which pathways of the self-attention mechanism are most important.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 17 of its 42 references that are in the map. First posted on arXiv 6 Jul 2023.
Builds on
17 of 42 references.
References · 17
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2017Axiomatic Attribution for Deep Networkscited by 3,350
- 2013Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Mapscited by 2,348
- 2018Sanity Checks for Saliency Mapscited by 1,149
- 2017SmoothGrad: removing noise by adding noisecited by 1,097
- 2016Assessing the Ability of LSTMs to Learn Syntax-Sensitive Dependenciescited by 350
- 2020Information-Theoretic Probing with Minimum Description Lengthcited by 230
- 2018Colorless green recurrent networks dream hierarchicallycited by 210
- 2020Explaining Black Box Predictions and Unveiling Data Artifacts through Influence Functionscited by 144
- 2021Causal Analysis of Syntactic Agreement Mechanisms in Neural Language Modelscited by 127
- 2019The emergence of number and syntax units in LSTM language modelscited by 92
5 more
- 2022Probing for the Usage of Grammatical Numbercited by 57
- 2018Influence-Directed Explanations for Deep Convolutional Networkscited by 31
- 2021Revisiting Sanity Checks for Saliency Mapscited by 20
- 2020Influence Patterns for Explaining Information Flow in BERTcited by 14
- 2020Influence Paths for Characterizing Subject-Verb Number Agreement in LSTM Language Modelscited by 6
Built on by
Citing papers per year: 2023: 1; 2024: 3; 2025: 1.
5 papers.
- 2023Successor Heads: Recurring, Interpretable Attention Heads In The Wildcited by 77
- 2024Activation Scaling for Steering and Interpreting Language Modelscited by 33
- 2024Localizing Paragraph Memorization in Language Modelscited by 30
- 2024Exploring the Trade-off Between Model Performance and Explanation Plausibility of Text Classifiers Using Human Rationalescited by 5
- 2025The Gradient of Algebraic Model Countingcited by 1
- 2025The Gradient of Algebraic Model Counting25 Feb 2025
- 2024Activation Scaling for Steering and Interpreting Language Models7 Oct 2024
- 2024Exploring the Trade-off Between Model Performance and Explanation Plausibility of Text Classifiers Using Human Rationales3 Apr 2024
- 2024Localizing Paragraph Memorization in Language Models28 Mar 2024
- 2023Successor Heads: Recurring, Interpretable Attention Heads In The Wild14 Dec 2023