Large Language Models (LLMs) are like snapshots in time. Once training is finished, their knowledge is frozen. To keep them relevant, we need to update them with new information—news, medical breakthroughs, or internal company documents. However, there is a catch: when you try to teach an "Instruct" model new facts using standard fine-tuning, it often "forgets" how to follow instructions or solve complex math problems. It’s as if the model gains new memories but loses its personality and reasoning skills.
A new paper from researchers at Cornell University introduces Distillation via Split Contexts (DiSC), a method that allows LLMs to internalize new knowledge while keeping their hard-won post-training capabilities intact.
TL;DR
Standard fine-tuning for knowledge updates often causes LLMs to lose their instruction-following and reasoning abilities. DiSC solves this by using a "teacher" model to guide a "student" model to internalize document prefixes, achieving a superior trade-off between learning new facts and preserving original skills without the need for expensive text generation during training.
What Problem Does This Paper Address?
The lifecycle of a modern LLM involves two main stages: Pre-training (learning general knowledge from the web) and Post-training (alignment, instruction-following, and RLHF).
When we want to update a model with new documents (continual knowledge adaptation), the standard approach is Supervised Fine-Tuning (SFT). Unfortunately, SFT on new documents often leads to "catastrophic forgetting." Specifically, the researchers found that the skills added during post-training—like math reasoning, coding, and following complex formatting constraints—are incredibly brittle. Under standard fine-tuning, the model doesn't just forget old facts; it effectively "reverts" to its pre-trained, unaligned state.
Methods: Distillation via Split Contexts (DiSC)
The core idea of DiSC is to reframe knowledge adaptation as a context distillation problem.
- The Teacher and the Student: The researchers start with two copies of the same post-trained model. One is a frozen "teacher" ($M_T$), and the other is a trainable "student" ($M_S$).
- The Split: For any given training document, DiSC splits it into a prefix (the context) and a suffix (the target).
- The Objective:
- The Teacher sees the whole picture: it predicts the suffix tokens while being conditioned on the prefix.
- The Student sees only the suffix: it tries to predict those same tokens without the prefix.
- By minimizing the KL Divergence between the two, the student is forced to "bake" the information from the prefix directly into its parameters.
- Efficiency: Unlike previous distillation methods that required the model to generate long strings of text (which is slow and compute-heavy), DiSC uses a clever attention-masking trick. It processes multiple suffixes in a single forward pass, making it nearly as fast as standard fine-tuning.
Datasets
The authors evaluated DiSC across four models (Qwen-2.5, Llama-3.1, and Qwen3) using two primary adaptation domains:
- Knowledge Update Playground (KUP): A synthetic dataset of news-style passages that reflect changes in world knowledge (e.g., a new person winning an award), specifically designed to test if models can overwrite outdated facts.
- BioASQ: A real-world biomedical dataset used to test the model's ability to learn specialized, domain-specific knowledge.
To measure "forgetting," they used a suite of seven standard benchmarks, including IFEval (instruction following), MATH-Hard, and HumanEval (coding).
Key Insights and Ideas
- Post-Training Skills are Brittle: The most surprising finding is that fine-tuning on new facts specifically harms the skills the model learned last (during alignment). Tasks like math and coding saw massive drops (up to 25 points), while "base" skills like general knowledge (MMLU) remained relatively stable.
- The Reversion Hypothesis: The authors provide strong evidence that fine-tuning causes the model to revert to its pre-trained behavior. There is a 0.9 correlation between how much a task improved during post-training and how much it dropped after subsequent fine-tuning.
- Replay is Not a Silver Bullet: In many fields, "replay" (mixing old data with new data) prevents forgetting. Here, however, adding math or instruction-following data during the update actually worsened performance, likely because the model over-specialized on the specific replay examples rather than maintaining general capability.
- Linguistic Structure Matters: DiSC works significantly better when documents are split at sentence boundaries rather than random token positions. This suggests that maintaining semantic coherence is vital for the student model to learn effectively.
Key Results
DiSC consistently outperformed standard fine-tuning, LoRA, and other regularization techniques:
- Better Trade-offs: On the Qwen-2.5-7B model, standard fine-tuning on KUP dropped instruction-following (IFEval) by 15 points and math by 25 points. DiSC achieved higher accuracy on the new knowledge while keeping those drops under 5 points.
- Robustness: DiSC is much less sensitive to the learning rate. While standard fine-tuning can "break" a model if the learning rate is slightly too high, DiSC maintains a gradual and predictable decline in capabilities.
- Memory Efficiency: Because DiSC only trains on short suffixes rather than entire documents, it actually has a lower memory footprint for activations than other KL-based regularization methods.
Limitations and Future Work
While DiSC is a major step forward, the authors note a few areas for further exploration:
- Teacher Overhead: You still need to keep a frozen copy of the model in memory during training, which effectively doubles the parameter count (though not the trainable parameters).
- Scaling: The experiments focused on document-level updates. It remains to be seen how DiSC handles massive, multi-epoch updates on terabytes of new data.
- The "Replay" Mystery: The finding that replay data harms performance contradicts some common wisdom in the field, suggesting that the relationship between "learning" and "remembering" in aligned LLMs is more complex than we thought.
Summary updated