Why Fine-Tuning Encourages Hallucinations and How to Fix It

Guy Kaplan, Zorik Gekhman, Zhen Zhu, Lotem Rozner, Yuval Reif, Swabha Swayamdipta, Derek Hoiem, Roy Schwartz

TL;DR

Supervised fine-tuning (SFT) helps large language models (LLMs) adapt to new tasks but often causes them to "forget" pre-existing knowledge, leading to hallucinations. This paper reveals that this forgetting is driven by localized semantic interference—new facts overwrite old ones that share similar representational neighborhoods. By using output-space self-distillation or selective parameter freezing, we can train LLMs on new tasks or facts without degrading their existing knowledge base.

What Problem Does This Paper Address?

When a language model undergoes Supervised Fine-Tuning (SFT) to learn a new task or instruction style, it often starts hallucinating answers to factual questions it previously answered correctly. The authors reframe this phenomenon as a classic continual learning dilemma: a trade-off between factual plasticity (learning new facts) and factual stability (retaining old ones).

The core challenge is understanding exactly why this forgetting happens—whether it's due to global capacity limits, behavioral cloning issues, or localized representational interference—and finding a way to fine-tune models without destroying their pre-existing knowledge.

Figure 2: Factual forgetting is caused by new fact acquisition, not fine-tuning itself. The model first learns the QA format (high accuracy on known facts); as unknown facts are then acquired, accuracy on held-out facts declines. When unknown facts are excluded (Only Known), held-out performance remains stable. Right: summary of data split roles.

Methods

The authors propose two distinct mitigation strategies depending on the training objective:

  1. Selective Parameter Freezing (Stability-First): If the fine-tuning objective is purely task adaptation (e.g., learning a specific QA format or alignment style) without needing to acquire new facts, freezing the Feed-Forward Network (FFN) layers and updating only the attention layers (specifically individual projections like $k, v$, or $o$) preserves task performance while completely suppressing new fact acquisition and subsequent forgetting.
  2. Self-Distillation (Plasticity + Stability): When the model must learn new facts alongside a task, the authors introduce an output-space regularization technique. The model is trained for one epoch to grasp the task format, frozen as a "teacher" anchor, and then fine-tuned as a "student." A Kullback-Leibler (KL) divergence penalty constrains the student's output distribution to stay close to the teacher's, specifically targeting the high-probability token regions where semantic competitors reside.

To explain the mechanics, they also develop an associative-memory account showing that SFT updates act as rank-one Hebbian increments, causing updates to "leak" between non-orthogonal entity representations.

Datasets

  • EntityQuestions: A dataset of QA pairs derived from Wikipedia relational triplets. Using the SLiCK method, the authors split these into HighlyKnown (pre-existing knowledge), Unknown (new facts to be learned), and Held-out (used to measure forgetting/hallucinations) categories.
  • Synthetic Datasets: Custom datasets mapping locations to countries, designed to isolate the effects of entity names. They compared "semantic keys" (fictional, city-like names like Bergadena, generated by blending real city names) against "UUID keys" (random strings like Loc_fcfb46ee).
  • Alpaca: A realistic 15K instruction-following dataset used to validate that their findings transfer from controlled setups to real-world alignment data.

Key Insights and Ideas

  • Semantic Overlap, Not Scale, Drives Hallucinations: Introducing up to a million new facts doesn't inherently cause forgetting due to global capacity constraints. When new facts use random UUID names, forgetting is near-zero. However, when new facts use name-like entities that share semantic space with real-world entities, forgetting scales sharply.
  • Factual and Task Plasticity are Separable: An LLM can internalize how to answer questions (format/style) using its attention layers alone, while the actual storage of new facts primarily alters the FFN layers.
  • Output Regularization Beats Weight Regularization: Traditional weight-space constraints (like $\ell_2$ regularization or EWC) fail because they penalize parameter changes uniformly. Self-distillation succeeds because it directly protects the unembedding directions where semantic interference actually occurs.
Figure 1: Overview of how standard SFT causes factual forgetting via semantic overlap, and how parameter freezing or self-distillation mitigates it.

Key Results

  • Mitigating Forgetting: Under standard SFT, learning unknown facts caused a ~15 percentage point (pp) drop in accuracy on held-out known facts. Self-distillation reduced this degradation to just ~2 pp while maintaining a virtually identical rate of new fact acquisition.
Figure 3: Factual correctness over training epochs for Known (blue), Unknown (orange), and Held-out (pink) facts, under regular SFT (left), self-distillation (middle), and Only Known training (right). With self-distillation the model acquires new facts at a rate comparable to SFT while DHeld matches the Only Known condition, sharply reducing forgetting.
  • Real-World Transfer: On the Alpaca dataset, standard SFT degraded held-out factual accuracy by 7.4 pp. Self-distillation limited this drop to 1.7 pp while slightly improving overall alignment quality (AlpacaEval win rate increased from 50.5% to 52.3%).
  • Synthetic Scaling: At a scale of $10^6$ injected facts, city-like semantic keys caused a massive 39 pp drop in held-out accuracy, whereas random UUID keys maintained a negligible 4 pp drop across all dataset sizes.

Limitations and Future Work

  • Idealized Theory: The associative-memory account relies on several simplifications, including first-order updates, fixed key maps, and a Gaussian approximation of logit fluctuations.
  • Simple Factual Structures: The controlled experiments focus primarily on isolated relational triplets (subject-relation-object). It remains to be seen how these interference dynamics apply to complex, long-form narrative knowledge.
  • Regime Extensions: The authors suggest that future work should explore how these mitigation strategies function within full RLHF (Reinforcement Learning from Human Feedback) pipelines and preference optimization frameworks.

Summary updated

Abstract

Large language models are prone to hallucinating factually incorrect statements. A key source of these errors is exposure to new factual information through supervised fine-tuning (SFT), which can increase hallucinations w.r.t.~knowledge acquired during pre-training. Since these errors arise as a by-product of knowledge degradation, we explore whether established continual learning tools can mitigate them. We propose a self-distillation-based SFT method that facilitates effective factual learning while minimizing hallucinations w.r.t.~pre-existing knowledge by regularizing output-distribution drift. We also show that when new knowledge acquisition is unnecessary, suppressing factual plasticity by freezing parameter groups preserves task performance while reducing hallucinations. Lastly, we investigate the mechanism, contrasting capacity limitations, behavior cloning, and localized interference. Our experiments show that a main driver is interference among overlapping semantic representations, which self-distillation mitigates and an associative-memory model explains: forgetting grows with the overlap between new and stored facts.
BibTeX
@inproceedings{kaplan2026why,
  author = {Guy Kaplan and Zorik Gekhman and Zhen Zhu and Lotem Rozner and Yuval Reif and Swabha Swayamdipta and Derek Hoiem and Roy Schwartz},
  title = {{Why Fine-Tuning Encourages Hallucinations and How to Fix It}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=xvxMNLvKR0},
}
Figure