Introduction
Large Language Models (LLMs) are typically static after training, causing their internal knowledge to become outdated. While Knowledge Editing (KE) techniques like ROME and MEMIT allow for surgical updates to specific facts without full retraining, they are primarily designed for single-edit scenarios. In real-world applications, models require Lifelong Knowledge Editing—the ability to process hundreds or thousands of sequential updates over time. This paper introduces WilKE (Wise-Layer Knowledge Editor) to address the catastrophic performance collapse observed during continuous model updating.
The Problem: Toxicity Buildup and Flash
Current state-of-the-art KE methods fail in lifelong editing scenarios due to two newly identified phenomena:
- Toxicity Buildup: A gradual degradation where small, irrelevant parameter changes accumulate over many steps until the model fails.
- Toxicity Flash: A sudden spike where a single edit causes massive, abnormal parameter changes (overfitting), rendering the model immediately useless for future updates.
These failures result in a "step-like" performance collapse. While a model might appear to successfully learn a new fact in a single-edit benchmark, it may secretly corrupt its internal parameter distribution, making subsequent learning impossible.
Methods: The Wise-Layer Selection
The researchers trace these failures to Pattern Unmatch. Existing methods typically target a fixed, predefined layer for all edits. However, because knowledge is distributed across different layers, forcing an edit into an "unmatched" layer causes optimization to go haywire.
WilKE introduces a dynamic "Wise-Layer" selection mechanism. Instead of using a fixed layer, WilKE evaluates multiple layers for every new edit and selects the optimal layer ($l^*$) that best matches the input pattern. This selection is based on a ratio balancing three factors: optimization potential, activation strength (how strongly neurons respond to the subject), and weight normalization.
By finding the "path of least resistance" within the model's existing architecture, WilKE performs cleaner edits that preserve the integrity of the model's parameters.
Experimental Results
WilKE was evaluated using the CounterFact benchmark on GPT2-XL (1.5B) and GPT-J (6B) models over 1,024 sequential edits.
- Performance Gains: WilKE achieved a 46.2% average performance improvement on GPT2-XL and a dramatic 67.8% improvement on GPT-J compared to previous state-of-the-art methods.
- Stability and Retention: While traditional methods saw their ability to remember previous edits drop to near zero after a few hundred steps, WilKE maintained significantly higher retention scores.
- Handling Problematic Data: The authors demonstrated that WilKE successfully handles "toxic" data points that typically trigger a Toxicity Flash in other editors by correctly identifying that their primary information is extracted at different layers than standard facts.
Conclusion
WilKE demonstrates that the key to stable lifelong knowledge editing lies in architectural flexibility. By dynamically selecting the most appropriate layer for each update, WilKE prevents the accumulation of parameter toxicity, allowing LLMs to remain accurate and functional over long sequences of updates. Future work will explore extending this wise-layer approach to distributed multi-layer editing and larger model scales.
Summary updated