Manuscript Offprint
arXiv:2611.07731OPD: Overlap-Gated On-Policy Distillation on Reliable Prefix
O²PD: OVERLAP-GATED ON-POLICY DISTILLATION ON RELIABLE PREFIX
Shuaishuai Zu¹, Jihao Zhao¹, Pengfei Li², Guanghuan Fang², Ben Feng², Yuhan Liu², Biao Qin¹, Baochuan Yang²
¹School of Information, Renmin University of China
²Huawei Technologies Ltd.
ABSTRACT
On-policy distillation (OPD) supplies dense token-level supervision by aligning a student to the teacher's next-token distribution on its own generated rollouts. Existing works mostly implement top- OPD, applying reverse Kullback-Leibler (RKL) divergence between the teacher's and the student's renormalized distributions over teacher top- support. However, the teacher scores student-generated rollouts that are inherently off-policy for itself, leaving the reliability of its next-token guidance unclear. Restricting the divergence to the teacher top- support also discards the remaining mass outside that support. These gaps leave two questions implicit: 1) which tokens to align, and 2) how to align those tokens. To answer these questions, we propose Overlap-gated On-Policy Distillation (O²PD). As for 1), we quantitatively analyze the reliability of teacher supervision and find that alignment on the student's trajectory prefix is more reliable than alignment on the full context. Therefore, our O²PD is applied only to the 20% prefix tokens of each student rollout. As for 2), we theoretically characterize two problems of top- OPD: the Teacher-support Uncovering and the Dominant-Mode Mismatch. Based on these analyses, we propose two support strategies: the Reset Support strategy attaches a reset atom to every token, pooling mass outside the teacher top-, and the Support Convergence strategy converges the support to the already aligned intersection. Our O²PD employs the designed overlap-gated -divergence to interpolate between mode-covering and mode-seeking for per-token alignment, where the overlap is used as a gate to switch the support and adaptively modulate . Extensive experiments on seven common benchmarks demonstrate the superiority of O²PD, improving average performance by up to 5.29 points compared to OPD.

Figure 1: Framework of our O²PD: (a) Restricting alignment to the prefix, where teacher supervision is reliable. (b) Overlap-gated α-divergence with Reset Support and Support Convergence strategies.
isting OPD methods mainly adopt top- OPD, minimizing the RKL on the teacher's top- support atoms for tractable cost.
However, the student-generated rollouts are inherently off-policy for the teacher, so the reliability of teacher supervision remains unclear Fu et al. (2026); Zhou et al. (2026). Besides, the teacher's top- support atoms are just a subset of the full vocabulary Fu et al. (2026); Anshumann et al. (2025). Restricting the alignment to this subset discards the remaining mass outside that support. Empirically, as the teacher-student overlap decreases, the student more frequently samples tokens outside the teacher's top- support, where the teacher's supervision is unreachable. These gaps leave two questions implicit: 1) which tokens to align?, and 2) how to align those tokens? Along these lines, we first identify a Cross-prefix Asymmetry phenomenon: as student prefixes accumulate, the teacher's accuracy falls, while as teacher prefixes accumulate, the student's accuracy rises (§3). Furthermore, we theoretically characterize two problems of top- OPD (§4): 1) Teacher-support Uncovering happens because RKL on the teacher's top- support fails to pull the student onto teacher-only tokens; thus high-confidence teacher modes stay uncovered when overlap is low; 2) Dominant-Mode Mismatch is that even the two top- supports already overlap well, the same objective only matches the renormalized distribution and fails to pin the teacher's mass on the shared atoms.
To address these issues, we propose an overlap-gated -divergence on refined support and reliable prefix for OPD, which we term O²PD (shown in Figure 1). For which, inspired by the Cross-prefix Asymmetry phenomenon, we only optimize the 20% prefix tokens of student-generated rollouts to avoid the off-policy accumulation for the teacher. For how, we introduce two support strategies: the Reset Support strategy attaches a reset atom to every token, pooling mass outside the teacher top-, and the Support Convergence strategy converges the support to the already aligned intersection. Theoretical analysis shows that Forward KL (FKL) with Reset Support supplies a first-order covering force on teacher-only atoms, and RKL with Support Convergence pins the teacher's mass on the shared atoms rather than leftover-renormalizing them. This motivates our design of overlap-gated -divergence, where overlap is used as a gate to switch the support strategies and adaptively modulate . For each token, is mapped from the teacher-student overlap to control the interpolation between the mode-covering and the mode-seeking. Our contributions are:
-
We identify a Cross-prefix Asymmetry: teacher supervision is more reliable on the prefix than on the suffix. We theoretically characterize two shortcomings of top- OPD, Teacher-support Uncovering and Dominant-Mode Mismatch (§3, §4).
-
We propose O²PD, which applies overlap-gated -divergence on the reliable prefix tokens. The per-token overlap between teacher and student adaptively modulates and switches Reset Support and Support Convergence strategies (§3, §4).
-
Extensive experiments on seven benchmarks show that O²PD achieves state-of-the-art average performance among compared OPD methods, improving over OPD by up to +5.29 points across three teacher-student pairs.
2 RELATED WORK
GKD, MiniLLM, and later OPD recipes minimize a token-level divergence loss on student-generated trajectories Gu et al. (2024); Yang et al. (2026); Ko et al. (2025). The standard implementation is top- OPD (Agarwal et al., 2024; Lu & Thinking Machines Lab, 2025; Anshumann et al., 2025), which minimizes RKL over the teacher's top- atoms at every position. At each token, the teacher and student induce next-token distributions and on vocabulary . Write , , , and overlap (illustrated in Table 1). Top- OPD renormalizes both distributions on and minimizes
where and . Mass outside does not enter the loss. A concurrent line of work studies when this recipe succeeds or fails. Because the teacher scores student-sampled rollouts, its next-token guidance can be noisy, unteachable, or mismatched with the student Fu et al. (2026); Zhou et al. (2026); Wang et al. (2026b;a); Yu et al. (2026); Shao et al. (2026). Li et al. show that teacher–student top- overlap tracks alignment-level and thinking-pattern consistency, and that high-overlap successful runs can be explained largely by overlap increasing Li et al. (2026).
Other methods intervene on which tokens to optimize and how to lessen the overlap mismatch. For example, TIP selects tokens with high student entropy, and tokens with low student entropy plus high teacher–student divergence, where the student is overconfident and wrong Xu et al. (2026). ESR argues that early tokens do problem framing and strategic planning, and truncates the rollout to a fixed first tokens Zhou et al. (2026). EOPD keeps the on-policy trajectory and mixes FKL into RKL on
Table 1: Supports at each token.
| Set | Role |
|---|---|
| teacher support | |
| student support | |
| already aligned atoms | |
| teacher modes still to cover | |
| student-only modes to suppress |
high teacher-entropy tokens to avoid diversity collapse Jin et al. (2026). However, these token filters are heuristic, ESR’s cutoff is a fixed short horizon that does not scale with response length, and EOPD changes the alignment objective without using overlap to decide covering versus pinning. O²PD takes both decisions together: a length-scaled prefix, and overlap-gated -divergence with Reset Support and Support Convergence for better alignment.
3 WHERE SHOULD DISTILLATION CONCENTRATE?
3.1 CROSS-PREFIX ASYMMETRY PHENOMENON
Student prefixes are off-policy for the teacher. To test whether teacher supervision remains reliable on student-generated prefixes, we run a cross-prefix completion protocol on MATH500 with a Qwen3-1.7B student and a Qwen3-4B teacher. When each model generates the entire response, the student and teacher obtain 73.8% and 85.8% pass@1. We then vary a prefix ratio : the student continues from a teacher-generated prefix of relative length , and the teacher continues from a student-generated prefix of the same length. Fig. 2 (a) shows an opposite dependence on . Student pass@1 increases as the teacher prefix lengthens; teacher pass@1 decreases as the student prefix lengthens, and the decline grows with .
Aligning prefix raises suffix overlap. To test whether aligning only those early tokens can raise teacher–student overlap on the rest of the trajectory, we use the same Qwen3-1.7B student and Qwen3-4B teacher and train top- OPD on DAPO-MATH-17K with the loss applied only to the first 20% of each rollout. As shown in Fig. 2 (b), we compute mean top- overlap between the student and the teacher, grouped by relative-position bin. Overlap on the untrained suffix bins rises together with the trained prefix, so the prefix-only objective improves alignment for suffix tokens. The 0–20% bin remains the lowest throughout, so the prefix is still the hardest region to match. §5.3 further verifies that aligning on a prefix fraction exceeds full-sequence alignment, and concentrating on the prefix outperforms aligning the suffix.

