NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Stable Knowledge Editing in Large Language Models

Zihao Wei, Liang Pang, Hanxing Ding, Jingcheng Deng, Huawei Shen, Xueqi ChengarXiv 2024 · DOI

Introduction

Large Language Models (LLMs) serve as vast repositories of factual knowledge. However, as the world evolves, this knowledge becomes obsolete. Updating these models without the prohibitive cost of full retraining is the goal of "knowledge editing" (KE). While several methods have been proposed, they often struggle with stability, especially when applied at scale.

The Stability Challenge

Existing KE methods like ROME, MEMIT, and MEND typically follow a "locate-then-edit" paradigm. These methods assume that knowledge is stored in isolated, specific parameters. However, LLM knowledge is highly interconnected. Changing a single fact can trigger a cascade of unintended consequences, leading to "model collapse" where the model loses its general reasoning and instruction-following capabilities.

The four dimensions of knowledge editing stability evaluated in this work: Edited Knowledge, Multi-hop Knowledge, Unrelated Knowledge, and General Ability.

The authors identify four critical dimensions of stability that any robust editing method must satisfy:

  1. Edited Knowledge Stability: The model must accurately learn and recall the new fact.
  2. Multi-hop Knowledge Stability: The edit must propagate through reasoning chains.
  3. Unrelated Knowledge Stability: Facts about unrelated entities must remain intact.
  4. General Ability Stability: The model's core linguistic and reasoning skills (e.g., classification, instruction following) must be preserved.

The StableKE Approach

To address these instabilities, the authors propose StableKE, a data-centric approach that shifts the focus from architectural manipulation to high-quality knowledge augmentation. StableKE treats editing as a specialized fine-tuning task, using two automated strategies powered by ChatGPT:

  • Semantic Paraphrase Enhancement (SPE): This generates diverse phrasings of the target fact, preventing the model from overfitting to a specific string and ensuring it understands the underlying concept.
  • Contextual Description Enrichment (CDE): By retrieving related terms from Wikidata and generating descriptive texts, this method reinforces the surrounding knowledge graph, protecting related but unedited information from degradation.

The model is then updated using Parameter-Efficient Fine-Tuning (PEFT) via LoRA on this augmented dataset.

KEBench: A Multi-dimensional Benchmark

To rigorously test these dimensions, the authors introduced KEBench, a tree-structured multi-hop benchmark derived from Wikidata. Unlike previous datasets, KEBench specifically targets the propagation of edits through reasoning chains and the preservation of unrelated knowledge, providing a more holistic view of model health post-edit.

Experimental Results

The performance of StableKE was compared against state-of-the-art baselines like MEMIT and ROME using Vicuna models. The results highlight a stark contrast in stability.

Comparison of General Ability Stability (MMLU accuracy) between MEMIT and StableKE across increasing batch sizes. StableKE maintains performance while MEMIT suffers catastrophic collapse.

In batch editing scenarios (1,000 facts), StableKE achieved an accuracy of 89.4% on edited facts, while MEMIT dropped to 41.4%. More importantly, as shown in the figure above, StableKE preserved the model's general capabilities (MMLU score of 42.49%), whereas baseline methods like MEMIT and ROME experienced near-total model collapse (dropping to ~25% accuracy) at large scales.

Furthermore, StableKE demonstrated superior performance in multi-hop reasoning, achieving 31.06% on composed 2-hop questions with Chain-of-Thought (CoT), compared to MEMIT's 5.40%.

Conclusion

StableKE demonstrates that the "localization fallacy"—the idea that knowledge is stored in isolated parameters—is a primary driver of instability in LLM editing. By focusing on data quality and contextual enrichment rather than complex weight-modifying algorithms, StableKE provides a robust, architecture-agnostic path toward maintaining up-to-date and reliable Large Language Models.

Summary updated

BibTeX
@misc{wei2024stable,
  author = {Zihao Wei and Liang Pang and Hanxing Ding and Jingcheng Deng and Huawei Shen and Xueqi Cheng},
  title = {{Stable Knowledge Editing in Large Language Models}},
  year = {2024},
  eprint = {2402.13048},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.13048},
}
Figure