Manuscript Offprint
arXiv:2610.09665SAPD: Step-Aligned Privileged Distillation
ABSTRACT
On-policy post-training can improve large language models by learning from their own trajectories, but requires costly rollout generation. We ask whether fixed demonstrations can support competitive off-policy learning through better supervision. Our premise is that their usefulness depends not only on the training trajectories, but also on whether supervision provides informative preferences among continuations and connects this guidance to the reasoning decision being learned. We introduce Step-Aligned Privileged Distillation (SAPD), a rollout-free self-distillation method that turns demonstrations into step-aligned distributional supervision. Its key insight is to use the known progression of a reference solution to associate each reasoning transition with targeted privileged guidance, rather than treating the solution as undifferentiated context. On mathematical reasoning benchmarks, SAPD outperforms supervised fine-tuning and label smoothing on average while remaining competitive with on-policy reinforcement learning and self-distillation. Analyses support both the value of context-dependent distributional guidance and the benefit of aligning privileged information with the current step. SAPD also largely preserves out-of-domain coding performance and achieves approximately training-loop speedups over the on-policy baselines. These findings suggest that carefully constructed supervision can make fully off-policy post-training a competitive and computationally efficient alternative. Our code is available at https://github.com/Miaow-Lab/SAPD.
1 INTRODUCTION
Post-training enables large language models (LLMs) to acquire specialized capabilities from task-specific data and feedback. A central choice is whether to learn from fixed demonstrations or from trajectories generated by the model being trained. On-policy approaches include reinforcement learning with verifiable rewards, such as Group Relative Policy Optimization (GRPO) (Shao et al., 2024), and distillation from teacher feedback on student-generated trajectories (Agarwal et al., 2024). Recent self-distillation methods further use demonstrations to guide on-policy learning without requiring a separately trained, larger teacher (Zhao et al., 2026; Shenfeld et al., 2026). A common motivation is that learning on the student's own trajectories reduces the mismatch between training and inference, which is believed to contribute to strong task performance and generalization (Agarwal et al., 2024). However, repeatedly generating these trajectories introduces substantial autoregressive decoding costs, particularly for long reasoning traces (Shenfeld et al., 2026).
This trade-off raises a practical question: can fixed demonstrations support competitive post-training without student rollouts? We study this question from two complementary perspectives. First, rather than treating each demonstrated token as the complete supervision signal, we ask whether fixed trajectories can provide richer, distributional guidance over possible next-token predictions. Second, because a reasoning demonstration contains a sequence of intermediate steps, we ask whether such guidance should be localized to the step associated with the current prediction rather than derived from the entire solution. Together, these perspectives examine whether the effectiveness of fixed demonstrations can be improved by changing how supervision is constructed, without changing the trajectories on which learning takes place.
First, supervision should express informative preferences, not merely a demonstrated token or uniformly softened labels. A reasoning trace combines decisions needed to solve a problem
Department of Data Science, City University of Hong Kong, Hong Kong Institute of AI for Science, City University of Hong Kong, Shenzhen University, Equal contribution. Correspondence to: Ning Miao (ningmiao@cityu.edu.hk).
with choices of wording and exposition. One-hot imitation does not explicitly distinguish plausible alternative expressions from incompatible continuations. Knowledge distillation provides a high-level alternative: a teacher's predictive distribution can convey relative support beyond a single observed label (Hinton et al., 2015). Privileged-information learning further suggests that information available only during training can be translated into such supervision (Lopez-Paz et al., 2016). We therefore hypothesize that demonstration-informed distributions can guide learning on fixed trajectories more effectively than hard targets or uniform smoothing, by expressing context-dependent preferences and uncertainty.
Second, privileged guidance should be aligned with the reasoning decision being learned. Distributional targets provide a supervision mechanism, but their usefulness also depends on which part of the demonstration is used to construct them. Work on process supervision motivates connecting feedback to intermediate reasoning decisions rather than relying solely on final outcomes (Uesato et al., 2022; Lightman et al., 2024). We apply this intuition to the scope of privileged information, rather than to step-level reward labels. Giving a teacher the full solution leaves it to determine which parts should guide each local continuation. Fixed demonstrations offer a useful alternative: their known progression identifies the reasoning step associated with each training context. We hypothesize that making this correspondence explicit provides more focused guidance than using the same global solution context throughout the trace.
These principles lead to Step-Aligned Privileged Distillation (SAPD), a rollout-free self-distillation method. SAPD uses a demonstration's step structure to associate each reference transition with corresponding privileged guidance, then distills the resulting context-dependent distributions on fixed reference trajectories. Distributional supervision determines what preferences are transferred; step alignment determines which demonstrated information informs those preferences. Their combination turns fixed demonstrations into targeted learning signals without generating new training trajectories.
SAPD achieves strong average performance across three mathematical reasoning benchmarks, outperforming SFT and label-smoothed SFT while remaining competitive with GRPO and on-policy self-distillation (OPSD) (Zhao et al., 2026). It also largely preserves out-of-domain coding performance. We then examine the two motivating hypotheses: target-distribution examples and training dynamics assess informative supervision beyond generic softness, while full-solution and misaligned-guidance ablations assess the value of step alignment. Finally, our efficiency evaluation reports approximately training-loop speedups over the on-policy baselines. Together, these results suggest that the construction of supervision is an important lever for effective off-policy post-training, alongside the choice of training trajectories.
where denotes the next-token logits. We omit the superscript when , so .
SFT and label smoothing. Supervised fine-tuning (SFT) is an off-policy method that learns from fixed reference trajectories through teacher forcing:
Label smoothing (Vaswani et al., 2017) replaces the one-hot target with and minimizes cross-entropy against . Both methods train on reference prefixes; label smoothing softens the supervision but assigns equal probability to all alternative tokens.
GRPO. Group Relative Policy Optimization (GRPO) (Shao et al., 2024) is an on-policy method commonly used for reinforcement learning with verifiable rewards. For each problem, it samples G responses from the rollout policy and obtains verifiable rewards . Each response receives a group-normalized advantage , where and are the group reward mean and standard deviation. GRPO optimizes a clipped policy-gradient objective, optionally with a reference-policy KL penalty, without a learned value model. Under outcome supervision, all tokens within a response share the same advantage.
OPSD. On-policy self-distillation (OPSD) (Zhao et al., 2026) provides dense distributional supervision along student-generated trajectories . A teacher derived from the same base model additionally observes the reference solution as privileged information. At each student prefix, define and . Here is the shared distillation temperature. Omitting divergence clipping, its forward-KL objective is
Gradients flow only through the student predictions. SDFT (Shenfeld et al., 2026) shares the same core paradigm of on-policy distillation from a demonstration-conditioned teacher.
3 STEP-ALIGNED PRIVILEGED DISTILLATION
We introduce SAPD, a rollout-free self-distillation method organized around two design choices: the target should convey richer information and the information used to construct that target should be relevant to the reasoning decision being learned. This leads to a simple construction: we use a privileged teacher to convert demonstrated reasoning into informative target distributions, while using the progression of the reference solution to determine which privileged information is relevant at each prediction step. Importantly, our method changes the supervision available at fixed reference contexts rather than replacing them with student-generated states.
Reference-anchored learning states. We retain the reference-prefix contexts used by SFT, avoiding the need to sample student trajectories. Using the notation of Section 2, we partition each reference solution as , where denotes concatenation. Each step is a contiguous reference segment, and the partition preserves the original token sequence. The formulation permits different segmentation granularities, including the unsegmented case . For the -th token of step , the student's prediction context is
where contains all preceding reference steps, and is the reference prefix within the current step. Here indexes reference steps and indexes tokens within step ; the pair corresponds to the full-sequence token position used in Section 2.
Step-conditioned distributional targets. The remaining question is how to construct an informative target distribution for each reference context. Conditioning the teacher on the entire solution provides abundant privileged information, but does not explicitly associate that information with the particular reasoning transition currently being learned. Motivated by the local correspondence between supervision and intermediate reasoning decisions in process supervision (Uesato et al., 2022; Lightman et al., 2024), we exploit the known structure of the reference trajectory: for each token position in step , the distillation target is obtained from a teacher conditioned on the corresponding reference step as privileged information. Specifically, the student predicts from , while the teacher additionally conditions on . Let denote this privileged teacher context. At a shared temperature , their distributions are
The teacher distribution therefore converts the demonstrated step into token-level preferences at the student context. Crucially, the step boundary controls only the teacher-side privileged information: the student's causal history remains the complete reference prefix and is never reset between steps.
Algorithm 1 Step-Aligned Privileged Distillation
Require: Demonstrations , initial parameters , temperature
1: Initialize student and frozen teacher
2: while training has not converged do
3: Sample a minibatch
4: for each do
5: Partition into reference segments
6: for each reference position do
7: Form student context
8: Construct teacher context
9: Compute
10: Compute
11: end for
12: end for
13: Compute the token-mean forward KL loss in Eq. 6 over
14: Update by gradient descent while keeping fixed
15: end while
16: return Student , using no privileged information at inference
Distilling the aligned distributions. We train the student to match the step-conditioned teacher distribution at each reference-token position. Let denote the set of reference-token positions in the demonstration, and let . The token-mean forward KL loss is
The teacher is stop-gradient and remains frozen at the initial checkpoint throughout training.
Algorithm 1 summarizes training. A single causal student forward pass scores the retained reference sequence for each example; teacher forwards are performed separately for each segment. Both branches use teacher forcing, so no autoregressive rollout generation is required.
Overall, SAPD uses the reference trajectory for two complementary purposes: its prefixes define rollout-free training states, while its step structure identifies the privileged information used to construct distributional supervision at those states.
4 EXPERIMENTS
We first ask whether SAPD achieves competitive reasoning performance while retaining out-of-domain capabilities. We then examine the two hypotheses motivating the method: whether its supervision provides informative distributional structure beyond generic softness, and whether privileged information is more effective when aligned with the current reasoning step. Finally, we evaluate the computational consequence of learning without student rollouts.
4.1 EXPERIMENT SETUP
Models and datasets. We use Qwen3-4B-Instruct-2507 as the base model and conduct post-training on mathematical reasoning subset of OpenThoughts (Guha et al., 2026). We evaluate in-domain mathematical reasoning on AIME24/25 (Zhang & Math-AI, 2024; 2025), and HMMT25 (Dekoninck et al., 2026). To assess out-of-domain capability retention after post-training, we additionally evaluate coding performance on MBPP+ (Austin et al., 2021), HumanEval+ (Chen et al., 2021), and LiveCodeBench v6 (LCBv6) (Jain et al., 2025).
Baselines. We compare SAPD against four baselines covering off-policy supervised learning, on-policy reinforcement learning, and on-policy self-distillation. Their formulations are described in Section 2. (1) SFT serves as the standard supervised baseline. (2) LS-SFT uses a smoothing
Table 1: Overall Avg@12 and average output length. Mathematics benchmarks measure in-domain performance; coding benchmarks measure out-of-domain (OOD) capability retention after mathematics post-training. Average length is measured in tokens on mathematics benchmarks. Among post-trained methods, bold and underline indicate the best and second-best results, respectively. Base is shown separately as the initial-model reference.
| Method | In-domain: Mathematics | Out-of-domain: Code | |||||||
|---|---|---|---|---|---|---|---|---|---|
| AIME24 | AIME25 | HMMT25 | Avg. | Avg. length | MBPP+ | HumanEval+ | LCBv6 | Avg. | |
| Base | 62.22 | 46.94 | 29.17 | 46.11 | 10,595 | 64.15 | 81.86 | 24.24 | 56.75 |
| SFT | 58.33 | 46.67 | 28.61 | 44.54 | 12,835 | 63.23 | 80.34 | 18.32 | 53.96 |
| LS-SFT | 59.72 | 49.17 | 31.11 | 46.67 | 10,102 | 61.97 | 81.71 | 22.14 | 55.27 |
| GRPO | 62.22 | 47.50 | 30.56 | 46.76 | 10,145 | 64.95 | 82.62 | 24.05 | 57.21 |
| OPSD | 61.94 | 47.78 | 32.78 | 47.50 | 10,870 | 63.82 | 83.23 | 23.66 | 56.90 |
| SAPD (Ours) | 65.28 | 48.06 | 30.28 | 47.87 | 9,927 | 64.15 | 82.62 | 23.28 | 56.68 |
coefficient of to test whether the gains of SAPD can be explained by target softening alone. (3) GRPO serves as a representative reinforcement learning with verifiable rewards (RLVR) baseline, enabling comparison with on-policy learning from outcome-level feedback. (4) OPSD enables comparison with on-policy distillation using reference solutions as privileged information. Since SDFT follows the same core training paradigm, we use OPSD as the representative baseline for this family and do not evaluate SDFT separately.
Implementation details. We remove examples with empty problems, reasoning traces, or solutions. For each remaining example, we concatenate COT_Reason and solution with a blank-line separator and partition the resulting reference into ordered segments. Segmentation prioritizes explicit step headings, followed by numbered-step markers, and falls back to paragraph boundaries. Both the student and teacher use the non-thinking chat template with the assistant prefill “Let’s solve the problem step by step.” To reduce redundant computation, we tokenize the reference as a continuous sequence and share a single causal student forward pass across all segments within each example. Training and evaluation are performed on four NVIDIA H100 GPUs. OPSD and SAPD use a distillation temperature of for both student and teacher logits.
Evaluation settings. We follow the evaluation protocol of Zhao et al. (2026) and report avg@k, the mean fraction of correct responses across k samples per problem, averaged over the benchmark. Here, we set k = 12. For each method and base model, we select the checkpoint with the highest mean avg@k across the in-domain benchmarks. Sampling settings, prompting, and answer grading are detailed in Appendix B.
4.2 OVERALL PERFORMANCE AND CAPABILITY GENERALIZATION
Table 1 compares SAPD with the baselines across the in-domain and out-of-domain benchmarks.
In-domain mathematical reasoning. SAPD achieves the strongest overall mathematical reasoning performance among the evaluated methods, with an average accuracy of . The improvement is consistent with the main motivation of the method: enriching supervision on fixed reference trajectories can recover the benefits typically associated with on-policy training without requiring student-generated trajectories. Notably, this gain is not accompanied by longer generations. SAPD produces the shortest average outputs among the post-trained methods (9,927 tokens), while still outperforming both the supervised baselines and the evaluated on-policy methods on average. This suggests that the improvement is not simply attributable to increased test-time reasoning length, but to more effective post-training supervision.
Out-of-domain generalization. The gains in mathematical reasoning do not come at the cost of a substantial degradation in the evaluated coding capabilities. After mathematics post-training, SAPD retains an OOD average of , outperforming the off-policy SFT and LS-SFT baselines and remaining close to the on-policy GRPO and OPSD baselines. Together, the in-domain and
(a) Equivalent expressions
| Background | Method | larger Reference | bigger Valid alt. | less Incorrect | nats |
|---|---|---|---|---|---|
| Compare with 64. | |||||
| Response | SFT | ||||
| is 256, which is way [larger] than 64. | LS | ||||
| Ours |
(b) Critical decision
| Target probability | |||||
|---|---|---|---|---|---|
| Background | Method | Reference | Incorrect | Incorrect | nats |
| Ten sparrows, x grains each. Their total exceeds 1100. | |||||
| Response | SFT | ||||
| So the second inequality is: | LS | ||||
| [>] 1100 | Ours | ||||
Figure 1: Informative supervision is not simply target softening. Comparison of SFT, label-smoothed SFT (LS), and SAPD at two reference-token positions: (a) equivalent expressions and (b) a critical inequality decision. Background gives brief problem context; Response shows a local response, with highlighted tokens marking prediction sites. Cell shading uses a shared linear probability scale from 0 to 1. denotes full-vocabulary entropy.
OOD results show that SAPD improves mathematical reasoning while largely preserving capabilities outside the training domain.
4.3 BEYOND LABEL SMOOTHING: CONTEXT-DEPENDENT SUPERVISION
Our first hypothesis concerns the information expressed by the targets. SFT and LS-SFT provide useful comparisons: one concentrates supervision on the demonstrated token, while the other assigns uniform mass to alternatives. We examine whether SAPD instead supplies context-dependent preferences and whether student training preserves this structure relative to a shared teacher.
Target distributions distinguish flexibility from precision. Figure 1 compares the supervision at two reference-token positions. In the equivalent-expression case, the reference uses larger to compare with 64. The alternative bigger preserves the comparison, whereas less contradicts it. SFT assigns no target mass to either alternative, and LS-SFT assigns both the same negligible probability, . In contrast, SAPD assigns 0.395 to larger and 0.251 to bigger, but only to less. Its supervision therefore distinguishes the alternatives rather than merely spreading probability away from the reference token.
The inequality case validates the complementary requirement of precision. When ten sparrows each peck grains and their total exceeds 1100, the correct relation is . Here, SAPD assigns approximately unit probability to , versus and to and =. Its target entropy is approximately zero, compared with 1.175 in the equivalent-expression case. SFT has zero target entropy in both examples, while LS-SFT has the same reference probability (0.900) and entropy (1.518) in both. These examples illustrate the intended property: uncertainty adapts to the prediction context instead of being uniformly increased.
Training dynamics separate aggregate matching from preferences over alternatives. For all methods and checkpoints, we evaluate identical fixed reference-prefix contexts against a shared, frozen privileged anchor teacher at temperature .
Figure 2(a) shows that SFT rapidly reduces the full teacher–student KL, , from approximately 0.46 to 0.33, followed by a plateau, whereas SAPD produces a smaller reduction to approximately 0.43. Label smoothing initially reduces this divergence but subsequently reverses

