Aging with GRACE: Lifelong Model Editing with Discrete Key-Value Adaptors
Tom Hartvigsen, Swami Sankaranarayanan, Hamid Palangi, Yoon Kim, Marzyeh Ghassemi
Abstract
Deployed language models decay over time due to shifting inputs, changing user needs, or emergent world-knowledge gaps. When such problems are identified, we want to make targeted edits while avoiding expensive retraining. However, current model editors, which modify such behaviors of pre-trained models, degrade model performance quickly across multiple, sequential edits. We propose GRACE, a lifelong model editing method, which implements spot-fixes on streaming errors of a deployed model, ensuring minimal impact on unrelated inputs. GRACE writes new mappings into a pre-trained model's latent space, creating a discrete, local codebook of edits without altering model weights. This is the first method enabling thousands of sequential edits using only streaming errors. Our experiments on T5, BERT, and GPT models show GRACE's state-of-the-art performance in making and retaining edits, while generalizing to unseen inputs. Our code is available at https://www.github.com/thartvigsen/grace.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
132 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- LoRA: Low-Rank Adaptation of Large Language Models cites Language Models are Few-Shot Learners
- Locating and Editing Factual Associations in GPT cites Language Models are Few-Shot Learners
- MELO: Enhancing Model Editing with Neuron-Indexed Dynamic LoRA cites LoRA: Low-Rank Adaptation of Large Language Models
- MELO: Enhancing Model Editing with Neuron-Indexed Dynamic LoRA cites Locating and Editing Factual Associations in GPT
- MELO: Enhancing Model Editing with Neuron-Indexed Dynamic LoRA cites Editing Large Language Models: Problems, Methods, and Opportunities
- Unveiling the Pitfalls of Knowledge Editing for Large Language Models cites Locating and Editing Factual Associations in GPT
- Unveiling the Pitfalls of Knowledge Editing for Large Language Models cites MELO: Enhancing Model Editing with Neuron-Indexed Dynamic LoRA
- Unveiling the Pitfalls of Knowledge Editing for Large Language Models cites Editing Large Language Models: Problems, Methods, and Opportunities
- An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale cites Language Models are Few-Shot Learners
- Editing Large Language Models: Problems, Methods, and Opportunities cites Locating and Editing Factual Associations in GPT
- Editing Large Language Models: Problems, Methods, and Opportunities cites Language Models are Few-Shot Learners
- WISE: Rethinking the Knowledge Memory for Lifelong Model Editing of Large Language Models cites LoRA: Low-Rank Adaptation of Large Language Models
- WISE: Rethinking the Knowledge Memory for Lifelong Model Editing of Large Language Models cites Locating and Editing Factual Associations in GPT
- WISE: Rethinking the Knowledge Memory for Lifelong Model Editing of Large Language Models cites Language Models are Few-Shot Learners
- WISE: Rethinking the Knowledge Memory for Lifelong Model Editing of Large Language Models cites Editing Large Language Models: Problems, Methods, and Opportunities
- BadEdit: Backdooring Large Language Models by Model Editing cites Locating and Editing Factual Associations in GPT
- BadEdit: Backdooring Large Language Models by Model Editing cites Language Models are Few-Shot Learners
Cited by top-tier papers132
- WISE: Rethinking the Knowledge Memory for Lifelong Model Editing of Large Language ModelsPeng Wang, Zexi Li, Ningyu Zhang, Ziwen Xu et al.NeurIPS 2024 · 125 citations
- BadEdit: Backdooring Large Language Models by Model EditingYanzhou Li, Tianlin Li, Kangjie Chen, Jian Zhang et al.ICLR 2024 · 116 citations
- MELO: Enhancing Model Editing with Neuron-Indexed Dynamic LoRALang Yu, Qin Chen, Jie Zhou, Liang HeAAAI 2024 · 96 citations
- Editing Large Language Models: Problems, Methods, and OpportunitiesYunzhi Yao, Peng Wang, Bozhong Tian, Siyuan Cheng et al.EMNLP 2023 · 83 citations
- Unveiling the Pitfalls of Knowledge Editing for Large Language ModelsZhoubo Li, Ningyu Zhang, Yunzhi Yao, Mengru Wang et al.ICLR 2024 · 47 citations
Builds on25
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
- LoRA: Low-Rank Adaptation of Large Language ModelsEdward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu et al.ICLR 2022 · 18,833 citations
- Locating and Editing Factual Associations in GPTKevin Meng, David Bau, Alex Andonian, Yonatan BelinkovNeurIPS 2022 · 3,415 citations
- Tent: Fully Test-Time Adaptation by Entropy MinimizationDequan Wang, Evan Shelhamer, Shaoteng Liu, Bruno A. Olshausen et al.ICLR 2021 · 1,731 citations
Related papers
- Grace: Language Models Meet Code EditsPriyanshu Gupta, Avishree Khare, Yasharth Bajpai, Saikat Chakraborty et al.FSE 2023 · 15 citations
- Fast Model Editing at ScaleEric Mitchell, Charles Lin, Antoine Bosselut, Chelsea Finn et al.ICLR 2022 · 527 citations
- MEMOIR: Lifelong Model Editing with Minimal Overwrite and Informed Retention for LLMsKe Wang, Yiming Qin, Nikolaos Dimitriadis, Alessandro Favero et al.NeurIPS 2025 · 15 citations
- Improving Sequential Model Editing with Fact RetrievalXiaoqi Han, Ru Li, Hongye Tan, Yuanlong Wang et al.EMNLP Findings 2023 · 2 citations
- ELDER: Enhancing Lifelong Model Editing with Mixture-of-LoRAJiaang Li, Quan Wang, Zhongnan Wang, Yongdong Zhang et al.AAAI 2025 · 6 citations
