Saved in:
Bibliographic Details
Main Authors: Wang, Ke, Qin, Yiming, Dimitriadis, Nikolaos, Favero, Alessandro, Frossard, Pascal
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2506.07899
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917239921311744
author Wang, Ke
Qin, Yiming
Dimitriadis, Nikolaos
Favero, Alessandro
Frossard, Pascal
author_facet Wang, Ke
Qin, Yiming
Dimitriadis, Nikolaos
Favero, Alessandro
Frossard, Pascal
contents Language models deployed in real-world systems often require post-hoc updates to incorporate new or corrected knowledge. However, editing such models efficiently and reliably-without retraining or forgetting previous information-remains a major challenge. Existing methods for lifelong model editing either compromise generalization, interfere with past edits, or fail to scale to long editing sequences. We propose MEMOIR, a novel scalable framework that injects knowledge through a residual memory, i.e., a dedicated parameter module, while preserving the core capabilities of the pre-trained model. By sparsifying input activations through sample-dependent masks, MEMOIR confines each edit to a distinct subset of the memory parameters, minimizing interference among edits. At inference, it identifies relevant edits by comparing the sparse activation patterns of new queries to those stored during editing. This enables generalization to rephrased queries by activating only the relevant knowledge while suppressing unnecessary memory activation for unrelated prompts. Experiments on question answering, hallucination correction, and out-of-distribution generalization benchmarks for LLaMA-3 and Mistral backbones demonstrate that MEMOIR achieves state-of-the-art performance across reliability, generalization, and locality metrics, scaling to thousands of sequential edits with minimal forgetting.
format Preprint
id arxiv_https___arxiv_org_abs_2506_07899
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle MEMOIR: Lifelong Model Editing with Minimal Overwrite and Informed Retention for LLMs
Wang, Ke
Qin, Yiming
Dimitriadis, Nikolaos
Favero, Alessandro
Frossard, Pascal
Computation and Language
Machine Learning
Language models deployed in real-world systems often require post-hoc updates to incorporate new or corrected knowledge. However, editing such models efficiently and reliably-without retraining or forgetting previous information-remains a major challenge. Existing methods for lifelong model editing either compromise generalization, interfere with past edits, or fail to scale to long editing sequences. We propose MEMOIR, a novel scalable framework that injects knowledge through a residual memory, i.e., a dedicated parameter module, while preserving the core capabilities of the pre-trained model. By sparsifying input activations through sample-dependent masks, MEMOIR confines each edit to a distinct subset of the memory parameters, minimizing interference among edits. At inference, it identifies relevant edits by comparing the sparse activation patterns of new queries to those stored during editing. This enables generalization to rephrased queries by activating only the relevant knowledge while suppressing unnecessary memory activation for unrelated prompts. Experiments on question answering, hallucination correction, and out-of-distribution generalization benchmarks for LLaMA-3 and Mistral backbones demonstrate that MEMOIR achieves state-of-the-art performance across reliability, generalization, and locality metrics, scaling to thousands of sequential edits with minimal forgetting.
title MEMOIR: Lifelong Model Editing with Minimal Overwrite and Informed Retention for LLMs
topic Computation and Language
Machine Learning
url https://arxiv.org/abs/2506.07899