Constructing Efficient Fact-Storing MLPs for Transformers
Not on the map. Why?
Abstract (arXiv)
The success of large language models (LLMs) can be attributed in part to their ability to efficiently store factual knowledge as key-value mappings within their MLP parameters. Recent work has proposed explicit weight constructions to build such fact-storing MLPs, providing an improved understanding of LLM fact storage mechanisms. In this paper, we introduce an MLP construction framework that improves over previous constructions in three areas: it 1) works for all but a measure-zero set of feasible input-output pairs, 2) achieves asymptotically optimal parameter efficiency matching information-theoretic bounds for some embeddings, and 3) maintains usability within Transformers for factual recall. Through our improvements, we 1) discover a metric on value embeddings that characterizes facts-per-parameter scaling for both constructed and gradient-descent-trained MLPs, 2) identify a simple encoder-decoder mechanism that empirically matches gradient-descent MLP facts-per-parameter asymptotics across all the inputs and outputs we test, and 3) uncover a fundamental tradeoff between an MLP's fact-storage capacity and its usability within Transformers. Finally, we demonstrate a proof-of-concept application of fact-storing MLPs: modular fact editing on one-layer Transformers by textitreplacing entire MLPs at once.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). First posted on arXiv 28 Nov 2025.
Builds on
0 of 0 references.
No references here yet.
Built on by
Citing papers per year: 2026: 3.
3 papers.
- 2026Universal Redundancies in Time Series Foundation Modelscited by 5
- 2026Fine-Tuning and Evaluating Conversational AI for Agricultural Advisorycited by 2
- 2026Geometric Factual Recall in Transformerscited by 1
- 2026Geometric Factual Recall in Transformers12 May 2026
- 2026Fine-Tuning and Evaluating Conversational AI for Agricultural Advisory6 Feb 2026
- 2026Universal Redundancies in Time Series Foundation Models2 Feb 2026