Perturbation-Restrained Sequential Model Editing

Jun-Yu Ma, Hong Wang, Hao-Xiang Xu, Zhen-Hua Ling, Jia-Chen Gu

TL;DR

Sequential model editing—the process of updating a Large Language Model's (LLM) knowledge base one fact at a time—often leads to a "catastrophic collapse" of the model's general reasoning and linguistic abilities. This paper identifies the mathematical culprit: an exploding condition number in the edited weight matrices. To fix this, the authors introduce PRUNE, a plug-and-play framework that regularizes the singular values of edit updates, successfully preserving a model's general intelligence even after hundreds of successive edits.

The Challenge of Sequential Editing

Large Language Models (LLMs) are not static; they frequently require updates to correct false information or integrate new knowledge. While "model editing" techniques like ROME or MEMIT work well for isolated changes, they struggle with sequential editing.

As you feed a model a series of new facts, its performance on unrelated downstream tasks (like math reasoning or summarization) tends to plummet. Previous research documented this "model collapse" but lacked a rigorous theoretical explanation for why it happens. This paper seeks to bridge that gap by providing a mathematical diagnosis and a practical cure to make continual learning in LLMs more stable.

Overview of PRUNE and its impact on sequential editing

Diagnosing the Collapse: Matrix Perturbation Theory

The authors turn to Matrix Perturbation Theory to analyze how weight changes affect a model. They discover that the bottleneck is the condition number ($\kappa$) of the edited weight matrix. In numerical analysis, a high condition number indicates that a matrix is extremely sensitive to small changes. When this number explodes during sequential edits, the "original" knowledge associations in the LLM become fragile and easily distorted.

The PRUNE Framework

To counteract this degradation, the authors propose PRUNE (Perturbation Restraint on Upper bouNd for Editing). The method works in three main steps:

  1. SVD Analysis: When an editing method produces a weight update ($\Delta W$), PRUNE performs a Singular Value Decomposition (SVD) on both the original weight matrix and the update.
  2. Singular Value Restraint: The authors found that sequential edits cause the largest singular values of the weight matrix to grow uncontrollably, representing an "overfitting" to the new facts. PRUNE applies a logarithmic restraint function to any singular value in the update that exceeds the maximum singular value of the original matrix.
  3. Preservation: By "squashing" these outlier values, PRUNE lowers the upper bound of the perturbation. This ensures the model's internal associations remain stable without sacrificing the efficacy of the new edit.

Key Results and Insights

The researchers evaluated PRUNE against standard versions of three popular editing methods (MEND, ROME, and MEMIT) across models like GPT-2 XL, LLaMA-2 (7B), and LLaMA-3 (8B). They tested factual and conceptual knowledge updates, alongside general abilities using datasets like GSM8K (math), SAMSum (summarization), and Natural Questions.

  • Preserving General Abilities: The results were stark. On LLaMA-2 (7B) using the MEMIT method, general reasoning performance dropped to nearly 0% after 100 regular edits. With PRUNE, the model maintained its reasoning performance near the unedited baseline.
  • Maintaining Edit Efficacy: PRUNE doesn't just save general abilities; it also helps the model remember previous edits. In sequential scenarios, standard models often "forget" the 1st edit by the time they reach the 100th. PRUNE significantly mitigated this forgetting, keeping edit efficacy and generalization scores high.
  • The Condition Number as a "Pulse": The authors demonstrated a direct correlation between the explosion of the condition number and the death of general abilities. Monitoring this value provides a clear signal of when a model is about to collapse.
  • Scalability: The framework is computationally efficient, requiring only a one-time SVD operation per edit, making it highly viable for real-world continual learning.

Limitations and Future Work

While PRUNE offers a robust solution for sequential editing, the current study focuses on editing one fact at a time. "Batch editing" (updating hundreds of facts simultaneously) remains an area for future investigation. Additionally, while tested on models up to 8B parameters, further research is needed to confirm these findings on frontier models (70B+ parameters). Finally, exploring other non-linear functions beyond the logarithmic restraint might yield even better stability-performance trade-offs.

Summary updated

BibTeX
@inproceedings{ma2025perturbation,
  author = {Jun-Yu Ma and Hong Wang and Hao-Xiang Xu and Zhen-Hua Ling and Jia-Chen Gu},
  title = {{Perturbation-Restrained Sequential Model Editing}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=bfI8cp8qmk},
}
Figure