Effective Attention Sheds Light On Interpretability
Not on the map. Why?
Abstract (arXiv)
An attention matrix of a transformer self-attention sublayer can provably be decomposed into two components and only one of them (effective attention) contributes to the model output. This leads us to ask whether visualizing effective attention gives different conclusions than interpretation of standard attention. Using a subset of the GLUE tasks and BERT, we carry out an analysis to compare the two attention matrices, and show that their interpretations differ. Effective attention is less associated with the features related to the language modeling pretraining such as the separator token, and it has more potential to illustrate linguistic features captured by the model for solving the end-task. Given the found differences, we recommend using effective attention for studying a transformer's behavior since it is more pertinent to the model output by design.
Key facts. Cited by 11 papers in the map (data through 13 Oct 2026). Builds on 17 of its 26 references that are in the map. First posted on arXiv 18 May 2021.
Builds on
17 of 26 references.
References · 17
- 2017Attention Is All You Needcited by 60,106
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,304
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,880
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,539
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,133
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 999
- 2017SemEval-2017 Task 1: Semantic Textual Similarity - Multilingual and Cross-lingual Focused Evaluationcited by 998
- 2019Attention is not Explanationcited by 922
- 2019Attention is not not Explanationcited by 633
- 2019Is Attention Interpretable?cited by 388
- 2019Revealing the Dark Secrets of BERTcited by 300
- 2018Analysis Methods in Neural Language Processing: A Surveycited by 277
5 more
- 2019Analyzing the Structure of Attention in a Transformer Language Modelcited by 242
- 2019On Identifiability in Transformerscited by 116
- 2020Towards Transparent and Explainable Attention Modelscited by 47
- 2020Staying True to Your Word: (How) Can Attention Become Explanation?cited by 18
- 2019Interrogating the Explanatory Power of Attention in Neural Machine Translationcited by 7
Built on by
Citing papers per year: 2022: 3; 2023: 3; 2024: 3; 2025: 2.
11 papers.
- 2023How Do Transformers Learn Topic Structure: Towards a Mechanistic Understandingcited by 85
- 2022Measuring the Mixing of Contextual Information in the Transformercited by 63
- 2022Entropy-based Attention Regularization Frees Unintended Bias Mitigation from Listscited by 55
- 2023Transformers are uninterpretable with myopic methods: a case study with bounded Dyck grammarscited by 30
- 2025A Comprehensive Survey on Self-Interpretable Neural Networkscited by 18
- 2024Transformer-Based Models Are Not Yet Perfect At Learning to Emulate Structural Recursioncited by 14
- 2024Attention Meets Post-hoc Interpretability: A Mathematical Perspectivecited by 11
- 2023CUE: An Uncertainty Interpretation Framework for Text Classifiers Built on Pre-Trained Language Modelscited by 3
- 2022Understanding microbiome dynamics via interpretable graph representation learningcited by 2
- 2025Order-Level Attention Similarity Across Language Models: A Latent Commonalitycited by 2
- 2024SwitchCIT: Switching for Continual Instruction Tuningcited by 1
- 2025Order-Level Attention Similarity Across Language Models: A Latent Commonality7 Nov 2025
- 2025A Comprehensive Survey on Self-Interpretable Neural Networks26 Jan 2025
- 2024SwitchCIT: Switching for Continual Instruction Tuning16 Jul 2024
- 2024Attention Meets Post-hoc Interpretability: A Mathematical Perspective5 Feb 2024
- 2024Transformer-Based Models Are Not Yet Perfect At Learning to Emulate Structural Recursion23 Jan 2024
- 2023Transformers are uninterpretable with myopic methods: a case study with bounded Dyck grammars3 Dec 2023
- 2023CUE: An Uncertainty Interpretation Framework for Text Classifiers Built on Pre-Trained Language Models6 Jun 2023
- 2023How Do Transformers Learn Topic Structure: Towards a Mechanistic Understanding7 Mar 2023
- 2022Entropy-based Attention Regularization Frees Unintended Bias Mitigation from Lists17 Mar 2022
- 2022Measuring the Mixing of Contextual Information in the Transformer8 Mar 2022
- 2022Understanding microbiome dynamics via interpretable graph representation learning2 Mar 2022