Introduction
Large Language Models (LLMs) frequently suffer from factual obsolescence or hallucinations. While surgical model editing techniques like ROME and MEMIT offer a way to update specific facts without full retraining, they struggle with sequential updates. As a model learns a series of new facts, its parameter matrices drift significantly from their original state. This "parameter drift" introduces noise that eventually leads to catastrophic degradation, where the model loses its general intelligence and fails at basic tasks like summarization or sentiment analysis.
The EAC Framework
To address this, we introduce Editing Anchor Compression (EAC). EAC identifies and updates only the most critical "anchor" dimensions within a model's weight matrix, preserving the rest of the model's general knowledge.
The EAC process consists of three main stages:
- Identifying Editing Anchors: Instead of a global update, EAC uses a weighted-gradient saliency map (multiplying knowledge vector magnitude by loss gradient) to pinpoint dimensions most influential for the target fact.
- Information Compression: A hard threshold is applied to the saliency map, restricting updates to high-scoring anchor dimensions. This ensures that the majority of the parameter space remains untouched.
- Scored Elastic Net Regularization: To maintain stability, a modified Elastic Net regularization (combining L1 and L2 penalties) is integrated into the optimization process, further constraining parameter drift based on anchor scores.
Experimental Evaluation
The framework was evaluated on GPT2-XL and LLaMA-3 (8B) using the ZsRE and CounterFact benchmarks. General intelligence was monitored via downstream tasks including Natural Language Inference (NLI), Open-domain QA, Summarization, and Sentiment Analysis.
Key Results
- Preservation of General Ability: EAC preserved over 70% of the model's performance on downstream tasks, whereas standard editing methods often caused performance to collapse near zero after multiple edits.
- Sequential Reliability: Unlike ROME or MEMIT, which tend to "forget" early edits as new ones are added, EAC demonstrated superior knowledge retention and generalization over long sequences of up to 1,000 edits.
- Efficiency: The method maintains computational parity with standard editing techniques, as the overhead of anchor identification is offset by the sparsity of the subsequent update.
Conclusion
EAC demonstrates that surgical precision in model editing is not just about where in the model to edit, but which specific dimensions within a layer to modify. By compressing updates into critical anchors, we can successfully teach LLMs new information sequentially without sacrificing their foundational reasoning capabilities. Future work will explore the application of EAC to non-factual knowledge and batch-sequential editing scenarios.
Summary updated