On-policy distillation (OPD) has become a core technique for post-training large language models, enabling students to learn from dense token-level supervision on their own generations. However, even with a capable teacher, OPD training can be unstable, leading to excessive response length, repetitive generation, and severe performance degradation. One example is spurious agreement, where the student maintains high overlap with the teacher at the states visited but produces repetitive generations. Although such failures have been observed, the mechanisms behind these failures remain poorly understood. To address this gap, we investigate OPD through the lens of learning dynamics, tracing three mechanisms from local analysis to subsequent on-policy sampling. We first identify states where sampled-token OPD updates fail to correct teacher--student mismatch and characterize them using the student's mass on the teacher's top-p set. We then show that learning from the teacher is difficult at mismatched states and that their gradients can also affect with learning at other tokens. Finally, using a termination-token mismatch as a case study, we study how continued training on mismatched states influences on-policy sampling, suppressing the student's current modes and leading the student toward states where the teacher is unreliable . These findings help explain the benefits of supervised fine-tuning (SFT) initialization and motivate targeted correction of states where student and teacher are mismatched.
Figures & tables
Figure 1: Learning dynamics of OPD. Overlap definitions are given in Appendix E.1 .
Figure 2: Local distributional dynamics under OPD. (a) Log-probability and probability-mass changes after one training step grouped by student probability. (b) Mean ∣Δπ∣ within joint bins of ∣A∣ and π(1−π) . (c) Mean ΔFKL jointly grouped by student coverage of the teacher’s top- p ( p=0.9 ) and top- K (K=16) sets. Blue indicates improved alignment; red indicates deterioration.
Figure 3: Local learning dynamics under two teacher–student pairs. Rows show the mismatched and RL-aligned pairs. Columns 1–2 and 3–4 show changes in FKL at fixed held-out states with high and low initial FKL, respectively. The final column tracks Mtop-p during training.
Figure 4: Same student (R1-Distill-1.5B) with different teachers, DeepSeek-Distill-Qwen-7B (DS-7B) and JustRL-1.5B.
Figure 5: Cross-position effects on update directions. (a) Sign agreement between Ai and Δlogπθ(ui∣si) across training steps. (b) Sign agreement as the number of positions included in an update increases. (c) First-order predictions ∑jMij versus measured changes after one SGD step. (d) Top 5 tokens by absolute cross-position influence ∑i=j∣Mij∣ . Weights are these influences normalized to sum to 100% over the selected 200 positions.
Figure 6: On-policy sampling and trajectory dynamics. (a) Token probabilities under a categorical policy. (b) Teacher loop rate when continuing student prefixes around the first repeated paragraph. Loop rate is the fraction of sequences in which at least five consecutive tokens are repeated at least twice.
Benchmark
Metric
Qwen3-1.7B-Base
Qwen3-4B-Base
Qwen3-8B-Base
Teacher Qwen3-8B
SFT
OPD
EOPD
AOPD
Ours
SFT
OPD
EOPD
AOPD
Ours
SFT
OPD
EOPD
AOPD
Ours
(a) Qwen3-8B non-thinking teacher
AMC23
Avg@8
–
38.44
38.75
33.12
45.00
–
53.75
54.37
55.94
58.75
–
60.94
54.38
60.31
61.56
69.38
Best@8
–
64.22
70.68
58.09
70.65
–
79.12
79.67
83.89
80.74
–
79.90
84.87
84.87
83.89
89.58
AIME24
Avg@8
–
8.75
9.58
6.25
12.08
–
15.83
17.08
15.83
18.75
–
20.42
21.67
22.50
22.50
25.83
Best@8
–
20.68
18.70
19.45
24.60
–
26.25
26.67
34.10
32.94
–
32.08
37.28
38.01
41.77
42.84
Table 1: Math reasoning results with Qwen3-8B as teacher. (a) Base initialization, non-thinking teacher. (b) Shared SFT initialization per model size, thinking teacher. Our routing settings are p=0.9 , K=16 , ε1=6 , ε2=0.3 , and ε3=0.2 . Bold indicates the best result.
Figure 7: Training dynamics for Qwen3-4B-Base with the Qwen3-8B non-thinking teacher.
Benchmark
Metric
Qwen3-1.7B-Base
Qwen3-4B-Base
Qwen3-8B-Base
OPD
EOPD
AOPD
Ours
OPD
EOPD
AOPD
Ours
OPD
EOPD
AOPD
Ours
HumanEval+
Avg@8
64.71
65.17
64.64
67.07
79.27
78.43
73.09
79.19
78.73
79.27
79.65
80.64
Best@8
77.26
77.39
78.27
76.76
85.97
88.44
87.82
86.64
82.21
84.85
86.32
87.28
MBPP+
Avg@8
55.59
55.19
55.56
55.99
68.39
66.57
62.90
67.10
72.45
72.39
70.27
72.72
Best@8
66.10
66.42
66.60
68.60
74.11
73.57
77.70
73.83
77.77
77.98
78.97
79.22
LiveCodeBench v6
Avg@8
8.93
10.36
12.07
14.93
10.00
9.36
19.07
20.93
15.50
14.07
21.64
23.64
Table 2: Code generation results with Qwen3-8B (non-thinking) as teacher, from Base initialization, trained on CodeR1-12k . We report the checkpoint at step 200 for all methods. Our routing settings are p=0.9 , K=16 , ε1=6 , ε2=0.3 , and ε3=0.2 . Bold indicates the best result.
Appendix figures & tables17 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 8: Validation of Proposition 1 under randomly initialized categorical policies. Predicted and measured changes are shown for Δlogπ and Δπ . Each point represents one vocabulary token after a single sampled-token update; the dashed line denotes y=x .
Figure 9: Changing the sampled token changes the one-step redistribution under fixed student and teacher distributions. Across all columns, πθk(⋅∣s) and πT(⋅∣s) are fixed; only the sampled token u changes. Top: the student distribution before and after one OPD update together with the teacher distribution. The sampled token is highlighted. Bottom: each token is plotted according to its student and teacher probabilities. The diagonal denotes equal student and teacher probability, while the vertical line marks the watershed τ(u;s) . Green and red regions indicate probability changes toward and away from the teacher, respectively. Changing the sampled token modifies both A(s,u) and τ(u;s) , and can therefore change the teacher alignment of the same token even though the teacher and student distributions are unchanged.
Figure 10: Teacher alignment changes with the mismatch structure under fixed student-side geometry. Across all columns, the student distribution and sampled token u are fixed, while the teacher distribution has progressively less probability-mass overlap with the student. Consequently, the watershed τ(u;s) and the student token probabilities remain unchanged, whereas the sampled-token advantage A(s,u) and the teacher-preferred directions vary. Top: the student distribution before and after one OPD update together with each teacher distribution. Bottom: token-level student and teacher probabilities, with green and red regions indicating probability changes toward and away from the teacher, respectively. The same student-side probability geometry can therefore produce substantially different patterns of teacher alignment as the mismatch structure changes.
Figure 11: Training response length and fraction of truncated responses for top- K reverse-KL OPD (Qwen3-1.7B-Base ← Qwen3-8B) with K=16 and K=32 .
Abbreviation
Model or checkpoint
Qwen3-1.7B-Base
Qwen3-1.7B-Base
Qwen3-1.7B-SFT
SFT of Qwen3-1.7B-Base on Qwen3-4B
R1-Distill-1.5B
DeepSeek-R1-Distill-Qwen-1.5B
JustRL-1.5B
hbx/JustRL-DeepSeek-1.5B
Qwen3-4B
Qwen3-4B
Qwen3-8B
Qwen3-8B
Appendix
Table 3: Model abbreviations used in the diagnostic experiments.
Figure 12: Additional comparisons of token probability change under OPD. (a) Probability change for sampled and non-sampled tokens, grouped by pre-update student probability. (b) Predictive performance of probability-based and advantage-based quantities for realized ∣Δπ∣ .
Figure 13: Sign agreement between the student’s probability change and the advantage, conditioned on (a) advantage magnitude and (b) the student’s pre-update probability. Sign agreement remains near 50% across both factors.
Figure 14: Cross-position interaction structure depends on both the student state and the teacher. Each panel shows the exact interaction matrix Mij for one teacher–student pair, with sender position j on the x-axis and receiver position i on the y-axis. Positive and negative influences are shown on a shared symmetric scale.
Rank
Token
A
Weight
1
U+0627 U+0643
−40.38
57.30%
2
paque
−9.00
17.88%
3
tens
−5.14
4.32%
4
<|endoftext|>
−21.16
2.83%
5
a
−1.41
1.96%
6
U+653F U+5E9C
−1.99
1.67%
Appendix
Table 4: Top ten tokens by absolute cross-position influence ∑i=j∣Mij∣ at three checkpoints. Ranks and weights are computed separately within each checkpoint’s 200 selected positions, including one explicitly included termination position. Repeated token strings denote different positions. Non-Latin tokens are represented by their Unicode code points.
Figure 15: Validation of the cross-position influence decomposition. (a) The row sum ∑jMij closely matches the measured one-step change ΔlogπS(ui) . (b) The approximation residual decreases as O(η2) with the learning rate, consistent with a first-order expansion. (c) Individual Mij values agree with leave-one-out marginal effects when the interaction magnitude is above the numerical measurement floor; the strongest 20% by ∣Mij∣ are highlighted.
A: original
B: aligned
C: gradient masked
Rollouts hitting the Max length
0.95
0.25
0.25
Validation response length (tokens)
7,234
3,939
3,761
Top-16 overlap, teacher mass
0.988
0.989
≈ 0.99
Appendix
Table 5: Controls on the termination token.
Hyperparameter
OPD
Base Model
SFT Model
Training steps
200
100
Train batch size
128
128
Micro batch size
128
128
Rollout n
1
1
Rollout Correction
[0.5, 2.0]
[0.5, 2.0]
Appendix
Table 6: Default hyperparameters for OPD. For state-dependent KL routing, we use p=0.9 for the teacher top- p set, K=16 for approximate top- K FKL, and thresholds ϵ=6 , ϵ2=0.3 , and ϵ3=0.2 in equation 16 –equation 18 .
Hyperparameter
Value
Student model
Base model
Training objective
Full-parameter SFT
Template
qwen3
Training epochs
1
Sequence length
20,000
Per-device batch size
8
Appendix
Table 7: SFT hyperparameters for cold-start initialization of the 1.7B, 4B, and 8B base models using OpenThoughts3-1.2M .
Figure 16: Computational overhead of our method compared with sampled-token OPD. (a) Time per training step by stage; labels show the change in total time relative to OPD. (b) Peak memory of the actor update. The dashed line marks the teacher-scoring stage, which runs under a fixed vLLM memory budget and sets the peak memory of a full training step.
Parameter
Value
fFKL (%)
AIME24
AIME25
AIME26
AMC23
Avg.
ε1
1.5
17.6
9.17
7.50
7.92
40.00
16.15
3
6.7
10.42
11.67
6.25
39.38
16.93
6
6.7
12.08
9.58
5.83
45.00
18.12
ε2
0.2
9.8
10.00
5.83
6.67
40.94
15.86
0.3
6.7
12.08
9.58
5.83
45.00
18.12
0.5
3.6
9.17
8.75
7.50
42.19
16.90
Appendix
Table 8: Parameter sensitivity on Qwen3-1.7B-Base with the Qwen3-8B teacher. We vary one threshold at a time, holding the others at ε1=6 , ε2=0.3 , ε3=0.2 , and p=0.90 . Scores are Avg@8 (%) at each run’s best validation checkpoint over 200 training steps. fFKL is the fraction of valid response positions routed to FKL at the final step.
Candidate set
fFKL (%)
AIME24
AIME25
AIME26
AMC23
Avg.
Top- p , p=0.90
6.7
12.08
9.58
5.83
45.00
18.12
Top- p , p=0.95
7.1
12.92
5.83
7.92
40.94
16.90
Fixed top- K
6.8
11.25
6.25
6.67
40.31
16.12
Appendix
Table 9: Comparison between using Mtop−p and Mtop−k for mismatch states.