Geometric Factual Recall in Transformers
Not on the map. Why?
Abstract (arXiv)
How do transformer language models memorize factual associations? A common view casts internal weight matrices as associative memories over pairs of embeddings, requiring parameter counts that scale linearly with the number of facts. We develop a theoretical and empirical account of an alternative, geometric form of memorization in which learned embeddings encode relational structure directly, and the MLP plays a qualitatively different role. In a controlled setting where a single-layer transformer must memorize random bijections from subjects to a shared attribute set, we prove that a logarithmic embedding dimension suffices: subject embeddings encode linear superpositions of their associated attribute vectors, and a small MLP acts as a relation-conditioned selector that extracts the relevant attribute via ReLU gating, and not as an associative key-value mapping. We extend these results to the multi-hop setting -- chains of relational queries such as ``Who is the mother of the wife of x?'' -- providing constructions with and without chain-of-thought that exhibit a provable capacity-depth tradeoff, complemented by a matching information-theoretic lower bound. Empirically, gradient descent discovers solutions with precisely the predicted structure. Once trained, the MLP transfers zero-shot to entirely new bijections when subject embeddings are appropriately re-initialized, revealing that it has learned a generic selection mechanism rather than memorized any particular set of facts.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 36 of its 40 references that are in the map. First posted on arXiv 12 May 2026.
Builds on
36 of 40 references.
References · 36
- 2022Locating and Editing Factual Associations in GPTcited by 2,609
- 2019Language Models as Knowledge Bases?cited by 1,922
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
- 2022Mass-Editing Memory in a Transformercited by 976
- 2014Embedding Entities and Relations for Learning and Inference in Knowledge Basescited by 929
- 2016Complex Embeddings for Simple Link Predictioncited by 897
- 2020How Much Knowledge Can You Pack Into the Parameters of a Language Model?cited by 713
- 2021Knowledge Neurons in Pretrained Transformerscited by 590
- 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 512
- 2020Hopfield Networks is All You Needcited by 461
- 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 404
- 2023Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspectivecited by 293
24 more
- 2023Physics of Language Models: Part 3.1, Knowledge Storage and Extractioncited by 264
- 2024Chain of Thought Empowers Transformers to Solve Inherently Serial Problemscited by 256
- 2016Dense Associative Memory for Pattern Recognitioncited by 230
- 2023Linearity of Relation Decoding in Transformer Language Modelscited by 190
- 2024Do Large Language Models Latently Perform Multi-Hop Reasoning?cited by 165
- 2023Birth of a Transformer: A Memory Viewpointcited by 154
- 2018Canonical Tensor Decomposition for Knowledge Base Completioncited by 150
- 2023Physics of Language Models: Part 3.2, Knowledge Manipulationcited by 142
- 2024Physics of Language Models: Part 3.3, Knowledge Capacity Scaling Lawscited by 137
- 2023Representational Strengths and Limitations of Transformerscited by 132
- 2017Knowledge Graph Completion via Complex Tensor Factorizationcited by 80
- 2024Hopping Too Late: Exploring the Limitations of Large Language Models on Multi-Hop Queriescited by 78
- 2026Conditional Memory via Scalable Lookup: A New Axis of Sparsity for Large Language Modelscited by 78
- 2023Are Transformers with One Layer Self-Attention Using Low-Rank Weight Matrices Universal Approximators?cited by 46
- 2024Understanding Factual Recall in Transformers via Associative Memoriescited by 45
- 2021On the Optimal Memorization Power of ReLU Neural Networkscited by 40
- 2023Memorization Capacity of Multi-Head Attention in Transformerscited by 39
- 2023Scaling Laws for Associative Memoriescited by 30
- 2025On Linear Representations and Pretraining Data Frequency in Language Modelscited by 23
- 2026Thinking to Recall: How Reasoning Unlocks Parametric Knowledge in LLMscited by 13
- 2025Emergence of Linear Truth Encodings in Language Modelscited by 12
- 2025Deep sequence models tend to memorize geometrically; it is unclear whycited by 9
- 2025Constructing Efficient Fact-Storing MLPs for Transformerscited by 3
- 2025Logarithmic Width Suffices for Robust Memorizationcited by 1
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2025From Memorization to Reasoning in the Spectrum of Loss Curvature
- 2025Examining Two Hop Reasoning Through Information Content Scaling
- 2024Relation Also Knows: Rethinking the Recall and Editing of Factual Associations in Auto-Regressive Transformer Language Models
- 2024Representation Shattering in Transformers: A Synthetic Study with Knowledge Editing
- 2026Mixture of Chapters: Scaling Learnt Memory in Transformers
- 2024Locating and Editing Factual Associations in Mamba
- 2026Can LLMs Use Relational Transformer Embeddings?
- 2025Relational reasoning and inductive bias in transformers and large language models