# Mass-Editing Memory in a Transformer

- **ID:** 1413
- **Kind:** paper
- **URL:** https://arxiv.org/abs/2210.07229
- **Authors:** Kevin Meng, Arnab Sharma, Alex Andonian, Yonatan Belinkov, David Bau
- **Venue:** ICLR 2023
- **Published:** 2022
- **Source:** arxiv
- **Language:** en
- **Access:** free
- **Added:** 2026-10-19
- **Verified:** 2026-10-19
- **Page:** https://papers.projxon.ai/entries/1413

## Summary

The canonical mass-insertion method and the direct answer to the "insert knowledge with no training" ask: scales ROME's locate-then-edit to many edits at once via batch closed-form updates spread across multiple MLP layers. Causal tracing identifies the decisive mid-layer FFN activations; a rank-one update per layer writes new factual associations with zero gradient training per edit (key vectors estimated from activation samples). Authors' result: thousands of associations inserted into GPT-J (6B) and GPT-NeoX (20B), "exceeding prior work by orders of magnitude." Everything downstream in the closed-form line (PMET, AlphaEdit) builds on it. Limitations to label: edit-benchmark success (reliability/generalization/locality) is not the same as pretraining-quality knowledge; sequential-editing degradation is evidenced by later work (AlphaEdit's null-space protection is bounded at high edit counts per a reproducibility study).

## Research notes

- Discovery: Hudson asked for a knowledge-insertion survey 2026-10-19 7:11 PM ET; MEMIT was the survey's #1 cataloging pick ("the canonical mass-insertion method"). Hudson approved all five picks same turn ("Queue all five"). Relevance: (1) cheapest knowledge-insertion primitive in the catalog — zero per-edit training vs ID 488's LoRA/full FT and ID 1626's conditional-memory optimization; (2) pairs with ID 1593 (MLPs Are Hebbians) as the constructive counterpart to the capacity theory — this is the "write" operation for the fact-storing MLPs that paper characterizes; (3) pairs with #69 (Fisher sparsity): both ask which parameters to change, from opposite directions — MEMIT finds them by causal tracing, #69 by pre-training Fisher. Watchlist: ROME (NeurIPS 2022, arXiv 2202.05262, MEMIT's ancestor — MEMIT covers it, not separately cataloged); PMET (arXiv 2308.08742, preprint); AlphaEdit (arXiv 2410.02355, ICLR 2025).
- License: arXiv default nonexclusive-distrib (paper); code MIT — official repo github.com/kmeng01/memit carries MIT License + LICENSE file (verified 2026-10-20)

## Similar entries

- [Agent Memory Repo (Cognition) — open spec for persistent agent memory](https://papers.projxon.ai/entries/1269) (code, #1269)
- [The Surprising Effectiveness of Shared Memory in Looped Transformers](https://papers.projxon.ai/entries/1255) (paper, #1255)
- [EngramEdit: Decoupled Knowledge Updates in LLMs through Conditional Memory](https://papers.projxon.ai/entries/1319) (paper, #1319)
- [Block Delta Memory (BDM): Sparse Recurrent Memory with Dense Execution](https://papers.projxon.ai/entries/1060) (code, #1060)
- [Balancing Memory Pathways: Analyzing and Improving Memory Utilization in Hybrid LMs](https://papers.projxon.ai/entries/1282) (paper, #1282)
- [Memory Caching: RNNs with Growing Memory](https://papers.projxon.ai/entries/461) (paper, #461)