Figure 2: (a) Cross-prefix pass@1 versus prefix ratio on MATH500. (b) Mean top-k overlap by relative-position bin when is applied only to the first 20% of each student trajectory. (c) Top-k OPD loss versus relative position at initialization and after full-trajectory training.
Misalignment concentrates on the prefix. As shown in Fig. 2 (c), we plot mean against relative position at initialization and after full-trajectory top-k OPD. Mean RKL is highest near the start of the response and declines with relative position at both checkpoints. Training lowers the curve along the trajectory, so teacher-student mismatch is alleviated, yet the prefix remains the region of largest mismatch.
3.2 RECIPE1: PREFIX-ONLY ALIGNMENT
Based on this analysis, the prefix is both the most reliable source of teacher supervision and the region of largest remaining mismatch, so these are the tokens most worth aligning. Prefix-only training still raises overlap on the untrained suffix, so withholding suffix tokens from the loss does not leave the suffix unaligned. We therefore replace full-trajectory by the Where objective :
Suffix tokens are sampled with the student but do not enter the optimization. Because the window is a fraction of , the number of aligned tokens scales with response length.
4 HOW TO ALIGN PREFIX TOKENS
4.1 TEACHER-SUPPORT UNCOVERING AND DOMINANT-MODE MISMATCH
We theoretically characterize two shortcomings of top-k OPD. The first failure is Teacher-support Uncovering: minimizing RKL on involves gradient coordinates only on , so it therefore assigns no gradient to student-only atoms , and its first-order force on teacher-only atoms in is multiplied by student mass.
Lemma 1 (Support restriction). depends on the student logits only through . Consequently for every . In particular, RKL on has no coordinate on .
On the simplex over , the coordinate gradient of is proportional to student mass , so the first-order force on is weak whenever that mass is small (Appendix B.1).
Proposition 1 (Covering channel). Assume , , and . Then , vanishes on , and
In this case is determined by only, so the first-order update lives only on already aligned atoms. The covering channel on is off, and Lemma 1 additionally gives for every . When is small but nonzero, the covering gradient remains proportional to , so the first-order force on is weak rather than identically zero.
Proposition 1 is why does not pull into . Fig. 3 checks this on prefix tokens with initial overlap : mean overlap moves only from 0.265 to 0.282 after top- OPD training, 87.3% of the cohort remain below 0.3, and none reach .

