Lune

ACL Findings2021

Effective Attention Sheds Light On Interpretability

Kaiser Sun, Ana Marasovic

摘要

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.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 6 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Transformers are uninterpretable with myopic methods: a case study with bounded Dyck grammars 引用了 On Identifiability in Transformers
  • Transformers are uninterpretable with myopic methods: a case study with bounded Dyck grammars 引用了 Attention is Not Only a Weight: Analyzing Transformers with Vector Norms
  • Transformers are uninterpretable with myopic methods: a case study with bounded Dyck grammars 引用了 How Do Transformers Learn Topic Structure: Towards a Mechanistic Understanding
  • Attention is Not Only a Weight: Analyzing Transformers with Vector Norms 引用了 On Identifiability in Transformers
  • Order-Level Attention Similarity Across Language Models: A Latent Commonality 引用了 On Identifiability in Transformers
  • Order-Level Attention Similarity Across Language Models: A Latent Commonality 引用了 Attention is Not Only a Weight: Analyzing Transformers with Vector Norms
  • Order-Level Attention Similarity Across Language Models: A Latent Commonality 引用了 Towards Transparent and Explainable Attention Models
  • Order-Level Attention Similarity Across Language Models: A Latent Commonality 引用了 Measuring the Mixing of Contextual Information in the Transformer
  • Attention Meets Post-hoc Interpretability: A Mathematical Perspective 引用了 Transformers are uninterpretable with myopic methods: a case study with bounded Dyck grammars
  • Attention Meets Post-hoc Interpretability: A Mathematical Perspective 引用了 On Identifiability in Transformers
  • Attention Meets Post-hoc Interpretability: A Mathematical Perspective 引用了 Attention is Not Only a Weight: Analyzing Transformers with Vector Norms
  • Attention Meets Post-hoc Interpretability: A Mathematical Perspective 引用了 How Do Transformers Learn Topic Structure: Towards a Mechanistic Understanding
  • Measuring the Mixing of Contextual Information in the Transformer 引用了 On Identifiability in Transformers
  • Measuring the Mixing of Contextual Information in the Transformer 引用了 Attention is Not Only a Weight: Analyzing Transformers with Vector Norms
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper6

  1. How Do Transformers Learn Topic Structure: Towards a Mechanistic UnderstandingYuchen Li, Yuanzhi Li, Andrej RisteskiICML 2023 · 87 次引用
  2. Transformers are uninterpretable with myopic methods: a case study with bounded Dyck grammarsKaiyue Wen, Yuchen Li, Bingbin Liu, Andrej RisteskiNeurIPS 2023 · 32 次引用
  3. Measuring the Mixing of Contextual Information in the TransformerJavier Ferrando, Gerard I. Gállego, Marta R. Costa-jussàEMNLP 2022 · 18 次引用
  4. Attention Meets Post-hoc Interpretability: A Mathematical PerspectiveGianluigi Lopardo, Frédéric Precioso, Damien GarreauICML 2024 · 16 次引用
  5. Order-Level Attention Similarity Across Language Models: A Latent CommonalityJinglin Liang, Jin Zhong, Shuangping Huang, Yunqing Hu 等NeurIPS 2025 · 4 次引用

它引用的 Paper3

  1. On Identifiability in TransformersGino Brunner, Yang Liu, Damian Pascual, Oliver Richter 等ICLR 2020 · 210 次引用
  2. Attention is Not Only a Weight: Analyzing Transformers with Vector NormsGoro Kobayashi, Tatsuki Kuribayashi, Sho Yokoi, Kentaro InuiEMNLP 2020 · 138 次引用
  3. Towards Transparent and Explainable Attention ModelsAkash Kumar Mohankumar, Preksha Nema, Sharan Narasimhan, Mitesh M. Khapra 等ACL 2020 · 11 次引用

相关 Paper

  1. Incorporating Residual and Normalization Layers into Analysis of Masked Language ModelsGoro Kobayashi, Tatsuki Kuribayashi, Sho Yokoi, Kentaro InuiEMNLP 2021 · 28 次引用
  2. Anatomy of Massive Activations and Attention SinksShangwen Sun, Alfredo Canziani, Yann LeCun, Jiachen ZhuICML 2026
  3. Dissecting Query-Key Interaction in Vision TransformersXu Pan, Aaron Philip, Ziqian Xie, Odelia SchwartzNeurIPS 2024 · 18 次引用
  4. VISIT: Visualizing and Interpreting the Semantic Information Flow of TransformersShahar Katz, Yonatan BelinkovEMNLP Findings 2023 · 12 次引用
  5. Attention Flows: Analyzing and Comparing Attention Mechanisms in Language ModelsJoseph F. DeRose, Jiayao Wang, Matthew BergerIEEE VIS 2020 · 109 次引用
黄昏的海面,两侧是细线勾勒的悬崖