The Curved Spacetime of Transformer Architectures
Not on the map. Why?
Abstract (arXiv)
We present a geometric framework for understanding Transformer-based language models, drawing an explicit analogy to General Relativity. Queries and keys induce an effective metric on representation space, and attention acts as a discrete connection that implements parallel transport of value vectors across tokens. Stacked layers provide discrete time-slices through which token representations evolve on this curved manifold, while backpropagation plays the role of a least-action principle that shapes loss-minimizing trajectories in parameter space. If this analogy is correct, token embeddings should not traverse straight paths in feature space; instead, their layer-wise steps should bend and reorient as interactions mediated by embedding space curvature. To test this prediction, we design experiments that expose both the presence and the consequences of curvature: (i) we visualize a curvature landscape for a full paragraph, revealing how local turning angles vary across tokens and layers; (ii) we show through simulations that excess counts of sharp/flat angles and longer length-to-chord ratios are not explainable by dimensionality or chance; and (iii) inspired by Einstein's eclipse experiment, we probe deflection under controlled context edits, demonstrating measurable, meaning-consistent bends in embedding trajectories that confirm attention-induced curvature.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 16 of its 27 references that are in the map. First posted on arXiv 4 Nov 2025.
Builds on
16 of 27 references.
References · 16
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,346
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
- 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
- 2018Deep contextualized word representationscited by 2,285
- 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,157
- 2021DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-Disentangled Embedding Sharingcited by 1,219
- 2018Poincar'e GloVe: Hyperbolic Word Embeddingscited by 155
4 more
- 2023Curve Your Attention: Mixed-Curvature Transformers for Graph Representation Learningcited by 15
- 2025Position: Beyond Euclidean -- Foundation Models Should Embrace Non-Euclidean Geometriescited by 15
- 2022Small Transformers Compute Universal Metric Embeddingscited by 12
- 2025RiemannFormer: A Framework for Attention in Curved Spacescited by 8
Built on by
Citing papers per year: 2026: 5.
5 papers.
- 2026CliffordNet: All You Need is Geometric Algebracited by 6
- 2026The Geometric Reasoner: Manifold-Informed Latent Foresight Search for Long-Context Reasoningcited by 1
- 2026A geometric relation of the error introduced by sampling a language model's output distribution to its internal statecited by 0
- 2026Riemannian Geometry for Pre-trained Language Model Embeddingscited by 0
- 2026Riemannian Attention Mechanisms for Transformers: A Theoretical Framework and Architecture Designcited by 0
- 2026Riemannian Attention Mechanisms for Transformers: A Theoretical Framework and Architecture Design2 Aug 2026
- 2026Riemannian Geometry for Pre-trained Language Model Embeddings8 Jul 2026
- 2026A geometric relation of the error introduced by sampling a language model's output distribution to its internal state6 May 2026
- 2026The Geometric Reasoner: Manifold-Informed Latent Foresight Search for Long-Context Reasoning25 Jan 2026
- 2026CliffordNet: All You Need is Geometric Algebra11 Jan 2026