Figure 3: (a) Mean overlap by initial-overlap bin before and after training. (b) Destination of tokens with initial . (c) Signed gap q - p on the shared top-1.
The second failure is Dominant-Mode Mismatch: minimizing RKL on the full-vocabulary is associated with as a mode-seeking target. Top- OPD is not full-vocabulary OPD: its loss lives on the renormalized simplex of .
Proposition 2 (Renormalized match on ). On the relative interior , every minimizer of satisfies . This matches the teacher only as a distribution on . It does not pin and does not constrain , so it is not on .
Remaining mode-mass gaps are therefore a shape mismatch on the support , not evidence that the student is insufficiently mode-seeking. Fig. 3 (c) checks tokens that already share the teacher's top-1: the signed gap on that mode stays positive after top- OPD and grows with initial overlap. High overlap does not mean the student has matched the teacher's dominant-mode mass. Proofs of Lemma 1 and Propositions 1–2 are in Appendix B.
4.2 RECIPE2: A RESET ATOM ON EVERY TOKEN (RESET SUPPORT)
Teacher-support Uncovering can be handled by our Reset Support strategy, which attaches a reset atom to every token. The reset atom pools the mass outside : teacher reset mass is and student reset mass is . On the simplex over ,
FKL on this simplex is . Without a reset atom, FKL opens only a covering channel on . The reset coordinate additionally supplies a pooled suppression channel for .
Proposition 3 (FKL covering). On simplex coordinates ,
If , and , then , so a descent step raises . Teacher mass on supplies covering force without requiring the student to already place mass there. The reset coordinate yields with and . When is large the student typically places substantial mass outside , so and a descent step lowers the reset coordinate, a pooled suppression of . If , then as , whereas remains finite.
The reason to use FKL when is large: the covering channel stays open when student mass on is near zero. RKL on the same support still multiplies those coordinates by .
4.3 RECIPE3: SHRINK THE SUPPORT, THEN RKL (SUPPORT CONVERGENCE)
Dominant-Mode Mismatch means that minimizing RKL on matches only . Attaching a reset atom to makes the unconstrained RKL minimizer on . On this is
, which pins and closes the scale gap in Proposition 2. Reset Support is therefore already enough for the unconstrained problem. As overlap rises, shrinks and the job becomes mode-seeking on the already shared atoms . The interiors of and coincide only when . Leftover atoms still carry teacher mass but little student mass. Proposition 1 keeps the RKL factor on those atoms proportional to , so leftover student mass typically remains below rather than rising to the unconstrained leftover target. On this slice RKL on still renormalizes by leftover teacher mass. Support Convergence strategy is therefore proposed to restrict the support to . Leftover teacher mass is folded into the reset atom, (), , (), , and .
Proposition 4 (Leftover renormalization). Assume , , , and . Write and freeze the leftover coordinates. Then RKL on , as a function of the remaining mass on , is uniquely minimized at
Hence on if and only if . The uncovered face is the special case . Minimizing RKL on does not include ; its interior minimizer is and . Leftover teacher mass therefore renormalizes the aligned atoms under whenever student leftover mass is smaller than teacher leftover mass, and is folded into the reset atom under .
Proposition 4 is why mode-seeking RKL uses support : when leftover mass remains below leftover teacher mass, still overshoots p on I, not only on the exact-zero face. Proofs of Propositions 3 and 4 are in Appendix B.
4.4 RECIPE4: OVERLAP-GATED -DIVERGENCE
Low overlap needs the covering force of FKL on (Proposition 3); high overlap needs RKL on , where would still leftover-renormalize (Proposition 4). Overlap selects which of those two jobs a prefix token presents. We therefore propose overlap-gated -divergence: interpolates those two regimes and switches the support strategies. Let and be the student and teacher distributions on the simplex over the current support , either or . For , the -divergence is
The endpoints recover the two KL directions used above: as , and as . Appendix C verifies the two limits for (4). Intermediate interpolates those two vector fields rather than adding a second loss. On each update, let be the prefix tokens that enter the loss. Set , , and let be the median percentile of . Define
The support switches at the median: when , and when . We therefore propose the overlap-gated -divergence for adaptively aligning each token via :
where determines both and the support of as above. The full objective puts the Where prefix window on this How divergence. With prefix fraction from §3,
Suffix tokens are sampled with the student but do not enter the loss.
5 EXPERIMENTS
5.1 SETUP
Models and training dataset. We use three student-teacher pairs (Table 2). Qwen3-1.7B distilled from Qwen3-4B Yang et al. (2025) is a same-family distillation with a larger teacher. DSR1-1.5B distilled from JustRL-1.5B Guo et al. (2025); He et al. (2025) is a same-size distillation on long trajectories. Qwen3-1.7B distilled from Qwen3-4B-Non-Thinking-RL (NTRL) Yang et al. (2025) keeps the first student and changes only the teacher, isolating teacher strength. The training set is DAPO-MATH-17K with no additional filtering Yu et al. (2025). The compared baselines are: OPD, ESR Zhou et al. (2026), EOPD Jin et al. (2026), and TIP Xu et al. (2026). OPD is the default top-k recipe. ESR, EOPD, and TIP are trained with the configurations from their papers.
Evaluation. For fair comparison, we follow previous evaluation pipeline Fu et al. (2026); Lu & Thinking Machines Lab (2025) and evaluate on seven common benchmarks: AIME24, AIME25, AIME26, HMMT25, Minerva Lewkowycz et al. (2022), Olympiad He et al. (2024), and MATH500 Hendrycks et al. (2021); Lightman et al. (2024). AIME24/25/26 and HMMT25 have few problems and report Avg@8; Minerva, Olympiad, and MATH500 have many more and report pass@1 from a single sample. Reported scores use the best checkpoint of each method.
Implementation. All methods are trained in VERL Sheng et al. (2025). OPD and O²PD use distillation top-k size k = 16. O²PD applies the loss to a prefix fraction , attaches a reset atom, maps from the prefix overlap min and max, and switches named support at the median of prefix overlap: below the median and at or above it. Further training hyperparameters are in Appendix E, and evaluation details in Appendix F.
Table 2: Performance (%) for three OPD student-teacher pairs. Len is the mean generated length in tokens. Bold marks the best distilled method in each column within a pair; underline marks the second best. vs. OPD is minus OPD.
| Method | AIME24 | AIME25 | AIME26 | HMMT25 | Minerva | Olympiad | MATH500 | Len | Avg |
|---|---|---|---|---|---|---|---|---|---|
| Qwen3-1.7B (student) ← Qwen3-4B (teacher) | |||||||||
| Qwen3-1.7B | 8.33 | 12.08 | 5.83 | 6.25 | 20.59 | 36.74 | 73.8 | 3049 | 23.37 |
| Qwen3-4B | 23.33 | 31.67 | 21.67 | 15.00 | 31.99 | 45.48 | 85.8 | 4127 | 36.42 |
| OPD | 13.75 | 14.17 | 7.08 | 5.83 | 23.53 | 36.00 | 74.0 | 5033 | 24.91 |
| ESR | 13.75 | 14.17 | 7.08 | 8.33 | 21.32 | 38.37 | 74.2 | 4480 | 25.32 |
| EOPD | 14.17 | 12.50 | 11.67 | 5.00 | 23.90 | 38.37 | 74.6 | 5110 | 25.74 |
| TIP | 12.92 | 14.58 | 6.67 | 6.67 | 21.32 | 39.70 | 76.8 | 5377 | 25.52 |
| 15.42 | 15.00 | 11.67 | 6.67 | 23.90 | 38.96 | 76.0 | 4684 | 26.80 | |
| vs. OPD | +1.67 | +0.83 | +4.59 | +0.84 | +0.37 | +2.96 | +2.0 | --- | +1.89 |
| DSR1-1.5B (student) ← JustRL-1.5B (teacher) | |||||||||
| DSR1-1.5B | 28.75 | 23.75 | 21.25 | 12.08 | 18.38 | 28.00 | 84.4 | 15627 | 30.94 |
| JustRL-1.5B | 50.83 | 40.00 | 35.83 | 22.08 | 27.94 | 42.96 | 91.4 | 9308 | 44.43 |
| OPD | 42.92 | 32.08 | 31.67 | 16.67 | 16.91 | 18.67 | 83.8 | 12241 | 34.67 |
| ESR | 36.67 | 30.00 | 27.50 | 15.83 | 20.22 | 25.04 | 83.4 | 12376 | 34.09 |
| EOPD | 42.50 | 34.17 | 23.75 | 17.50 | 18.38 | 29.48 | 86.0 | 11677 | 35.97 |
| TIP | 45.83 | 31.67 | 31.67 | 18.75 | 17.65 | 25.63 | 86.6 | 11552 | 36.83 |
| 46.67 | 33.33 | 30.42 | 20.00 | 23.16 | 33.78 | 89.0 | 10875 | 39.48 | |
| vs. OPD | +3.75 | +1.25 | -1.25 | +3.33 | +6.25 | +15.11 | +5.2 | --- | +4.81 |
| Qwen3-1.7B (student) ← Qwen3-4B-NTRL (teacher) | |||||||||
| Qwen3-1.7B | 8.33 | 12.08 | 5.83 | 6.25 | 20.59 | 36.74 | 73.8 | 3049 | 23.37 |
| Qwen3-4B-NTRL | 70.00 | 63.33 | 65.00 | 38.75 | 39.34 | 64.44 | 94.8 | 11751 | 62.24 |
| OPD | 45.42 | 40.42 | 37.08 | 21.25 | 31.62 | 51.85 | 89.4 | 19129 | 45.29 |
| ESR | 46.67 | 37.92 | 42.50 | 22.92 | 33.09 | 54.22 | 90.2 | 13893 | 46.79 |
| EOPD | 52.08 | 39.17 | 40.83 | 23.33 | 34.56 | 53.19 | 90.2 | 17696 | 47.62 |
| TIP | 50.42 | 44.58 | 43.33 | 22.92 | 32.72 | 52.74 | 89.8 | 19036 | 48.07 |
| 54.17 | 45.83 | 44.58 | 25.83 | 36.76 | 55.70 | 91.2 | 19631 | 50.58 | |
| vs. OPD | +8.75 | +5.41 | +7.50 | +4.58 | +5.14 | +3.85 | +1.8 | --- | +5.29 |
5.2 MAIN DISTILLATION
Table 2 reports seven-suite Avg for the three student-teacher pairs. O²PD attains 26.80 with the Qwen3-4B teacher, 39.48 with JustRL-1.5B, and 50.58 with NTRL. On every pair it exceeds ESR, EOPD, and TIP on Avg, and it improves over OPD by +1.89, +4.81, and +5.29. TIP and ESR raise Avg performance over OPD on all three teacher-student pairs, by up to +3.63 and +2.36. This reveals that optimizing a subset of tokens is more effective than optimizing all tokens. However, ESR's Avg gains remain small, and on some benchmarks ESR falls behind OPD, which demonstrates that dynamically adjusting the number of selected tokens may be necessary on harder problems. EOPD also raises Avg over OPD, by up to +3.18, by mixing FKL into RKL on high-entropy teacher tokens, showing that RKL alone is insufficient and benefits from an FKL covering channel. Instead of applying complex token-selective strategies, we optimize a fixed fraction of each trajectory's prefix, so the number of aligned tokens scales with the response length. We then use overlapped α-divergence to combine FKL covering with RKL mode-seeking and switch the support with overlap. This yields a further Avg gain over ESR, EOPD, and TIP on all three teacher-student pairs.
5.3 DISCUSSION
Method components. We ablate five variants (Fig. 4). w/o How applies the prefix restriction to OPD. w/o Where applies overlap-gated -divergence with Reset Support and Support Convergence to the full trajectory. FKL/RKL uses FKL on below the prefix overlap median and RKL on at or above it. w/o I keeps the prefix and runs overlap-gated -divergence on only. w/o r keeps the prefix and runs overlap-gated -divergence on the teacher top-k , without the reset atom.
(a) Components Ablations

