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.
Methods
The authors propose two distinct mitigation strategies depending on the training objective:
- 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.
- 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.
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.
- 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