Better Explain Transformers by Illuminating Important Information
Not on the map. Why?
Abstract (arXiv)
Transformer-based models excel in various natural language processing (NLP) tasks, attracting countless efforts to explain their inner workings. Prior methods explain Transformers by focusing on the raw gradient and attention as token attribution scores, where non-relevant information is often considered during explanation computation, resulting in confusing results. In this work, we propose highlighting the important information and eliminating irrelevant information by a refined information flow on top of the layer-wise relevance propagation (LRP) method. Specifically, we consider identifying syntactic and positional heads as important attention heads and focus on the relevance obtained from these important heads. Experimental results demonstrate that irrelevant information does distort output attribution scores and then should be masked during explanation computation. Compared to eight baselines on both classification and question-answering datasets, our method consistently outperforms with over 3% to 33% improvement on explanation metrics, providing superior explanation performance. Our anonymous code repository is available at: https://github.com/LinxinS97/Mask-LRP
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Builds on 31 of its 42 references that are in the map. First posted on arXiv 18 Jan 2024.
Builds on
31 of 42 references.
References · 31
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2017A Unified Approach to Interpreting Model Predictionscited by 6,555
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
- 2016Gaussian Error Linear Units (GELUs)cited by 3,502
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,682
- 2015Learning Deep Features for Discriminative Localizationcited by 2,436
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
- 2013Visualizing and Understanding Convolutional Networkscited by 2,290
- 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,554
19 more
- 2017Learning Important Features Through Propagating Activation Differencescited by 1,458
- 2019Attention is not Explanationcited by 929
- 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 856
- 2020Quantifying Attention Flow in Transformerscited by 775
- 2020Transformer Interpretability Beyond Attention Visualizationcited by 627
- 2021Generic Attention-model Explainability for Interpreting Bi-Modal and Encoder-Decoder Transformerscited by 320
- 2019Revealing the Dark Secrets of BERTcited by 301
- 2015Explaining NonLinear Classification Decisions with Deep Taylor Decompositioncited by 250
- 2019Full-Gradient Representation for Neural Network Visualizationcited by 191
- 2020A Diagnostic Study of Explainability Techniques for Text Classificationcited by 159
- 2018Pathologies of Neural Models Make Interpretations Difficultcited by 140
- 2022XAI for Transformers: Better Explanations through Conservative Propagationcited by 100
- 2019AllenNLP Interpret: A Framework for Explaining Predictions of NLP Modelscited by 74
- 2019Perturbation Sensitivity Analysis to Detect Unintended Model Biasescited by 74
- 2022Measuring the Mixing of Contextual Information in the Transformercited by 65
- 2021Incorporating Residual and Normalization Layers into Analysis of Masked Language Modelscited by 51
- 2022GlobEnc: Quantifying Global Token Attribution by Incorporating the Whole Encoder Layer in Transformerscited by 44
- 2022Grad-SAM: Explaining Transformers via Gradient Self-Attention Mapscited by 42
- 2021Fast Axiomatic Attribution for Neural Networkscited by 35
Built on by
Citing papers per year: 2024: 1; 2025: 2; 2026: 5.
8 papers.
- 2024Explaining Length Bias in LLM-Based Preference Evaluationscited by 49
- 2025Interpretation Meets Safety: A Survey on Interpretation Methods and Tools for Improving LLM Safetycited by 10
- 2025M3OOD: Automatic Selection of Multimodal OOD Detectorscited by 5
- 2026From Attribution to Abstention: Training-Free Attention-Based Auditing for Clinical Summarizationcited by 1
- 2026XAI-enhanced Comparative Opinion Mining via Aspect-based Scoring and Semantic Reasoningcited by 1
- 2026OmniTrace: A Unified Framework for Generation-Time Attribution in Omni-Modal LLMscited by 1
- 2026Learning to Explain: Supervised Token Attribution from Transformer Attention Patternscited by 0
- 2026Scaling Attention Head Analysis via Gradient-Based Attribution in Context-Aware Machine Translationcited by 0
- 2026Scaling Attention Head Analysis via Gradient-Based Attribution in Context-Aware Machine Translation23 Sep 2026
- 2026OmniTrace: A Unified Framework for Generation-Time Attribution in Omni-Modal LLMs20 Mar 2026
- 2026XAI-enhanced Comparative Opinion Mining via Aspect-based Scoring and Semantic Reasoning1 Mar 2026
- 2026From Attribution to Abstention: Training-Free Attention-Based Auditing for Clinical Summarization23 Jan 2026
- 2026Learning to Explain: Supervised Token Attribution from Transformer Attention Patterns20 Jan 2026
- 2025M3OOD: Automatic Selection of Multimodal OOD Detectors16 Aug 2025
- 2025Interpretation Meets Safety: A Survey on Interpretation Methods and Tools for Improving LLM Safety5 Jun 2025
- 2024Explaining Length Bias in LLM-Based Preference Evaluations1 Jul 2024