(b) Prefix vs. suffix
Figure 4: (a) Method-component ablation studies (%). Each bar removes one component of . (b) Prefix versus suffix performance. Avg is the mean of Avg@8 on AIME24, AIME25, AIME26, and HMMT25.
On the Qwen3-1.7B student with the NTRL teacher, all five variants lie between OPD and full O²PD on seven-suite Avg (Fig. 4 (a)). w/o How exceeds full-trajectory OPD, so the prefix restriction alone beats applying the loss to every token. w/o Where is higher, so How on the full trajectory contributes more than the prefix restriction alone. Dropping either block leaves a gap to full O²PD.
Within How, w/o r is the largest single-component drop; the reset atom carries the covering channel. With the support already switching with overlap, FKL/RKL stays below both w/o I and full O²PD: continuous interpolates the two vector fields rather than adding a second loss. Converging the support to as overlap rises is the smallest increment.
Prefix versus suffix. To test whether the teacher provides effective supervision on prefix tokens relative to suffix tokens and to the full rollout, we vary where the loss sits on the full trajectory for both OPD and . The prefix

Figure 5: Mean top-k overlap trend.
sweep applies the loss to the first fraction of each
Table 3: Support-switch percentile on the Qwen3-1.7B (student) ← Qwen3-4B-NTRL (teacher).
| Percentile | AIME24 | AIME25 | HMMT25 | ||||
|---|---|---|---|---|---|---|---|
| Avg@8 | pass@8 | Avg@8 | pass@8 | Avg@8 | pass@8 | Avg | |
| 0.25 | 51.67 | 66.67 | 42.92 | 63.33 | 23.75 | 36.67 | 39.45 |
| 0.5 | 54.17 | 73.33 | 45.83 | 70.00 | 25.83 | 43.33 | 41.94 |
| 0.75 | 52.50 | 70.00 | 45.42 | 66.67 | 25.42 | 40.00 | 41.11 |
| 1.0 | 53.75 | 73.33 | 43.33 | 66.67 | 24.58 | 40.00 | 40.55 |
student response; the suffix sweep applies it to the last fraction. The two methods share the full-trajectory endpoint . Both methods are higher at than at full-trajectory training (Fig. 4 (b)). Optimizing the suffix pulls down that distillation improvement. At a matched budget of 0.2, the prefix outperforms the suffix for both methods, and suffix-only training falls below the full trajectory. The teacher therefore provides effective supervision on prefix tokens. OPD remains above OPD at every measured endpoint, and the best point is prefix with the How recipes.
Overlap dynamics. To test whether OPD raises teacher–student alignment level, measured by mean top- overlap, and whether the prefix fraction still attains the alignment of full-trajectory distillation, we track that overlap over training on the Qwen3-1.7B student with the NTRL teacher for OPD at and , together with OPD, ESR, TIP, and EOPD (Fig. 5). All methods start near 0.61, rise in the first few steps, and then plateau through step 200. Distillation under OPD at rises faster than at ; the prefix run then catches up, and both finish near 0.70. That level is above OPD, EOPD, and TIP near 0.68, and above ESR. Prefix-only distillation therefore delays alignment and does not lower the level OPD attains.
5.4 SENSITIVITY TO THE SUPPORT-SWITCH PERCENTILE
In §4.4, the support switches when overlap crosses a percentile of the prefix overlaps, by default the median . This subsection measures how sensitive OPD is to that percentile. We keep , a reset atom, and overlapped fixed, and replace by , , , or (Tab. 3). Tokens below the chosen percentile stay on ; tokens at or above it use . We report Avg@8 and pass@8 on AIME24, AIME25, and HMMT25. The median is the best of the four percentiles. Percentile 0.5 has the highest Avg@8 on every benchmark. Switching to at 0.25 hurts more than leaving tokens on through 0.75 or 1.0. Actor entropy declines over training at every percentile, and the decline is larger as the percentile approaches 1.0 (Fig. 6), where

