Revealing the Dark Secrets of BERT
Not on the map. Why?
Abstract (arXiv)
BERT-based architectures currently give state-of-the-art performance on many NLP tasks, but little is known about the exact mechanisms that contribute to its success. In the current work, we focus on the interpretation of self-attention, which is one of the fundamental underlying components of BERT. Using a subset of GLUE tasks and a set of handcrafted features-of-interest, we propose the methodology and carry out a qualitative and quantitative analysis of the information encoded by the individual BERT's heads. Our findings suggest that there is a limited set of attention patterns that are repeated across different heads, indicating the overall model overparametrization. While different heads consistently use the same attention patterns, they have varying impact on performance across different tasks. We show that manually disabling attention in certain heads leads to a performance improvement over the regular fine-tuned BERT models.
Key facts. Cited by 301 papers in the map (data through 14 Oct 2026). First posted on arXiv 21 Aug 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 76; 2022: 59; 2023: 52; 2024: 54; 2025: 34; 2026: 26.
301 papers.
Sort:
By area:
- 2021Knowledge Neurons in Pretrained Transformerscited by 601
- 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMscited by 474
- 2021Recent Advances in Natural Language Processing via Large Pre-Trained Language Models: A Surveycited by 463
- 2021A Survey of Transformerscited by 401
- 2023Explainability for Large Language Models: A Surveycited by 333
- 2021Pre-Trained Models: Past, Present and Futurecited by 319
- 2024Massive Activations in Large Language Modelscited by 294
- 2022What the DAAM: Interpreting Stable Diffusion Using Cross Attentioncited by 236
- 2023Parameter-Efficient Fine-Tuning Methods for Pretrained Language Models: A Critical Review and Assessmentcited by 230
- 2022cosFormer: Rethinking Softmax in Attentioncited by 213
- 2023Landmark Attention: Random-Access Infinite Context Length for Transformerscited by 213
- 2021Implicit Representations of Meaning in Neural Language Modelscited by 180
38 more
- 2023PMET: Precise Model Editing in a Transformercited by 173
- 2021MoEfication: Transformer Feed-forward Layers are Mixtures of Expertscited by 152
- 2023Quantizable Transformers: Removing Outliers by Helping Attention Heads Do Nothingcited by 151
- 2024Fine-Tuning Enhances Existing Mechanisms: A Case Study on Entity Trackingcited by 149
- 2021AMMUS : A Survey of Transformer-based Pretrained Models in Natural Language Processingcited by 131
- 2022Revealing the Dark Secrets of Masked Image Modelingcited by 117
- 2021BERT Busters: Outlier Dimensions that Disrupt Transformerscited by 112
- 2023Language Model Behavior: A Comprehensive Surveycited by 92
- 2022DataPerf: Benchmarks for Data-Centric AI Developmentcited by 90
- 2021Fast, Effective, and Self-Supervised: Transforming Masked Language Models into Universal Lexical and Sentence Encoderscited by 88
- 2022MiniViT: Compressing Vision Transformers with Weight Multiplexingcited by 88
- 2023Neurons in Large Language Models: Dead, N-gram, Positionalcited by 88
- 2023How Do Transformers Learn Topic Structure: Towards a Mechanistic Understandingcited by 86
- 2022Efficient Methods for Natural Language Processing: A Surveycited by 78
- 2021Paragraph-level Rationale Extraction through Regularization: A case study on European Court of Human Rights Casescited by 77
- 2021Identifying and Mitigating Spurious Correlations for Improving Robustness in NLP Modelscited by 76
- 2021Probing Across Time: What Does RoBERTa Know and When?cited by 73
- 2022Revisiting Over-smoothing in BERT from the Perspective of Graphcited by 72
- 2024Attention Heads of Large Language Models: A Surveycited by 67
- 2022Measuring the Mixing of Contextual Information in the Transformercited by 65
- 2022Probing for the Usage of Grammatical Numbercited by 59
- 2022Discovering Latent Concepts Learned in BERTcited by 56
- 2022Entropy-based Attention Regularization Frees Unintended Bias Mitigation from Listscited by 55
- 2022Outliers Dimensions that Disrupt Transformers Are Driven by Frequencycited by 55
- 2021PARP: Prune, Adjust and Re-Prune for Self-Supervised Speech Recognitioncited by 53
- 2024Explainable and Interpretable Multimodal Large Language Models: A Comprehensive Surveycited by 52
- 2021Incorporating Residual and Normalization Layers into Analysis of Masked Language Modelscited by 51
- 2022What Do They Capture? -- A Structural Analysis of Pre-Trained Language Models for Source Codecited by 50
- 2023AttentionViz: A Global View of Transformer Attentioncited by 50
- 2021Red Alarm for Pre-trained Models: Universal Vulnerability to Neuron-Level Backdoor Attackscited by 49
- 2021SparseBERT: Rethinking the Importance Analysis in Self-attentioncited by 46
- 2025Parameter-Efficient Fine-Tuning for Foundation Modelscited by 45
- 2022GlobEnc: Quantifying Global Token Attribution by Incorporating the Whole Encoder Layer in Transformerscited by 44
- 2024SKVQ: Sliding-window Key and Value Cache Quantization for Large Language Modelscited by 44
- 2023Quantifying Context Mixing in Transformerscited by 43
- 2023LasUIE: Unifying Information Extraction with Latent Adaptive Structure-aware Generative Language Modelcited by 43
- 2021A Closer Look at How Fine-tuning Changes BERTcited by 42
- 2021Deep Subjecthood: Higher-Order Grammatical Features in Multilingual BERTcited by 41
50 most cited of 301 All 301 (JSON)
- 2026Decoupling Internal Representational Changes and Causal Importance in Fine-Tuned Large Language Models17 Sep 2026
- 2026Temporal-Attention Head Specialization During Video Diffusion Training14 Sep 2026
- 2026Mahalanobis-Based Multi-Head Attention for Complex State Propagation25 Aug 2026
- 2026Do Large Language Models Play Six Degrees of Separation? Measuring Topological Compression in Long-Context Manifolds18 Aug 2026
- 2026Magnitude Profile Pruning: Calibration-Free Structured Attention Head Removal for Transformer Compression11 Aug 2026
- 2026Which Question Is Your Attention Metric Answering? Attention Rows as Compositional Data11 Aug 2026
- 2026How Do LLMs Read Bug Reports? An Empirical Study of Attention in LLMs for Automated Program Repair28 Jul 2026
- 2026Scalable and Culturally Specific Stereotype Dataset Construction via Human-LLM Collaboration8 Jul 2026
- 2026DnA: Denoising Attention for Visual Tasks25 Jun 2026
- 2026Towards Explainable Adjudicative Variance: Quantifying Judicial Discretion via Gated Multi-Task Learning25 Jun 2026
- 2026Transformer-Enhanced Reinforcement Learning: Fundamentals and Applications in Communication Networks26 May 2026
- 2026Attention Sinks and Outliers in Attention Residuals18 May 2026
38 more
- 2026Neural Activation Patterns Across Language Model Architectures: A Comprehensive Analysis of Cognitive Task Performance14 May 2026
- 2026Shortcut Solutions Learned by Transformers Impair Continual Compositional Reasoning6 May 2026
- 2026Not All Tokens Are Created Equal: Query-Efficient Jailbreak Fuzzing for LLMs24 Mar 2026
- 2026Interpretable-by-Design Transformers via Architectural Stream Independence8 Mar 2026
- 2026The Dual-Stream Transformer: Channelized Architecture for Interpretable Language Modeling8 Mar 2026
- 2026Depth Charge: Jailbreak Large Language Models from Deep Safety Attention Heads6 Mar 2026
- 2026Explainable AI: Context-Aware Layer-Wise Integrated Gradients for Explaining Transformer Models18 Feb 2026
- 2026Decomposing Query-Key Feature Interactions Using Contrastive Covariances4 Feb 2026
- 2026From Global to Local: Learning Context-Aware Graph Representations for Document Classification and Summarization3 Feb 2026
- 2026Trust in One Round: Confidence Estimation for Large Language Models via Structural Signals1 Feb 2026
- 2026LLMs Explain't: A Post-Mortem on Semantic Interpretability in Transformer Models30 Jan 2026
- 2026Single-Nodal Spontaneous Symmetry Breaking in NLP Models28 Jan 2026
- 2026Disentangling Direction and Magnitude in Transformer Representations: A Double Dissociation Through L2-Matched Perturbation Analysis19 Jan 2026
- 2026Augmenting Parameter-Efficient Pre-trained Language Models with Large Language Models19 Jan 2026
- 2025Self-attention vector output similarities reveal how machines pay attention26 Dec 2025
- 2025brat: Aligned Multi-View Embeddings for Brain MRI Analysis21 Dec 2025
- 2025Start Making Sense(s): A Developmental Probe of Attention Specialization Using Lexical Ambiguity26 Nov 2025
- 2025A Hybrid Classical-Quantum Fine Tuned BERT for Text Classification21 Nov 2025
- 2025Attention Saturation and Gradient Suppression at Inflection Layers: Diagnosing and Mitigating Bottlenecks in Transformer Adaptation2 Nov 2025
- 2025That's Deprecated! Understanding, Detecting, and Steering Knowledge Conflicts in Language Models for Code Generation21 Oct 2025
- 2025Attention Is All You Need for KV Cache in Diffusion LLMs16 Oct 2025
- 2025CAST: Compositional Analysis via Spectral Tracking for Understanding Transformer Layer Functions16 Oct 2025
- 2025To Sink or Not to Sink: Visual Information Pathways in Large Vision-Language Models9 Oct 2025
- 2025nDNA -- the Semantic Helix of Artificial Cognition21 Sep 2025
- 2025White Aggregation and Restoration for Few-shot 3D Point Cloud Semantic Segmentation17 Sep 2025
- 2025Integral Transformer: Denoising Attention, Not Too Much Not Too Little25 Aug 2025
- 2025Unveiling Super Experts in Mixture-of-Experts Large Language Models31 Jul 2025
- 2025L-CLIPScore: a Lightweight Embedding-based Captioning Metric for Evaluating and Training11 Jul 2025
- 2025Unveiling Effective In-Context Configurations for Image Captioning: An External & Internal Analysis8 Jul 2025
- 2025RollingQ: Reviving the Cooperation Dynamics in Multimodal Transformer13 Jun 2025
- 2025The Atlas of In-Context Learning: How Attention Heads Shape In-Context Retrieval Augmentation21 May 2025
- 2025Probability Consistency in Large Language Models: Theoretical Foundations Meet Empirical Discrepancies13 May 2025
- 2025Are We Paying Attention to Her? Investigating Gender Disambiguation and Attention in Machine Translation13 May 2025
- 2025Intra-Layer Recurrence in Transformers for Language Modeling3 May 2025
- 2025Fast and Low-Cost Genomic Foundation Models via Outlier Removal1 May 2025
- 2025Do Large Language Models know who did what to whom?23 Apr 2025
- 2025Hallucinated Span Detection with Multi-View Attention Features6 Apr 2025
- 2025Overcoming Sparsity Artifacts in Crosscoders to Interpret Chat-Tuning3 Apr 2025
50 newest of 301 All 301 (JSON)
- 2021Automatic Mixed-Precision Quantization Search of BERTcited by 16
- 2022Understanding and Improving Knowledge Distillation for Quantization-Aware Training of Large Transformer Encoderscited by 11
- 2022CILDA: Contrastive Data Augmentation using Intermediate Layer Knowledge Distillationcited by 4
- 2023Adaptive Knowledge Distillation between Text and Speech Pre-trained Modelscited by 3
- 2024Outlier Reduction with Gated Attention for Improved Post-training Quantization in Large Sequence-to-sequence Speech Foundation Modelscited by 3
- 2024Larger models yield better results? Streamlined severity classification of ADHD-related concerns using BERT-based knowledge distillationcited by 3
- 2024Larger models yield better results? Streamlined severity classification of ADHD-related concerns using BERT-based knowledge distillation30 Oct 2024
- 2024Outlier Reduction with Gated Attention for Improved Post-training Quantization in Large Sequence-to-sequence Speech Foundation Models16 Jun 2024
- 2023Adaptive Knowledge Distillation between Text and Speech Pre-trained Models7 Mar 2023
- 2022Understanding and Improving Knowledge Distillation for Quantization-Aware Training of Large Transformer Encoders20 Nov 2022
- 2022CILDA: Contrastive Data Augmentation using Intermediate Layer Knowledge Distillation15 Apr 2022
- 2021Automatic Mixed-Precision Quantization Search of BERT30 Dec 2021
- 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMscited by 474
- 2024SKVQ: Sliding-window Key and Value Cache Quantization for Large Language Modelscited by 44
- 2025Attention Is All You Need for KV Cache in Diffusion LLMscited by 32
- 2021Elbert: Fast Albert with Confidence-Window Based Early Exitcited by 14
- 2025Attention Is All You Need for KV Cache in Diffusion LLMs16 Oct 2025
- 2024SKVQ: Sliding-window Key and Value Cache Quantization for Large Language Models10 May 2024
- 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMs3 Oct 2023
- 2021Elbert: Fast Albert with Confidence-Window Based Early Exit1 Jul 2021
- 2022cosFormer: Rethinking Softmax in Attentioncited by 213
- 2024Understanding the Language Model to Solve the Symbolic Multi-Step Reasoning Problem from the Perspective of Buffer Mechanismcited by 15
- 2025On the Query Complexity of Verifier-Assisted Language Generationcited by 12
- 2026Do Large Language Models Play Six Degrees of Separation? Measuring Topological Compression in Long-Context Manifoldscited by 0
- 2026Do Large Language Models Play Six Degrees of Separation? Measuring Topological Compression in Long-Context Manifolds18 Aug 2026
- 2025On the Query Complexity of Verifier-Assisted Language Generation17 Feb 2025
- 2024Understanding the Language Model to Solve the Symbolic Multi-Step Reasoning Problem from the Perspective of Buffer Mechanism24 May 2024
- 2022cosFormer: Rethinking Softmax in Attention17 Feb 2022
- 2026LLMs Explain't: A Post-Mortem on Semantic Interpretability in Transformer Models30 Jan 2026
- 2024Mechanistic?7 Oct 2024
- 2024On Behalf of the Stakeholders: Trends in NLP Model Interpretability in the Era of LLMs27 Jul 2024
- 2021Understanding Transformers for Bot Detection in Twitter13 Apr 2021
- 2024Explainable and Interpretable Multimodal Large Language Models: A Comprehensive Surveycited by 52
- 2025To Sink or Not to Sink: Visual Information Pathways in Large Vision-Language Modelscited by 20
- 2024Probing Multimodal Large Language Models for Global and Local Semantic Representationscited by 12
- 2024F3OCUS -- Federated Finetuning of Vision-Language Foundation Models with Optimal Client Layer Updating Strategy via Multi-objective Meta-Heuristicscited by 4
- 2025To Sink or Not to Sink: Visual Information Pathways in Large Vision-Language Models9 Oct 2025
- 2024Explainable and Interpretable Multimodal Large Language Models: A Comprehensive Survey3 Dec 2024
- 2024F3OCUS -- Federated Finetuning of Vision-Language Foundation Models with Optimal Client Layer Updating Strategy via Multi-objective Meta-Heuristics17 Nov 2024
- 2024Probing Multimodal Large Language Models for Global and Local Semantic Representations27 Feb 2024
- 2021Knowledge Neurons in Pretrained Transformerscited by 601
- 2021Recent Advances in Natural Language Processing via Large Pre-Trained Language Models: A Surveycited by 463
- 2021A Survey of Transformerscited by 401
- 2023Explainability for Large Language Models: A Surveycited by 333
- 2021Pre-Trained Models: Past, Present and Futurecited by 319
- 2024Massive Activations in Large Language Modelscited by 294
- 2023Parameter-Efficient Fine-Tuning Methods for Pretrained Language Models: A Critical Review and Assessmentcited by 230
- 2023Landmark Attention: Random-Access Infinite Context Length for Transformerscited by 213
- 2021Implicit Representations of Meaning in Neural Language Modelscited by 180
- 2023PMET: Precise Model Editing in a Transformercited by 173
- 2023Quantizable Transformers: Removing Outliers by Helping Attention Heads Do Nothingcited by 151
- 2024Fine-Tuning Enhances Existing Mechanisms: A Case Study on Entity Trackingcited by 149
12 most cited of 270 All 270 (JSON)
- 2026Decoupling Internal Representational Changes and Causal Importance in Fine-Tuned Large Language Models17 Sep 2026
- 2026Mahalanobis-Based Multi-Head Attention for Complex State Propagation25 Aug 2026
- 2026Magnitude Profile Pruning: Calibration-Free Structured Attention Head Removal for Transformer Compression11 Aug 2026
- 2026Which Question Is Your Attention Metric Answering? Attention Rows as Compositional Data11 Aug 2026
- 2026How Do LLMs Read Bug Reports? An Empirical Study of Attention in LLMs for Automated Program Repair28 Jul 2026
- 2026Scalable and Culturally Specific Stereotype Dataset Construction via Human-LLM Collaboration8 Jul 2026
- 2026DnA: Denoising Attention for Visual Tasks25 Jun 2026
- 2026Towards Explainable Adjudicative Variance: Quantifying Judicial Discretion via Gated Multi-Task Learning25 Jun 2026
- 2026Attention Sinks and Outliers in Attention Residuals18 May 2026
- 2026Neural Activation Patterns Across Language Model Architectures: A Comprehensive Analysis of Cognitive Task Performance14 May 2026
- 2026Shortcut Solutions Learned by Transformers Impair Continual Compositional Reasoning6 May 2026
- 2026Interpretable-by-Design Transformers via Architectural Stream Independence8 Mar 2026
12 newest of 270 All 270 (JSON)