English

Mass-Editing Memory in a Transformer

Computation and Language 2023-08-03 v2 Machine Learning

Abstract

Recent work has shown exciting promise in updating large language models with new memories, so as to replace obsolete information or add specialized knowledge. However, this line of work is predominantly limited to updating single associations. We develop MEMIT, a method for directly updating a language model with many memories, demonstrating experimentally that it can scale up to thousands of associations for GPT-J (6B) and GPT-NeoX (20B), exceeding prior work by orders of magnitude. Our code and data are at https://memit.baulab.info.

Keywords

Cite

@article{arxiv.2210.07229,
  title  = {Mass-Editing Memory in a Transformer},
  author = {Kevin Meng and Arnab Sen Sharma and Alex Andonian and Yonatan Belinkov and David Bau},
  journal= {arXiv preprint arXiv:2210.07229},
  year   = {2023}
}

Comments

18 pages, 11 figures. Code and data at https://memit.baulab.info

R2 v1 2026-06-28T03:34:53.252Z