Figure 2: Training dynamics reveal preservation of non-reference distributional structure. (a) Full teacher–student KL, . (b) Conditional non-reference KL, computed after excluding the demonstrated token and renormalizing both distributions. (c) Mean token-level absolute entropy gap, . The inset magnifies the range 0.19–0.32. (d) Student probability mass on the teacher's top-five tokens.
Table 2: Ablation of privileged supervision. We report Avg@12 on three math benchmarks and their average. Best results are in bold.
| Method | AIME24 | AIME25 | HMMT25 | Avg. |
|---|---|---|---|---|
| SAPD (ours) | 65.28 | 48.06 | 30.28 | 47.87 |
| Misaligned PI | 60.00 | 48.89 | 28.06 | 45.65 |
| Full PI | 60.00 | 44.72 | 30.27 | 45.00 |
direction, reaching approximately 0.52. Thus, SFT achieves the strongest aggregate teacher matching under this metric. However, aggregate KL combines agreement on the probability assigned to the demonstrated token with agreement on the distribution over all remaining tokens. To validate the specific hypothesis about preferences beyond the reference token, we separately examine the remaining vocabulary. For a reference token , define
Conditional KL, , measures relative preferences among non-reference tokens independently of their total probability mass. In Figure 2(b), it increases from approximately 1.07 to 1.47 under SFT and to 2.20 under LS-SFT, but decreases modestly to 1.02 under SAPD. Writing and , the KL chain rule explains why the aggregate and conditional trends can differ:
Full KL downweights conditional disagreement when the teacher assigns little mass to alternatives. Accordingly, SFT's lower aggregate KL does not imply better preservation of their relative probabilities.
Uncertainty and candidate-set concentration provide complementary evidence. The mean absolute entropy gap, , remains near 0.21 under SAPD, compared with approximately 0.30 under SFT and 1.95 under LS-SFT (Figure 2(c)). Student mass on the anchor teacher's top-five tokens remains approximately under SAPD, but decreases to under SFT and under LS-SFT (Figure 2(d)). These metrics respectively assess uncertainty mismatch and concentration on teacher-preferred candidates.
Together with the target examples, these dynamics support the first hypothesis in a specific sense: SAPD supplies context-dependent preferences and largely preserves non-reference distributional structure that hard imitation and uniform smoothing do not preserve in this comparison.

