mlsanityData to 14 Oct 2026

The geometry of BERT

arXiv 2502.12033 ↗First posted 17 Feb 2025cs.LGcited by 4

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

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2017A Unified Approach to Interpreting Model Predictionscited by 6,555
  3. 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,070
  4. 2017Axiomatic Attribution for Deep Networkscited by 3,384
  5. 2017Decoupled Weight Decay Regularizationcited by 1,831
  6. 2017Understanding Black-box Predictions via Influence Functionscited by 1,741
  7. 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,059
  8. 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 1,003
  9. 2019Attention is not Explanationcited by 929
  10. 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 856
  11. 2020Quantifying Attention Flow in Transformerscited by 775
  12. 2019ERASER: A Benchmark to Evaluate Rationalized NLP Modelscited by 530
6 more
  1. 2021Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depthcited by 419
  2. 2019Counterfactual Visual Explanationscited by 313
  3. 2019Revealing the Dark Secrets of BERTcited by 301
  4. 2019A Multiscale Visualization of Attention in the Transformer Modelcited by 292
  5. 2020BERTology Meets Biology: Interpreting Attention in Protein Language Modelscited by 85
  6. 2020Multi-Head Attention: Collaborate Instead of Concatenatecited by 60

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 3.

4 papers.