mlsanityData to 7 Oct 2026

The heads hypothesis: A unifying statistical approach towards understanding multi-headed attention in BERT

arXiv 2101.09115 ↗First posted 22 Jan 2021cs.CL cs.AIcited by 15

Not on the map. Why?

Abstract (arXiv)

Multi-headed attention heads are a mainstay in transformer-based models. Different methods have been proposed to classify the role of each attention head based on the relations between tokens which have high pair-wise attention. These roles include syntactic (tokens with some syntactic relation), local (nearby tokens), block (tokens in the same sentence) and delimiter (the special [CLS], [SEP] tokens). There are two main challenges with existing methods for classification: (a) there are no standard scores across studies or across functional roles, and (b) these scores are often average quantities measured across sentences without capturing statistical significance. In this work, we formalize a simple yet effective score that generalizes to all the roles of attention heads and employs hypothesis testing on this score for robust inference. This provides us the right lens to systematically analyze attention heads and confidently comment on many commonly posed questions on analyzing the BERT model. In particular, we comment on the co-location of multiple functional roles in the same attention head, the distribution of attention heads across layers, and effect of fine-tuning for specific NLP tasks on these functional roles.

Key facts. Cited by 15 papers in the map (data through 7 Oct 2026). Builds on 27 of its 33 references that are in the map. First posted on arXiv 22 Jan 2021.

Builds on

27 of 33 references.

References · 27

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  4. 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
  5. 2019Attention is not Explanationcited by 916
  6. 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 844
  7. 2020A Primer in BERTology: What we know about how BERT workscited by 807
  8. 2019Are Sixteen Heads Really Better than One?cited by 803
  9. 2019How Contextual are Contextualized Word Representations? Comparing the Geometry of BERT, ELMo, and GPT-2 Embeddingscited by 770
  10. 2019Attention is not not Explanationcited by 629
  11. 2019What do you learn from context? Probing for sentence structure in contextualized word representationscited by 436
  12. 2019Linguistic Knowledge and Transferability of Contextual Representationscited by 382
15 more
  1. 2019What BERT is not: Lessons from a new suite of psycholinguistic diagnostics for language modelscited by 317
  2. 2019Revealing the Dark Secrets of BERTcited by 300
  3. 2019Pay Less Attention with Lightweight and Dynamic Convolutionscited by 211
  4. 2019Assessing BERT's Syntactic Abilitiescited by 191
  5. 2019Adaptively Sparse Transformerscited by 154
  6. 2019Open Sesame: Getting Inside BERT's Linguistic Knowledgecited by 119
  7. 2019Do Attention Heads in BERT Track Syntactic Dependencies?cited by 87
  8. 2019Visualizing and Understanding the Effectiveness of BERTcited by 67
  9. 2019Does BERT Make Any Sense? Interpretable Word Sense Disambiguation with Contextualized Embeddingscited by 55
  10. 2018Modeling Localness for Self-Attention Networkscited by 43
  11. 2020Fixed Encoder Self-Attention Patterns in Transformer-Based Machine Translationcited by 42
  12. 2019Convolutional Self-Attention Networkscited by 32
  13. 2013Complexity of Word Collocation Networks: A Preliminary Structural Analysiscited by 17
  14. 2019What do you mean, BERT? Assessing BERT as a Distributional Semantics Modelcited by 14
  15. 2019Not All Claims are Created Equal: Choosing the Right Statistical Approach to Assess Hypothesescited by 8

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 2; 2022: 4; 2023: 1; 2024: 5; 2025: 2; 2026: 1.

15 papers.

Sort: