Introduction
Large Language Models (LLMs) frequently require updates to correct factual errors or incorporate new information. While "locate-then-edit" methods like ROME and MEMIT are efficient for single updates, they struggle with sequential editing. In real-world deployments, a model might be edited thousands of times. Current methods treat "preservation loss"—the need to keep original knowledge intact—as a soft constraint or heuristic penalty. Consequently, small parameter shifts accumulate, leading to a monotonic increase in preservation loss and eventual catastrophic forgetting or total performance collapse, often after just a few thousand edits. LyapLock addresses this by providing a rigorous theoretical framework to regulate these long-term cumulative trends.
Methodology: Constrained Long-Term Optimization
The authors move away from simple bi-objective optimization and reformulate sequential editing as constrained stochastic programming.
LyapLock aims to minimize long-term editing loss while ensuring the average preservation loss stays below a specific threshold ($D$). To achieve this, the framework introduces:
- Virtual Queues ($Z(t)$): Borrowed from network traffic control, these represent the cumulative deviation from the preservation threshold.
- Lyapunov Optimization: A Lyapunov function measures the "congestion" or instability of the virtual queue. By minimizing the "Lyapunov drift plus penalty," the complex long-term problem is decomposed into tractable, stepwise subproblems.
- Adaptive Weighting: The update rule dynamically adjusts the weight assigned to preserving old knowledge based on the state of the virtual queue. If the model is at risk of collapse, LyapLock automatically prioritizes preservation.
Experimental Evaluation
The framework was evaluated on GPT2-XL, GPT-J, and LLaMA3-8B using benchmarks including CounterFact (factual knowledge), ZsRE (relation extraction), and the GLUE benchmark to monitor general language capabilities (e.g., CoLA, MNLI, MRPC).
Key Results and Stability
LyapLock outperformed the best baseline (AlphaEdit) by an average of 11.89% in editing efficacy. On the GPT2-XL ZsRE task, it achieved 84.96% efficacy compared to AlphaEdit's 55.33%.
The most significant finding is LyapLock's ability to maintain model stability over long sequences. While baseline models collapsed (GLUE scores hitting near-zero) after 10,000 edits, LyapLock remained stable even up to 20,000 edits.
Despite the added theoretical rigor, LyapLock remains computationally efficient, often showing lower time-per-edit costs than SOTA baselines like AlphaEdit.
Conclusion and Future Work
LyapLock demonstrates that model collapse is not an inevitable consequence of sequential editing, but rather a failure of current optimization strategies. By treating preservation as a stability problem, it provides the first model editing approach with rigorous theoretical guarantees. Future work will focus on validating the method on even larger-scale datasets and diverse tasks such as code generation and mathematical reasoning.
Summary updated