The geometry of BERT
Not on the map. Why?
Abstract (arXiv)
Transformer neural networks, particularly Bidirectional Encoder Representations from Transformers (BERT), have shown remarkable performance across various tasks such as classification, text summarization, and question answering. However, their internal mechanisms remain mathematically obscure, highlighting the need for greater explainability and interpretability. In this direction, this paper investigates the internal mechanisms of BERT proposing a novel perspective on the attention mechanism of BERT from a theoretical perspective. The analysis encompasses both local and global network behavior. At the local level, the concept of directionality of subspace selection as well as a comprehensive study of the patterns emerging from the self-attention matrix are presented. Additionally, this work explores the semantic content of the information stream through data distribution analysis and global statistical measures including the novel concept of cone index. A case study on the classification of SARS-CoV-2 variants using RNA which resulted in a very high accuracy has been selected in order to observe these concepts in an application. The insights gained from this analysis contribute to a deeper understanding of BERT's classification process, offering potential avenues for future architectural improvements in Transformer models and further analysis in the training process.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 18 of its 27 references that are in the map. First posted on arXiv 17 Feb 2025.
Builds on
18 of 27 references.
References · 18
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2017A Unified Approach to Interpreting Model Predictionscited by 6,555
- 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,070
- 2017Axiomatic Attribution for Deep Networkscited by 3,384
- 2017Decoupled Weight Decay Regularizationcited by 1,831
- 2017Understanding Black-box Predictions via Influence Functionscited by 1,741
- 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,059
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 1,003
- 2019Attention is not Explanationcited by 929
- 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 856
- 2020Quantifying Attention Flow in Transformerscited by 775
- 2019ERASER: A Benchmark to Evaluate Rationalized NLP Modelscited by 530
6 more
- 2021Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depthcited by 419
- 2019Counterfactual Visual Explanationscited by 313
- 2019Revealing the Dark Secrets of BERTcited by 301
- 2019A Multiscale Visualization of Attention in the Transformer Modelcited by 292
- 2020BERTology Meets Biology: Interpreting Attention in Protein Language Modelscited by 85
- 2020Multi-Head Attention: Collaborate Instead of Concatenatecited by 60
Built on by
Citing papers per year: 2025: 1; 2026: 3.
4 papers.
- 2025Only Large Weights (And Not Skip Connections) Can Prevent the Perils of Rank Collapsecited by 7
- 2026Measuring Affinity between Attention-Head Weight Subspaces via the Projection Kernelcited by 5
- 2026INCRT: An Incremental Transformer That Determines Its Own Architecturecited by 4
- 2026Rank, Head-Channel Non-Identifiability, and Symmetry Breaking: A Precise Analysis of Representational Collapse in Transformerscited by 1
- 2026Rank, Head-Channel Non-Identifiability, and Symmetry Breaking: A Precise Analysis of Representational Collapse in Transformers26 Apr 2026
- 2026INCRT: An Incremental Transformer That Determines Its Own Architecture12 Apr 2026
- 2026Measuring Affinity between Attention-Head Weight Subspaces via the Projection Kernel15 Jan 2026
- 2025Only Large Weights (And Not Skip Connections) Can Prevent the Perils of Rank Collapse22 May 2025