LyapLock: Bounded Knowledge Preservation in Sequential Large Language Model Editing

Peng Wang, Biyu Zhou, Xuehai Tang, Jizhong Han, Songlin Hu
5/21/2025
cs.CL

Official code: caskcsg/LyapLock (3 stars, last commit 2025-05-21).

Abstract

Large Language Models often contain factually incorrect or outdated knowledge, giving rise to model editing methods for precise knowledge updates. However, current mainstream locate-then-edit approaches exhibit a progressive performance decline during sequential editing, due to inadequate mechanisms for long-term knowledge preservation. To tackle this, we model the sequential editing as a constrained stochastic programming. Given the challenges posed by the cumulative preservation error constraint and the gradually revealed editing tasks, \textbf{LyapLock} is proposed. It integrates queuing theory and Lyapunov optimization to decompose the long-term constrained programming into tractable stepwise subproblems for efficient solving. This is the first model editing framework with rigorous theoretical guarantees, achieving asymptotic optimal editing performance while meeting the constraints of long-term knowledge preservation. Experimental results show that our framework scales sequential editing capacity to over 10,000 edits while stabilizing general capabilities and boosting average editing efficacy by 11.89\% over SOTA baselines. Furthermore, it can be leveraged to enhance the performance of baseline methods. Our code is released on https://github.com/caskcsg/LyapLock.

View on arXivView PDF

Code Implementations(1)

caskcsg/LyapLockOfficial100%
31PythonMay 21, 20251 years ago

Cite this paper

@article{wang2025lyaplock,
  title  = {LyapLock: Bounded Knowledge Preservation in Sequential Large Language Model Editing},
  author = {Peng Wang and Biyu Zhou and Xuehai Tang and Jizhong Han and Songlin Hu},
  year   = {2025},
  eprint = {2505.15702},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.15702v2}
}

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/2505.15702.svg)](https://codeofpaper.com/paper/2505.15702)

Discussion