Traveling Words: A Geometric Interpretation of Transformers
Not on the map. Why?
Abstract (arXiv)
Transformers have significantly advanced the field of natural language processing, but comprehending their internal mechanisms remains a challenge. In this paper, we introduce a novel geometric perspective that elucidates the inner mechanisms of transformer operations. Our primary contribution is illustrating how layer normalization confines the latent features to a hyper-sphere, subsequently enabling attention to mold the semantic representation of words on this surface. This geometric viewpoint seamlessly connects established properties such as iterative refinement and contextual embeddings. We validate our insights by probing a pre-trained 124M parameter GPT-2 model. Our findings reveal clear query-key attention patterns in early layers and build upon prior observations regarding the subject-specific nature of attention heads at deeper layers. Harnessing these geometric insights, we present an intuitive understanding of transformers, depicting them as processes that model the trajectory of word particles along the hyper-sphere.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Builds on 19 of its 31 references that are in the map. First posted on arXiv 13 Sep 2023.
Builds on
19 of 31 references.
References · 19
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023GPT-4 Technical Reportcited by 18,396
- 2016Layer Normalizationcited by 5,669
- 2016Pointer Sentinel Mixture Modelscited by 3,096
- 2022Constitutional AI: Harmlessness from AI Feedbackcited by 3,050
- 2018UMAP: Uniform Manifold Approximation and Projection for Dimension Reductioncited by 2,898
- 2023PaLM-E: An Embodied Multimodal Language Modelcited by 2,071
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
- 2022LaMDA: Language Models for Dialog Applicationscited by 1,220
- 2023PaLM 2 Technical Reportcited by 1,162
- 2020On Layer Normalization in the Transformer Architecturecited by 922
7 more
- 2023Eliciting Latent Predictions from Transformers with the Tuned Lenscited by 623
- 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 532
- 2023Symbolic Discovery of Optimization Algorithmscited by 434
- 2022DETRs with Collaborative Hybrid Assignments Trainingcited by 274
- 2022Analyzing Transformers in Embedding Spacecited by 132
- 2017Residual Connections Encourage Iterative Inferencecited by 77
- 2023On the Expressivity Role of LayerNorm in Transformers' Attentioncited by 33
Built on by
Citing papers per year: 2023: 1; 2024: 4; 2025: 1; 2026: 1.
7 papers.
- 2024Information Flow Routes: Automatically Interpreting Language Models at Scalecited by 95
- 2024A Primer on the Inner Workings of Transformer-based Language Modelscited by 85
- 2025Understanding Multi-View Transformerscited by 8
- 2024Transformer Normalisation Layers and the Independence of Semantic Subspacescited by 6
- 2024Geometry and Dynamics of LayerNormcited by 2
- 2023Interpretation of the Transformer and Improvement of the Extractorcited by 0
- 2026The Transformer as a Polar State Estimatorcited by 0
- 2026The Transformer as a Polar State Estimator10 May 2026
- 2025Understanding Multi-View Transformers28 Oct 2025
- 2024Transformer Normalisation Layers and the Independence of Semantic Subspaces25 Jun 2024
- 2024Geometry and Dynamics of LayerNorm7 May 2024
- 2024A Primer on the Inner Workings of Transformer-based Language Models30 Apr 2024
- 2024Information Flow Routes: Automatically Interpreting Language Models at Scale27 Feb 2024
- 2023Interpretation of the Transformer and Improvement of the Extractor21 Nov 2023