(a) Accuracy-compute trade-off.
(b) Runtime breakdown.
Figure 3: Training efficiency. (a) AIME24 Avg@12 accuracy versus training-loop GPU-hours. (b) Runtime decomposed by computational component; numbers at the bar ends indicate total runtime.
4.4 VALUE OF STEP-ALIGNED PRIVILEGED INFORMATION
The second hypothesis concerns which information constructs the teacher's targets. To examine it, we retain the off-policy student reference contexts and distillation objective while comparing current-step guidance with full-solution and misaligned privileged information (PI).
Does broader privileged context improve supervision? The Full PI variant treats the complete reference solution as one step, so the teacher receives the full solution throughout the trace. Average accuracy decreases from 47.87% to 45.00%, a reduction of 2.87 pp (Table 2). Thus, providing more extensive privileged context does not recover the performance of current-step guidance in this comparison. This supports organizing privileged information around the transition being learned rather than assuming that the complete solution is always the most effective teacher context.
Does the guidance need to correspond to the current step? The Misaligned PI variant shuffles reference segments within the same problem. For a reference with segments, we use a fixed, seeded permutation with no fixed points , and provide as privileged guidance when supervising . The student's reference sequence, causal prefixes, and supervised positions remain unchanged; only the assignment of teacher-side guidance is permuted. Its average accuracy is 45.65%, or 2.22 pp below SAPD. Combined with the full-solution comparison, this result supports the value of matching privileged information to the current reference transition.
4.5 EFFICIENCY OF ROLLOUT-FREE TRAINING
We now validate whether avoiding student rollouts provides the intended computational benefit. Figure 3a reports AIME24 avg@12 accuracy and training-loop cost across the evaluated methods.
Accuracy-compute trade-off. Figure 3a compares AIME24 Avg@12 against training-loop GPU-hours. SAPD achieves the highest observed accuracy among the evaluated methods, reaching approximately 65.3% with 0.66 GPU-hours. In comparison, OPSD and GRPO achieve approximately 61.9% and 62.2%, while consuming 1.28 and 1.47 GPU-hours, respectively. Thus, SAPD achieves slightly higher accuracy while reducing training-loop compute by approximately 49% relative to OPSD and 55% relative to GRPO. Although SFT and LS-SFT consume less compute at their reported operating points, both remain below 60% accuracy. These results highlight the favorable accuracy-compute trade-off of SAPD: it achieves higher accuracy than the supervised baselines while requiring substantially less compute than the evaluated on-policy methods.
Runtime breakdown. To understand the source of these savings, Figure 3b decomposes the measured runtime into its constituent components. Rollout generation dominates the runtime of both GRPO and OPSD. In contrast, SAPD avoids student-generated rollouts, spending most of its runtime on teacher computation and student updates. Notably, teacher computation is more expensive for SAPD than for OPSD in this breakdown, but this additional cost is more than offset by eliminating rollout generation. The measured runtime of SAPD is 9.88 minutes, compared with 19.20 minutes for OPSD and 22.02 minutes for GRPO, corresponding to speedups of and , respectively.
Together with the accuracy comparison, these results demonstrate that rollout-free privileged distillation can achieve competitive reasoning performance while substantially reducing the computational cost of training.
5 RELATED WORK
5.1 ON-POLICY AND OFF-POLICY LEARNING
SFT learns from fixed reference trajectories (Ouyang et al., 2022), whereas on-policy methods train on model-generated contexts to address training-inference mismatch. Examples include distillation methods such as GKD (Agarwal et al., 2024) and MiniLLM (Gu et al., 2024), and reinforcement learning with verifiable rewards such as GRPO (Shao et al., 2024). More closely related, OPSD (Zhao et al., 2026) and SDFT (Shenfeld et al., 2026) use demonstration-conditioned teachers to supervise student-generated trajectories. SAPD instead distills on fixed reference prefixes, improving their supervision without autoregressive rollout generation.
5.2 DISTRIBUTIONAL SUPERVISION
Knowledge distillation conveys preferences beyond the observed label through teacher probabilities (Hinton et al., 2015), while uniform label smoothing assigns equal mass to alternative tokens (Vaswani et al., 2017). Token-level distillation transfers next-token distributions; sequence-level distillation learns from generated outputs (Kim & Rush, 2016). Self-distillation can also improve code generation by applying SFT to a model's own sampled solutions (Zhang et al., 2026a). SAPD transfers context-dependent distributions at existing reference positions without generating replacement solutions. Its teacher draws on information available only during training, following the privileged-information principle of generalized distillation (Lopez-Paz et al., 2016). Related work, -Distill, jointly trains privileged and unprivileged policies using teacher-generated trajectories (Pena loza et al., 2026); SAPD uses a frozen teacher conditioned on the current reference step.
5.3 LOCAL ALIGNMENT
Process supervision associates feedback with intermediate reasoning decisions (Uesato et al., 2022; Lightman et al., 2024), including automatically constructed step-level supervision in Math-Shepherd (Wang et al., 2024). SAPD uses reference steps to construct next-token distributions without step-correctness annotations or a process reward model. Step structure also informs on-policy distillation: SOD adjusts distillation strength using step-level divergence (Zhong et al., 2026), StepOPSD combines hindsight-enriched teacher contexts with step-aware advantage shaping (Zhang et al., 2026b), and SOPD generates teacher continuations at step boundaries along student trajectories (Sun et al., 2026). In SAPD, step boundaries determine which privileged information constructs the target at each reference position, while preserving the student's complete reference history. This aligns distributional supervision with the current reference step in a fully off-policy setting.
6 CONCLUSION
We introduced SAPD, a rollout-free self-distillation method that uses step-aligned privileged information to construct distributional targets on fixed reference prefixes. On mathematical reasoning benchmarks, SAPD outperforms SFT and label-smoothed SFT on average and remains competitive with GRPO and OPSD, while largely preserving out-of-domain coding performance and achieving approximately training-loop speedups over the on-policy baselines. Analyses support the value of context-dependent preferences and current-step guidance. These findings suggest that carefully constructed supervision can make fixed demonstrations a competitive and efficient basis for reasoning post-training.
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.
Jacob Austin, Augustus Odena, Maxwell Nye, Maarten Bosma, Henryk Michalewski, David Dohan, Ellen Jiang, Carrie Cai, Michael Terry, Quoc Le, and Charles Sutton. Program synthesis with large language models, 2021. URL https://arxiv.org/abs/2108.07732.
Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, Alex Ray, Raul Puri, Gretchen Krueger, Michael Petrov, Heidy Khlaaf, Girish Sastry, Pamela Mishkin, Brooke Chan, Scott Gray, Nick Ryder, Mikhail Pavlov, Alethea Power, Lukasz Kaiser, Mohammad Bavarian, Clemens Winter, Philippe Tillet, Felipe Petroski Such, Dave Cummings, Matthias Plappert, Fotios Chantzis, Elizabeth Barnes, Ariel Herbert-Voss, William Hebgen Guss, Alex Nichol, Alex Paino, Nikolas Tezak, Jie Tang, Igor Babuschkin, Suchir Balaji, Shantanu Jain, William Saunders, Christopher Hesse, Andrew N. Carr, Jan Leike, Josh Achiam, Vedant Misra, Evan Morikawa, Alec Radford, Matthew Knight, Miles Brundage, Mira Murati, Katie Mayer, Peter Welinder, Bob McGrew, Dario Amodei, Sam McCandlish, Ilya Sutskever, and Wojciech Zaremba. Evaluating large language models trained on code, 2021. URL https://arxiv.org/abs/2107.03374.
Jasper Dekoninck, Nikola Jovanović, Tim Gehrunger, Kári Rögnvaldsson, Ivo Petrov, Chenhao Sun, and Martin Vechev. Beyond benchmarks: Matharena as an evaluation platform for mathematics with llms. 2026. URL https://arxiv.org/abs/2605.00674.
Yuxian Gu, Li Dong, Furu Wei, and Minlie Huang. Minillm: Knowledge distillation of large language models. In B. Kim, Y. Yue, S. Chaudhuri, K. Fragkiadaki, M. Khan, and Y. Sun (eds.), International Conference on Learning Representations, volume 2024, pp. 32694–32717, 2024. URL https://proceedings.iclr.cc/paper_files/paper/2024/file/8ac015d409635f196f9e3e9dcfb9a94e-Paper-Conference.pdf.
Etash Kumar Guha, Ryan Marten, Sedrick Keh, Negin Raoof, Georgios Smyrnis, Hritik Bansal, Marianna Nezhurina, Jean Mercat, Trung Vu, Zayne Rea Sprague, Ashima Suvarna, Benjamin Feuer, Leon Liangyu Chen, Zaid Khan, Eric Frankel, Sachin Grover, Caroline Choi, Niklas Muennighoff, Shiye Su, Wanjia Zhao, John Yang, Shreyas Pimpalgaonkar, Kartik sharma, Charlie Cheng-Jie Ji, Yichuan Deng, Sarah M Pratt, Vivek Ramanujan, Jon Saad-Falcon, Stutee Acharya, Jeffrey Li, Achal Dave, Alon Albalak, Kushal Arora, Blake Wulfe, Chinmay Hegde, Greg Durrett, Sewoong Oh, Mohit Bansal, Saadia Gabriel, Aditya Grover, Kai-Wei Chang, Vaishaal Shankar, Aaron Gokaslan, Mike A Merrill, Tatsunori Hashimoto, Yejin Choi, Jenia Jitsev, Reinhard Heckel, Maheswaran Sathiamoorthy, Alex Dimakis, and Ludwig Schmidt. Openthoughts: Data recipes for reasoning models. In The Fourteenth International Conference on Learning Representations, 2026. URL https://openreview.net/forum?id=7xjoTuaNmN.
Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network, 2015. URL https://arxiv.org/abs/1503.02531.
Naman Jain, Han, Alex Gu, Wen-Ding Li, Fanjia Yan, Tianjun Zhang, Sida Wang, Armando Solar-Lezama, Koushik Sen, and Ion Stoica. Livecodebench: Holistic and contamination free evaluation of large language models for code. In Y. Yue, A. Garg, N. Peng, F. Sha, and R. Yu (eds.), International Conference on Learning Representations, volume 2025, pp. 58791–58831, 2025. URL https://proceedings.iclr.cc/paper_files/paper/2025/file/94074dd5a072d28ff75a76dabed43767-Paper-Conference.pdf.
Yoon Kim and Alexander M. Rush. Sequence-level knowledge distillation. In Jian Su, Kevin Duh, and Xavier Carreras (eds.), Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pp. 1317–1327, Austin, Texas, November 2016. Association for Computational Linguistics. doi: 10.18653/v1/D16-1139. URL https://aclanthology.org/D16-1139/.
Hunter Lightman, Vineet Kosaraju, Yuri Burda, Harrison Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. Let's verify step by step. In B. Kim, Y. Yue, S. Chaudhuri, K. Fragkiadaki, M. Khan, and Y. Sun (eds.), International Conference on Learning Representations, volume 2024, pp. 39578–39601, 2024. URL https://proceedings.iclr.cc/paper_files/paper/2024/file/aca97732e30bcf1303bc22ac3924fd16-Paper-Conference.pdf.
David Lopez-Paz, Léon Bottou, Bernhard Schölkopf, and Vladimir Vapnik. Unifying distillation and privileged information, 2016. URL https://arxiv.org/abs/1511.03643.
Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, John Schulman, Jacob Hilton, Fraser Kelton, Luke Miller, Maddie Simens, Amanda Askell, Peter Welinder, Paul F Christiano, Jan Leike, and Ryan Lowe. Training language models to follow instructions with human feedback. In S. Koyejo, S. Mohamed, A. Agarwal, D. Belgrave, K. Cho, and A. Oh (eds.), Advances in Neural Information Processing Systems, volume 35, pp. 27730–27744. Curran Associates, Inc., 2022. doi: 10.52202/068431-2011. URL https://proceedings.neurips.cc/paper_files/paper/2022/file/blefde53be364a73914f58805a001731-Paper-Conference.pdf.
Emiliano Penaloza, Dheeraj Vattikonda, Nicolas Gontier, Alexandre Lacoste, Laurent Charlin, and Massimo Caccia. Privileged information distillation for language models. In The 1st Workshop on Scaling Post-training for LLMs, 2026. URL https://openreview.net/forum?id=FbJu6NEBQR.
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.
Idan Shenfeld, Mehul Damani, Jonas Hübotter, and Pulkit Agrawal. Self-distillation enables continual learning. In Forty-third International Conference on Machine Learning, 2026. URL https://openreview.net/forum?id=qA6FgH0nnZ.
Changhui Sun, Lanbo Liu, Hang Lei, Tong Ling, Jiahang Xie, Zhiyong Zheng, Yujia Wang, Hao Liu, Feng Xiao, Lu Liu, Yanlong Du, Zifeng Cheng, Ziwei Jiang, and Qing Gu. Step-level on-policy distillation: Interpolating between on-policy distillation and supervised fine-tuning, 2026. URL https://arxiv.org/abs/2608.16333.
Jonathan Uesato, Nate Kushman, Ramana Kumar, Francis Song, Noah Siegel, Lisa Wang, Antonia Creswell, Geoffrey Irving, and Irina Higgins. Solving math word problems with process- and outcome-based feedback, 2022. URL https://arxiv.org/abs/2211.14275.
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Proceedings of the 31st International Conference on Neural Information Processing Systems, NIPS'17, pp. 6000–6010, Red Hook, NY, USA, 2017. Curran Associates Inc. ISBN 9781510860964.
Peiyi Wang, Lei Li, Zhihong Shao, Runxin Xu, Damai Dai, Yifei Li, Deli Chen, Yu Wu, and Zhi-fang Sui. Math-shepherd: Verify and reinforce LLMs step-by-step without human annotations. In Lun-Wei Ku, Andre Martins, and Vivek Srikumar (eds.), Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 9426–9439, Bangkok, Thailand, August 2024. Association for Computational Linguistics. doi: 10.18653/v1/2024.acl-long.510. URL https://aclanthology.org/2024.acl-long.510/.
Ruixiang Zhang, Richard He Bai, Huangjie Zheng, Navdeep Jaitly, Ronan Collobert, and Yizhe Zhang. Embarrassingly simple self-distillation improves code generation, 2026a. URL https://arxiv.org/abs/2604.01193.
Yanfei Zhang, Xu Lin, and Chenglin Wu. Stepopsd: Step-aware online preference self-distillation for agent reinforcement learning, 2026b. URL https://arxiv.org/abs/2605.27140.
Yifan Zhang and Team Math-AI. American invitational mathematics examination (aime) 2024, 2024.
Yifan Zhang and Team Math-AI. American invitational mathematics examination (aime) 2025, 2025.
Siyan Zhao, Zhihui Xie, Mengchen Liu, Jing Huang, Guan Pang, Feiyu Chen, and Aditya Grover. Self-distilled reasoner: On-policy self-distillation for large language models. In Forty-third International Conference on Machine Learning, 2026. URL https://openreview.net/forum?id=Jpxfof0EaS.
Qiyong Zhong, Mao Zheng, Mingyang Song, Xin Lin, Jie Sun, Houcheng Jiang, Xiang Wang, and Junfeng Fang. Sod: Step-wise on-policy distillation for small language model agents, 2026. URL https://arxiv.org/abs/2605.07725.
Table 3: Training settings for baselines and SAPD. LS-SFT extends the SFT configuration with label smoothing. A dash denotes a setting that does not apply. Sequence limits refer to teacher-forced inputs; rollout lengths refer to generated responses.
| Setting | SFT | LS-SFT | GRPO | OPSD | SAPD |
|---|---|---|---|---|---|
| Learning rate | |||||
| Effective batch size | 32 | 32 | 32 | 32 | 32 |
| LoRA rank | 64 | 64 | 64 | 64 | 64 |
| LoRA alpha | 128 | 128 | 128 | 128 | 128 |
| Training steps | 100 | 100 | 500 | 100 | 100 |
| Max sequence length | 16K | 16K | - | - | 16K |
| Rollout length | - | - | 16K | 1K | - |
| Generations per prompt | - | - | 8 | 1 | - |
| Sampling temperature | - | - | 1.2 | 1.1 | - |
| Label-smoothing coefficient | 0 | 0.1 | - | - | - |
A TRAINING DETAILS
We follow the baseline training settings in OPSD (Zhao et al., 2026), as summarized in Table 3. LS-SFT follows the SFT configuration with label-smoothing coefficient .
B EVALUATION DETAILS
We follow the evaluation protocol of Zhao et al. (2026). We evaluate all models with a sampling temperature of 1.0 and top- of 0.8, with top- filtering disabled (top_k=-1). We set the maximum generation length to 38k tokens and the maximum total sequence length, including the prompt and generated response, to 40k tokens. For mathematical reasoning benchmarks, we follow the OPSD evaluation implementation for prompt construction, chat-template application, answer extraction, and correctness grading. Specifically, we apply each model's native chat template and instruct it to reason step by step and place its final answer within \boxed{}. We extract the last boxed answer and assess its correctness against the ground-truth answer using the implementation's math_verify-based grading function.
C TEACHER AND STUDENT PROMPT EXAMPLES
We show a real example from the training split of siyanzhao/Openthoughts_math_30k_opsd, asking for given and . The blocks below show the user message and the open assistant prefix supplied to each branch. Role labels are explanatory; the model's native non-thinking chat template supplies the role delimiters. No additional system message is provided.
Student Prompt
[User] Problem: If and , what is the value of ? Express your answer as a common fraction.
Please reason step by step, and put your final answer within \boxed{}.
[Assistant prefix] Let's solve the problem step by step.
https://github.com/siyan-zhao/OPSD
Okay, so I need to find the value of y in the equation , given that x is equal to 4. Let me start by writing down what I know.
The student sees the question and the first reference segment, but not the second segment as privileged guidance. Its continuous reference sequence uses a blank line between segments.
Teacher Prompt
[User] Problem: If and , what is the value of ? Express your answer as a common fraction.
Potential next step: First, the equation is raised to the power of , and that equals 4. Since they told me that is 4, I can substitute that into the equation. Let me do that step by step.
Please reason step by step using the potential next step as guidance, and put your final answer within \boxed{}.
[Assistant prefix] Let's solve the problem step by step. Okay, so I need to find the value of in the equation , given that is equal to 4. Let me start by writing down what I know.
The teacher additionally sees the complete reference segment under “Potential next step.” Its assistant prefix contains the same prefix and ends with a single newline. Both branches score the same reference continuation beginning with “First, the equation is x raised to the power of 2y”. At subsequent positions, the within-segment reference prefix is extended for both branches, while only the teacher retains access to the complete current segment as privileged guidance. Both branches use teacher forcing rather than sampling a continuation.