mlsanityData to 14 Oct 2026

MLPs are Hebbians: Constructing Efficient Fact-Storing MLPs for Transformers

arXiv 2607.10034 ↗First posted 10 Jul 2026cs.LGcited by 1

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) store factual knowledge in their parameters. While recent work has shown that this knowledge resides in MLP layers, existing constructive and mechanistic interpretability models of fact-storage in LLMs fail to explain the surprising empirical phenomenon that they store facts at an information-theoretically optimal rate. In this work, we develop a theoretical account of this phenomenon. We develop the first Transformer-compatible fact-storing MLP closed-form construction that satisfies the following three properties empirically observed in LLMs: it (i) attains optimal fact storage scaling, (ii) handles arbitrary input/output geometries, and (iii) works inside Transformers. Key to our work is to analyze the decoding margin of MLPs, whereas prior work only studies MLP fact storage. Under isotropic embeddings, our construction achieves information-theoretically optimal storage capacity scaling and requires 10-104× fewer parameters at matched fact count than prior constructions. For arbitrary key and value embeddings, we show that our construction attains the same storage capacity scaling, up to penalization factors depending on the embedding geometries. Moreover, we demonstrate that our constructed MLPs can be used within Transformer blocks for factual recall tasks at optimal capacity scaling, requiring 15-63× fewer parameters at matched fact count than prior constructions. Finally, as a proof-of-concept, we show that fact-storing MLPs enable modular fact editing by swapping a Transformer's MLP with a new one.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 24 of its 38 references that are in the map. First posted on arXiv 10 Jul 2026.

Builds on

24 of 38 references.

References · 24

  1. 2025Qwen3 Technical Reportcited by 8,820
  2. 2022Locating and Editing Factual Associations in GPTcited by 2,691
  3. 2019Language Models as Knowledge Bases?cited by 1,936
  4. 2020GLU Variants Improve Transformercited by 1,804
  5. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
  6. 2022Mass-Editing Memory in a Transformercited by 1,001
  7. 2022Toy Models of Superpositioncited by 971
  8. 2024DeepSeek-V3 Technical Reportcited by 811
  9. 2019How Contextual are Contextualized Word Representations? Comparing the Geometry of BERT, ELMo, and GPT-2 Embeddingscited by 784
  10. 2021Knowledge Neurons in Pretrained Transformerscited by 601
  11. 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 532
  12. 2024Capabilities of Gemini Models in Medicinecited by 237
12 more
  1. 2024AlphaEdit: Null-Space Constrained Knowledge Editing for Language Modelscited by 236
  2. 2024Physics of Language Models: Part 3.3, Knowledge Capacity Scaling Lawscited by 144
  3. 2024Model Editing Harms General Abilities of Large Language Models: Regularization to the Rescuecited by 103
  4. 2024Model Editing at Scale leads to Gradual and Catastrophic Forgettingcited by 93
  5. 2025How much do language models memorize?cited by 61
  6. 2024Understanding Factual Recall in Transformers via Associative Memoriescited by 51
  7. 2023The Shape of Learning: Anisotropy and Intrinsic Dimensions in Transformer-Based Modelscited by 39
  8. 2025How do language models learn facts? Dynamics, curricula and hallucinationscited by 37
  9. 2023Scaling Laws for Associative Memoriescited by 35
  10. 2025Understanding Transformer from the Perspective of Associative Memorycited by 34
  11. 2020Network size and weights size for memorization with two-layers neural networkscited by 17
  12. 2025Mitigating Negative Interference in Multilingual Sequential Knowledge Editing through Null-Space Constraintscited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2026Geometric Factual Recall in Transformers
  2. 2024Insights into LLM Long-Context Failures: When Transformers Know but Don't Tell
  3. 2024MLKV: Multi-Layer Key-Value Heads for Memory Efficient Transformer Decoding
  4. 2026Facts as First Class Objects: Knowledge Objects for Persistent LLM Memory
  5. 2025Lost in Multilinguality: Dissecting Cross-lingual Factual Inconsistency in Transformer Language Models
  6. 2023Let Models Speak Ciphers: Multiagent Debate through Embeddings
  7. 2025Pretraining with hierarchical memories: separating long-tail and common knowledge
  8. 2026Representational Capacity: Geometric Limits on Feature Representation in Transformer Language Models