Mitigating Heterogeneous Token Overfitting in LLM Knowledge Editing

Tianci Liu, Ruirui Li, Zihan Dong, Hui Liu, Xianfeng Tang, Qingyu Yin, Linjun Zhang, Haoyu Wang, Jing Gao

Introduction: The Challenge of Knowledge Editing

Large Language Models (LLMs) are trained on static snapshots of data, meaning their internal knowledge base quickly becomes outdated as the world changes. Knowledge Editing (KE) has emerged as a promising solution to update specific facts (e.g., changing "The president is X" to "The president is Y") without the prohibitive cost of retraining the entire model.

While current KE methods successfully force a model to memorize and repeat a new fact, they often severely degrade the model's "portability"—its ability to use that newly acquired fact in different contexts or for multi-hop reasoning. For instance, an edited model might correctly state the new president's name but fail to answer a related question like, "Who is the First Lady of the United States?" This paper identifies the root cause of this reasoning degradation and proposes a lightweight, highly effective solution.

The Root Cause: Heterogeneous Token Overfitting (HTO)

The researchers discovered that the loss of reasoning capabilities stems from a phenomenon they term Heterogeneous Token Overfitting (HTO).

When updating a fact within a sentence, not all tokens require the same amount of learning. Some tokens are already "easy" for the model to predict based on its pre-training (e.g., the grammatical structure "The president is"), while the new factual tokens are "hard." Standard training methods rely on Cross-Entropy (CE) loss, which treats all tokens equally and attempts to push the probability of every target token to 100%. Consequently, the model is forced to overfit the easy tokens before it has adequately learned the hard ones. This coarse-grained, brute-force approach disrupts the model's delicate internal reasoning structures, leading to catastrophic degradation in downstream tasks.

The Solution: OVERTONE

To counteract HTO, the authors introduce OVERTONE, a plug-and-play, token-level smoothing strategy. Rather than using standard CE loss, OVERTONE adaptively adjusts the training targets to prevent overfitting on easy tokens while preserving the model's pre-trained "common sense."

OVERTONE relies on four key mechanisms:

  • Adaptive Target Distribution: For every token, OVERTONE creates a unique target by mixing the ground truth with the model's own current predictions. This uses the model's self-knowledge as a prior.
  • Top-$n\sigma$ Filtering: To prevent the model from reinforcing its own incorrect "noise," OVERTONE filters out low-probability tail tokens from the model's distribution before mixing.
  • Skip Mechanism: If the model’s current prediction is wildly incorrect—such as during the initial steps of an update—OVERTONE skips the smoothing process and uses a standard target to ensure the new knowledge is firmly anchored.
  • Clipped KL Divergence: The loss function employs a clipped forward KL divergence, acting as a token-level "early stopping" mechanism once a specific token is sufficiently learned.

Theoretically, OVERTONE provides more favorable parameter updates and functions as an implicit Direct Preference Optimization (DPO). It delivers the benefits of preference-based tuning without requiring expensive, human-labeled preference data pairs. Furthermore, it is mathematically lightweight and adds negligible computational overhead.

Experimental Setup and Key Results

The researchers evaluated OVERTONE across two major open-source models (LLaMA 2-7B and LLaMA 3-8B) using five diverse benchmarks: ZsRE (factual updates), WikiData Recent & Counterfact (real-world changes and fictional counterfactuals), WikiBio (biographical data), and MQuAKE (complex multi-hop reasoning).

OVERTONE was applied to four distinct base KE methods (FT-M, LoRA, MELO, and WISE), yielding massive improvements across the board:

  • Reasoning Boost (Portability): On the ZsRE benchmark using LoRA, integrating OVERTONE nearly tripled the portability score compared to standard training.
  • Factual Retention (Locality): OVERTONE significantly reduced "collateral damage" to unrelated knowledge. On WikiData Counterfactuals, locality scores improved by nearly 5x for certain methods.
  • Continual Editing Stability: In stress-test scenarios where 100 facts were edited sequentially, standard methods like vanilla LoRA typically collapsed. OVERTONE stabilized these methods, allowing them to remain competitive with highly complex, specialized continual editing algorithms.
  • Model Agnosticism: The performance gains were consistent across both LLaMA 2 and LLaMA 3, demonstrating that OVERTONE is a versatile, architecture-agnostic solution.

Limitations and Future Directions

While OVERTONE represents a significant leap forward for gradient-based Knowledge Editing, the authors note a few limitations. First, the current formulation is designed for iterative, gradient-based updates; extending this logic to closed-form "locate-and-edit" methods (like ROME or MEMIT) remains a challenge for future research. Second, the study primarily focused on structured, subject-relation-object updates, leaving the behavior of HTO in unstructured, long-form document editing as an open question. Finally, while the method is robust, it relies on a few hyperparameters (such as the mixing coefficient) that may require tuning when applied to models of vastly different scales.

Summary updated

BibTeX
@inproceedings{liu2025mitigating,
  author = {Tianci Liu and Ruirui Li and Zihan Dong and Hui Liu and Xianfeng Tang and Qingyu Yin and Linjun Zhang and Haoyu Wang and Jing Gao},
  title = {{Mitigating Heterogeneous Token Overfitting in LLM Knowledge Editing}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=lzIWwuKtQg},
}
Figure