Figure 6: Actor entropy during training at the four support-switch percentiles on the Qwen3-1.7B student with the NTRL teacher.
almost all prefix tokens remain on . That trend is consistent with leftover renormalization on (Proposition 4). We therefore use percentile 0.5: it yields the best performance of the four percentiles, and its entropy is not the lowest, so the student can keep exploration.
6 CONCLUSION
In this paper, we study two questions in OPD: which tokens to align, and how to align those tokens. For which, we find that teacher supervision is more reliable on the student prefix than on the suffix. For how, we prove that minimizing RKL on the teacher top- neither covers teacher-only atoms at low overlap nor pins teacher mass on shared atoms at high overlap. Therefore, we propose OPD, which concentrates on the alignment of the 20% prefix of each rollout via a designed overlap-gated -divergence. The per-token overlap between teacher and student is used to adaptively modulate and switch between Reset Support and Support Convergence. On seven benchmarks OPD attains the best average performance among compared methods, improving over OPD by +1.89, +4.81, and +5.29 on the three different student–teacher pairs.
AI USE STATEMENT
In this work we used generative AI tools (LLM writing and coding assistants) for the following uses.
Writing. We used them to outline the paper, draft sections, edit for clarity, format LaTeX tables and captions, and suggest titles and keywords. The authors reviewed and revised all submitted text.
Retrieval and discovery. We used them to search and summarize retrieved papers. Every citation was checked against a public source; unverified references were discarded.
Research ideation and execution. We used them to refine the research questions and conceptual framework, to formulate and check mathematical claims and proof sketches. They were not used to generate synthetic data.
ETHICS STATEMENT
The study distills language models on public math benchmarks and does not involve human subjects. Dataset licenses and intended-use constraints will be listed here before submission.
REFERENCES
Rishabh Agarwal, Nino Vieillard, Yongchao Zhou, Piotr Stanczyk, Sabela Ramos Garea, Matthieu Geist, and Olivier Bachem. On-policy distillation of language models: Learning from self-generated mistakes. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=3zKtaqxLhW.
Shun-ichi Amari. -divergence is unique, belonging to both -divergence and Bregman divergence classes. IEEE Transactions on Information Theory, 55(11):4925–4931, 2009. doi: 10.1109/TIT.2009.2030485.
Anshumann, Mohd Abbas Zaidi, Akhil Kedia, Jinwoo Ahn, Taehwak Kwon, Kangwook Lee, Hae-jun Lee, and Joohyung Lee. Sparse logit sampling: Accelerating knowledge distillation in LLMs, 2025. URL https://arxiv.org/abs/2503.16870.
Ganqu Cui, Yuchen Zhang, Jiacheng Chen, Lifan Yuan, Zhi Wang, Yuxin Zuo, Haozhan Li, Yuchen Fan, Huayu Chen, Weize Chen, Zhiyuan Liu, Hao Peng, Lei Bai, Wanli Ouyang, Yu Cheng, Bowen Zhou, and Ning Ding. The entropy mechanism of reinforcement learning for reasoning language models, 2025. URL https://arxiv.org/abs/2505.22617.
Yuqian Fu, Haohuan Huang, Kaiwen Jiang, Jiacai Liu, Zhuo Jiang, Yuanheng Zhu, and Dongbin Zhao. Revisiting on-policy distillation: Empirical failure modes and simple fixes, 2026. URL https://arxiv.org/abs/2603.25562.
Yuxian Gu, Li Dong, Furu Wei, and Minlie Huang. MiniLLM: Knowledge distillation of large language models. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=5h0qf7IBZZ.
Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Peiyi Wang, Qihao Zhu, Runxin Xu, Ruoyu Zhang, et al. DeepSeek-R1 incentivizes reasoning in LLMs through reinforcement learning. Nature, 645(8081):633–638, 2025. doi: 10.1038/s41586-025-09422-z.
Bingxiang He, Zekai Qu, Zeyuan Liu, Yinghao Chen, Yuxin Zuo, Cheng Qian, Kaiyan Zhang, Weize Chen, Chaojun Xiao, Ganqu Cui, Ning Ding, and Zhiyuan Liu. JustRL: Scaling a 1.5B LLM with a simple RL recipe, 2025. URL https://arxiv.org/abs/2512.16649.
Chaoqun He, Renjie Luo, Yuzhuo Bai, Shengding Hu, Zhen Thai, Junhao Shen, Jinyi Hu, Xu Han, Yujie Huang, Yuxiang Zhang, Jie Liu, Lei Qi, Zhiyuan Liu, and Maosong Sun. Olympiad-Bench: A challenging benchmark for promoting AGI with olympiad-level bilingual multi-modal scientific problems. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 3828–3850, Bangkok, Thailand, 2024. Association for Computational Linguistics. doi: 10.18653/v1/2024.acl-long.211. URL https://aclanthology.org/2024.acl-long.211/.
Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring mathematical problem solving with the MATH dataset. In Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks, 2021. URL https://arxiv.org/abs/2103.03874.
Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network, 2015. URL https://arxiv.org/abs/1503.02531.
Jingcheng Hu, Yinmin Zhang, Qi Han, Daxin Jiang, Xiangyu Zhang, and Heung-Yeung Shum. Open-reasoner-zero: An open source approach to scaling up reinforcement learning on the base model, 2025. URL https://arxiv.org/abs/2503.24290.
Woogyeol Jin, Taywon Min, Yongjin Yang, Dennis Wei, Yi Zhou, Swanand Ravindra Kadhe, Nathalie Baracaldo, and Kimin Lee. Entropy-aware on-policy distillation of language models, 2026. URL https://arxiv.org/abs/2603.07079.
Yoon Kim and Alexander M. Rush. Sequence-level knowledge distillation. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pp. 1317–1327, Austin, Texas, 2016. Association for Computational Linguistics. doi: 10.18653/v1/D16-1139. URL https://aclanthology.org/D16-1139/.
Jongwoo Ko, Tianyi Chen, Sungyun Kim, Tianyu Ding, Luming Liang, Ilya Zharkov, and Se-Young Yun. DistiLLM-2: A contrastive approach boosts the distillation of LLMs, 2025. URL https://arxiv.org/abs/2503.07067.
Aitor Lewkowycz, Anders Andreassen, David Dohan, Ethan Dyer, Henryk Michalewski, Vinay Ramasesh, Ambrose Slone, Cem Anil, Imanol Schlag, Theo Gutman-Solo, Yuhuai Wu, Behnam Neyshabur, Guy Gur-Ari, and Vedant Misra. Solving quantitative reasoning problems with language models. In Advances in Neural Information Processing Systems, 2022. URL https://arxiv.org/abs/2206.14858.
Yaxuan Li, Yuxin Zuo, Bingxiang He, Jinqian Zhang, Chaojun Xiao, Cheng Qian, Tianyu Yu, Huanang Gao, Wenkai Yang, Zhiyuan Liu, and Ning Ding. Rethinking on-policy distillation of large language models: Phenomenology, mechanism, and recipe, 2026. URL https://arxiv.org/abs/2604.13016.
Hunter Lightman, Vineet Kosaraju, Yura Burda, Harri Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. Let's verify step by step. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=v8L0pN6EOi.
Zichen Liu, Changyu Chen, Wenjun Li, Penghui Qi, Tianyu Pang, Chao Du, Wee Sun Lee, and Min Lin. Understanding R1-zero-like training: A critical perspective, 2025. URL https://arxiv.org/abs/2503.20783.
Kevin Lu and Thinking Machines Lab. On-policy distillation. Thinking Machines Lab: Connectionism, 2025. doi: 10.64434/tml.20251026. URL https://thinkingmachines.ai/blog/on-policy-distillation.
Bing Shao, Jiazheng Zhang, Long Ma, Yujiong Shen, Senjie Jin, Xin Guo, Yuming Yang, Mingxu Chai, Zhiheng Xi, Boyang Liu, Junlin Shang, Tao Gui, Qi Zhang, and Xuanjing Huang. A token-level analysis of sampled-token reverse-KL on-policy distillation, 2026. URL https://arxiv.org/abs/2608.25643.
Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. DeepSeekMath: Pushing the limits of mathematical reasoning in open language models, 2024. URL https://arxiv.org/abs/2402.03300.
Guangming Sheng, Chi Zhang, Zilingfeng Ye, Xibin Wu, Wang Zhang, Ru Zhang, Yanghua Peng, Haibin Lin, and Chuan Wu. HybridFlow: A flexible and efficient RLHF framework. In Proceedings of the Twentieth European Conference on Computer Systems, pp. 1279–1297, 2025. doi: 10.1145/3689031.3696075.
Rui Wang, Hongru Wang, Yi Chen, Boyang Xue, Tianqing Fang, Wenhao Yu, and Kam-Fai Wong. Demystifying on-policy distillation: Roles, pathologies, and regulations, 2026a. URL https://arxiv.org/abs/2607.13399.
Yuanyi Wang, Su Lu, Yanggan Gu, Pengkai Wang, Yifan Yang, Zhaoyi Yan, Congkai Xie, Jianmin Wu, and Hongxia Yang. Not all disagreement is learnable: Token teachability in on-policy distillation, 2026b. URL https://arxiv.org/abs/2605.26844.
Yuanda Xu, Hejian Sang, Zhengze Zhou, Ran He, Zhipeng Wang, and Alborz Geramifard. TIP: Token importance in on-policy distillation, 2026. URL https://arxiv.org/abs/2604.14084.
An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, et al. Qwen3 technical report, 2025. URL https://arxiv.org/abs/2505.09388.
Wenkai Yang, Weijie Liu, Ruobing Xie, Kai Yang, Saiyong Yang, and Yankai Lin. Learning beyond teacher: Generalized on-policy distillation with reward extrapolation, 2026. URL https://arxiv.org/abs/2602.12125.
Qiying Yu, Zheng Zhang, Ruofei Zhu, Yufeng Yuan, Xiaochen Zuo, Yu Yue, Weinan Dai, Tiantian Fan, Gaohong Liu, Lingjun Liu, Xin Liu, Haibin Lin, Zhiqi Lin, Bole Ma, Guangming Sheng, Yuxuan Tong, Chi Zhang, Mofan Zhang, Wang Zhang, Hang Zhu, Jinhua Zhu, Jiaze Chen, Jiangjie Chen, Chengyi Wang, Hongli Yu, Yuxuan Song, Xiangpeng Wei, Hao Zhou, Jingjing Liu, Wei-Ying Ma, Ya-Qin Zhang, Lin Yan, Mu Qiao, Yonghui Wu, and Mingxuan Wang. DAPO: An open-source LLM reinforcement learning system at scale. In Advances in Neural Information Processing Systems, 2025. URL https://arxiv.org/abs/2503.14476.
Zichao Yu, Chengzhi Yu, Shengze Xu, Yujin Han, Bingqing Jiang, Xu Wang, and Difan Zou. Mismatch matters: On-policy distillation beyond token agreement, 2026. URL https://arxiv.org/abs/2608.09836.
Weihao Zeng, Yuzhen Huang, Qian Liu, Wei Liu, Keqing He, Zejun Ma, and Junxian He. SimpleRL-Zoo: Investigating and taming zero reinforcement learning for open base models in the wild. In Second Conference on Language Modeling, 2025. URL https://arxiv.org/abs/2503.18892.
Ziheng Zhou, Jiaqi Li, Huacong Tang, Ying Nian Wu, and Demetri Terzopoulos. Less is more: Early stopping rollout for on-policy distillation, 2026. URL https://arxiv.org/abs/2605.27028.
CONTENTS
A O²PD training step 14
B Gradient proofs 14
B.1 RKL simplex gradient ..... 14
B.2 Support restriction ..... 15
B.3 Covering channel ..... 15
B.4 Renormalized match on T ..... 15
B.5 FKL covering ..... 16
B.6 Leftover renormalization ..... 16
C Endpoints of α-divergence 17
D The two failures after O²PD 18
E Training configuration 18
F Evaluation 18
A O²PD TRAINING STEP
Algorithm 1 implements (7). Only prefix tokens enter the loss. Overlap maps from the prefix min and max, and switches Reset Support with Support Convergence at the median of prefix overlaps. Reported runs use and (§5.1).
Algorithm 1 O²PD update on one student rollout.
Require: student , teacher , prompt , prefix fraction , top- size
1: sample
2:
3: for do
4: ,
5: , ,
6:
7: end for
8: low , high
9:
10:
11: for do
12: gate
13:
14: if then
15:
16: for , ; likewise from
17: else
18:
19: for , ; likewise from
20: end if
21:
22: end for
23: update on
B GRADIENT PROOFS
This section proves Lemma 1 and Propositions 1–4. Throughout, on , does not depend on , , , and . We always assume the support in a display is nonempty and that the corresponding student mass is positive, so renormalized restrictions are well-defined. No further assumption is placed on the shapes of and . The reset atom is introduced only in §B.5–§B.6; the failure statements in §B.2–§B.4 concern without the reset atom.
B.1 RKL SIMPLEX GRADIENT
Let on a finite simplex with strictly positive target , and let . The softmax Jacobian is . Differentiating,
The convention is used throughout. If while remains bounded, then , hence . Applying (8) on the simplex of with and yields
The right-hand side vanishes whenever . Membership does not force , but it does place outside , so student mass on those atoms is typically far below the mass on . Softmax never attains exact zeros; is a slice used in Proposition 1, not a training constraint.
B.2 SUPPORT RESTRICTION
Proof of Lemma 1. For ,
The partition function of over cancels, so depends on only through . The teacher restriction does not depend on . Therefore is a function of those logits alone, which gives for every . Every and every falls in this set, so RKL on has no coordinate there.
B.3 COVERING CHANNEL
Proof of Proposition 1. The assumption with gives and for every . Substituting into (8) yields on . The remaining coordinates live on , and
which is RKL between and the restriction of to . Lemma 1 gives for . If instead is small but positive, (8) remains proportional to on . Emptiness of as a set is not what shuts the covering channel. For ,
Thus does not imply a vanishing gradient. The first-order covering share
is zero whenever every satisfies the display above (and is undefined if the denominator is zero).
B.4 RENORMALIZED MATCH ON
Proof of Proposition 2. is RKL on the finite simplex of . Gibbs' inequality gives with equality if and only if , provided is strictly positive on that simplex. Softmax teachers assign on , so is strictly positive. The unique minimizer on the relative interior is therefore . This identity is equivalent to for with the same . It does not force , and does not depend on logits outside (Lemma 1), so the minimizer is not on .
For completeness we record the face without a reset atom that is not used as a training constraint. If and , then and
The last term does not depend on . Minimizing over the simplex of gives on , hence for . Then , with equality for a positive if and only if . This characterizes the slice; it does not prove that SGD remains on the slice.
B.5 FKL COVERING
On a simplex with and , the same Jacobian yields
Proof of Proposition 3. The cancellation in Lemma 1 shows that depends on only through . Identity (10) on that simplex, or on , is . If , and , then , so gradient descent raises .
If and , the sum diverges to . For RKL the same limit is finite: remains a distribution on and reduces as in Proposition 1.
On , teacher reset mass is and student reset mass is . Identity (10) on the reset coordinate is . Low overlap typically places substantial student mass outside , so and descent lowers the reset coordinate, which is a pooled suppression of .
B.6 LEFTOVER RENORMALIZATION
Proposition 1 keeps leftover RKL factors proportional to student mass, so stays small rather than rising to . A reset atom does not reopen that channel. The next statement compares RKL on and on with leftover coordinates frozen at a possibly positive ; the uncovered face is .
Proof of Proposition 4. The assumption with gives . Softmax teachers assign on , so . Combined with ,
lies in , and .
On , for and . Freeze on with total mass . The leftover RKL terms are then constant in the coordinates. Write for the remaining masses on , so for , , and . Let , hence , and
where does not depend on . Gibbs' inequality yields a unique minimizer , i.e.
Thus on , so if and only if . Setting recovers the uncovered-face formulae. As , the leftover contribution because for each .
On , leftover mass is part of the reset atom: on and . This pair is a strictly positive probability. Gibbs' inequality gives the unique interior minimizer and . The coordinate is not in the simplex over , so the -target does not depend on . If leftover mass is additionally frozen at , that interior point remains feasible by placing the remaining reset mass on . When the two simplices coincide, and the unconstrained interior of is , which requires .
The simplex gradient on has only two kinds of coordinates:
Identity (11) is (8) on . For vocabulary logits , the simplex logits may be realized as for and . Then for , and for . Tokenwise therefore appears only on . The analogous identities on place tokenwise on every , including .
Lemma 2 (Gradient coincidence). If and , then . The second term does not depend on , so and induce the same student-logit gradient. In particular both first-order covering shares are zero whenever they are defined.
Proof. The assumption gives and for , together with . Then
Subtracting yields . For the RKL identity (8) is zero because . Gradients on therefore coincide, and the covering share of is zero.
Lemma 2 is the boundary case of Proposition 1 for RKL on . Leftover renormalization (Proposition 4) does not degenerate: the -target equals only when , which is the unconstrained interior rather than the small- regime.
C ENDPOINTS OF -DIVERGENCE
This appendix verifies the two KL limits of (4) used in §4.4. The family is due to Amari Amari (2009); the calculation is for the displayed coefficients and argument order. Throughout, is finite and for every .
Write
. Set , so and . Then and . The inner sum is
Hence
and .
. Set , so and . Then and . The inner sum is
Hence
and .

