Manuscript Offprint
arXiv:2610.21337Does On-Policy Distillation Need to Complete Every Rollout?
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Zhengxin Zhang, Maosen Tang, Ning Wang, Changhao Li, Jingren Zhou, Bo Dai, Sainyam Galhotra, Alex Townsend, Claire Cardie
Cornell University Georgia Tech Alibaba Group
✉ {zz865, mt872, nw366}@cornell.edu

Unbiased by Reweighting
sums the gradients of all tokens
cut at the random stop : ;
token is kept with prob.
Unbiased
gradient sum
Matched Accuracy

Faster Training
Similar Training Dynamics

Figure 1 | Overview of STOPD: random truncation with blockwise inverse-probability weighting (top) matches Vanilla OPD's accuracy and distillation loss for an 8B student in mathematics (bottom left and right) while reducing total training time across tasks and model scales (bottom center).
Abstract | On-policy distillation (OPD) effectively transfers capabilities from a teacher to a student through feedback on student-generated rollouts. However, generating complete student rollouts and computing teacher feedback for every token make OPD computationally expensive. We introduce Stochastic Truncated On-Policy Distillation (STOPD), which accelerates OPD by randomly truncating student rollouts and correcting the resulting sampling bias with blockwise inverse-probability weighting (IPW). At each training step, we sample a stopping position for each rollout before generation and let the student generate until that position or natural termination. We obtain teacher feedback on every generated token and use blockwise IPW to compensate for the lower probability of retaining later tokens while controlling the weights. We prove that this weighting preserves Vanilla OPD's gradient sum in expectation and derive one-step update-error bounds for SGD, Adam, and Muon. We evaluate STOPD across multiple teacher–student model pairs, task domains, and optimizers. STOPD reduces generated tokens by 25–48% while maintaining accuracy comparable to Vanilla OPD, achieving 1.3–2.2× training speedups.
1. Introduction
On-policy distillation (OPD) effectively transfers capabilities from a teacher to a student through feedback on student-generated rollouts [Gu et al., 2024; Agarwal et al., 2024; Lu & Thinking Machines Lab, 2025]. The teacher provides guidance on the student's own rollouts. However, each Vanilla OPD update generates complete student rollouts, scores every token with the teacher, and trains the
Equal contribution.
student on all generated tokens [Wu et al., 2026]. As rollouts grow longer during training, both autoregressive generation and the student's forward and backward passes become more expensive. Scaling up the teacher and student further increases the cost of scoring, generation, and updates. These growing costs make generation and student updates major computational bottlenecks, which motivates the following question: does OPD need to complete every rollout to obtain an effective student update?
Existing approaches reduce different parts of this computation. Sparse supervision selects which generated positions contribute to the loss [Xu et al., 2026; Wang et al., 2026; Sheng et al., 2026]. These methods reduce student-update time but still require complete rollout generation, which remains the dominant cost. Motivated by declining teacher guidance at later positions, Early Stopping Rollout [Zhou et al., 2026] truncates generation to a fixed prefix. Although a fixed prefix cutoff reduces generation, it omits later-token gradients, biasing the estimate of Vanilla OPD's gradient sum and changing the directions of student updates.
We introduce Stochastic Truncated On-Policy Distillation (STOPD), which accelerates OPD by randomly truncating student rollouts and correcting the resulting sampling bias with blockwise inverse-probability weighting (IPW) [McLeish, 2011]. At each training step, we sample a stopping position for each rollout before generation and let the student generate until that position or natural termination. Every generated token receives teacher feedback, and its loss is weighted by the inverse of the probability that it is included. However, uniformly sampled stopping positions can give late tokens extreme weights, which can destabilize training. We therefore combine IPW with blockwise truncation. We first divide the maximum training length into fixed-width token blocks. We then uniformly sample a position before generation and stop at the end of the block containing it. This increases the inclusion probabilities of late tokens, thereby limiting their weights.
We show that STOPD preserves the full-generation gradient and token-count sums in expectation. We then analyze its normalized gradient, and show how batch averaging reduces the stochastic discrepancy. Finally, we bound how this gradient discrepancy affects the one-step parameter update under common optimizers such as SGD, Adam, and Muon. We further analyze how STOPD saves tokens and time. STOPD saves more tokens in expectation as rollout length increases. These token savings can translate into greater training-time savings when STOPD also improves generation throughput by reducing long-context computation or freeing cache space for more concurrent rollouts.
We evaluate STOPD in multiple domains (e.g., mathematics, code, and instruction following) with students from 1.7B to 8B and teachers from 4B to 30B. STOPD generates 25–48% fewer tokens and achieves 1.3–2.2× training speedups while closely matching Vanilla OPD in accuracy. The gains also persist when replacing the main AdamW optimizer with SGD or Muon. STOPD remains robust across block widths, maintaining similar accuracy and computational savings. Increasing the batch size from 128 to 512 further reduces truncation-induced training fluctuations without reducing the speedup. Together, these results show that OPD need not complete every rollout to learn effectively. STOPD preserves the expected gradient sums of complete rollouts using only partial generation, achieving comparable accuracy at lower training cost. This principle could extend to other autoregressive training settings, including offline and online knowledge distillation, supervised fine-tuning, and on-policy self-distillation.
Sparse supervision and rollout truncation. Sparse supervision studies which token positions should contribute to distillation. TIP uses student uncertainty and teacher-student disagreement to guide token selection [Xu et al., 2026], while TA-OPD prioritizes learnable teacher signals [Wang et al., 2026]. SelectTKD weights token losses according to whether the teacher accepts the student's proposals [Huang et al., 2025]. IER further accounts for the reliability of sampled-token gradient estimates when selecting supervision positions [Sheng et al., 2026]. Selecting loss positions alone, however, does not shorten rollout generation. ESR reduces generation by stopping at a fixed rollout prefix and distilling only that prefix [Zhou et al., 2026]. Positions beyond the cutoff have zero probability of supervision, and their missing gradient contributions are not compensated. Its prefix gradient is therefore generally biased as an estimator of the full-generation local gradient sum.
Rather than computing on complete rollouts or imposing a fixed cutoff, we apply random truncation to student rollouts and correct unequal token coverage with inverse-probability weighting [McLeish, 2011; Beatson & Adams, 2019]. We use blockwise truncation to control extreme token weights and characterize its trade-off between generation cost and estimator variance. We preserve the expected full-generation local gradient sum while reducing generation, teacher scoring, and student-update computation.
3. Stochastic Truncated On-Policy Distillation
In this section, we present the training procedure in Section 3.1, study gradient preservation and update error in Section 3.2, and analyze token and time savings in Section 3.3.
3.1. Training Procedure
At training step , consider a batch of prompts and the student . Let be the max length and the length that rollout would have under full generation, including a naturally generated end-of-sequence token when reached. Before generating each student rollout, we randomly sample a stopping position. The student then generates until that position or natural termination. We then apply inverse-probability weighting (IPW) to the observed token losses to compensate for omitted tokens. A naive IPW implementation samples the stopping position uniformly from . However, long OPD rollouts can extend close to the max length, where tokens have very small probabilities of being retained. A token at position , for example, is observed with probability and therefore receives weight . When is large, observing such a token can produce an unusually large gradient contribution.
To limit these extreme weights, we introduce blockwise truncation. We group rollout positions into consecutive blocks and round each sampled stopping position up to the end of its block. Let denote the block width. When K divides L, the last block is retained with probability K/L, reducing the largest weight from L to L/K. Larger blocks thus trade additional generation for less extreme weighting. Before generating each rollout, we sample the anchor to select the stopping block and
Algorithm 1 STOPD, with changes from Vanilla OPD in red.
Require: Student , teacher , max length , block width , batch size , warmup steps
1: Run Vanilla OPD updates and retain the student and optimizer states.
2: Set .
3: for each subsequent training step do
4: Sample a batch of prompts.
5: for each prompt do
6: Draw independently and compute using Eq. (1).
7: Generate until natural termination or .
8: Obtain local teacher feedback on every generated token.
9: Assign using Eq. (2).
10: end for
11: Compute using the current denominator .
12: Apply the baseline optimizer to .
13: Set for the next step.
14: end for
set the cutoff to that block's end:
The student generates until natural termination or the sampled cutoff , retaining tokens. We obtain teacher feedback on all retained tokens and weight each token's loss by the inverse probability that generation reaches its position. For , this probability is
We can compute each token's inclusion probability and blockwise inverse-probability weight without knowing the complete rollout length. Later positions are retained less often and receive correspondingly larger weights. Let denote the gradient contributed by token in rollout . The full gradient sum and our blockwise IPW estimate are
Vanilla computes its training loss by averaging token losses over the complete batch of tokens, giving the gradient . Since random truncation leaves unknown, we normalize our weighted token losses using an estimate from the preceding batch:
Here, is the distillation loss for token in rollout , with . The weights and are held constant during differentiation. Initial rollouts of base models are usually short relative to the max length, so random truncation offers limited savings. We therefore use Vanilla OPD warmup steps to avoid truncation noise during this phase and initialize with the last warmup batch's exact token count . After switching to random truncation, each batch estimates its complete token count using the same inclusion weights:
Algorithm 1 summarizes the training procedure of our method. Next, we analyze gradient preservation and update error in Section 3.2 and how our method saves tokens and time in Section 3.3.
3.2. Gradient Preservation and Update Error
We first establish gradient preservation by showing that STOPD preserves the full-generation gradient and token-count sums in expectation. We then analyze the normalized gradient, separating the variation introduced by random truncation from the remaining scale difference, and show how batch averaging reduces the stochastic discrepancy. Finally, we bound how this gradient discrepancy affects the one-step parameter update under SGD, Adam, and Muon.
We compare STOPD with full-generation Vanilla OPD at a fixed training step. We condition on the complete rollouts and their local teacher feedback, leaving only the sampled stopping positions random, and write for expectation over this randomness. The comparison uses three conditions. (1) Given the same prompt and previously generated tokens, the next-token distribution does not depend on the remaining generation budget. (2) The local loss at a retained position depends only on the prompt, the generated tokens through that position, and its local teacher feedback, so removing the later tokens leaves the retained token's loss unchanged. (3) Conditional on the training history, stopping positions are mutually independent across rollouts and are sampled independently of the complete rollout and teacher-feedback randomness. Each retained position is weighted by its exact inverse inclusion probability . Appendix A.1 states these conditions formally.
Preservation. Let indicate whether position is retained. Since , the weighted contribution of each position satisfies
Thus blockwise inverse-probability weighting restores both the gradient contribution and the token-count contribution of every position in expectation. Equivalently, the estimators in Section 3.1 can be written as
and summing Eq. (6) gives
Equation (8) establishes preservation at the level directly affected by truncation. The training gradient also contains the normalization in Eq. (4). Vanilla uses , whereas STOPD uses , with fixed before the current stopping positions are sampled. Therefore
Blockwise IPW therefore removes the bias introduced by truncating the gradient sum.
Error after normalization. Define . Then we have
To quantify the variation from random truncation, let . Since Eq. (8) gives , taking the expected squared norm of Eq. (10) gives
Appendices A.1 and A.3 derive this variation using
If for every token, then
Batch averaging reduces the variation from random truncation. Since and ,
Large-batch agreement. We next analyze how the scale difference behaves as the batch size grows. For , Eq. (5) gives . By Eq. (8), estimates the preceding complete token count. Complete rollouts are conditionally independent and identically distributed within each batch, with token gradients bounded by . Appendices A.4 and A.5 state the formal conditions.
Let denote the conditional mean complete rollout length at step . Then
and therefore
Combining Eq. (16) with Eq. (10) gives
Thus batch averaging reduces the stochastic discrepancy at rate . When the adjacent conditional mean lengths agree, .
Optimizer updates. We next translate the gradient discrepancy into a bound on the one-step update error. We compare STOPD and Vanilla under the same optimizer, from the same parameters and previous optimizer state, as formalized in Appendix B.
Let denote the parameter increment produced from gradient input , with the current parameters, previous optimizer state, and hyperparameters fixed. Let be the global norm-clipping map in Eq. (49), and write
Let denote the optimizer-specific coefficient evaluated at the Vanilla reference , using the largest coefficient across disjoint parameter blocks. Since is nonexpansive, Eq. (50) gives
Combining Eq. (19) with Eq. (11) gives
For SGD, Eq. (51) gives . Proposition B.1 gives the Adam coefficient , and Proposition B.2 gives the Muon coefficient .
Together, blockwise IPW preserves the complete gradient and token-count sums in expectation, while normalization separates the gradient discrepancy into variation from random truncation and the scale difference. Batch averaging reduces the stochastic discrepancy, and changes in conditional mean rollout length between adjacent steps determine the remaining scale difference. The optimizer-specific coefficient then bounds the corresponding one-step update error.
3.3. Token and Time Savings
We first quantify token savings, then analyze how they translate into reduced generation time.
Token savings. For a complete rollout of length , random truncation skips the token at position with probability . Therefore, the expected number of tokens saved is . For , , so the expected fraction of tokens saved is approximately . This corresponds to about 25% expected token savings for and nearly 50% for .
Time savings. We further show why random truncation can yield greater speedups than token savings alone would predict. During decoding, attention reads keys and values for the prompt and previously generated tokens from the key-value (KV) cache. Later tokens attend to longer cached contexts, and random truncation is more likely to skip these positions. Truncation therefore avoids forward-pass computation for skipped tokens, reduces KV-cache reads, and limits cache growth. To relate these savings to generation time, we model decoding time as a fixed cost per round plus a cost proportional to the cached context processed. We measure this cumulative context by the KV area , where is the prompt length of rollout . Since position is generated with probability , the expected KV area is
The approximation neglects discrete and block-rounding corrections for ; Appendix C.2 derives the expression and the time model. When rollouts are much longer than their prompts, the prompt term contributes little to the KV area. A rollout reaching half the max length then saves about 25% of its tokens and 33% of its KV area in expectation. At the max length, these savings increase to about 50% and 67%, respectively. Thus, random truncation reduces the cumulative cached context by a larger fraction than the token count.
The per-rollout reductions above accumulate across the batch. Let
where is the full-generation KV area of rollout , and let and denote the generated-token counts of Vanilla and STOPD, respectively. The batch-level KV-area ratio decomposes as
The first factor captures the reduction in generated tokens, while the second captures the reduction in cached context processed per generated token. When the prompt contribution is neglected, both factors are at least one.
These reductions translate into generation-time savings according to the decoding costs and scheduling. Consider the setting where prefill time is negligible compared with decoding time. When attention over long contexts dominates decoding, the model predicts that time savings track the reduction in KV area. The same relation holds when queued rollouts replace completed ones and maintain roughly constant cache occupancy at a similar level in both methods: shorter contexts allow more rollouts to generate concurrently, improving throughput. Larger training batches can help sustain this scheduling regime. In our 1.7B mathematics experiments, generating 34% fewer tokens yields a 2.0× generation speedup, exceeding the 1.5× ratio implied by token savings alone (Table 1).
If all rollouts start together, a long surviving rollout can keep the number of decoding rounds nearly unchanged. Truncation can still accelerate generation by reducing the context processed in those rounds, but the gain is smaller when fixed costs per round dominate. Random truncation also reduces teacher scoring and student loss computation, further contributing to total training-time savings. We evaluate token and time savings in Section 5.1.
4. Experimental Setup
We use the same experimental settings for Vanilla OPD and STOPD.
Models. The main setting distills Qwen3-4B-Instruct-2507 into Qwen3-1.7B-Base [Yang et al., 2025]. For scaling, we distill Qwen3-30B-A3B-Instruct-2507 into Qwen3-4B-Base and Qwen3-8B-Base in mathematics. All models run in non-thinking mode.
Data. We use Nemotron-Cascade-RL-Math [Wang et al., 2025] for mathematics, DeepCoder-Preview [Agentica, 2025] for code, and Nemotron-RL instruction following [NVIDIA, 2025] for instruction following (IF).
Training. Our main runs use AdamW [Loshchilov & Hutter, 2019] with learning rate , batch size 256, and gradient clipping at 1, for 250 steps with three seeds. Rollouts use temperature 1 and max lengths of 16,384, 8,192, and 4,096 for mathematics, code, and instruction following, respectively. STOPD uses block width after 25 Vanilla warmup steps. Each run uses two GPUs: H100 for all 1.7B experiments, H200 for the 4B student, and GB200 for the 8B student.
Evaluation. We report the average score over k sampled responses per problem (avg@k). For mathematics, we report AIME24, AIME25, and AMC23 at avg@8, and MATH500 [Hendrycks et al., 2021] and Minerva [Lewkowycz et al., 2022] at avg@3, allowing up to 32,768 tokens. For code we report HumanEval+ and MBPP+ [Liu et al., 2023] at avg@4, two LiveCodeBench windows (2024-08 to 2025-02 and 2025-02 to 2025-05; Jain et al., 2025) at avg@8, and 200 held-out training-distribution problems at avg@4, allowing up to 16,384 tokens. For instruction following, we report IFEval prompt-level strict accuracy [Zhou et al., 2023] at avg@4, allowing up to 8,192 tokens. All evaluations sample at temperature 0.7 and top-p = 0.95. Main results are averaged over three training seeds.
Timing. We measure wall-clock time per training step, including generation, teacher scoring, the student update, and other overhead.
5. Experiments
We evaluate whether STOPD reduces training time while retaining the accuracy of Vanilla OPD. Section 5.1 compares accuracy, training speed, and training dynamics over 250 steps in three domains,

