← All entries
Paper2026#1285

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

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.

Venue
COLM 2026; arXiv 2607.10034 (cs.LG), submitted 10 Jul 2026; CC BY-SA 4.0
Source
x
Language
en
Added
Oct 7, 2026
Found via
#random-papers

Tags

mlpfact-storagehebbianclosed-form-constructionmechanistic-interpretabilityknowledge-editingtransformer

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