Energy-Regularized Sequential Model Editing on Hyperspheres

Qingyuan Liu, Jia-Chen Gu, Yunzhi Yao, Hong Wang, Nanyun Peng · OpenReview

Abstract

Large language models (LLMs) require constant updates to remain aligned with evolving real-world knowledge. Model editing offers a lightweight alternative to retraining, but sequential editing often destabilizes representations and induces catastrophic forgetting. In this work, we seek to better understand and mitigate performance degradation caused by sequential editing. We hypothesize that hyperspherical uniformity, a property that maintains uniform distribution of neuron weights on a hypersphere, helps the model remain stable, retain prior knowledge, while still accommodate new updates. We use Hyperspherical Energy (HE) to quantify neuron uniformity during editing, and examine its correlation with editing performance. Empirical studies across widely used editing methods reveals a strong correlation between HE dynamics and editing performance, with editing failures consistently coinciding with high HE fluctuations. We further theoretically prove that HE dynamics impose a lower bound on the degradation of pretrained knowledge, highlighting why HE stability is crucial for knowledge retention. Motivated by these insights, we propose SPHERE (Sparse Projection for Hyperspherical Energy-Regularized Editing), an HE-driven regularization strategy that stabilizes neuron weight distributions, ultimately preserving prior knowledge while enabling reliable sequential updates. Specifically, SPHERE identifies a sparse space complementary to the principal hyperspherical directions of the pretrained weight matrices and projects new knowledge onto it, attenuating perturbations on the principal directions. Extensive experiments on LLaMA3 (8B) and Qwen2.5 (7B) show that SPHERE outperforms the best baseline in editing capability by an average of 16.41%, while most faithfully preserving general model performance, thereby offering a principled path toward reliable large-scale knowledge editing.

Introduction

Large Language Models (LLMs) are increasingly used as dynamic knowledge bases. However, keeping them up-to-date with a constant stream of new information remains a significant challenge. While model editing has emerged as a lightweight alternative to full retraining, it faces a critical bottleneck: sequential editing. When subjected to thousands of consecutive updates, existing methods often suffer from representation collapse, leading to "catastrophic forgetting" where the model loses its general reasoning abilities or fails to learn new facts entirely.

The Geometry of Stability: Hyperspherical Uniformity

This research approaches the stability problem through a geometric lens, specifically focusing on Hyperspherical Uniformity. The core hypothesis is that for a model to remain stable and expressive, its neuron weights should be distributed uniformly on a hypersphere.

To quantify this, the authors utilize Hyperspherical Energy (HE). Low HE indicates a uniform distribution, while high HE suggests that neurons are clustering or "collapsing" into a narrower space. Empirical analysis reveals that model failure in sequential editing is almost always preceded by a sharp spike in HE, making it a reliable "canary in the coal mine" for predicting representation collapse.

Visualizing weight distribution: (a) Pretrained weights, (b) Clustering in current methods, and (c) Uniformity maintained by SPHERE.

The SPHERE Framework

Motivated by the correlation between HE stability and knowledge retention, the authors propose SPHERE (Sparse Projection for Hyperspherical Energy-Regularized Editing). SPHERE is a plug-and-play regularization strategy designed to protect the model's structural integrity during updates. The method follows a three-step process:

  1. Principal Space Estimation: It identifies the "principal directions" of the pretrained weight matrix—the directions that capture the most critical structural information.
  2. Sparse Space Definition: It defines a sparse space that is the orthogonal complement to these principal directions.
  3. Projection: When an editing algorithm generates a weight update, SPHERE projects that update onto the sparse space. This ensures that new knowledge is added without perturbing the "load-bearing" directions of the original model.

Experimental Evaluation

The effectiveness of SPHERE was evaluated using datasets like CounterFact and ZsRE, alongside general reasoning benchmarks such as GSM8K and RTE.

Key Insights and Results

  • HE-Performance Correlation: Across various editing methods like ROME, MEMIT, and AlphaEdit, a strong negative correlation exists between HE and editing accuracy. As HE increases (indicating distribution collapse), performance metrics typically plummet.
Correlation between Hyperspherical Energy (HE) and editing performance across different methods.
  • Massive Scalability: On LLaMA3-8B, SPHERE maintained high editing efficacy even after 15,000 sequential edits. In contrast, most baselines collapsed before reaching 3,000 edits.
  • Superior Performance: SPHERE outperformed the previous state-of-the-art (AlphaEdit) by an average of 16.41% in editing capability. When integrated into existing methods like MEMIT, it improved their performance by an average of 38.71%.
  • Preserving General Intelligence: While other methods saw reasoning scores (GSM8K) drop to zero, SPHERE-edited models remained remarkably close to their original performance levels, effectively preventing the model from becoming a "zombie."

Conclusion

SPHERE provides a principled, geometric approach to the problem of sequential model editing. By maintaining hyperspherical uniformity and protecting the principal directions of pretrained weights, it enables LLMs to undergo large-scale knowledge updates without sacrificing their fundamental reasoning capabilities. This work highlights HE stability as a crucial requirement for reliable, long-term knowledge management in large language models.

Summary updated

BibTeX
@inproceedings{liu2026energy,
  author = {Qingyuan Liu and Jia-Chen Gu and Yunzhi Yao and Hong Wang and Nanyun Peng},
  title = {{Energy-Regularized Sequential Model Editing on Hyperspheres}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=CHsdtzCip6},
}
Figure