Figure 7: Prefix tokens at before and after OPD. (a) Mean overlap by initial-overlap bin. (b) Destination of tokens with initial . (c) Signed on the shared top-1.
Table 4: Student-teacher pairs used for OPD.
| Student | Teacher |
|---|---|
| Qwen3-1.7B | Qwen3-4B |
| DSR1-1.5B | JustRL-1.5B |
| Qwen3-1.7B | Qwen3-4B-NTRL |
D THE TWO FAILURES AFTER OPD
To test whether OPD relieves the two failures of top- OPD in §4.1, we follow prefix tokens at (Fig. 7). Teacher-support Uncovering is read from mean overlap by initial-overlap bin and from the destination of tokens with initial . Dominant-Mode Mismatch is read from the signed gap on the shared top-1.
Mean overlap rises in every bin, by 0.042 for , 0.024 for 0.3–0.6, and 0.022 for . Of the tokens that start below 0.3, 30% move into 0.3–0.6 and none reach ; 70% remain below 0.3. Under top- OPD, 87.3% of that cohort remain below 0.3 and none reach . OPD moves more of the low-overlap cohort out of the lowest bin, and most of it is still there. On tokens that share the teacher's top-1, the signed gap after OPD lies below the gap after top- OPD and remains positive at high overlap. OPD therefore relieves Teacher-support Uncovering and Dominant-Mode Mismatch problems relative to top- OPD.
E TRAINING CONFIGURATION
We train OPD in VERL Sheng et al. (2025) on 16-NPU Ascend 910C machines. Chat templates disable thinking. The update is the distillation loss alone. Teacher log-probabilities are computed on the student prompt. Table 4 lists the three student-teacher pairs. DSR1-1.5B is DeepSeek-R1-Distill-Qwen-1.5B, and the NTRL teacher is Qwen3-4B-Non-Thinking-RL. All runs use DAPO-MATH-17K with no additional filtering, right truncation, and data-loader seed 42. Table 5 records the optimizer and rollout recipe. Table 6 records the OPD loss settings used in the reported runs.
OPD on the NTRL and DSR1 pairs was scheduled for 300 steps, and OPD with the Qwen3-4B teacher for 200 steps. Downstream scores use intermediate checkpoints at step 60 or 100, not necessarily the last scheduled step.
F EVALUATION
Downstream evaluation uses the same decoding and grading pipeline for distilled checkpoints and reference models. The cross-prefix protocol in §3 reports pass@1 on MATH500 and is separate from the settings below.
Every model is decoded with vLLM. Thinking mode is disabled. All problems use the model's chat template with the user prompt:
Table 5: Shared training recipe for O²PD.
| Setting | Value |
|---|---|
| Hardware | 16× Ascend 910C |
| Data | DAPO-MATH-17K, unfiltered |
| Optimizer | AdamW, , weight decay 0.01 |
| Learning rate | , cosine decay, min ratio 0.1 |
| Warmup / grad clip | 10 steps / 1.0 |
| Train / mini-batch | 64 / 16 |
| Micro-batch per NPU | 4 |
| Max prompt / response | 1536 / 4096 |
| Rollout / temperature | 1 / 1.0 |
| Precision | bfloat16 rollout, FSDP param and optimizer offload |
| KL loss | off |
| Loss clamps | max 10.0, log min |
| Thinking | off |
Table 6: O²PD loss settings.
| Setting | Value |
|---|---|
| Top- size | 16 |
| Prefix fraction | 0.2 |
| Reset atom | on |
| mapped from prefix overlap min and max | |
| Support switch | median of prefix overlap: below, at or above |
| Scheduled steps | 200 (Qwen3-4B teacher); 300 (NTRL and DSR1 pairs) |
{problem} Please reason step by step, and put your final answer within the box.
Decoding uses temperature 0.6, top-, sampling top-, and a maximum of 31,744 tokens.
A response is graded by extracting the final \boxed{} expression and checking mathematical equivalence against the reference answer with a rule-based verifier. The verifier applies symbolic-equivalence normalization for fractions, radicals, and other equivalent forms. A response without a parseable boxed answer is counted as incorrect.