Revisiting LRP: Positional Attribution as the Missing Ingredient for Transformer Explainability
Not on the map. Why?
Abstract (arXiv)
The development of effective explainability tools for Transformers is a crucial pursuit in deep learning research. One of the most promising approaches in this domain is Layer-wise Relevance Propagation (LRP), which propagates relevance scores backward through the network to the input space by redistributing activation values based on predefined rules. However, existing LRP-based methods for Transformer explainability entirely overlook a critical component of the Transformer architecture: its positional encoding (PE), resulting in violation of the conservation property, and the loss of an important and unique type of relevance, which is also associated with structural and positional features. To address this limitation, we reformulate the input space for Transformer explainability as a set of position-token pairs. This allows us to propose specialized theoretically-grounded LRP rules designed to propagate attributions across various positional encoding methods, including Rotary, Learnable, and Absolute PE. Extensive experiments with both fine-tuned classifiers and zero-shot foundation models, such as LLaMA 3, demonstrate that our method significantly outperforms the state-of-the-art in both vision and NLP explainability tasks. Our code is publicly available.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 42 of its 56 references that are in the map. First posted on arXiv 2 Jun 2025.
Builds on
42 of 56 references.
References · 42
- 2017Attention Is All You Needcited by 60,361
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,968
- 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,733
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
- 2017Axiomatic Attribution for Deep Networkscited by 3,384
- 2023Qwen Technical Reportcited by 3,344
- 2024SAM 2: Segment Anything in Images and Videoscited by 2,863
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
30 more
- 2019Explainable Artificial Intelligence (XAI): Concepts, Taxonomies, Opportunities and Challenges toward Responsible AIcited by 1,552
- 2017Learning Important Features Through Propagating Activation Differencescited by 1,458
- 2018Self-Attention with Relative Position Representationscited by 1,120
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 1,003
- 2019Attention is not Explanationcited by 929
- 2020Quantifying Attention Flow in Transformerscited by 775
- 2020Transformer Interpretability Beyond Attention Visualizationcited by 627
- 2024TinyLlama: An Open-Source Small Language Modelcited by 618
- 2021Generic Attention-model Explainability for Interpreting Bi-Modal and Encoder-Decoder Transformerscited by 320
- 2020A Survey on Neural Network Interpretabilitycited by 291
- 2020Opportunities and Challenges in Explainable Artificial Intelligence (XAI): A Surveycited by 254
- 2015Explaining NonLinear Classification Decisions with Deep Taylor Decompositioncited by 250
- 2017Explainable Artificial Intelligence: Understanding, Visualizing and Interpreting Deep Learning Modelscited by 206
- 2017The Shattered Gradients Problem: If resnets are the answer, then what is the question?cited by 157
- 2018Visual Interpretability for Deep Learning: a Surveycited by 155
- 2021Explaining in Style: Training a GAN to explain a classifier in StyleSpacecited by 122
- 2024AttnLRP: Attention-Aware Layer-Wise Relevance Propagation for Transformerscited by 120
- 2021Position Information in Transformers: An Overviewcited by 103
- 2022XAI for Transformers: Better Explanations through Conservative Propagationcited by 100
- 2024The Hidden Attention of Mamba Modelscited by 91
- 2017Explaining Recurrent Neural Network Predictions in Sentiment Analysiscited by 88
- 2020Analyzing the Source and Target Contributions to Predictions in Neural Machine Translationcited by 71
- 2021Shapley values for feature selection: The good, the bad, and the axiomscited by 54
- 2024MambaLRP: Explaining Selective State Space Sequence Modelscited by 32
- 2024Explaining Modern Gated-Linear RNNs via a Unified Implicit Attention Formulationcited by 11
- 2021Video and Text Matching with Conditioned Embeddingscited by 10
- 2024Towards Explainable Artificial Intelligence (XAI): A Data Mining Perspectivecited by 9
- 2024Attention Mechanisms Don't Learn Additive Models: Rethinking Feature Importance for Transformerscited by 8
- 2025Unifying Prediction and Explanation in Time-Series Transformers via Shapley-based Pretrainingcited by 5
Built on by
Citing papers per year: 2025: 1; 2026: 5.
6 papers.
- 2025RelP: Faithful and Efficient Circuit Discovery in Language Models via Relevance Patchingcited by 13
- 2026TensorLens: End-to-End Transformer Analysis via High-Order Attention Tensorscited by 3
- 2026Detecting Hallucinations in Retrieval-Augmented Generation via Semantic-level Internal Reasoning Graphcited by 2
- 2026Faithfulness Serum: Mitigating the Faithfulness Gap in Textual Explanations of LLM Decisions via Attribution Guidancecited by 0
- 2026Gradient-Skipping Relevance Propagation for Efficient Explainability of Vision Transformerscited by 0
- 2026ResLRP: The Role of Residual Cancellation in Attribution Instability in Vision Transformerscited by 0
- 2026ResLRP: The Role of Residual Cancellation in Attribution Instability in Vision Transformers15 Sep 2026
- 2026Gradient-Skipping Relevance Propagation for Efficient Explainability of Vision Transformers11 Jul 2026
- 2026Faithfulness Serum: Mitigating the Faithfulness Gap in Textual Explanations of LLM Decisions via Attribution Guidance15 Apr 2026
- 2026TensorLens: End-to-End Transformer Analysis via High-Order Attention Tensors25 Jan 2026
- 2026Detecting Hallucinations in Retrieval-Augmented Generation via Semantic-level Internal Reasoning Graph6 Jan 2026
- 2025RelP: Faithful and Efficient Circuit Discovery in Language Models via Relevance Patching28 Aug 2025