Figure 2 | Accuracy of the 1.7B student against training step, mean and range, with the base model and the shared warmup in gray.
Table 1 | Cost of a training step in the main setting.
| Domain | Method | Tokens | k tok/s | Time per step (s) | |||
|---|---|---|---|---|---|---|---|
| Generation | Update | Other | Total | ||||
| Math | Vanilla | 9,516 | 3.5 | 697 | 189 | 56 | 941 |
| STOPD | 6,255 | 4.5 | 358 | 119 | 36 | 513 | |
| Speedup | 1.5× | 1.3× | 2.0× | 1.6× | 1.5× | 1.8× | |
| Code | Vanilla | 6,587 | 4.4 | 383 | 142 | 41 | 566 |
| STOPD | 3,444 | 5.6 | 158 | 78 | 24 | 260 | |
| Speedup | 1.9× | 1.3× | 2.4× | 1.8× | 1.7× | 2.2× | |
| IF | Vanilla | 710 | 3.8 | 54 | 36 | 14 | 104 |
| STOPD | 533 | 3.8 | 39 | 29 | 12 | 80 | |
| Speedup | 1.3× | 1.0× | 1.4× | 1.2× | 1.1× | 1.3× | |
Section 5.2 turns to larger students, Section 5.3 repeats mathematics with SGD and Muon, Section 5.4 varies the block width, and Section 5.5 analyzes the batch size. Table 1 summarizes training speed for the main setting.
5.1. Main Results
Figure 2 shows that STOPD and Vanilla both increase the accuracy across all three domains. Accuracy every 25 steps is shown in Table 2 in Appendix D. For example, student accuracy in mathematics increases from 11.7 to 30.1 with Vanilla and 29.4 with STOPD; in code, from 21.8 to 28.5 and 28.1; and in instruction following, from 15.6 to 59.8 and 60.1, respectively. Besides following similar increasing trends, STOPD and Vanilla OPD remain closely matched in accuracy across the three domains. The relative STOPD–Vanilla difference is in mathematics, in code, and in instruction following. Across all comparisons, the mean relative difference is , and the largest absolute difference is 5.00%.
We then compare the training time of the two methods in Table 1. Overall, STOPD speeds up training by in mathematics, in code, and in instruction following. STOPD generates 34%, 48%, and 25% fewer tokens in mathematics, code, and instruction following, corresponding to token-count ratios of , , and . Generation is , , and faster, respectively, with throughput increasing from 3.5k to 4.5k tokens/s in mathematics and from 4.4k to 5.6k tokens/s in code. The larger generation gains in mathematics and code reflect their longer rollouts: truncation reduces not

