Reinforced Lifelong Editing for Language Models

Zherui Li, Houcheng Jiang, Haopeng Chen, Baolong Bi, Zhenhong Zhou +3 more
2/14/2026

No official code found. Best implementation: zhrli324/RLEdit (22 stars, last commit 2025-02-23).

Abstract

Large language models (LLMs) acquire information from pre-training corpora, but their stored knowledge can become inaccurate or outdated over time. Model editing addresses this challenge by modifying model parameters without retraining, and prevalent approaches leverage hypernetworks to generate these parameter updates. However, they face significant challenges in lifelong editing due to their incompatibility with LLM parameters that dynamically change during the editing process. To address this, we observed that hypernetwork-based lifelong editing aligns with reinforcement learning modeling and proposed RLEdit, an RL-based editing method. By treating editing losses as rewards and optimizing hypernetwork parameters at the full knowledge sequence level, we enable it to precisely capture LLM changes and generate appropriate parameter updates. Our extensive empirical evaluation across several LLMs demonstrates that RLEdit outperforms existing methods in lifelong editing with superior effectiveness and efficiency, achieving a 59.24% improvement while requiring only 2.11% of the time compared to most approaches. Our code is available at: https://github.com/zhrli324/RLEdit.

View on arXivView PDF

Code Implementations(1)

zhrli324/RLEditCommunity59%

[ICML2025] Official code for "Reinforced Lifelong Editing for Language Models"

222Shell, PythonDec 24, 20241 years ago

Similar Papers

Cite this paper

@article{li2026reinforced,
  title  = {Reinforced Lifelong Editing for Language Models},
  author = {Zherui Li and Houcheng Jiang and Haopeng Chen and Baolong Bi and Zhenhong Zhou and Fei Sun and Junfeng Fang and Xiang Wang},
  year   = {2026},
  eprint = {2502.05759},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2502.05759},
  journal = {ICML 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.05759.svg)](https://codeofpaper.com/paper/2502.05759)

Discussion