UltraEdit: Training-, Subject-, and Memory-Free Lifelong Editing in Large Language Models

Xiaojie Gu, Guangxu Chen, Jungang Li, Jia-Chen Gu, Xuming Hu, Kai Zhang

Abstract

Lifelong learning enables large language models (LLMs) to adapt to evolving information by continually updating their internal knowledge. An ideal system should support efficient, wide-ranging updates while preserving existing capabilities and ensuring reliable deployment. We propose UltraEdit, a fundamentally new editing solution that is training-, subject-, and memory-free. UltraEdit performs editing through a self-contained process relying on lightweight linear algebra to compute parameter shifts. To improve scalability, it employs a lifelong normalization strategy that continuously updates feature statistics across turns, adapting to distributional shifts. UltraEdit achieves editing speeds over 7x faster than previous state-of-the-art methods while consuming less than 1/3 the VRAM, enabling 7B LLM editing on consumer-grade hardware. We demonstrate that our method supports up to 1 million edits while maintaining high accuracy on our new 2M-pair dataset, UltraEditBench.

Introduction

Large Language Models (LLMs) are typically static snapshots of knowledge at the time of their training. To maintain relevance in a dynamic world, they require continuous updates. Traditional model editing has faced three primary hurdles:

  1. Scalability: Most methods suffer from "Edit Collapse," where performance drops sharply after a few thousand edits.
  2. Resource Intensity: Solutions often require training auxiliary hypernetworks or maintaining massive external memories that grow linearly with the number of edits.
  3. Structural Assumptions: Many techniques are "subject-centric," requiring clear entity identification in prompts, which is often impractical for messy real-world data.

UltraEdit addresses these challenges by providing a streamlined, ultra-scalable framework for lifelong model editing that is both computationally efficient and robust to representation drift.

Methodology: Lifelong Normalization

UltraEdit introduces a one-step approach to parameter updates. Its core innovation is the Lifelong Normalization mechanism, which acts as a form of "online whitening" for the model's internal features.

The Lifelong Normalization process in UltraEdit, showing how feature statistics (mean and variance) are updated across editing turns to maintain mathematical stability.

The process involves three main components:

  • Feature Extraction: Capturing the hidden state (identifying where knowledge is located) and the gradient (indicating how parameters should shift) for each edit.
  • Statistical Tracking: As internal representations drift during editing, UltraEdit maintains running statistics of these features. This ensures the mathematical system for calculating shifts remains well-conditioned over millions of updates.
  • Closed-Form Update: UltraEdit solves a regularized least-squares problem in a single step, avoiding iterative optimization and external memory requirements.

Experimental Evaluation

We evaluated UltraEdit across several benchmarks, including the newly constructed UltraEditBench-2M, the largest dataset in the field with over 2 million editing pairs. Other benchmarks included ZsRE, FEVER, WikiBigEdit, and UnKE, tested across six diverse models including GPT-J, Mistral-7B, and LLaMA-3-8B.

Results and Discussion

UltraEdit demonstrates significant improvements in efficiency and scalability compared to baselines like RLEdit, AlphaEdit, and WISE.

Comparison of editing efficacy vs. time (a) and efficacy vs. number of edits (b). UltraEdit maintains high performance at scale and speed compared to existing paradigms.

Key Findings:

  • Efficiency: UltraEdit is 7.78x faster than RLEdit and uses 75% less VRAM, making it the only method capable of editing a 7B model on a single 24GB consumer GPU (e.g., RTX 3090/4090).
  • Scalability: While previous methods typically degrade after 10,000 to 50,000 edits, UltraEdit maintains high accuracy across 1 million edits on the UltraEditBench.
  • Stability: The lifelong normalization strategy is the "secret sauce" for preventing Edit Collapse. Ablation studies show that removing this component causes efficacy to drop from ~84% to ~36%.
  • Generalization: UltraEdit preserves the model's general intelligence, showing negligible impact on standard benchmarks like MMLU and SST even after 20,000 edits.

Conclusion

UltraEdit represents a significant step toward practical lifelong LLM adaptation. By combining linear algebra efficiency with statistical normalization, it overcomes the resource and scalability barriers of prior editing paradigms. Future work will focus on refining gradient-based localization to reduce noise from non-semantic tokens and scaling the approach to even larger model architectures as hardware allows.

Summary updated

Abstract

Lifelong learning enables large language models (LLMs) to adapt to evolving information by continually updating their internal knowledge. An ideal system should support efficient, wide-ranging updates while preserving existing capabilities and ensuring reliable deployment. Model editing stands out as a promising solution for this goal, offering a focused and efficient way to revise a model's internal knowledge. Although recent paradigms have made notable progress, they often struggle to meet the demands of practical lifelong adaptation at scale. To bridge this gap, we propose ULTRAEDIT-a fundamentally new editing solution that is training-, subject- and memory-free, making it particularly well-suited for ultra-scalable, real-world lifelong model editing. ULTRAEDIT performs editing through a self-contained process that relies solely on lightweight linear algebra operations to compute parameter shifts, enabling fast and consistent parameter modifications with minimal overhead. To improve scalability in lifelong settings, ULTRAEDIT employs a lifelong normalization strategy that continuously updates feature statistics across turns, allowing it to adapt to distributional shifts and maintain consistency over time. ULTRAEDIT achieves editing speeds over 7x faster than the previous state-of-the-art method-which was also the fastest known approach-while consuming less than 1/3 the VRAM, making it the only method currently capable of editing a 7B LLM on a 24GB consumer-grade GPU. Furthermore, we construct ULTRAEDITBENCH-the largest dataset in the field to date, with over 2M editing pairs-and demonstrate that our method supports up to 1M edits while maintaining high accuracy. Comprehensive experiments on four datasets and six models show that ULTRAEDIT consistently achieves superior performance across diverse model editing scenarios. Our code is available at: https://github.com/XiaojieGu/UltraEdit.
BibTeX
@article{gu2026ultraedit,
  author = {Xiaojie Gu and Guangxu Chen and Jungang Li and Jia-Chen Gu and Xuming Hu and Kai Zhang},
  title = {{UltraEdit: Training-, Subject-, and Memory-Free Lifelong Editing in Large Language Models}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2026},
}
Figure