Measuring the Mixing of Contextual Information in the Transformer
Not on the map. Why?
Abstract (arXiv)
The Transformer architecture aggregates input information through the self-attention mechanism, but there is no clear understanding of how this information is mixed across the entire model. Additionally, recent works have demonstrated that attention weights alone are not enough to describe the flow of information. In this paper, we consider the whole attention block -- multi-head attention, residual connection, and layer normalization -- and define a metric to measure token-to-token interactions within each layer. Then, we aggregate layer-wise interpretations to provide input attribution scores for model predictions. Experimentally, we show that our method, ALTI (Aggregation of Layer-wise Token-to-token Interactions), provides more faithful explanations and increased robustness than gradient-based methods.
Key facts. Cited by 63 papers in the map (data through 7 Oct 2026). Builds on 44 of its 58 references that are in the map. First posted on arXiv 8 Mar 2022.
Builds on
44 of 58 references.
References · 44
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,040
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
- 2017Axiomatic Attribution for Deep Networkscited by 3,350
- 2013Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Mapscited by 2,348
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
- 2013Visualizing and Understanding Convolutional Networkscited by 2,278
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
32 more
- 2019Attention is not Explanationcited by 916
- 2019How Contextual are Contextualized Word Representations? Comparing the Geometry of BERT, ELMo, and GPT-2 Embeddingscited by 770
- 2020Quantifying Attention Flow in Transformerscited by 759
- 2019Attention is not not Explanationcited by 629
- 2020Transformer Interpretability Beyond Attention Visualizationcited by 620
- 2020Captum: A unified and generic model interpretability library for PyTorchcited by 542
- 2019ERASER: A Benchmark to Evaluate Rationalized NLP Modelscited by 523
- 2019Is Attention Interpretable?cited by 387
- 2016Assessing the Ability of LSTMs to Learn Syntax-Sensitive Dependenciescited by 350
- 2021Generic Attention-model Explainability for Interpreting Bi-Modal and Encoder-Decoder Transformerscited by 316
- 2019Revealing the Dark Secrets of BERTcited by 300
- 2016Not Just a Black Box: Learning Important Features Through Propagating Activation Differencescited by 295
- 2019Analyzing the Structure of Attention in a Transformer Language Modelcited by 241
- 2015Visualizing and Understanding Neural Models in NLPcited by 199
- 2019Assessing BERT's Syntactic Abilitiescited by 191
- 2020A Diagnostic Study of Explainability Techniques for Text Classificationcited by 158
- 2021Post-hoc Interpretability for Neural NLP: A Surveycited by 155
- 2021All Bark and No Bite: Rogue Dimensions in Transformer Language Models Obscure Representational Qualitycited by 150
- 2019On Identifiability in Transformerscited by 115
- 2019Learning to Deceive with Attention-Based Explanationscited by 111
- 2021BERT Busters: Outlier Dimensions that Disrupt Transformerscited by 110
- 2021The MultiBERTs: BERT Reproductions for Robustness Analysiscited by 89
- 2021"Will You Find These Shortcuts?" A Protocol for Evaluating the Faithfulness of Input Salience Methods for Text Classificationcited by 66
- 2014Extraction of Salient Sentences from Labelled Documentscited by 50
- 2021Incorporating Residual and Normalization Layers into Analysis of Masked Language Modelscited by 50
- 2020Positional Artefacts Propagate Through Masked Language Model Embeddingscited by 34
- 2021Evaluating the Faithfulness of Importance Measures in NLP by Recursively Masking Allegedly Important Tokens and Retrainingcited by 31
- 2021On the Lack of Robust Interpretability of Neural Text Classifierscited by 17
- 2020Telling BERT's full story: from Local Attention to Global Aggregationcited by 15
- 2020Influence Patterns for Explaining Information Flow in BERTcited by 14
- 2021Effective Attention Sheds Light On Interpretabilitycited by 11
- 2021Fine-grained Interpretation and Causation Analysis in Deep NLP Modelscited by 4
Built on by
Citing papers per year: 2022: 4; 2023: 11; 2024: 19; 2025: 20; 2026: 9.
63 papers.
Sort:
By area:
- 2024Information Flow Routes: Automatically Interpreting Language Models at Scalecited by 92
- 2024From Understanding to Utilization: A Survey on Explainability for Large Language Modelscited by 47
- 2022Towards Opening the Black Box of Neural Machine Translation: Source and Target Interpretations of the Transformercited by 45
- 2023Quantifying Context Mixing in Transformerscited by 43
- 2023Explaining How Transformers Use Context to Build Predictionscited by 42
- 2023Analyzing Feed-Forward Blocks in Transformers through the Lens of Attention Mapscited by 33
- 2023DecompX: Explaining Transformers Decisions by Propagating Token Decompositioncited by 31
- 2024InternalInspector I2: Robust Confidence Estimation in LLMs through Internal Statescited by 29
- 2022Toxicity in Multilingual Machine Translation at Scalecited by 26
- 2022ByGPT5: End-to-End Style-conditioned Poetry Generation with Token-free Language Modelscited by 25
- 2024LM Transparency Tool: Interactive Tool for Analyzing Transformer Language Modelscited by 16
- 2023Homophone Disambiguation Reveals Patterns of Context Mixing in Speech Transformerscited by 13
38 more
- 2024Evaluating Human Alignment and Model Faithfulness of LLM Rationalecited by 12
- 2025The Atlas of In-Context Learning: How Attention Heads Shape In-Context Retrieval Augmentationcited by 11
- 2025A Close Look at Decomposition-based XAI-Methods for Transformer Language Modelscited by 10
- 2025Interpretation Meets Safety: A Survey on Interpretation Methods and Tools for Improving LLM Safetycited by 10
- 2023Feature Interactions Reveal Linguistic Structure in Language Modelscited by 8
- 2024Better Explain Transformers by Illuminating Important Informationcited by 8
- 2023Roles of Scaling and Instruction Tuning in Language Perception: Model vs. Human Attentioncited by 7
- 2025Are We Paying Attention to Her? Investigating Gender Disambiguation and Attention in Machine Translationcited by 7
- 2023Quantifying the Plausibility of Context Reliance in Neural Machine Translationcited by 6
- 2024Unveiling and Manipulating Prompt Influence in Large Language Modelscited by 6
- 2025Mitigating Hallucinated Translations in Large Language Models with Hallucination-focused Preference Optimizationcited by 6
- 2026Towards Long-Horizon Interpretability: Efficient and Faithful Multi-Token Attribution for Reasoning LLMscited by 6
- 2026Instruction Anchor: Dissecting the Mechanistic Dynamics of Modality Arbitrationcited by 6
- 2022ReX: A Framework for Incorporating Temporal Information in Model-Agnostic Local Explanation Techniquescited by 5
- 2024Context-Aware or Context-Insensitive? Assessing LLMs' Performance in Document-Level Translationcited by 5
- 2024LibraGrad: Balancing Gradient Flow for Universally Better Vision Transformer Attributionscited by 5
- 2026Geometry-Calibrated Conformal Abstention for Language Modelscited by 5
- 2024Isotropy, Clusters, and Classifierscited by 4
- 2024NormXLogit: The Head-on-Top Never Liescited by 4
- 2025Understanding LLMs' Cross-Lingual Context Retrieval: How Good It Is And Where It Comes Fromcited by 4
- 2025Unsupervised Word-level Quality Estimation for Machine Translation Through the Lens of Annotators (Dis)agreementcited by 4
- 2024Counterfactuals As a Means for Evaluating Faithfulness of Attribution Methods in Autoregressive Language Modelscited by 3
- 2025CueTip: An Interactive and Explainable Physics-aware Pool Assistantcited by 3
- 2025LaTIM: Measuring Latent Token-to-Token Interactions in Mamba Modelscited by 3
- 2023Computational modeling of semantic changecited by 2
- 2023Why bother with geometry? On the relevance of linear decompositions of Transformer embeddingscited by 2
- 2025Which Words Matter Most in Zero-Shot Prompts?cited by 2
- 2025Steering Information Utility in Key-Value Memory for Language Model Post-Trainingcited by 2
- 2026GRAIL: Gradient-Reweighted Advantages for Reinforcement Learning with Verifiable Rewardscited by 2
- 2024Explanation Regularisation through the Lens of Attributionscited by 1
- 2024Unveiling the Role of Pretraining in Direct Speech Translationcited by 1
- 2024How Language Models Prioritize Contextual Grammatical Cues?cited by 1
- 2024Analyzing Context Contributions in LLM-based Machine Translationcited by 1
- 2024On Explaining with Attention Matricescited by 1
- 2025Cross-Attention is Half Explanation in Speech-to-Text Modelscited by 1
- 2025DePass: Unified Feature Attributing by Simple Decomposed Forward Passcited by 1
- 2025Order-Level Attention Similarity Across Language Models: A Latent Commonalitycited by 1
- 2026Layer-wise Positional Bias in Short-Context Language Modelingcited by 1
50 most cited of 63 All 63 (JSON)
- 2026MoLGE: Mixture of Language Group Experts for Efficient Scaling of Massively Multilingual Speech Recognition27 Jul 2026
- 2026GRAIL: Gradient-Reweighted Advantages for Reinforcement Learning with Verifiable Rewards3 Jun 2026
- 2026Geometry-Calibrated Conformal Abstention for Language Models30 Apr 2026
- 2026Fabricator or dynamic translator?16 Apr 2026
- 2026Layer-wise Target Propagation: Efficient Component Attribution through Target Centric Propagation20 Mar 2026
- 2026Explainable AI: Context-Aware Layer-Wise Integrated Gradients for Explaining Transformer Models18 Feb 2026
- 2026Instruction Anchor: Dissecting the Mechanistic Dynamics of Modality Arbitration3 Feb 2026
- 2026Towards Long-Horizon Interpretability: Efficient and Faithful Multi-Token Attribution for Reasoning LLMs2 Feb 2026
- 2026Layer-wise Positional Bias in Short-Context Language Modeling7 Jan 2026
- 2025Order-Level Attention Similarity Across Language Models: A Latent Commonality7 Nov 2025
- 2025DePass: Unified Feature Attributing by Simple Decomposed Forward Pass21 Oct 2025
- 2025Bridging Fairness and Explainability: Can Input-Based Explanations Promote Fairness in Hate Speech Detection?26 Sep 2025
38 more
- 2025Cross-Attention is Half Explanation in Speech-to-Text Models22 Sep 2025
- 2025Integrating attention into explanation frameworks for language and vision transformers12 Aug 2025
- 2025Decoding the Multimodal Maze: A Systematic Review on the Adoption of Explainability in Multimodal Attention-based Models6 Aug 2025
- 2025Steering Information Utility in Key-Value Memory for Language Model Post-Training7 Jul 2025
- 2025Interpretation Meets Safety: A Survey on Interpretation Methods and Tools for Improving LLM Safety5 Jun 2025
- 2025Time Course MechInterp: Analyzing the Evolution of Components and Knowledge in Large Language Models3 Jun 2025
- 2025Unsupervised Word-level Quality Estimation for Machine Translation Through the Lens of Annotators (Dis)agreement29 May 2025
- 2025xInv: Explainable Optimization of Inverse Problems22 May 2025
- 2025The Atlas of In-Context Learning: How Attention Heads Shape In-Context Retrieval Augmentation21 May 2025
- 2025Distilled Circuits: A Mechanistic Study of Internal Restructuring in Knowledge Distillation16 May 2025
- 2025Are We Paying Attention to Her? Investigating Gender Disambiguation and Attention in Machine Translation13 May 2025
- 2025Understanding LLMs' Cross-Lingual Context Retrieval: How Good It Is And Where It Comes From15 Apr 2025
- 2025A Close Look at Decomposition-based XAI-Methods for Transformer Language Models21 Feb 2025
- 2025LaTIM: Measuring Latent Token-to-Token Interactions in Mamba Models21 Feb 2025
- 2025Which Words Matter Most in Zero-Shot Prompts?5 Feb 2025
- 2025CueTip: An Interactive and Explainable Physics-aware Pool Assistant30 Jan 2025
- 2025Mitigating Hallucinated Translations in Large Language Models with Hallucination-focused Preference Optimization28 Jan 2025
- 2024Concept Based Continuous Prompts for Interpretable Text Classification2 Dec 2024
- 2024NormXLogit: The Head-on-Top Never Lies25 Nov 2024
- 2024LibraGrad: Balancing Gradient Flow for Universally Better Vision Transformer Attributions24 Nov 2024
- 2024On Explaining with Attention Matrices24 Oct 2024
- 2024Analyzing Context Contributions in LLM-based Machine Translation21 Oct 2024
- 2024Context-Aware or Context-Insensitive? Assessing LLMs' Performance in Document-Level Translation18 Oct 2024
- 2024How Language Models Prioritize Contextual Grammatical Cues?4 Oct 2024
- 2024Unveiling the Role of Pretraining in Direct Speech Translation26 Sep 2024
- 2024Counterfactuals As a Means for Evaluating Faithfulness of Attribution Methods in Autoregressive Language Models21 Aug 2024
- 2024Explanation Regularisation through the Lens of Attributions23 Jul 2024
- 2024Evaluating Human Alignment and Model Faithfulness of LLM Rationale28 Jun 2024
- 2024InternalInspector I2: Robust Confidence Estimation in LLMs through Internal States17 Jun 2024
- 2024Unveiling and Manipulating Prompt Influence in Large Language Models20 May 2024
- 2024LM Transparency Tool: Interactive Tool for Analyzing Transformer Language Models10 Apr 2024
- 2024PE: A Poincare Explanation Method for Fast Text Hierarchy Generation25 Mar 2024
- 2024Information Flow Routes: Automatically Interpreting Language Models at Scale27 Feb 2024
- 2024Isotropy, Clusters, and Classifiers5 Feb 2024
- 2024From Understanding to Utilization: A Survey on Explainability for Large Language Models23 Jan 2024
- 2024Better Explain Transformers by Illuminating Important Information18 Jan 2024
- 2023Roles of Scaling and Instruction Tuning in Language Perception: Model vs. Human Attention29 Oct 2023
- 2023Homophone Disambiguation Reveals Patterns of Context Mixing in Speech Transformers15 Oct 2023
50 newest of 63 All 63 (JSON)
- 2024Information Flow Routes: Automatically Interpreting Language Models at Scalecited by 92
- 2024From Understanding to Utilization: A Survey on Explainability for Large Language Modelscited by 47
- 2022Towards Opening the Black Box of Neural Machine Translation: Source and Target Interpretations of the Transformercited by 45
- 2023Quantifying Context Mixing in Transformerscited by 43
- 2023Explaining How Transformers Use Context to Build Predictionscited by 42
- 2023Analyzing Feed-Forward Blocks in Transformers through the Lens of Attention Mapscited by 33
- 2023DecompX: Explaining Transformers Decisions by Propagating Token Decompositioncited by 31
- 2024InternalInspector I2: Robust Confidence Estimation in LLMs through Internal Statescited by 29
- 2022Toxicity in Multilingual Machine Translation at Scalecited by 26
- 2022ByGPT5: End-to-End Style-conditioned Poetry Generation with Token-free Language Modelscited by 25
- 2024LM Transparency Tool: Interactive Tool for Analyzing Transformer Language Modelscited by 16
- 2023Homophone Disambiguation Reveals Patterns of Context Mixing in Speech Transformerscited by 13
12 most cited of 57 All 57 (JSON)
- 2026Geometry-Calibrated Conformal Abstention for Language Models30 Apr 2026
- 2026Fabricator or dynamic translator?16 Apr 2026
- 2026Layer-wise Target Propagation: Efficient Component Attribution through Target Centric Propagation20 Mar 2026
- 2026Explainable AI: Context-Aware Layer-Wise Integrated Gradients for Explaining Transformer Models18 Feb 2026
- 2026Instruction Anchor: Dissecting the Mechanistic Dynamics of Modality Arbitration3 Feb 2026
- 2026Layer-wise Positional Bias in Short-Context Language Modeling7 Jan 2026
- 2025Order-Level Attention Similarity Across Language Models: A Latent Commonality7 Nov 2025
- 2025DePass: Unified Feature Attributing by Simple Decomposed Forward Pass21 Oct 2025
- 2025Bridging Fairness and Explainability: Can Input-Based Explanations Promote Fairness in Hate Speech Detection?26 Sep 2025
- 2025Cross-Attention is Half Explanation in Speech-to-Text Models22 Sep 2025
- 2025Integrating attention into explanation frameworks for language and vision transformers12 Aug 2025
- 2025Decoding the Multimodal Maze: A Systematic Review on the Adoption of Explainability in Multimodal Attention-based Models6 Aug 2025
12 newest of 57 All 57 (JSON)