Post-training endows pretrained LLMs with a variety of desirable skills, including instruction-following, reasoning, and others. However, these post-trained LLMs only encode knowledge up to a cut-off date, necessitating continual adaptation. Unfortunately, existing solutions cannot simultaneously learn new knowledge from an adaptation document corpora and mitigate the forgetting of earlier learned capabilities. To address this, we introduce Distillation via Split Contexts (DiSC), a simple context-distillation based approach for continual knowledge adaptation. \methodname~derives student and teacher distributions by conditioning on distinct segments of the training example and minimizes the KL divergence between the shared tokens. This allows us to efficiently apply context-distillation without requiring explicit generation steps during training. We run experiments on four post-trained models and two adaptation domains. Compared to prior finetuning and distillation methods for continual adaptation, DiSC consistently reports the best trade-off between learning new knowledge and mitigating forgetting of previously learned skills like instruction-following, reasoning, and factual knowledge.
Figures & tables
Figure 1: Distillation via Split Contexts. First, we sample multiple split points and extract corresponding prefixes and suffixes. Then, we minimize the KL over the suffix distributions with context conditioning (teacher model MT ) and without (student model MS ). Our training only updates the student model MS .
Internalization Target
Context
Loss Tokens
Constitution
Static context c
d∈D
( Askell et al., 2021 )
for all d∈D
Instructions + Reasoning
In-context exs &
y∼PMT(⋅∣d,c)
( Snell et al., 2022 )
c∼PMT(⋅∣d)
New Knowledge
d∼D
y∼PMT(⋅∣d)
( Padmanabhan et al., 2023 )
Table 1: Representative prior works in context distillation.
KUP
BioASQ
Method
BBH
GPQA
MMLU-P
MuSR
IFEval
Math
Code
KUP
BBH
GPQA
MMLU-P
MuSR
IFEval
Math
Code
BioASQ
Qwen-2.5-7B-Instruct
Mpost
53.69
30.29
42.89
39.81
80.70
49.85
78.66
15.46
53.69
30.29
42.89
39.81
80.70
49.85
78.66
70.19
FT
52.25
28.44
38.33
40.74
65.83
24.47
69.51
40.90
54.07
30.87
37.86
43.25
75.18
35.05
73.78
77.40
+Rephrase
51.54
28.86
37.37
43.92
63.91
28.25
71.34
42.90
52.47
29.03
37.38
39.68
71.22
32.85
71.95
76.44
+TALR
52.70
28.86
38.90
44.18
65.83
26.51
75.61
36.90
54.05
29.28
41.30
39.15
77.70
46.98
81.1
78.37
Table 2: Performance of finetuning baselines and its variants on two adaptation tasks: KUP and BioASQ. We find that standard finetuning generally improves adaptation task performance, but at the cost of substantial degradation of Mpost ’s IFEval, Math and Code skills.
KUP
BioASQ
Method
BBH
GPQA
MMLU-P
MuSR
IFEval
Math
Code
KUP
BBH
GPQA
MMLU-P
MuSR
IFEval
Math
Code
BioASQ
Qwen-2.5-7B-Instruct
Mpost
53.69
30.29
42.89
39.81
80.70
49.85
78.66
15.46
53.69
30.29
42.89
39.81
80.70
49.85
78.66
70.19
FT (from § 5.1 )
52.25
28.44
38.33
40.74
65.83
24.47
69.51
40.90
54.07
30.87
37.86
43.25
75.18
35.05
73.78
77.40
FT CP
53.58
31.80
42.01
41.14
76.74
45.24
81.71
36.3
52.66
29.78
42.67
39.02
80.46
50.53
80.49
73.08
CD base CP
54.42
30.62
43.02
40.08
79.38
49.24
82.32
32.10
54.89
30.45
43.41
39.95
81.65
46.83
81.10
76.92
Table 3: Comparing DiSC to standard fine-tuning and CD base following adaptation on KUP and BioASQ. The superscript CP indicates model checkpoints achieving high domain adaptation while experiencing limited forgetting. Across datasets, DiSC consistently reports a stronger trade-off between these two goals.
Figure 2: IFEval vs KUP performances at different learning rates on Qwen-2.5-7B-Instruct for standard finetuning and DiSC.
Model
BBH
GPQA
MMLU-P
MuSR
IFEval
Math
Code
Qwen-2.5-7B-Instruct
Mbase
49.47
29.11
42.08
38.10
57.19
27.42
56.10
Mpost
53.69
30.29
42.89
39.81
80.70
49.85
78.66
LLaMA3.1-8B-Instruct
Mbase
46.02
31.54
32.39
37.17
15.59
5.06
43.29
Mpost
50.63
29.70
37.68
38.76
85.25
20.92
70.12
Table 4: Comparing Mbase and Mpost models across capabilities. Post-training primarily improves on IFEval, Math and Code.
Model
Domain
IFEval
MATH
Pearson
Pearson
LLaMA3.1-8B-Instruct
KUP
+0.22
+0.54
BioASQ
−0.54
+0.39
Qwen-2.5-7B-Instruct
KUP
+0.51
+0.50
BioASQ
−0.55
−0.40
Table 5: Per-dataset correlation between KL divergence (measured on the train domain) and forgetting magnitude on held-out tasks.
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
Qwen2.5-7B-Instruct
LLaMA3.1-8B-Instruct
Method
BBH
GPQA
MMLU-P
MuSR
IFEval
Math
Code
KUP
BBH
GPQA
MMLU-P
MuSR
IFEval
Math
Code
KUP
Mpost
53.69
30.29
42.89
39.81
80.70
49.85
78.66
15.46
50.63
29.70
37.68
38.76
85.25
20.92
70.12
20.10
FT (from § 5.1 )
52.25
28.44
38.33
40.74
65.83
24.47
69.51
40.9
49.02
28.36
34.60
39.42
68.11
14.73
61.59
35.10
DiSC Max KUP
53.17
28.36
41.45
39.68
74.46
44.03
77.44
47.59
50.96
29.61
35.46
40.74
75.06
17.90
64.63
49.50
Appendix
Table 6: Comparing maximum in-domain performance of DiSC with that of standard fine-tuning
Injecting new reasoning knowledge into Large Language Models (LLMs) via post-training often induces catastrophic forgetting. Recent studies emphasize the importance of on-policy data but suggest that KL-divergence fails to mitigate forgetting. In contrast, we show, both analytically and empirically, that the KL-constrained reward formulation actually plays a critical role in retaining knowledge during post-training. This motivates our Surgical Post-Training (SPOT), a proximal on-policy distillation framework designed to optimize reasoning efficiently while preserving prior knowledge. SPOT consists of (1) a data rectification pipeline employing an Oracle to surgically correct erroneous steps via minimal edits, generating proximal on-policy data; and (2) a reward-based binary cross-entropy objective essential for enhancing reasoning and mitigating forgetting. Empirically, with only 4k rectified math pairs, SPOT improves Qwen3-8B's accuracy by 6.2% on average across in-domain and out-of-domain tasks, requiring merely 16-minute model training on 8x H800 GPUs. Moreover, SPOT provides a superior initialization for subsequent reinforcement learning, significantly elevating the performance ceiling. Code: https://github.com/Visual-AI/SPoT
Logit-based knowledge distillation (KD) is used to train smaller language models (LMs) via supervision from stronger teachers, but whether its benefits are consistent across training stages remains unclear. Through controlled experiments, we find that forward Kullback-Leibler (KL) distillation--the standard KD formulation--with post-trained teachers behaves fundamentally differently during mid-training, an intermediate phase of self-supervised learning on curated corpora. Surprisingly, while forward KD simultaneously improves reasoning and factual recall during pre-training relative to standard next-token prediction (NTP), it instead slows factual recall acquisition during mid-training despite continued reasoning gains. We trace this stage dependence to an asymmetry in teacher confidence across data domains and the student's evolving knowledge state: teachers are more confident on procedural than knowledge-intensive data, while students acquire low-entropy factual knowledge earlier in training. To mitigate this imbalance, we propose Switch Distillation, a simple mid-training objective that distills on tokens where the teacher is confident, using teacher predictive entropy as a lightweight routing signal, and otherwise falls back to cross-entropy. Switch Distillation consistently outperforms existing distillation objectives across teacher sizes. Relative to standard NTP, it achieves 1.61-1.71x the reasoning performance and 1.13-1.19x the knowledge and commonsense performance while preserving 96.7-96.8% of factual recall. Crucially, these benefits persist after post-training: Switch Distillation closes the factual recall gap while maintaining 1.25-1.32x and 1.13-1.20x gains in reasoning and knowledge and commonsense, respectively.
Jacqueline He, Howard Yen, Shuyue Stella Li +9
Meta AI · University of Washington · Princeton University
Adapting language models to new domains during post-training risks degrading previously acquired capabilities, a phenomenon commonly known as catastrophic forgetting. Existing mitigation methods largely treat forgetting as a consequence of excessive model drift. They therefore constrain updates by preserving old outputs, replaying old data, or regularizing changes to parameters and representations so that the updated model remains close to its previous state. We take a different view: Rather than pulling the updated model back toward its old state, we translate the new domain into the model's pre-existing knowledge space, making unfamiliar knowledge learnable through familiar procedures. Therefore, we propose Skill Schema Transport (SST), a post-training framework that transports new knowledge into the model's existing skill space. SST abstracts each example type into a skill schema, preserving its essential operations, dependencies, and verification steps while removing domain-specific surface forms. By recasting new examples as instances of reusable procedures, SST turns knowledge update from trajectory memorization into procedural reuse. In continual domain adaptation settings, SST consistently reduces forgetting while improving generalization to related tasks. Across two 3B instruction-tuned backbones, SST improves average final performance on streamed domains by 2.53 to 5.75 points over sequential post-training. It also lowers max-drop forgetting in all evaluated settings, with the largest reduction from 42.41 to 7.10 points on the Qwen-3B MATH stream, while substantially recovering the OOD degradation induced by sequential updates.
Zijie Liu, Zhen Tan, Charles Fleming +1
UNC at Chapel Hill · Stevens Institute of Technology · Cisco Research