# MLPs Are Hebbians: Constructing Efficient Fact-Storing MLPs for Transformers

- **ID:** 1285
- **Kind:** paper
- **URL:** https://arxiv.org/abs/2607.10034
- **Authors:** Roberto Garcia, Jerry Liu, Ronny Junkins, Sabri Eyuboglu, Atri Rudra, Christopher Ré
- **Venue:** COLM 2026; arXiv 2607.10034 (cs.LG), submitted 10 Jul 2026; CC BY-SA 4.0
- **Published:** 2026
- **Source:** x
- **Language:** en
- **Tags:** mlp, fact-storage, hebbian, closed-form-construction, mechanistic-interpretability, knowledge-editing, transformer
- **Added:** 2026-10-07
- **Page:** https://papers.projxon.ai/entries/1285

## Summary

HazyResearch/Stanford explains the empirical surprise that LLMs store facts at an information-theoretically optimal rate: the first Transformer-compatible closed-form MLP construction satisfying all three properties observed in LLMs — (i) optimal fact-storage scaling, (ii) arbitrary input/output geometries, (iii) usable inside Transformers. The key analytical move is analyzing the MLP decoding margin, which prior work ignored. Under isotropic embeddings it hits information-theoretic optimal capacity scaling, needing 10-104x fewer parameters than prior constructions at matched fact count; for arbitrary key/value embeddings it attains the same scaling up to geometry-dependent penalization factors. Their transformer block can use the constructed MLPs for factual recall at near-optimal capacity scaling (15-63x fewer params than prior constructions), revealing a fundamental capacity-vs-usability tradeoff for fact-storing MLPs in transformers. Proof-of-concept modular fact editing: swapping a 1-layer transformer's fact-storing MLP with a new one edits facts with no retraining, only ~3% higher cross-entropy on non-fact tokens, and doubles the fact-editing score of SoTA weight-update methods (MEMIT, AlphaEdit, ROME) when editing 10% of the fact set.

## Research notes

- Code: https://github.com/HazyResearch/hebbian-mlps (Apache 2.0). Discovery: Roberto Garcia @garctrob (HazyResearch/Stanford PhD) quote post 2026-10-06 ~1:54 PM ET (~1.9K views), quote-posting Jerry Liu @jerrywliu's original announcement 2026-07-22 (~64.8K views): https://x.com/garctrob/status/2107530011175686388. Accepted at COLM 2026.

## Similar entries

- [Falcon-H1: A Family of Hybrid-Head Language Models Redefining Efficiency and Performance](https://papers.projxon.ai/entries/1097) (paper, #1097)
- [LiFT: Loop Flow Transformers](https://papers.projxon.ai/entries/1274) (paper, #1274)
- [A Smaller Transformer in Your Transformer](https://papers.projxon.ai/entries/1074) (paper, #1074)
- [The Surprising Effectiveness of Shared Memory in Looped Transformers](https://papers.projxon.ai/entries/1255) (paper, #1255)
- [LT2: Linear-Time Looped Transformers](https://papers.projxon.ai/entries/494) (model, #494)
- [Decoding Looped Transformers Better for (Almost) Free](https://papers.projxon.ai/entries/857) (paper, #857)