Figure 3 | Training dynamics of the 1.7B student with the shared warmup in gray.
only the number of generated tokens but also the cached context processed. Skipped later positions would otherwise attend to larger KV caches, so removing them reduces KV area per generated token. In instruction following, rollouts are much shorter, so the additional KV-area reduction is smaller, leaving the generation speedup close to the token-count ratio. Student updates are also 1.2–1.8× faster, as the student’s forward and backward passes process fewer tokens, and the remaining time (Other column in Table 1), mostly the forward pass that recomputes old log-probabilities, falls by 1.1–1.7× for the same reason.
Figure 3 shows that STOPD and Vanilla follow similar overall training dynamics across all three domains: the entropy, distillation-loss, gradient-norm, and response-length curves have similar shapes over training (since STOPD truncates its rollouts, its response length is the estimated complete length per rollout, from Eq. (5)), while STOPD exhibits larger local fluctuations. These fluctuations come from the variation introduced by random truncation. Blockwise inverse-probability weighting preserves the expected contribution of truncated tokens, but positions retained with lower probability receive larger weights, so the weighted gradient varies across batches depending on which positions are retained. We provide more discussion of these fluctuations in Section 5.5. The estimated complete rollout lengths under STOPD remains close to vanilla.
5.2. Scaling
We then evaluate STOPD at larger model scales. Figure 4 shows that both methods improve accuracy when scaling to a larger teacher and larger students, distilling Qwen3-30B-A3B-Instruct-2507 into Qwen3-4B-Base and Qwen3-8B-Base. Accuracy every 25 steps is shown in Table 2 in Appendix D, and additional time decomposition in Table 8 in Appendix E. For the 4B and 8B students, accuracy increases from 15.2 and 23.5 to 46.2 and 50.1 with Vanilla, and to 45.3 and 49.7 with STOPD, respectively. STOPD matches Vanilla more closely at larger scales. With the 30B teacher, the relative STOPD–Vanilla differences are for the 4B student and for the 8B student, with the largest absolute differences of 2.43% and 2.62%, respectively, compared with and 5.00% in the main 4B-teacher/1.7B-student setting (Section 5.1). Thus, scaling
Math · 4B student

Math · 8B student
Speedup
Figure 4 | Scaling in mathematics: accuracy for 4B and 8B students distilled from Qwen3-30B-A3B-Instruct-2507 (left, middle), and token and training-time speedups across student sizes, including the 1.7B main setting of Section 5.1 (right).
Entropy

Distillation loss
Gradient norm
Response length
Training step
Training step
Training step
Training step
Figure 5 | Training dynamics of the 4B and 8B students in mathematics with the shared warmup in gray.
the teacher and student reduces both the spread and the largest observed difference from Vanilla, suggesting that STOPD is more robust and may benefit from scaling to larger models. In terms of speed, STOPD also retains its gains at larger model scales, accelerating the full training step by for the 4B student and for the 8B student, while generating 35% and 33% fewer tokens, respectively (Figure 4). Figure 5 further shows that the training dynamics of the larger students follow those of Vanilla.
5.3. Optimizer
Along with the main AdamW setting (Section 4), we further evaluate whether STOPD generalizes across common optimizers by testing it with SGD and Muon (Figure 6). Accuracy every 25 steps is shown in Table 3 in Appendix D, and additional time decomposition in Table 9 in Appendix E. Under SGD, accuracy increases from 11.7 to 25.2 with Vanilla and 25.1 with STOPD, with a largest absolute relative difference of 3.2%. Under Muon, it increases from 11.7 to 29.5 and 29.8, respectively, with a largest absolute relative difference of 3.6%. The computational gains also hold under both optimizers. Under SGD, STOPD generates 41% fewer tokens and accelerates the full training step by 2.2×. Under Muon, it generates 37% fewer tokens and achieves a 1.9× speedup. The training dynamics also



Figure 6 | Accuracy against training step in mathematics under AdamW in the main setting of Section 5.1 and under SGD and Muon, with the base model and each optimizer's warmup in gray.

Figure 7 | Training dynamics in mathematics (1.7B ← 4B) under AdamW and under SGD and Muon, with each optimizer's warmup in gray.
remain similar to Vanilla under both SGD and Muon (Figure 7).
5.4. Block Width
We next study how the block width K affects the trade-off between weight magnitude and computational savings. We evaluate over three seeds in Figure 8. Accuracy every 25 steps is shown in Table 4 in Appendix D, and additional time decomposition in Table 10 in Appendix E. For K = 32, 128, and 512, STOPD generates 34.6%, 34.3%, and 33.1% fewer tokens, respectively, and remains faster than Vanilla. At K = 2048, the saving decreases to 28.6% and the speedup to . Accuracy is consistent across block widths. Across all pairwise comparisons among K, the mean absolute relative difference is , and the largest absolute relative difference is 4.55%.

Figure 8 | Block width in mathematics (1.7B ← 4B): accuracy against training step with the base model and the shared warmup in gray (left), the largest weight in each training step as a box plot with its bound L/K above and its median beside each box (middle), and tokens and training time relative to Vanilla (right).

