For on-policy distillation (OPD), more capable models are a natural choice as teachers. However, higher task performance does not necessarily imply greater teachability. A controlled token intervention study suggests that even a model weaker than the student can serve as an informative contrastive reference. Building on this observation, we propose Contrastive On-Policy Distillation (cOPD), which provides dual branch supervision by contrasting strong teacher, weak teacher, and student predictions at student generated prefixes. Our analysis explains how this three way comparison helps select token candidates associated with better or worse reasoning outcomes under an idealized model. We evaluate cOPD across diverse teacher student configurations spanning different training stages, parameter scales, and model families, on tasks including mathematical reasoning, instruction following, and question answering with abstention. cOPD achieves the best or top-tier performance among the evaluated baselines across all three tasks, improving overall Pass@16 on mathematical reasoning by up to 7.51% over the strongest baseline. Further analyses show that cOPD suppresses undesirable response patterns and suggest that it facilitates exploration.
Figures & tables
Figure 1: Teacher takeover experiment. As the takeover budget increases, the negative branch with weak teacher takeovers generally reduces student accuracy, whereas the positive branch with strong teacher takeovers generally improves it. Both effects are larger than under KL-based selection.
Method
AIME24 Pass@16 ↑
AIME25 Pass@16 ↑
AIME26 Pass@16 ↑
AMC23 Pass@16 ↑
Avg. Pass@16 ↑
Omni-Math Pass@1 ↑
JustRL / Qwen2.5-Math / DeepSeek-R1-Distill
Base
70.00
46.67
40.00
87.95
69.36
16.84
Strong teacher
76.67
60.00
40.00
93.98
75.72
28.18
Weak teacher
23.33
13.33
10.00
66.27
39.88
10.35
FKL
76.67
53.33
43.33
91.57
73.99
12.19
RKL
73.33
46.67
40.00
93.98
72.83
15.14
Table 1: Results on mathematical reasoning (%). Avg. is the overall Pass@16 across all problems pooled from AIME24/AIME25/AIME26/AMC23. Bold and underlined scores indicate the best and second best results.
Qwen3-4B/ 0.6B/ 1.7B
Llama-3.1-8B/ 3.2-1B/ 3.2-3B
IF
QA w/ Abstention
IF
QA w/ Abstention
Method
Acc. ↑
EM ↑
F1 ↑
Abst. ↑
Acc. ↑
EM ↑
F1 ↑
Abst. ↑
Base
20.36
60.14
65.64
55.68
17.81
54.20
60.82
46.24
Strong teacher
27.13
68.35
74.39
62.32
18.74
67.07
71.75
69.50
Weak teacher
18.33
35.01
39.80
30.63
11.69
16.63
21.23
8.53
FKL
23.20
71.43
76.49
69.86
19.35
65.71
70.05
68.23
Table 2: Results on instruction following (IF) and question answering with abstention (QA w/ Abstention). All scores are percentages, and Abst. represents the correct abstention rate. Bold indicates the best student result in each column, and underline indicates the second best.
Figure 2: Instruction-following response distributions and constraint satisfaction in a shared UMAP space, where each point represents a response and crosses indicate violation. cOPD produces valid responses in additional regions while largely avoiding the prominent word-limit failure region.
Figure 3: Failure mode analysis. (a) Mathematical reasoning accuracy (Pass@16) and truncation error counts. cOPD suppresses truncation failures while surpassing the strong teacher in accuracy. (b) Opening-token supervision for valid and invalid reasoning formats. W2S-OPD excessively amplifies the invalid token’s relative weight, whereas cOPD’s corresponding gap is negligible.
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
Hyperparameter
Math (DAPO)
IF
SQuAD 2.0
δ
0.05
0.05
0.05
τ
1.0
1.0
1.0
Optimizer
AdamW
AdamW
AdamW
Learning rate
1×10−6
1×10−6
1×10−6
Weight decay
0.01
0.01
0.01
Training epochs
3
3
3
Appendix
Table 3: Training hyperparameters across the three tasks. Maximum response lengths are measured in tokens.
Method
AIME24 Pass@16 ↑
AIME25 Pass@16 ↑
AIME26 Pass@16 ↑
AMC23 Pass@16 ↑
Avg. Pass@16 ↑
Omni-Math Pass@1 ↑
Full DAPO-Math-17k
FKL
76.67
60.00
36.67
89.16
72.83
18.54
RKL
80.00
60.00
33.33
93.98
75.14
19.32
JSD
76.67
53.33
43.33
93.98
75.14
19.53
cOPD (ours)
80.00
60.00
36.67
95.18
76.30
24.14
Filtered DAPO-Math-17k subset (6,016 prompts)
Appendix
Table 4: Training data and supervision branch ablations on mathematical reasoning. The filtered subset contains 6,016 DAPO-Math-17k prompts, which is consistent with the main experiment. The positive only and negative only variants activate only mv+ and mv− , respectively. Bold and underlined scores indicate the best and second-best results within each training-data group.
The avenue in France, Avenue Victor Hugo , was renamed after the famous writer Victor Hugo. [...] V is an important element in the avenue’s name, reflecting the honor paid to him. V also appears in the names of many other roads in Paris, such as Vétheuil , Vieux-Paris , and Ville-Victor . [...]
The avenue in France renamed after Victor Hugo is Avenue Victor Hugo . [...] With Victor Hugo’s presence, this avenue has become a symbol of French culture and history. highlighted section [...] With Victor Hugo’s presence, this avenue has become a symbol of French culture and history. highlighted section [...] With the participation of many artists and writers, Avenue Victor Hugo has
Note. The full recorded response contains extensive repetition and ends mid-sentence, as preserved above.
Appendix
Table 6: RKL response (word-limit violation).
The avenue in France renamed after Victor Hugo is Avenue Victor Hugo . [...] highlighted section Avenue Victor Hugo also passes through Rue de Rivoli Street , Rue de la Pompe Street , and Rue de la Pompe Street . [...]
Appendix
Table 7: MAD-OPD response.
The avenue in France renamed after Victor Hugo is Avenue Victor Hugo . [...] highlighted section The road also hosts many cultural and artistic events, such as art exhibitions and performances that take place regularly. [...] With 13 occurrences of the letter v , Avenue Victor Hugo is one of the most important roads in Paris, closely associated with French culture and history.
Language model distillation transfers a larger model’s capabilities to smaller or specialized models using outputs, probabilities, or internal representations.
On-policy distillation (OPD) improves a student language model by training on its own generated trajectories with supervision from a stronger teacher. However, when conditioned on student-generated prefixes, the teacher can favor invalid continuations that violate the question's premises, causing OPD to encourage erroneous reasoning steps. As a remedy, we introduce Condition-Contrastive Extrapolated On-Policy Distillation (CCE-OPD), which makes teacher supervision sensitive to question conditions. CCE-OPD incorporates (1) a fixed-prefix comparison in which the same frozen teacher evaluates the complete question and a counterpart with a selected condition masked, and (2) a bounded log-probability contrast that reweights the teacher distribution into an auxiliary distillation target. On 200 diagnostic reasoning states, condition contrast reduces the rate of preferring invalid continuations from 27.0% to 16.0%. Extensive experiments across six mathematical benchmarks show that CCE-OPD improves avg@8 over OPD by an average of 1.60 and 1.95 percentage points when distilling Qwen3-8B into 0.6B and 1.7B students, respectively. It also achieves the strongest results on four transfer benchmarks.
Wenxuan Luo, Chenxi Li, Haoyue Liu +2
School of Science and Engineering, The Chinese University of Hong Kong, Shenzhen · Shenzhen Future Network of Intelligence Institute (FNii-Shenzhen) · ByteDance +1
On-policy distillation (OPD) trains a student model on trajectories sampled from its own policy, providing dense token-level supervision by minimizing the divergence between the teacher's and student's output distributions at each token. Although existing OPD approaches effectively distill strong reasoning capabilities into student models, they inherently inherit uncurated chain-of-thought traces, exacerbating overthinking and reasoning redundancy. To address this limitation, we introduce COPD, a contrastive OPD framework. Specifically, for each token generated by the student, a frozen teacher evaluates the current student state under two contrasting prompts that induce low and high reasoning effort, respectively. The resulting difference in log-probabilities serves as a token-level advantage signal to guide the policy update. Rather than merely mimicking a single teacher distribution, COPD guides the student model toward acquiring concise and efficient reasoning strategies. We evaluate COPD across 9 multimodal benchmarks covering both reasoning and understanding tasks. Empirical results show that COPD substantially reduces reasoning length without hurting task performance, consistently improving efficiency across different tasks and model scales. In addition, this contrastive paradigm extends naturally to on-policy self-distillation (OPSD), establishing self-contrastive supervisory signals that enable a single model to compress its own reasoning without an external teacher.
On-policy distillation (OPD) combines student-generated rollouts with dense token-level supervision from a teacher, but providing such supervision for every rollout requires substantial teacher computation. We introduce Success-Referenced On-Policy Distillation (SR-OPD), which reduces this cost by selecting which prompts and rollouts receive teacher supervision. When the student produces both successful and failed rollouts for the same prompt, a successful rollout can serve as a natural reference for selecting failed rollouts. SR-OPD therefore focuses on such prompts and prioritizes failed rollouts whose hidden-state trajectories show sustained divergence from a successful reference, while accounting for estimated teacher-input cost. Across three teacher-student pairs and six mathematical reasoning benchmarks, SR-OPD uses only 3.46-5.02% of the teacher-input tokens required by Vanilla OPD in the one-pass setting while maintaining comparable reasoning performance. Under a controlled setting matched to 5% of Vanilla OPD's teacher-input budget, further experiments support both key design choices: focusing supervision on prompts with both successful and failed rollouts, and using successful rollouts to guide failure selection. These results indicate that a student's own successful behavior can serve as a useful reference for allocating teacher supervision under a fixed teacher-input budget.
Xiang Chen, Futao Su, Kong Wang +2
Tongji University · Xiaohongshu · Shanghai Jiao Tong University +1