mlsanityData to 7 Oct 2026

Geometric Factual Recall in Transformers

arXiv 2605.12426 ↗First posted 12 May 2026cs.CLcited by 1

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

  1. 2022Locating and Editing Factual Associations in GPTcited by 2,609
  2. 2019Language Models as Knowledge Bases?cited by 1,922
  3. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
  4. 2022Mass-Editing Memory in a Transformercited by 976
  5. 2014Embedding Entities and Relations for Learning and Inference in Knowledge Basescited by 929
  6. 2016Complex Embeddings for Simple Link Predictioncited by 897
  7. 2020How Much Knowledge Can You Pack Into the Parameters of a Language Model?cited by 713
  8. 2021Knowledge Neurons in Pretrained Transformerscited by 590
  9. 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 512
  10. 2020Hopfield Networks is All You Needcited by 461
  11. 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 404
  12. 2023Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspectivecited by 293
24 more
  1. 2023Physics of Language Models: Part 3.1, Knowledge Storage and Extractioncited by 264
  2. 2024Chain of Thought Empowers Transformers to Solve Inherently Serial Problemscited by 256
  3. 2016Dense Associative Memory for Pattern Recognitioncited by 230
  4. 2023Linearity of Relation Decoding in Transformer Language Modelscited by 190
  5. 2024Do Large Language Models Latently Perform Multi-Hop Reasoning?cited by 165
  6. 2023Birth of a Transformer: A Memory Viewpointcited by 154
  7. 2018Canonical Tensor Decomposition for Knowledge Base Completioncited by 150
  8. 2023Physics of Language Models: Part 3.2, Knowledge Manipulationcited by 142
  9. 2024Physics of Language Models: Part 3.3, Knowledge Capacity Scaling Lawscited by 137
  10. 2023Representational Strengths and Limitations of Transformerscited by 132
  11. 2017Knowledge Graph Completion via Complex Tensor Factorizationcited by 80
  12. 2024Hopping Too Late: Exploring the Limitations of Large Language Models on Multi-Hop Queriescited by 78
  13. 2026Conditional Memory via Scalable Lookup: A New Axis of Sparsity for Large Language Modelscited by 78
  14. 2023Are Transformers with One Layer Self-Attention Using Low-Rank Weight Matrices Universal Approximators?cited by 46
  15. 2024Understanding Factual Recall in Transformers via Associative Memoriescited by 45
  16. 2021On the Optimal Memorization Power of ReLU Neural Networkscited by 40
  17. 2023Memorization Capacity of Multi-Head Attention in Transformerscited by 39
  18. 2023Scaling Laws for Associative Memoriescited by 30
  19. 2025On Linear Representations and Pretraining Data Frequency in Language Modelscited by 23
  20. 2026Thinking to Recall: How Reasoning Unlocks Parametric Knowledge in LLMscited by 13
  21. 2025Emergence of Linear Truth Encodings in Language Modelscited by 12
  22. 2025Deep sequence models tend to memorize geometrically; it is unclear whycited by 9
  23. 2025Constructing Efficient Fact-Storing MLPs for Transformerscited by 3
  24. 2025Logarithmic Width Suffices for Robust Memorizationcited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2025From Memorization to Reasoning in the Spectrum of Loss Curvature
  2. 2025Examining Two Hop Reasoning Through Information Content Scaling
  3. 2024Relation Also Knows: Rethinking the Recall and Editing of Factual Associations in Auto-Regressive Transformer Language Models
  4. 2024Representation Shattering in Transformers: A Synthetic Study with Knowledge Editing
  5. 2026Mixture of Chapters: Scaling Learnt Memory in Transformers
  6. 2024Locating and Editing Factual Associations in Mamba
  7. 2026Can LLMs Use Relational Transformer Embeddings?
  8. 2025Relational reasoning and inductive bias in transformers and large language models