Figure 9 | Accuracy against training step in mathematics (1.7B ← 4B) at B = 128, 256, and 512 (left), and loss jitter (right).
We then show the largest weight per step across K and use K = 128 as the default. This is because it balances weight control and speedup. Reducing K to 32 raises the largest weight from 128 to 512, while the median largest weight remains similar (43 versus 39). Increasing K to 512 or 2048 lowers the weight bound further, but also reduces token savings. Thus, K = 128 avoids a large worst-case weight without sacrificing the savings of smaller blocks.
5.5. Batch Size
We vary the training batch size in mathematics with the Qwen3-4B teacher and Qwen3-1.7B student, training at B = 128 and B = 512 for 100 steps alongside the main setting of B = 256 (Figure 9). Accuracy every 25 steps is shown in Table 5 in Appendix D, and additional time decomposition in Table 11 in Appendix E. Accuracy remains closely matched to Vanilla at every batch size, and the match tightens as the batch size grows. The relative STOPD–Vanilla differences are , , and , and the largest absolute difference falls from 3.40% to 2.23% and 0.73%. Over the first 100 steps, the speedup holds across all batch sizes, with STOPD accelerating the full training step by at batch size 128 and at batch sizes 256 and 512 (Table 11 in Appendix E). This is because larger batches can help sustain high generation concurrency and
KV-cache occupancy, potentially enabling greater speedups. Increasing the batch size also reduces the fluctuations introduced by random truncation. We measure them by the loss jitter, the median over training steps of the relative deviation of the distillation loss from the average of its two neighbors, averaged over seeds. The loss jitter of STOPD decreases from 12.2% at to 7.5% at and 6.1% at , close to the 8.6% and 6.1% that the rate predicts from , while Vanilla's decreases from 3.4% to 2.1% and 1.5%. Because truncations are sampled independently across rollouts, larger batches average over more realizations, reducing truncation-induced gradient fluctuations at a rate of .
6. Discussion
The principle behind STOPD could accelerate a broader range of autoregressive training workflows, including offline and online knowledge distillation, supervised fine-tuning, on-policy self-distillation, and multi-teacher on-policy distillation.
Knowledge Distillation (KD). In offline KD [Kim & Rush, 2016], we store the truncated sequences and their inclusion probabilities during dataset construction, then use them for subsequent student training with blockwise IPW. In online KD [Agarwal et al., 2024], we apply blockwise IPW within each training batch using the current teacher. Both settings could reduce generation and student-update computation to speed up training.
Supervised fine-tuning. The same approach applies to SFT by randomly truncating reference responses and applying blockwise IPW to the retained next-token cross-entropy losses.
On-policy self-distillation. OPSD uses the same model for both student and teacher, with the teacher additionally conditioned on a reference solution [Zhao et al., 2026]. We can retain the complete reference solution, randomly truncate the student rollout, and apply blockwise IPW to the distillation losses computed on its retained tokens. This could also reduce computation cost.
Multi-teacher on-policy distillation. MOPD assigns each student rollout to a teacher according to its task domain [Ma et al., 2026]. We can keep this assignment, independently truncate each student rollout, and have its assigned teacher score only the retained prefix. Applying blockwise IPW preserves the expected local gradient sum within each domain and could reduce the computation needed to integrate the specialist teachers' capabilities into a shared student.
7. Conclusion
STOPD accelerates OPD by combining random rollout truncation with blockwise IPW. It preserves Vanilla OPD's gradient sum in expectation while controlling extreme token weights. We derive one-step update-error bounds for SGD, Adam, and Muon and analyze how token savings translate into training-time gains. Random truncation reduces both generated tokens and long-context computation, with additional throughput gains when long-context processing is costly or cache capacity limits concurrency. Across mathematics, code, and instruction following with 1.7B–8B students, STOPD generates 25–48% fewer tokens and achieves 1.3–2.2× training speedups while maintaining accuracy comparable to Vanilla OPD. These results show that OPD does not really need to complete every rollout to learn effectively.
References
Agarwal, R., Vieillard, N., Zhou, Y., Stanczyk, P., Ramos Garea, S., Geist, M., and Bachem, O. On-policy distillation of language models: Learning from self-generated mistakes. In The Twelfth International Conference on Learning Representations, pp.
21246–21263, 2024. URL https://proceedings.iclr.cc/paper_files/paper/2024/hash/5be69a584901a26c521c2b51e40a4c20-Abstract-Conference.html.
Agentica. DeepCoder-Preview-Dataset. https://huggingface.co/datasets/agentica-org/DeepCoder-Preview-Dataset, 2025.
Akhondzadeh, M. S., Lingam, V., Tejaswi, A., Ekbote, C., Sanghavi, S., and Bojchevski, A. Reward-Gated On-Policy Distillation, 2026. URL https://arxiv.org/abs/2607.04037.
Andersson, F., Carlsson, M., and Perfekt, K.-M. Operator-Lipschitz estimates for the singular value functional calculus. Proceedings of the American Mathematical Society, 144(5):1867–1875, 2016. doi: 10.1090/proc/12843.
Beatson, A. and Adams, R. P. Efficient optimization of loops and limits with randomized telescoping sums. In Chaudhuri, K. and Salakhutdinov, R. (eds.), Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pp. 534–543. PMLR, 09–15 Jun 2019. URL https://proceedings.mlr.press/v97/beatson19a.html.
Boucheron, S., Lugosi, G., and Massart, P. Concentration Inequalities: A Nonasymptotic Theory of Independence. Oxford University Press, 2013. doi: 10.1093/acprof:oso/9780199535255.001.0001.
Gu, Y., Dong, L., Wei, F., and Huang, M. MiniLLM: Knowledge distillation of large language models. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=5h0qf7IBZZ.
Hendrycks, D., Burns, C., Kadavath, S., Arora, A., Basart, S., Tang, E., Song, D., and Steinhardt, J. Measuring mathematical problem solving with the MATH dataset. In Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks, volume 1, 2021. URL https://arxiv.org/abs/2103.03874.
Huang, H., Song, J., Zhang, Y., and Ren, P. SelectTKD: Selective Token-Weighted Knowledge Distillation for LLMs, 2025. URL https://arxiv.org/abs/2510.24021.
Jain, N., Han, K., Gu, A., Li, W.-D., Yan, F., Zhang, T., Wang, S., Solar-Lezama, A., Sen, K., and Stoica, I. LiveCodeBench: Holistic and contamination free evaluation of large language models for code. In The Thirteenth International Conference on Learning Representations, pp. 58791–58831, 2025. URL https://proceedings.iclr.cc/paper_files/paper/2025/hash/94074dd5a072d28ff75a76dabed43767-Abstract-Conference.html.
Jin, W., Min, T., Yang, Y., Wei, D., Zhou, Y., Kadhe, S. R., Baracaldo, N., and Lee, K. Entropy-Aware On-Policy Distillation of Language Models, 2026. URL https://arxiv.org/abs/2603.07079.
Jordan, K., Jin, Y., Boza, V., You, J., Cesista, F., Newhouse, L., and Bernstein, J. Muon: An optimizer for hidden layers in neural networks, 2024. URL https://kellerjordan.github.io/posts/muon/. Reference implementation, revision 6456082.
Kim, Y. and Rush, A. M. Sequence-level knowledge distillation. In Su, J., Duh, K., and Carreras, X. (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/.
Kingma, D. P. and Ba, J. Adam: A method for stochastic optimization. In International Conference on Learning Representations, 2015. URL https://arxiv.org/abs/1412.6980.
Ko, J., Kim, S., Chen, T., and Yun, S.-Y. DistiLLM: Towards Streamlined Distillation for Large Language Models. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pp. 24872–24895. PMLR, 2024. URL https://proceedings.mlr.press/v235/ko24c.html.
Lewkowycz, A., Andreassen, A., Dohan, D., Dyer, E., Michalewski, H., Ramasesh, V., Slone, A., Anil, C., Schlag, I., Gutman-Solo, T., Wu, Y., Neyshabur, B., Gur-Ari, G., and Misra, V. Solving quantitative reasoning problems with language models. In Advances in Neural Information Processing Systems, volume 35, pp. 3843–3857, 2022. doi: 10.52202/068431-0278. URL https://arxiv.org/abs/2206.14858.
Li, Y., Zheng, L., Yu, Y., Zhou, W., Zhong, X., Hu, X., Jin, J., Yuan, H., and Feng, T. Filter, Then Reweight: Rethinking Optimization Granularity in On-Policy Distillation, 2026. URL https://arxiv.org/abs/2606.02684.
Liu, J., Xia, C. S., Wang, Y., and Zhang, L. Is your code generated by ChatGPT really correct? Rigorous evaluation of large language models for code generation. In Advances in Neural Information Processing Systems, 2023. URL https://arxiv.org/abs/2305.01210.
Loshchilov, I. and Hutter, F. Decoupled weight decay regularization. In International Conference on Learning Representations (ICLR), 2019. URL https://arxiv.org/abs/1711.05101.
Lu, K. 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/.
Ma, W., Wei, J., Zhao, L., Zhang, H., Xiao, B., Li, L., Yang, Q., Gao, B., Wang, Y., Li, R., Dong, J., Sui, Z., and Luo, F. MOPD: Multi-Teacher On-Policy Distillation for Capability Integration in LLM Post-Training, 2026. URL https://arxiv.org/abs/2606.30406.
McLeish, D. A general method for debiasing a Monte Carlo estimator. Monte Carlo Methods and Applications, 17(4), January 2011. ISSN 0929-9629. doi: 10.1515/mcma.2011.013. URL http://dx.doi.org/10.1515/mcma.2011.013.
NVIDIA. Nemotron-RL-instruction_following. https://huggingface.co/datasets/nvidia/Nemotron-RL-instruction_following, 2025.
Sheng, H., Ye, Z., Wang, H., Wang, J., Gu, J., and Kang, J. 1% of tokens can be enough: On gradient estimation in on-policy distillation, 2026. URL https://arxiv.org/abs/2609.24432.
Tallec, C. and Ollivier, Y. Unbiasing truncated backpropagation through time, 2017. URL https://arxiv.org/abs/1705.08209.
Wang, B., Lee, C., Lee, N., Lin, S.-C., Dai, W., Chen, Y., Chen, Y., Yang, Z., Liu, Z., Shoeybi, M., Catanzaro, B., and Ping, W. Nemotron-Cascade: Scaling cascaded reinforcement learning for general-purpose reasoning models. arXiv preprint arXiv:2512.13607, 2025. URL https://arxiv.org/abs/2512.13607.
Wang, Y., Lu, S., Gu, Y., Wang, P., Yang, Y., Yan, Z., Xie, C., Wu, J., and Yang, H. Not All Disagreement Is Learnable: Token Teachability in On-Policy Distillation, 2026. URL https://arxiv.org/abs/2605.26844.
Wu, Y., Han, S., and Cai, H. Lightning OPD: Efficient Post-Training for Large Reasoning Models with Offline On-Policy Distillation, 2026. URL https://arxiv.org/abs/2604.13010.
Xu, Y., Sang, H., Zhou, Z., He, R., Wang, Z., and Geramifard, A. TIP: Token Importance in On-Policy Distillation, 2026. URL https://arxiv.org/abs/2604.14084.
Yang, A., Li, A., Yang, B., Zhang, B., Hui, B., Zheng, B., Yu, B., Gao, C., Huang, C., Lv, C., Zheng, C., Liu, D., Zhou, F., Huang, F., Hu, F., Ge, H., Wei, H., Lin, H., Tang, J., Yang, J., Tu, J., Zhang, J., Yang, J., Yang, J., Zhou, J., Zhou, J., Lin, J., Dang, K., Bao, K., Yang, K., Yu, L., Deng, L., Li, M., Xue, M., Li, M., Zhang, P., Wang, P., Zhu, Q., Men, R., Gao, R., Liu, S., Luo, S., Li, T., Tang, T., Yin, W., Ren, X., Wang, X., Zhang, X., Ren, X., Fan, Y., Su, Y., Zhang, Y., Zhang, Y., Wan, Y., Liu, Y., Wang, Z., Cui, Z., Zhang, Z., Zhou, Z., and Qiu, Z. Qwen3 technical report. arXiv preprint arXiv:2505.09388, 2025. URL https://arxiv.org/abs/2505.09388.
Zhao, S., Xie, Z., Liu, M., Huang, J., Pang, G., Chen, F., and Grover, A. Self-Distilled Reasoner: On-Policy Self-Distillation for Large Language Models, 2026. URL https://arxiv.org/abs/2601.18734.
Zhou, J., Lu, T., Mishra, S., Brahma, S., Basu, S., Luan, Y., Zhou, D., and Hou, L. Instruction-following evaluation for large language models. arXiv preprint arXiv:2311.07911, 2023. URL https://arxiv.org/abs/2311.07911.
Zhou, Z., Li, J., Tang, H., Wu, Y. N., and Terzopoulos, D. Less is more: Early stopping rollout for on-policy distillation, 2026. URL https://arxiv.org/abs/2605.27028.
A. Gradient Preservation and Normalization
We prove that random truncation preserves the expected gradient sum and bound its gradient error relative to Vanilla OPD, including the effect of lagged normalization. We also analyze position weights, the relationship between token savings and variance, and the effect of batch size. The proofs specialize survival-weighted estimation [McLeish, 2011, Section 2] and randomized telescoping [Beatson & Adams, 2019, Section 2.1 and supplementary Proposition 2.1] to finite, naturally terminating rollouts.
A.1. Conditional preservation and estimation error
Fix a training step , batch size , max rollout length , and block width . Its history contains the current student parameters and the positive denominator chosen before the current cutoffs. For each prompt, consider the hypothetical complete rollout generated until its first natural end-of-sequence token or the max length , with length . The natural end-of-sequence token is included in this length and receives its ordinary local supervision. Let contain these complete rollouts and any randomness used for their teacher feedback. Throughout the fixed-step analysis, and denote expectation and probability conditional on ; only the independent anchors remain random. We suppress until the lagged-denominator analysis.
The following conditions formalize the setting in Section 3.
-
Changing the remaining generation budget does not affect the next-token distribution when the prompt and previously generated tokens are fixed.
-
We use Vanilla OPD's differentiation rule for sampled tokens and teacher targets. The differentiable local loss depends only on the prompt, tokens up to position , and local feedback. Random truncation leaves this loss unchanged at retained positions. Full and truncated rollouts share any randomness used for local feedback.
-
Conditional on history, the anchors are mutually independent, uniform on , and independent of the complete token and feedback randomness. The method uses the exact weights and treats them and as constants in differentiation.
We compare each observed rollout with its corresponding complete rollout. The local gradients are finite. Norms below are Euclidean.
For the estimators in Eqs. (3) and (4), write
Use the stopping rule in Eq. (1) and let indicate whether position is retained. Then , with given in Eq. (2). To express the variance, define
Empty sums equal zero, so when .
Theorem A.1 (Gradient preservation and error). Under the stated conditions, full and truncated generation can be coupled so that every observed local gradient equals its full-generation contribution. Consequently,
For and every , the implemented estimator satisfies
If for every token in the batch, then
The variance bound is attained when, within each rollout, all local gradients equal a fixed vector of norm .
Proof. Couple full and truncated generation from the same prompt using the same randomness for token sampling and local feedback. While the truncated run continues, identical tokens generated so far imply the same next-token distribution by budget independence, and the shared draw produces the same next token. By induction, the two runs generate identical tokens through position , including a natural end-of-sequence token when reached. At each retained position, removing later tokens leaves the differentiable local loss function unchanged, so Vanilla OPD's differentiation rule gives the same gradient in both runs. Conditional on , these gradients are fixed; only their inclusion depends on the random cutoffs, as in the conditioning argument of Tallec & Ollivier [2017, Proposition 1 and Section 8]. For , Eq. (2) gives , including when the final block is shorter than . Therefore
Taking scalar contributions equal to 1 gives , and dividing by the fixed gives , proving Eq. (24). Natural termination fixes which positions exist, while their inclusion probabilities depend only on ; the weights therefore do not require the complete lengths.
To quantify STOPD's gradient error relative to Vanilla, center at its conditional mean :
Here are fixed under and . Expanding the squared norm therefore gives
proving Eq. (25). It remains to evaluate and bound .
Write the centered error of rollout as
Each depends only on its own anchor under the fixed conditioning. Thus, for , by anchor independence. This reduces the batch variance to .
The indicators within a rollout share a cutoff: . Hence
To express in terms of gradient tails, group token pairs by the block boundaries they both cross. The reciprocal survival probability changes at by
Since on the first block and is constant within each block, telescoping gives
The coefficient contributes exactly to pairs with both positions beyond . Expanding and regrouping these pairs yields
Summing over rollouts gives the exact batch variance. For the weighted count, each token contributes the scalar 1, so its tail sum is and the same identity gives
(30)
Under , each tail satisfies . Since , Eq. (30) gives
Substitution into the normalized-error decomposition yields
which is Eq. (26). When all gradients within each rollout equal a fixed vector of norm , every tail has norm , attaining the variance bound.
A.2. Position weights and token coverage
Blockwise inverse-probability weighting compensates for how often each position is retained. A token at position is retained with probability , so assigning it a deterministic weight gives an expected gradient contribution of . Matching Vanilla OPD for arbitrary token gradients requires . This condition is necessary by considering a single nonzero token gradient and sufficient by linearity. Thus is the only deterministic position weight that preserves every token's expected contribution. Since in Eq. (2), all these weights are finite.
We next calculate how often a position receives supervision in a batch. Among fixed complete rollouts that reach position , independent random truncation retains that position with probability in each rollout. The number retained is therefore , giving
To retain position at least once with probability at least , solve . For and , this requires
Here counts rollouts that contain the position under full generation. Positions in the first block have and are retained in all such rollouts.
A.3. Truncation variance and block width
Random truncation introduces variation into the weighted gradient sum. For a fixed rollout of length , from Eq. (23) is the variance of its weighted token-count estimate, and is the expected token saving derived in Appendix C.1. For every , these quantities satisfy
The bound connects expected token savings to gradient-sum variance through the rollout lengths.
To derive the bound, note that all tokens in a rollout share one stopping position, so their inclusion events are correlated. Applying the covariance formula in Eq. (28) to the weighted token count and grouping pairs by their smaller position gives
Here, counts the ordered pairs whose smaller position is . Since and , the inclusion probability satisfies
Multiplying by and summing proves . Substituting this result into the gradient-variance bound in Eq. (31) gives the second inequality in Eq. (34).
For rollouts reaching the max length, the effect of block width can be computed explicitly. Let , so there are equal blocks, and write . The variance of the weighted count relative to is
Setting in Eq. (23) gives , hence
For these max-length rollouts, larger blocks reduce the variance of the weighted count at the cost of more generation (Appendix C.1). With one block, this variance is zero; as the number of blocks grows, approaches 1. The corresponding relative standard deviation is , which is 0.99, 0.98, 0.93, and 0.81 for the block widths , and 2048 of Section 5.4.
A.4. Error under lagged normalization
The normalization contribution in Theorem A.1 is , where . For STOPD's lagged denominator, after Vanilla OPD updates, and for . We bound by comparing and with the conditional mean rollout lengths of their respective batches. This separates fluctuations due to rollout sampling and cutoffs from changes in the mean rollout length between updates.
For , let be the history before sampling batch , including its current student parameters. Assume additionally that, conditional on , the complete rollouts within batch are independent and identically distributed. The anchors have the independence specified in Theorem A.1. The current count sums complete lengths . To express the lagged count as a sum of rollout-level quantities, define the weighted rollout count and its upper bound by
For a truncated batch, is an average of independent and identically distributed counts conditional on . The first token is retained with weight one, giving ; the bounds and give . Summing the lower bounds gives , also for the complete lengths used at initialization.
The concentration of these averages depends on the means and variances of their rollout-level counts. For complete lengths, write
Conditional on , the weighted count depends only on its independent anchor. Equations (24) and (30), applied to one rollout, therefore give conditional mean and variance . Averaging over the rollout length, the laws of total expectation and total variance give
(38)
Thus weighting preserves the conditional mean count and adds the expected cutoff variance to the rollout-length variance. The corresponding conditional centers are for and for . These centers may differ under adaptively chosen policies; write for this mean-length drift.
The centered counts and are sums of independent centered contributions conditional on their respective histories. The following form of Bernstein's inequality controls their deviations using the variance and range width of each summand.
Lemma A.2 (Bernstein concentration). Let be independent real random variables, each supported on an interval of length at most , and let . For every ,
The statement also holds conditional on a history under which its assumptions hold.
Proof. Write , so . If , every centered summand is zero almost surely and the result follows. Otherwise . The moment form of Bernstein's inequality [Boucheron et al., 2013, Theorem 2.10] gives the one-sided threshold with failure probability whenever, for some scale ,
This absolute-moment condition suffices for both signs, since it bounds the positive-part moments in the cited theorem. To verify it here, each mean lies in its supporting interval, so . Consequently,
where gives the last inequality. Thus the scale satisfies the required condition. Applying the one-sided bound to both signs and taking a union bound gives
Dividing the sum and its threshold by yields the average-deviation bound in Eq. (39), since
Conditional on a history satisfying the lemma's assumptions, the same argument applies with its conditional means and variances.
To apply Lemma A.2 to the two counts, denote its deviation threshold by
Choosing gives for any , assigning failure probability at most to each count bound. The next theorem substitutes the two counts' respective variances and range widths into this threshold and combines their deviations with the mean-length drift.
Theorem A.3 (Finite-batch error with lagged normalization). Under these additional sampling assumptions, fix a step and , and set . Define the deviation radii for and by
(41)
At the first truncated step, , so use . With probability at least , both
hold. These deviations and the mean-length drift bound the relative normalization error on the same event:
Combining this normalization control with the current cutoff error gives a bound on the gradient discrepancy. If almost surely for the current batch, then for any satisfying , the following holds with probability at least :
Proof of Theorem A.3. We first apply Lemma A.2 to the two batch averages using their rollout-level moments. For , condition on : its summands have mean , variance , and range . For , the denominator is ; conditional on , Eq. (38) gives summand mean and variance , with range . At the first truncated step, , whose summands are complete lengths with variance and range . These choices give and the two cases of . Taking assigns failure probability to each count bound:
Averaging over each respective history gives an unconditional failure probability at most for each event. A union bound then proves Eq. (42).
On this joint count event, the difference between the two averages is bounded by their deviations from their own means and the gap between those means:
Dividing by gives Eq. (43), which controls the normalization contribution to the gradient error.
For the remaining cutoff contribution, condition on so that the current complete rollouts and their local gradients are fixed. Equation (31) bounds the conditional second moment of by . When this bound is positive, Markov's inequality at the squared-norm threshold gives
Taking square roots on the complementary event yields, with conditional probability at least ,
This also holds when the second-moment bound is zero, since the error is then zero almost surely.
Averaging this conditional failure probability and intersecting with the count event gives probability at least . On this intersection, the normalized-error identity in Eq. (27) combines the two contributions:
Dividing the numerator and denominator by proves Eq. (44).
A.5. Batch size and gradient error
Larger batches reduce the variation from random truncation and the relative sampling error in the token-count estimate. Since comes from the preceding batch, changes in mean rollout length can still introduce a scale difference. The following corollary separates these effects and shows when our gradient approaches Vanilla OPD's gradient.
Corollary A.4 (Large-batch local agreement). Keep fixed and increase the batch size in both the current batch and its preceding normalization batch. Assume the sampling conditions of Theorem A.3 and almost surely for the current gradients. The histories and conditional means may depend on . Then
Here the stochastic order concerns the Euclidean norm over the joint training and sampling randomness, with constants depending only on the fixed bounds. If in probability, the local discrepancy converges to zero in probability. When the adjacent conditional mean lengths agree, its order is .
Proof. We first bound the variation in the current token count and the preceding batch's token-count estimate. For fixed , each rollout's complete and weighted counts are bounded independently of , so their conditional variances are uniformly bounded over training histories. At any fixed failure probability, Theorem A.3 then gives
Thus estimates the current mean length , while estimates the preceding mean length . To compare the normalization ratio with the ratio of these means, write
Since and , the two terms on the right are .
We next bound the variation from random truncation. Equation (31) gives
where and ; the latter follows because each tail-length term in Eq. (23) is nondecreasing in the complete length. Averaging this conditional bound and applying Markov's inequality gives, for every ,
The truncation term is therefore . Combining it with the normalization error using Eq. (27) gives
Both terms on the right have order in probability, using . This proves Eq. (45) and its stated consequences.
We can also bound the normalization error for a finite batch. The estimate first approximates the preceding count , which can differ from the current count . To bound the first difference, fix and , and condition on . The preceding rollout counts are independent over the sampled stopping positions, with means , variances , and range width at most . Applying Lemma A.2 with average variance and , then multiplying by , gives
with conditional probability at least . On this event,
by the triangle inequality. The first term bounds the error in estimating the preceding count; the second is the difference between the two complete counts. Since the probability bound holds for each fixed training history, it also holds after averaging over histories. At the first step with random truncation, , so the preceding count is known exactly and its estimation error is zero.
At a fixed student policy, we can also average over the rollouts and teacher feedback. Let be the complete rollout length and its token gradients, with . Here, averages over the rollout, teacher feedback, and independent stopping position. The unbiased gradient-sum and token-count estimates in Eq. (24) give
Both methods therefore have the same population token-mean gradient, defined as the expected gradient sum divided by the expected token count.
B. Optimizer Update Error
At a fixed training step, we compare the parameter updates of STOPD and Vanilla under the same optimizer. Their gradients are and , respectively. Both updates start from the same parameters and previous optimizer state. We use the gradient-error decomposition from Theorem A.1 to bound the update error of STOPD relative to Vanilla for SGD, Adam, and Muon.
Condition on the training history and hypothetical complete batch , so only the current cutoffs remain random. For a fixed step size , let be the parameter increment produced from gradient input in real arithmetic. A common decoupled weight-decay increment cancels because the two updates start from the same parameters. With , Theorem A.1 gives
The two terms measure cutoff noise and the mismatch between the lagged denominator and the current complete token count.
Global norm clipping fits the same comparison. For a threshold and denominator stabilizer , define the map on the full gradient vector by
This map is nonexpansive.
For an optimizer below, evaluate its coefficient at the clipped Vanilla reference and denote the result by . For disjoint parameter blocks, use the largest block coefficient; the full squared norm is the sum of the blockwise squared norms. The resulting update satisfies
(50)
The reference and coefficients remain fixed under the conditioning on . Squaring Eq. (50), taking conditional expectations, and applying Eq. (25) bounds the mean-square update error by .
To verify nonexpansiveness, consider the Jacobian of . It is the identity in the interior of the unscaled region. In the interior of the scaled region, with , its tangential and radial eigenvalues are and , respectively. Both lie in because . The map is continuous at zero and at the branch boundary. Integrating its derivative along the smooth pieces of a line segment therefore gives .
B.1. Stochastic gradient descent
For SGD, , so the update error of STOPD relative to Vanilla is the gradient error multiplied by :
The same equality holds for any input in place of . Taking the expected squared difference over the current cutoffs gives
Our SGD runs (Section 5.3) use neither momentum nor clipping, so their coefficient is at every step.
The momentum update is also affine in the current gradient. With fixed previous momentum , its update is and . The previous-momentum term cancels between the two inputs, leaving . Its coefficient is therefore , and the squared-error equality above has multiplier . For any affine update, because . The Adam and Muon maps below are nonlinear in the current input; their bounds account for the full input dependence.
B.2. Adam
Adam incorporates the current gradient into both its first moment and the second moment in its denominator. We account for this coupled dependence when bounding the update error of STOPD relative to Vanilla.
At step , let and be Adam's previous first and second moments. Fix , , and a stabilization parameter . For a gradient input , Adam's parameter increment [Kingma & Ba, 2015, Algorithm 1] is
where the square, square root, and division are coordinatewise. The factors and provide Adam's moment bias correction. Each output coordinate depends on only one input coordinate, but that input changes both the numerator and denominator.
We evaluate this dependence through the scalar function
with , , and . The reference is fixed. The coefficient is the largest absolute change in per unit change from to any other input . For Adam's coordinate , use
Here and contain the previous moments; and weight the current gradient and its square. These values satisfy the scalar domain conditions and give
The scalar coefficient can be computed exactly from a closed formula or a finite set of polynomial roots, as established in the proof.
Proposition B.1 (Update error with Adam). For the current batch, let and denote the gradients of STOPD and Vanilla, respectively. The Adam updates in Eq. (53), from the same parameter vector and previous moments , satisfy
Here the coordinate coefficients and their maximum are
These coefficients are finite and fixed conditional on the training history and complete batch . The same pointwise bound holds with replaced by any gradient input .
To state the conditional mean-square bound, let and . The coordinate form of Eq. (25) is
The variance is obtained from Eq. (30) by replacing each token gradient with its jth component, and . Averaging over the current cutoffs then gives
For the globally clipped update in Eq. (50), evaluate the coefficient in Eq. (56) using in each coordinate.
Proof. We first compute the largest absolute secant from the fixed reference of , namely . Only varies in this calculation; the scalar parameters and reference are fixed. The value of determines the form of the denominator: for the square root stays positive, whereas for it becomes . We compute the secant maximum in these two cases before inserting the Adam state and combining coordinates.
Suppose . To maximize the secant over the whole real line, introduce a coordinate that both bounds the search interval and makes the square root rational:
The first transformation is a bijection from to ; is the image of the fixed reference. Its inverse and the resulting square root are
Substitution gives rational expressions for both quantities needed in the secant:
Subtract in the first expression and divide by the second. Cancelling the common factor gives the exact secant
where the numerator and denominator polynomials are
The denominator has no zero on , and each bracket in is positive. Consequently is continuous on the closed interval. At the omitted reference point , its value is the limiting secant . At , which correspond to , its value is zero. Including the reference and endpoint values therefore leaves the supremum unchanged and makes it a maximum on .
The limits of at are , so the secant quotient is not identically zero. Its positive absolute maximum therefore occurs inside , where the quotient is nonzero and its derivative vanishes. The stationary equation is . Since both polynomials have degree at most three, their degree-five terms cancel in this equation, leaving degree at most four. The stationary polynomial is nonzero because the quotient is nonconstant. Its roots in therefore form a finite nonempty set that contains a maximizer:
(60)
To evaluate this coefficient, solve the displayed stationary polynomial, retain its real roots in , and compare at those roots. A root equal to is retained: cancellation has already removed the apparent division by zero in the original secant.
It remains to compute the scalar coefficient when . The absolute value in makes it useful to consider the two half-lines separately. If the reference is , then
On each half-line the numerator is constant and the positive denominator increases with . The supremum on that half-line is therefore the limiting absolute slope at zero. Taking the larger of the two limits gives
Now suppose and . On the same side of zero as the reference, the secant reduces to
The absolute value is largest at , since the numerator is constant and the denominator increases with . For inputs on the opposite side, write , where is the input's distance from zero. Subtracting and dividing by gives the rational secant with
Its value at is the secant to , which already captures the maximum on the reference's half-line. It therefore suffices to maximize over .
The denominator is positive on this domain, so the quotient is continuous. The quotient tends to zero as and is not identically zero: if , the coefficient of in is . Thus its absolute value has a positive maximum on a finite interval and hence on . The maximum occurs at or at a positive stationary point. Since and have degrees at most one and two, respectively, the stationary polynomial has degree at most two. It is nonzero because the quotient is nonconstant. Consequently
(62)
For this case, solve the displayed polynomial, retain its positive real roots, and compare the absolute quotient at those roots and at . Together with Eqs. (60) and (61), this gives a finite value of for every admissible scalar parameter choice.
Return to Adam's coordinate , whose scalar reference is and previous second-moment contribution is . Insert these and the remaining state parameters from the substitution following Eq. (54) into the applicable case of Eqs. (60)–(62). Scaling its finite value by gives ; the largest coordinate value gives . Both are determined by the fixed state, hyperparameters, and reference gradient.
For any input , the scalar secant bound and the identity now give
We examine the size of Adam's coefficient bounds during training (Figure 10) and find that they remain moderate, so small gradient errors also give small update-error bounds.
This also holds when , since both sides are zero. Squaring each coordinate inequality and summing yields
Taking square roots gives the bound for every input ; setting , the gradient of STOPD, proves Eq. (55). For the mean-square bound, take conditional expectations in the coordinate-weighted inequality at this input. The coefficients are fixed under the conditioning on , so its right-hand side becomes . Equation (57) and give
Bounding each by proves Eq. (58).

Figure 10 | Upper bounds on Adam's coefficients : distribution across coordinates and checkpoints (left), the median coordinate at each step averaged over the five settings and three seeds (right), and the theoretical ceiling (dashed).
B.3. Muon
Let be a matrix gradient input. Fix the previous momentum , the momentum parameter , and the stabilization parameter . We use Frobenius norms except for the operator norm , and restrict , , and to this block. Muon forms the new momentum and then the Nesterov input
We normalize the Nesterov input by clamping its Frobenius norm below at :
Muon then applies polynomial iterations, with an integer [Jordan et al., 2024]:
Here are the optimizer's fixed polynomial coefficients. Let denote the composition of these matrix iterations, with . Let be the optimizer's fixed scaling factor for this block, determined by its original dimensions and the chosen scaling convention. Its parameter increment is
The update comparison uses the reference Nesterov matrix and its normalization,
The effect of normalization on the distance from this reference is controlled by
For the polynomial iterations, write the scalar one-step polynomial as and its compositions as , . Their scalar sensitivity is the divided difference
Since is a polynomial, is a polynomial in including on the diagonal, and . To relate these scalar polynomials to the rectangular matrix iterations [Andersson et al., 2016], use the symmetric dilation
The dilation eigenvalues are the signed nonzero singular values, together with the remaining zeros. Since normalized inputs have Frobenius norm at most one, their dilation spectra lie in . We combine with divided differences over this interval and the fixed reference spectrum .
Proposition B.2 (Update error with Muon). For the current batch, let and denote the gradients of STOPD and Vanilla, respectively, restricted to a matrix parameter block. The Muon updates defined by above, from the same parameter values and previous momentum M, satisfy
Here the coefficient is
This coefficient is finite and fixed conditional on the training history and complete batch. The same pointwise bound holds with replaced by any matrix gradient input x of the same shape. Averaging over the current cutoffs of STOPD bounds the conditional mean-square update error:
For a block of the globally clipped update in Eq. (50), evaluate Eq. (67) with , where is the corresponding block of the globally clipped full Vanilla gradient.
Proof. We track the gradient difference through the Nesterov input, normalization, and polynomial iterations, then combine their factors to obtain the update-error coefficient. Fix a matrix gradient input x. The shared previous momentum cancels between and :
Write and for their Frobenius norms. Normalization maps them to and , with respective Frobenius norms and . Suppose first that and , and let . Expanding the squared normalization-distance ratio gives
Its denominator is at least . Both numerator and denominator are affine in , so differentiation gives a constant sign and the maximum occurs at an endpoint. For and , the square roots of the ratio are, respectively,
The first is at least the second. Indeed, when , we have and , hence . Interchanging the radii proves the same comparison when .
The cases excluded from this ratio calculation give the same factor. When , both matrices are scaled by , including when the matrices coincide. If exactly one radius is zero, the distance ratio is again . If both vanish, both distances vanish. Define when , and . Then every input satisfies
To obtain the second inequality, first take . Each normalized radius is at most its original radius divided by , so . For ,
The first expression has derivative ; the second decreases with . Their common maximum at is . For every , choosing attains the factor .
When , any input with attains it. Thus is the exact distance-amplification factor of normalization about .
For a matrix of the same shape as the normalized reference , the symmetric dilation relates the scalar polynomial and its compositions to the matrix iterations. Block multiplication and iteration give
The second identity includes , since both compositions are then the identity map.
For , choose eigenvalue–eigenvector pairs of and of , with both eigenvector bases orthonormal. The dilation eigenvalues are signed singular values (and zeros), so the input eigenvalues satisfy , and the reference eigenvalues lie in . The divided difference of relates the corresponding entries in these two bases:
When , both sides of the second equality are zero. The sum of squared entries in these orthonormal bases is the squared Frobenius norm. Bound every divided difference by , sum the squares, and take square roots. The dilation identity above and then give
For the actual normalized input , , so this polynomial bound applies. Its coefficient is finite: is finite, and each is a polynomial on the compact interval . To compute from the fixed state, form , , , and . For each reference eigenvalue , maximize over by evaluating the endpoints and the stationary points of ; a constant polynomial needs only an endpoint. Take the largest value over and multiply by the displayed factors.
The parameter increments are times the polynomial outputs, so the two bounds give
The last step uses the Nesterov-input difference established at the start of the proof and the maximum defining . This gives the bound for every matrix input ; setting , the gradient of STOPD, proves Eq. (66).
The coefficient is fixed under conditioning on history and the complete batch. Squaring at and averaging over the current cutoffs gives
Substituting the conditional gradient-error decomposition Eq. (25) for this block proves Eq. (68).
We examine the size of Muon's coefficient bounds during training (Figure 11) and find that they remain moderate, so small gradient errors also give small update-error bounds.

Figure 11 | Muon's coefficients : distribution across blocks and checkpoints (left), the median block (right), and the theoretical ceiling (dashed).
C. Token and Time Savings
We first derive the expected token savings, then analyze how these savings translate into reduced generation time.
C.1. Token savings
For a complete rollout of length , random truncation skips token with probability . The expected number of tokens saved is therefore
Tokens within the same block have the same inclusion probability. Position belongs to block , where denotes the first block. Under the stopping rule in Eq. (1), its inclusion probability is
Every token in block is therefore skipped with probability . Write , where is the number of complete blocks and is the number of tokens in the next block. Each complete block contributes expected saved tokens, while the remaining tokens contribute . Adding these contributions gives
Substituting makes the dependence on rollout length explicit:
For , the terms involving are small compared with , giving
Thus longer rollouts save a larger fraction of tokens: about 25% for and nearly 50% for . At the max length, when divides , the exact saving is . Rollouts ending within the first block () save no tokens.
Subtracting the expected saving from the complete length gives the expected generated length of rollout :
Here, averages over the sampled stopping positions for a given complete rollout length . In particular, a rollout reaching the max length retains tokens on average when divides .
For a batch of rollouts, Vanilla OPD generates tokens. Random truncation never generates more tokens than this. Summing the per-rollout expectations gives
C.2. Time savings
We model generation time using the number of decoding rounds and the context lengths processed in those rounds. During autoregressive decoding, the key-value (KV) cache stores attention keys and values for the prompt and previously generated tokens. Generating each new token requires a forward pass, whose attention reads this growing cached context. Random truncation avoids forward-pass computation for skipped tokens, reduces KV-cache reads, and limits the growth of each rollout's cache. This model explains when random truncation can save more time than token savings alone would predict. Let be the set of active rollouts in decoding round , each generating one token. Over rounds, we approximate the time per round and the total decoding time as
where is the context length of rollout in round and is the fixed time cost of each round. The coefficient models the additional time per context token processed. We call the cumulative sum the KV area: it measures the total cached context processed across decoding rounds. For a fixed model, it serves as a proxy for attention work and KV-cache reads.
KV area. For rollout i with prompt length , the context before generating token contains prompt tokens and earlier rollout tokens. Adding these context lengths over the generated tokens gives
Using and gives
Truncation is more likely to skip later tokens, each of which would require processing a longer context. To account for block boundaries, let count the positions before token t within its block. Eq. (2) then gives
For , summing over positions yields
(78)
Random truncation therefore saves the following amounts of tokens and KV area from the generated rollout context:
The token saving counts positions whose forward-pass computation is avoided. The KV-area saving measures the cached rollout context that attention no longer needs to read at those positions.
Each generated token also uses the prompt tokens. Adding this contribution gives
When prompts are much shorter than rollouts, we can neglect their contribution to the KV area. Writing for the rollout length as a fraction of the max length gives
Dividing Vanilla OPD's token count and KV area by the corresponding expectations under random truncation gives
Dividing the area ratio by the token-count ratio shows how much the average context per generated token decreases:
For , the expected generated length is
when divides . Under the same small-block and short-prompt approximations, a rollout of length saves about 25% of its tokens and 33% of its KV area in expectation. At , these savings increase to about 50% and 67%, respectively. Random truncation thus reduces the context processed by a larger fraction than the token count.
Effect of scheduling. When processing long contexts dominates the cost in Eq. (73), decoding time is approximately proportional to KV area, so time savings can exceed the fraction of tokens saved.
Scheduling also affects the speedup by determining the number of decoding rounds . We examine two cases, with batch areas and .
First, suppose new rollouts can start as others finish, keeping about context tokens active in the KV cache of both methods during most rounds. We ignore the brief periods at the beginning and end when fewer rollouts are active:
Each round contributes about to the KV area, so
Dividing the generated-token count by decoding time gives the throughput:
Let denote Vanilla OPD's decoding time. The predicted speedup under this scheduling regime is
Equation (88) separates the predicted speedup into the reduction in token count and the reduction in mean context per token. The first factor reflects fewer tokens and hence less forward-pass computation. The second captures the throughput gain from shorter cached contexts: at the same active cache occupancy, more rollouts can generate concurrently. When the prompt contribution is neglected, both factors are at least one.
Second, suppose all rollouts start together and generate one token per round without pauses. No new rollouts enter the batch, so generation ends when the longest rollout finishes:
Consider rollouts whose complete lengths equal . Ignoring block rounding, let
For , the largest stopping position is at most only when all stopping positions are at most . Each has probability of doing so. Independence lets us multiply these probabilities; integrating the resulting tail probability gives the mean:
The expected gap between the max length and the largest stopping position is therefore
Rounding up to a block boundary without exceeding the max length gives
Taking the maximum over rollouts and then the expectation gives
Random truncation can accelerate generation even when the longest retained rollout remains close to . It still removes many tokens across the batch, avoiding their forward-pass computation and KV-cache reads. In the time model, this reduces even when changes little. The greater the share of decoding time spent processing cached contexts, the larger the resulting speedup.
Practical implications. A larger batch can improve generation throughput while reducing truncation noise. When the scheduler admits waiting rollouts as others finish, it can reuse the KV-cache space freed by random truncation. A larger batch supplies more waiting rollouts, helping sustain concurrency and cache occupancy. The student update then combines gradient contributions from these same rollouts, averaging over more independent stopping positions and reducing the gradient variance caused by random truncation (Appendix A.5).
D. Accuracy by Step
Table 2 lists the accuracy behind Figures 2 and 4 at every evaluated checkpoint, and Tables 3–7 the accuracy behind Figures 6, 8, 9, 12, and 13.
Table 2 | Accuracy (%) every 25 steps, mean standard deviation, from the base model and the shared step-25 Vanilla warmup to 250 steps.
| Setting | Method | Base | Accuracy (%) at step | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 25 | 50 | 75 | 100 | 125 | 150 | 175 | 200 | 225 | 250 | |||
| Main results: Qwen3-1.7B-Base ← Qwen3-4B-Instruct-2507 | ||||||||||||
| Math | Vanilla | 11.7 | ||||||||||
| STOPD | ||||||||||||
| Code | Vanilla | 21.8 | ||||||||||
| STOPD | ||||||||||||
| Instruction following | Vanilla | 15.6 | ||||||||||
| STOPD | ||||||||||||
| Scaling: mathematics, Qwen3-30B-A3B-Instruct-2507 teacher | ||||||||||||
| 4B | Vanilla | 15.2 | ||||||||||
| STOPD | ||||||||||||
| 8B | Vanilla | 23.5 | ||||||||||
| STOPD | ||||||||||||
Table 3 | Accuracy (%) every 25 steps under each optimizer in mathematics, mean standard deviation.
| Optimizer | Method | Base | Accuracy (%) at step | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 25 | 50 | 75 | 100 | 125 | 150 | 175 | 200 | 225 | 250 | |||
| Mathematics: Qwen3-1.7B-Base ← Qwen3-4B-Instruct-2507 | ||||||||||||
| AdamW | Vanilla | 11.7 | ||||||||||
| STOPD | ||||||||||||
| SGD | Vanilla | 11.7 | ||||||||||
| STOPD | ||||||||||||
| Muon | Vanilla | 11.7 | ||||||||||
| STOPD | ||||||||||||
Table 4 | Accuracy (%) every 25 steps for each block width in mathematics, mean standard deviation.
| Method Base | Accuracy (%) at step | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 25 | 50 | 75 | 100 | 125 | 150 | 175 | 200 | 225 | 250 | ||
| Mathematics: Qwen3-1.7B-Base ← Qwen3-4B-Instruct-2507 | |||||||||||
| Vanilla | |||||||||||
| 32 | STOPD | ||||||||||
| 128 | STOPD | ||||||||||
| 512 | STOPD | ||||||||||
| 2048 | STOPD | ||||||||||
Table 5 | Accuracy (%) every 25 steps for each batch size in mathematics, mean standard deviation.
| Method | Base | Accuracy (%) at step | ||||
|---|---|---|---|---|---|---|
| 25 | 50 | 75 | 100 | |||
| Mathematics: Qwen3-1.7B-Base ← Qwen3-4B-Instruct-2507 | ||||||
| 128 | Vanilla | 11.7 | ||||
| STOPD | ||||||
| 256 | Vanilla | 11.7 | ||||
| STOPD | ||||||
| 512 | Vanilla | 11.7 | ||||
| STOPD | ||||||
Table 6 | Accuracy (%) every 25 steps for ESR in mathematics, mean standard deviation.
| Method Base | Accuracy (%) at step | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 25 | 50 | 75 | 100 | 125 | 150 | 175 | 200 | 225 | 250 | |
| Mathematics: Qwen3-1.7B-Base ← Qwen3-4B-Instruct-2507 | ||||||||||
| Vanilla | ||||||||||
| STOPD | ||||||||||
| ESR | ||||||||||
Table 7 | Accuracy (%) every 25 steps for STOPD with in mathematics, mean standard deviation.
| Method | Base | Accuracy (%) at step | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 25 | 50 | 75 | 100 | 125 | 150 | 175 | 200 | 225 | 250 | ||
| Mathematics: Qwen3-1.7B-Base ← Qwen3-4B-Instruct-2507 | |||||||||||
| Vanilla | |||||||||||
| STOPD | |||||||||||
| STOPD, | |||||||||||
| Mathematics: Qwen3-4B-Base ← Qwen3-30B-A3B-Instruct-2507 | |||||||||||
| Vanilla | |||||||||||
| STOPD | |||||||||||
| STOPD, | |||||||||||
E. Additional Time Decomposition
Tables 8, 9, 10, and 11 break down the training step for the 4B and 8B students (Section 5.2), the optimizers (Section 5.3), the block widths (Section 5.4), and the batch sizes (Section 5.5), respectively.
Table 8 | Cost of a training step for the 4B and 8B students in mathematics.
| Student | Method | Tokens | k tok/s | Time per step (s) | |||
|---|---|---|---|---|---|---|---|
| Generation | Update | Other | Total | ||||
| 4B | Vanilla | 10,005 | 3.4 | 753 | 360 | 95 | 1209 |
| STOPD | 6,511 | 4.3 | 392 | 219 | 61 | 672 | |
| Speedup | 1.5× | 1.3× | 1.9× | 1.6× | 1.6× | 1.8× | |
| 8B | Vanilla | 9,432 | 5.6 | 434 | 303 | 81 | 818 |
| STOPD | 6,276 | 6.5 | 246 | 190 | 54 | 490 | |
| Speedup | 1.5× | 1.2× | 1.8× | 1.6× | 1.5× | 1.7× | |
Table 9 | Cost of a training step under each optimizer in mathematics.
| Optimizer | Method | Tokens | k tok/s | Time per step (s) | |||
|---|---|---|---|---|---|---|---|
| Generation | Update | Other | Total | ||||
| AdamW | Vanilla | 9,516 | 3.5 | 697 | 189 | 56 | 941 |
| STOPD | 6,255 | 4.5 | 358 | 119 | 36 | 513 | |
| Speedup | 1.5× | 1.3× | 2.0× | 1.6× | 1.5× | 1.8× | |
| SGD | Vanilla | 9,278 | 2.9 | 810 | 185 | 50 | 1045 |
| STOPD | 5,474 | 4.1 | 342 | 109 | 34 | 485 | |
| Speedup | 1.7× | 1.4× | 2.4× | 1.7× | 1.5× | 2.2× | |
| Muon | Vanilla | 9,991 | 3.3 | 784 | 192 | 52 | 1029 |
| STOPD | 6,247 | 4.2 | 379 | 124 | 39 | 542 | |
| Speedup | 1.6× | 1.3× | 2.1× | 1.6× | 1.3× | 1.9× | |
Table 10 | Cost of a training step for each block width in mathematics.
| Method | Tokens | k tok/s | Time per step (s) | ||||
|---|---|---|---|---|---|---|---|
| Generation | Update | Other | Total | ||||
| Vanilla | 9,516 | 3.5 | 697 | 189 | 56 | 941 | |
| 32 | STOPD | 6,227 | 4.4 | 366 | 124 | 41 | 531 |
| Speedup | 1.5× | 1.2× | 1.9× | 1.5× | 1.4× | 1.8× | |
| 128 | STOPD | 6,255 | 4.5 | 358 | 119 | 36 | 513 |
| Speedup | 1.5× | 1.3× | 2.0× | 1.6× | 1.5× | 1.8× | |
| 512 | STOPD | 6,365 | 4.4 | 372 | 124 | 39 | 535 |
| Speedup | 1.5× | 1.3× | 1.9× | 1.5× | 1.4× | 1.8× | |
| 2048 | STOPD | 6,792 | 4.4 | 397 | 131 | 41 | 569 |
| Speedup | 1.4× | 1.3× | 1.8× | 1.4× | 1.4× | 1.7× | |
Table 11 | Cost of a training step for each batch size in mathematics over the first 100 steps.
| Batch size | Method | Tokens | k tok/s | Time per step (s) | |||
|---|---|---|---|---|---|---|---|
| Generation | Update | Other | Total | ||||
| 128 | Vanilla | 9,403 | 3.0 | 399 | 91 | 26 | 516 |
| STOPD | 5,781 | 4.0 | 185 | 53 | 17 | 256 | |
| Speedup | 1.6× | 1.3× | 2.2× | 1.7× | 1.5× | 2.0× | |
| 256 | Vanilla | 9,650 | 3.1 | 793 | 195 | 57 | 1045 |
| STOPD | 5,940 | 4.3 | 356 | 112 | 33 | 501 | |
| Speedup | 1.6× | 1.4× | 2.2× | 1.7× | 1.7× | 2.1× | |
| 512 | Vanilla | 9,771 | 3.3 | 1529 | 385 | 107 | 2021 |
| STOPD | 6,039 | 4.5 | 684 | 230 | 67 | 980 | |
| Speedup | 1.6× | 1.4× | 2.2× | 1.7× | 1.6× | 2.1× | |
F. Comparison with Early Stopping Rollout

Figure 12 | ESR in mathematics: accuracy (left), response length at evaluation (middle), and truncated share (right).
Early Stopping Rollout (ESR) [Zhou et al., 2026] truncates each rollout after its first 100 tokens, or at natural termination, and distills only that prefix. We evaluate ESR in the same mathematics setting as our main experiments (Figure 12). Accuracy every 25 steps is shown in Table 6 in Appendix D. The performance of ESR saturates after approximately 50 training steps, while STOPD and Vanilla continue increasing and outperform ESR by 5.9 and 6.6 points at step 250. ESR's response length and truncation rate continue to increase throughout training, reaching approximately 20k tokens and 57% at step 250, while Vanilla and STOPD peak around step 50 before declining to approximately 10k tokens and 20%. This divergence arises from fixed-prefix distillation, which excludes end-of-sequence supervision whenever a response extends beyond the truncation boundary, weakening the student's ability to terminate generation. In contrast, STOPD preserves termination supervision by including every token position with positive probability, closely matching Vanilla's accuracy.
G. Removing the Blockwise Inverse-Probability Weights
To isolate the effect of blockwise inverse-probability weighting, we set in STOPD and evaluate it in two mathematics settings: 1.7B and 4B students with Qwen3-4B-Instruct-2507 and Qwen3-30B-A3B-Instruct-2507 teachers, respectively (Figure 13). Accuracy every 25 steps is shown in Table 7 in Appendix D. The variant maintains accuracy close to Vanilla and STOPD throughout training for both students. Its evaluation responses are initially longer and more frequently truncated than






Figure 13 | STOPD with every weight set to , in mathematics with the 1.7B student (top) and the 4B student (bottom): accuracy (left), response length at evaluation (middle), and truncated share (right).
Vanilla’s, but both differences decrease over training. For the 4B student, responses are 43% longer at step 100, with a truncation rate of 34.7% compared with 16.1% for Vanilla. By step 250, the response-length gap narrows to 3.6%. For the 1.7B student, responses are 4%–24% longer over steps 50–175. In comparison, STOPD stays closer to Vanilla’s response length, within 6% for the 4B student and 10% for the 1.7B student over steps 50–175. Compared with ESR, whose response length and truncation rate continue to increase, random block-end truncation with maintains accuracy close to Vanilla, while blockwise weighting further aligns response length and truncation behavior with Vanilla.
H. Per-Benchmark Accuracy
Figures 14–26 break the average accuracy of Sections 5.1–5.5 and Appendices F and G into their benchmarks, against training step: the base model sits at step 0 and the shared warmup checkpoint at step 25, and each point averages the three seeds with the range across seeds shaded.
AIME24

AIME25
AMC23
MATH500
Minerva

Mean
Training step
Figure 14 | Mathematics, Qwen3-1.7B-Base ← Qwen3-4B-Instruct-2507: accuracy per benchmark against training step.
HumanEval+

MBPP+
LCB 24.08–25.02
LCB 25.02–25.05

Held-out
Mean

Training step
Figure 15 | Code, Qwen3-1.7B-Base ← Qwen3-4B-Instruct-2507: pass rate per benchmark against training step.
AIME24

AIME25
AMC23
MATH500
Minerva

Mean
Training step
Figure 16 | Mathematics, Qwen3-4B-Base ← Qwen3-30B-A3B-Instruct-2507: accuracy per benchmark against training step.
AIME24

AIME25
AMC23
MATH500
Minerva

Mean
Training step
Figure 17 | Mathematics, Qwen3-8B-Base ← Qwen3-30B-A3B-Instruct-2507: accuracy per benchmark against training step.
AIME24

AIME25

AMC23
MATH500
Minerva

Mean
Training step
Figure 18 | Mathematics under SGD, Qwen3-1.7B-Base ← Qwen3-4B-Instruct-2507: accuracy per benchmark against training step.
AIME24

AIME25
AMC23
MATH500
Minerva

Mean
Training step
Figure 19 | Mathematics under Muon, Qwen3-1.7B-Base ← Qwen3-4B-Instruct-2507: accuracy per benchmark against training step.
AIME24

AIME25
AMC23
MATH500
Minerva

Mean
Training step
Figure 20 | Block width in mathematics, Qwen3-1.7B-Base ← Qwen3-4B-Instruct-2507: accuracy per benchmark against training step.
AIME24

AIME25
AMC23
MATH500
Minerva

Mean
Training step
Figure 21 | Mathematics at B = 128, Qwen3-1.7B-Base ← Qwen3-4B-Instruct-2507: accuracy per benchmark against training step.
AIME24

AIME25

AMC23
MATH500
Minerva

Mean
Training step
Figure 22 | Mathematics at B = 256, Qwen3-1.7B-Base ← Qwen3-4B-Instruct-2507: accuracy per benchmark against training step.
AIME24

AIME25
AMC23

MATH500
Minerva
Mean

Training step
Figure 23 | Mathematics at B = 512, Qwen3-1.7B-Base ← Qwen3-4B-Instruct-2507: accuracy per benchmark against training step.
AIME24

AIME25
AMC23
MATH500
Minerva

Mean
Training step
Figure 24 | ESR in mathematics, Qwen3-1.7B-Base ← Qwen3-4B-Instruct-2507: accuracy per benchmark against training step.
AIME24

AIME25
AMC23
MATH500
Minerva
Mean

Training step
Figure 25 | STOPD with in mathematics, Qwen3-1.7B-Base ← Qwen3-4B-Instruct-2507: accuracy per benchmark against training step.

Training step
Figure 26 | STOPD with in mathematics, Qwen3-4B-Base ← Qwen3-30B-A3B-Instruct-2507: accuracy per benchmark against training step.