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

The Butterfly Effect of Model Editing: Few Edits Can Trigger Large Language Models Collapse

Wanli Yang, Fei Sun, Xinyu Ma, Xun Liu, Dawei Yin, Xueqi Cheng · DOI

Abstract

Model editing has emerged as a promising technique for updating specific facts in Large Language Models (LLMs) without the prohibitive cost of full retraining. However, this study reveals a critical vulnerability: a "butterfly effect" where even a single surgical edit can trigger catastrophic model collapse. We demonstrate that perplexity serves as an efficient early-warning signal for this degradation and introduce HardEdit, a benchmark designed to stress-test the reliability of editing methods. Our findings show that current state-of-the-art techniques are highly sensitive to specific "hard cases," leading to a total loss of general reasoning and linguistic capabilities.

Introduction

Large Language Models are essentially static snapshots of knowledge captured during their training phase. To maintain their relevance—such as updating a company’s leadership or reflecting recent global events—researchers have developed model editing techniques. Methods like Rank-One Model Editing (ROME) and MEMIT (Mass-Editing Memory in Transformer) attempt to modify specific parameters to inject new information while preserving the model's broader knowledge base.

Despite the precision of these "surgical strikes," this research identifies a significant side effect: model collapse. In many instances, the editing process causes the model to lose its general capabilities, transforming a coherent assistant into a generator of gibberish. Because evaluating a model’s health across a full battery of benchmarks (e.g., PIQA, Hellaswag) after every edit is computationally expensive, this collapse often goes undetected until it is total. This paper addresses the need for rapid detection and more rigorous stress-testing of editing robustness.

Methodology

Perplexity as a Surrogate Metric

The researchers propose using perplexity—a measure of how well a probability distribution predicts a sample—as a proxy for general performance. By monitoring the model's perplexity on a standard corpus, researchers can detect the onset of collapse without running exhaustive downstream benchmarks. The study introduces ME-PPL, a high-quality dataset curated from Wikipedia and BookCorpus specifically designed to calculate perplexity reliably during the editing process.

Identifying "Hard Cases"

Not all edits are created equal. By analyzing which modifications triggered the most damage, the authors identified "hard cases." These typically involve common, single-word subjects positioned at the start of a prompt (e.g., "France is..." or "Apple is..."). These subjects appear to be "load-bearing" facts within the model's architecture; modifying the parameters associated with them can unravel the model's internal representations.

The HardEdit Benchmark

To provide a rigorous testing ground, the authors developed HardEdit, a benchmark consisting of 469 samples generated using GPT-3.5. This dataset focuses on counterfactual statements and single-word subjects that follow the patterns of identified hard cases. Additionally, the study utilizes HardCF, a subset of 107 instances from the COUNTERFACT dataset known to trigger collapse in single-edit trials.

Experimental Results

The Fragility of Single Edits

The most striking finding is the fragility of models like GPT-2-XL and GPT-J. Using the ROME method on the COUNTERFACT dataset, the authors triggered total collapse in 77 instances for GPT-2-XL and 85 instances for GPT-J. In these states, the models' performance on the PIQA task plummeted from approximately 75% to 50%, effectively reducing the model to random guessing.

Perplexity Explosion

Perplexity proved to be a highly sensitive "canary in the coal mine." For Llama2-7b, a stable edit might maintain a perplexity of ~37. However, a collapsed edit can see this number jump to over 7,000, or in extreme cases, as high as 10^11. The study found a strong Spearman’s Rho correlation between increased perplexity and decreased accuracy across tasks like PIQA and LAMBADA, validating perplexity as an efficient monitoring tool.

Sequential Editing and Scalability

While "Locate-then-Edit" methods (ROME, MEMIT) are more robust than standard fine-tuning, they remain vulnerable during sequential editing—where a model is updated multiple times. In tests on the HardEdit dataset, almost all examined models (including Llama2-7b and Mistral-7b) suffered significant damage within a few dozen edits. This suggests that the cumulative effect of even "successful" edits can eventually lead to instability.

Discussion and Limitations

While the study successfully identifies the phenomenon of model collapse and provides tools for its detection, several questions remain. The underlying mathematical reason why specific parameter shifts cause global instability is still unknown. Furthermore, the study does not propose a "cure" or a collapse-proof algorithm, focusing instead on benchmarking and diagnostic metrics. Due to hardware constraints, the research was limited to models up to 7 billion parameters; whether larger models (70B+) exhibit more resilience to this butterfly effect remains an open question.

Conclusion

The "butterfly effect" in model editing poses a significant challenge for the deployment of LLMs that require frequent updates. By establishing perplexity as a reliable surrogate for model health and providing the HardEdit benchmark, this work offers a foundation for developing more robust editing techniques. Future research must focus on the root causes of this instability to ensure that updating a single fact does not inadvertently destroy the model's intelligence.

Summary updated

BibTeX
@inproceedings{yang2024butterfly,
  author = {Wanli Yang and Fei Sun and Xinyu Ma and Xun Liu and Dawei Yin and Xueqi Cheng},
  title = {{The Butterfly Effect of Model Editing: Few Edits Can Trigger Large Language Models Collapse}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.322},
}
Figure