Explore the research collection
2 entries · Follow this search
- Paper
MLPs Are Hebbians: Constructing Efficient Fact-Storing MLPs for Transformers
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.
- Paper
Matryoshka attribution: Learning to attribute language model outputs to representations and weights
MAttr learns a single nested attribution ordering over model internals by optimizing a differentiable sigmoid top-k soft interchange-intervention mask while sampling k across sparsities; it avoids a separately tuned sparsity penalty and supports nodes, edges, neurons, SAE features, and weight deltas. On the official private/secret MIB Circuit Localization leaderboard, the live entry “MAttr (edge, 5k steps)” averages 5.6 versus 1.95 for the runner-up (~2.9×), with per-cell values captured in the local dump; the paper reports this official score while its figures report public-test results. A GRPO parameter-level application finds that restoring 1% of Llama-3.1-8B-Instruct parameters (2% for 1B) to base removes refusals while retaining capabilities. Primary links: arXiv abs https://arxiv.org/abs/2609.25518; PDF https://arxiv.org/pdf/2609.25518; X post https://x.com/aryaman2020/status/2102800933659000846; code https://github.com/aryamanarora/matryoshka-attribution; parameter code https://github.com/aryamanarora/matryoshka-attribution-parameters; HF circuits https://huggingface.co/aryaman/mattr-mib-circuits; author https://aryaman.io/; MIB leaderboard https://mib-bench-leaderboard.hf.space/; MIB project https://mib-bench.github.io/.