Outdated Issue Aware Decoding for Factual Knowledge Editing

Zengkui Sun, Yijin Liu, Jiaan Wang, Fandong Meng, Jinan Xu, Yufeng Chen, Jie Zhou

Abstract

Large Language Models (LLMs) often struggle to reason with newly edited knowledge, frequently reverting to "outdated" facts for complex queries. This paper introduces DISCO (outDated ISsue aware deCOding), a training-free decoding strategy that amplifies the influence of edited knowledge by contrasting the probability distributions of the original and edited models, significantly improving reasoning performance and portability.

Introduction

Knowledge Editing (KE) has emerged as a critical technique for updating specific facts within pre-trained Large Language Models (LLMs) without the prohibitive cost of full retraining. While existing methods like ROME and MEMIT excel at "memorizing" direct factual updates, they often fail to propagate these changes to related contexts. This failure manifests as the Outdated Issue, where a model correctly answers a direct question about an edited fact but reverts to its original, now-outdated internal knowledge when faced with reasoning-based queries.

The Outdated Issue: While the edited LLM correctly identifies the city, it fails the reasoning question by associating the tower with its original country (France) instead of the expected new context (England).

The Outdated Issue and Portability

The core challenge in KE is Portability—the ability of the model to apply edited knowledge across various logical hops. For instance, if the fact "The Eiffel Tower is in Paris" is edited to "The Eiffel Tower is in London," a portable model should also conclude that the Eiffel Tower is now in England.

Empirical evidence shows that edited models often retain a strong bias toward their original training data. When asked "Which country is the Eiffel Tower located in?", the model retrieves the original association (Paris $\rightarrow$ France) rather than the new one (London $\rightarrow$ England). This statistical "stubbornness" suggests that while the new information is present in the model's distribution, it is frequently overshadowed by the original pre-trained weights.

Methodology: DISCO

To address this, we propose DISCO (outDated ISsue aware deCOding), a training-free inference-time strategy. DISCO operates on the premise that the "edit signal" exists within the model but requires amplification. The approach consists of three main components:

  1. Contrastive Decoding: DISCO calculates the difference ($\Delta$) between the token probability distributions of the edited model and the original model. By adding this difference back into the edited model's distribution (scaled by a hyperparameter $\alpha$), the strategy amplifies the new knowledge signal while suppressing the original, outdated response.
  2. Probability Constraints: To maintain model stability and prevent the accidental promotion of incorrect tokens, DISCO ensures that the probability of tokens associated with the outdated response does not increase and protects the target tokens of the edited knowledge from being suppressed.
  3. Knowledge-aware In-context Editing: To further prime the model for reasoning, DISCO prepends a paraphrase of the edited fact as an in-context example. This helps the model focus on the updated context before processing the reasoning question.

Key Insights and Results

The researchers found that the "edit signal" is often weak but present. DISCO acts as a signal amplifier, significantly shifting the probability mass away from outdated tokens toward the correct new knowledge.

Analysis of token probability variation. DISCO effectively suppresses the probability of outdated tokens (from 66.05% to 4.52%) while enhancing common tokens compared to the original model.

On the zsRE dataset using a Llama-2-7b backbone, DISCO outperformed the previous state-of-the-art (IKE) by 12.99 F1 points on portability/reasoning questions. Furthermore, DISCO significantly reduced the "Outdated Error" (OE) rate—the frequency with which the model gives the old, incorrect answer—down to just 5.78% on zsRE.

Beyond accuracy, DISCO is remarkably fast. It conducts 10 edits in approximately 19.69 seconds, making it significantly faster than weight-optimization methods like ROME (154s) or MEMIT (127s). This efficiency makes it a viable "patch" for real-time model maintenance.

Conclusion and Limitations

DISCO effectively mitigates the Outdated Issue by amplifying the edit signal during decoding. While it significantly improves portability, there is a minor trade-off in Locality—the performance on unrelated facts. Future work will explore the use of scope classifiers to minimize this "bleed-over" effect and extend the method to handle multi-hop reasoning chains.

Summary updated

BibTeX
@inproceedings{sun2024outdated,
  author = {Zengkui Sun and Yijin Liu and Jiaan Wang and Fandong Meng and Jinan Xu and Yufeng Chen and Jie Zhou},
  title = {{Outdated Issue Aware Decoding for Factual Knowledge Editing}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.552},
}
Figure