The heads hypothesis: A unifying statistical approach towards understanding multi-headed attention in BERT
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
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
- 2019Attention is not Explanationcited by 916
- 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 844
- 2020A Primer in BERTology: What we know about how BERT workscited by 807
- 2019Are Sixteen Heads Really Better than One?cited by 803
- 2019How Contextual are Contextualized Word Representations? Comparing the Geometry of BERT, ELMo, and GPT-2 Embeddingscited by 770
- 2019Attention is not not Explanationcited by 629
- 2019What do you learn from context? Probing for sentence structure in contextualized word representationscited by 436
- 2019Linguistic Knowledge and Transferability of Contextual Representationscited by 382
15 more
- 2019What BERT is not: Lessons from a new suite of psycholinguistic diagnostics for language modelscited by 317
- 2019Revealing the Dark Secrets of BERTcited by 300
- 2019Pay Less Attention with Lightweight and Dynamic Convolutionscited by 211
- 2019Assessing BERT's Syntactic Abilitiescited by 191
- 2019Adaptively Sparse Transformerscited by 154
- 2019Open Sesame: Getting Inside BERT's Linguistic Knowledgecited by 119
- 2019Do Attention Heads in BERT Track Syntactic Dependencies?cited by 87
- 2019Visualizing and Understanding the Effectiveness of BERTcited by 67
- 2019Does BERT Make Any Sense? Interpretable Word Sense Disambiguation with Contextualized Embeddingscited by 55
- 2018Modeling Localness for Self-Attention Networkscited by 43
- 2020Fixed Encoder Self-Attention Patterns in Transformer-Based Machine Translationcited by 42
- 2019Convolutional Self-Attention Networkscited by 32
- 2013Complexity of Word Collocation Networks: A Preliminary Structural Analysiscited by 17
- 2019What do you mean, BERT? Assessing BERT as a Distributional Semantics Modelcited by 14
- 2019Not All Claims are Created Equal: Choosing the Right Statistical Approach to Assess Hypothesescited by 8
Built on by
Citing papers per year: 2021: 2; 2022: 4; 2023: 1; 2024: 5; 2025: 2; 2026: 1.
15 papers.
Sort:
- 2024Attention Heads of Large Language Models: A Surveycited by 65
- 2021Towards Building ASR Systems for the Next Billion Userscited by 45
- 2022Acceptability Judgements via Examining the Topology of Attention Mapscited by 19
- 2024Robust AI-Generated Text Detection by Restricted Embeddingscited by 18
- 2025Linguistic Interpretability of Transformer-based Language Models: a systematic reviewcited by 7
- 2024Improving Interpretability and Robustness for the Detection of AI-Generated Imagescited by 5
- 2021On the Prunability of Attention Heads in Multilingual BERTcited by 4
- 2024Analysis of Argument Structure Constructions in the Large Language Model BERTcited by 3
- 2022A Novel Perspective to Look At Attention: Bi-level Attention-based Explainable Topic Modeling for News Classificationcited by 2
- 2022Input-specific Attention Subnetworks for Adversarial Detectioncited by 2
- 2023AttentionMix: Data augmentation method that relies on BERT attention mechanismcited by 2
- 2024Listening to the Wise Few: Query-Key Alignment Unlocks Latent Correct Answers in Large Language Modelscited by 1
3 more
- 2026The Grammar of Transformers: A Systematic Review of Interpretability Research on Syntactic Knowledge in Language Modelscited by 1
- 2022Explainability of Text Processing and Retrieval Methods: A Surveycited by 0
- 2025AxBERT: An Interpretable Chinese Spelling Correction Method Driven by Associative Knowledge Networkcited by 0
- 2026The Grammar of Transformers: A Systematic Review of Interpretability Research on Syntactic Knowledge in Language Models9 Jan 2026
- 2025Linguistic Interpretability of Transformer-based Language Models: a systematic review9 Apr 2025
- 2025AxBERT: An Interpretable Chinese Spelling Correction Method Driven by Associative Knowledge Network4 Mar 2025
- 2024Robust AI-Generated Text Detection by Restricted Embeddings10 Oct 2024
- 2024Listening to the Wise Few: Query-Key Alignment Unlocks Latent Correct Answers in Large Language Models3 Oct 2024
- 2024Attention Heads of Large Language Models: A Survey5 Sep 2024
- 2024Analysis of Argument Structure Constructions in the Large Language Model BERT8 Aug 2024
- 2024Improving Interpretability and Robustness for the Detection of AI-Generated Images21 Jun 2024
- 2023AttentionMix: Data augmentation method that relies on BERT attention mechanism20 Sep 2023
- 2022Explainability of Text Processing and Retrieval Methods: A Survey14 Dec 2022
- 2022Acceptability Judgements via Examining the Topology of Attention Maps19 May 2022
- 2022Input-specific Attention Subnetworks for Adversarial Detection23 Mar 2022
- 2024Attention Heads of Large Language Models: A Surveycited by 65
- 2021Towards Building ASR Systems for the Next Billion Userscited by 45
- 2022Acceptability Judgements via Examining the Topology of Attention Mapscited by 19
- 2024Robust AI-Generated Text Detection by Restricted Embeddingscited by 18
- 2025Linguistic Interpretability of Transformer-based Language Models: a systematic reviewcited by 7
- 2024Improving Interpretability and Robustness for the Detection of AI-Generated Imagescited by 5
- 2021On the Prunability of Attention Heads in Multilingual BERTcited by 4
- 2024Analysis of Argument Structure Constructions in the Large Language Model BERTcited by 3
- 2022A Novel Perspective to Look At Attention: Bi-level Attention-based Explainable Topic Modeling for News Classificationcited by 2
- 2022Input-specific Attention Subnetworks for Adversarial Detectioncited by 2
- 2023AttentionMix: Data augmentation method that relies on BERT attention mechanismcited by 2
- 2024Listening to the Wise Few: Query-Key Alignment Unlocks Latent Correct Answers in Large Language Modelscited by 1
12 most cited of 15 All 15 (JSON)
- 2026The Grammar of Transformers: A Systematic Review of Interpretability Research on Syntactic Knowledge in Language Models9 Jan 2026
- 2025Linguistic Interpretability of Transformer-based Language Models: a systematic review9 Apr 2025
- 2025AxBERT: An Interpretable Chinese Spelling Correction Method Driven by Associative Knowledge Network4 Mar 2025
- 2024Robust AI-Generated Text Detection by Restricted Embeddings10 Oct 2024
- 2024Listening to the Wise Few: Query-Key Alignment Unlocks Latent Correct Answers in Large Language Models3 Oct 2024
- 2024Attention Heads of Large Language Models: A Survey5 Sep 2024
- 2024Analysis of Argument Structure Constructions in the Large Language Model BERT8 Aug 2024
- 2024Improving Interpretability and Robustness for the Detection of AI-Generated Images21 Jun 2024
- 2023AttentionMix: Data augmentation method that relies on BERT attention mechanism20 Sep 2023
- 2022Explainability of Text Processing and Retrieval Methods: A Survey14 Dec 2022
- 2022Acceptability Judgements via Examining the Topology of Attention Maps19 May 2022
- 2022Input-specific Attention Subnetworks for Adversarial Detection23 Mar 2022
12 newest of 15 All 15 (JSON)