ACL Findings2021
Effective Attention Sheds Light On Interpretability
Kaiser Sun, Ana Marasovic
Abstract
An attention matrix of a transformer selfattention 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.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
6 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Transformers are uninterpretable with myopic methods: a case study with bounded Dyck grammars cites On Identifiability in Transformers
- Transformers are uninterpretable with myopic methods: a case study with bounded Dyck grammars cites Attention is Not Only a Weight: Analyzing Transformers with Vector Norms
- Transformers are uninterpretable with myopic methods: a case study with bounded Dyck grammars cites How Do Transformers Learn Topic Structure: Towards a Mechanistic Understanding
- Attention is Not Only a Weight: Analyzing Transformers with Vector Norms cites On Identifiability in Transformers
- Order-Level Attention Similarity Across Language Models: A Latent Commonality cites On Identifiability in Transformers
- Order-Level Attention Similarity Across Language Models: A Latent Commonality cites Attention is Not Only a Weight: Analyzing Transformers with Vector Norms
- Order-Level Attention Similarity Across Language Models: A Latent Commonality cites Towards Transparent and Explainable Attention Models
- Order-Level Attention Similarity Across Language Models: A Latent Commonality cites Measuring the Mixing of Contextual Information in the Transformer
- Attention Meets Post-hoc Interpretability: A Mathematical Perspective cites Transformers are uninterpretable with myopic methods: a case study with bounded Dyck grammars
- Attention Meets Post-hoc Interpretability: A Mathematical Perspective cites On Identifiability in Transformers
- Attention Meets Post-hoc Interpretability: A Mathematical Perspective cites Attention is Not Only a Weight: Analyzing Transformers with Vector Norms
- Attention Meets Post-hoc Interpretability: A Mathematical Perspective cites How Do Transformers Learn Topic Structure: Towards a Mechanistic Understanding
- Measuring the Mixing of Contextual Information in the Transformer cites On Identifiability in Transformers
- Measuring the Mixing of Contextual Information in the Transformer cites Attention is Not Only a Weight: Analyzing Transformers with Vector Norms
Cited by top-tier papers6
- How Do Transformers Learn Topic Structure: Towards a Mechanistic UnderstandingYuchen Li, Yuanzhi Li, Andrej RisteskiICML 2023 · 87 citations
- Transformers are uninterpretable with myopic methods: a case study with bounded Dyck grammarsKaiyue Wen, Yuchen Li, Bingbin Liu, Andrej RisteskiNeurIPS 2023 · 32 citations
- Measuring the Mixing of Contextual Information in the TransformerJavier Ferrando, Gerard I. Gállego, Marta R. Costa-jussàEMNLP 2022 · 18 citations
- Attention Meets Post-hoc Interpretability: A Mathematical PerspectiveGianluigi Lopardo, Frédéric Precioso, Damien GarreauICML 2024 · 16 citations
- Order-Level Attention Similarity Across Language Models: A Latent CommonalityJinglin Liang, Jin Zhong, Shuangping Huang, Yunqing Hu et al.NeurIPS 2025 · 4 citations
Builds on3
- On Identifiability in TransformersGino Brunner, Yang Liu, Damian Pascual, Oliver Richter et al.ICLR 2020 · 210 citations
- Attention is Not Only a Weight: Analyzing Transformers with Vector NormsGoro Kobayashi, Tatsuki Kuribayashi, Sho Yokoi, Kentaro InuiEMNLP 2020 · 138 citations
- Towards Transparent and Explainable Attention ModelsAkash Kumar Mohankumar, Preksha Nema, Sharan Narasimhan, Mitesh M. Khapra et al.ACL 2020 · 11 citations
Related papers
- Incorporating Residual and Normalization Layers into Analysis of Masked Language ModelsGoro Kobayashi, Tatsuki Kuribayashi, Sho Yokoi, Kentaro InuiEMNLP 2021 · 28 citations
- Anatomy of Massive Activations and Attention SinksShangwen Sun, Alfredo Canziani, Yann LeCun, Jiachen ZhuICML 2026
- Dissecting Query-Key Interaction in Vision TransformersXu Pan, Aaron Philip, Ziqian Xie, Odelia SchwartzNeurIPS 2024 · 18 citations
- VISIT: Visualizing and Interpreting the Semantic Information Flow of TransformersShahar Katz, Yonatan BelinkovEMNLP Findings 2023 · 12 citations
- Attention Flows: Analyzing and Comparing Attention Mechanisms in Language ModelsJoseph F. DeRose, Jiayao Wang, Matthew BergerIEEE VIS 2020 · 109 citations
