betaFeedback

WorksComputer Science

Don't Discard Your Rollouts: Reusing Teacher RL Traces for Student Distillation

Abstract

RL post-training methods such as PPO and GRPO are computationally expensive, with substantial resources devoted to sampling rollouts, which contain multiple completions per prompt along with their respective rewards. Canonical distillation, however, discards these traces and uses more compute to regenerate data from the final teacher. We ask if and how we can reuse the saved teacher RL rollouts to distil student models. Reusing rollouts is non-trivial: naive SFT on the rollouts underperforms canonical distillation, and naive DPO, while performant, is unstable, collapsing on weaker students. We show that treating rollout reuse as a data selection problem using metadata already recorded during GRPO substantially reduces this gap. We use prompt pass rates to order the data, using the easiest prompts for an SFT warm start prior to using mixed-success prompts for DPO. For each prompt, we use saved teacher log-likelihoods as a proxy for selecting student-compatible completions. Across mathematical reasoning and Python coding tasks, with students from multiple model families, our two-stage recipe achieves comparable average performance to canonical distillation, while incurring no additional inference cost for dataset construction.

Introduction

Much of the recent progress in large language model reasoning has been driven by online reinforcement-learning (RL) methods such as PPO and GRPO during post-training. These methods instil self-correction, long chain-of-thought, and search-like behaviour into strong base models [30, 11] (OpenAI et al. 2024). Smaller and weaker base models typically inherit these behaviours through distillation from the resulting teachers [39].

Rollout generation during the RL phase dominates post-training compute: Morrison et al. [ [23] report that rollout generation accounts for 87% of the energy used in OLMo 3 32B Think-specific post-training. Ordinarily, despite taking most of the post-training compute, these rollouts (Drollouts\mathcal{D}_{\text{rollouts}}) are discarded. Instead, canonical distillation pipelines spend additional compute on a separate generation pass by taking the final teacher model, generating new solutions for a prompt set, and filtering for correct responses via rejection sampling (Dsynthetic\mathcal{D}_{\text{synthetic}}). Students are then trained with supervised fine-tuning (SFT) to imitate teacher outputs [24, 12, 4, 9].

Intuitively, this process seems wasteful: teacher RL spans the same diverse, longer-horizon tasks such as maths, software engineering, and tool use that distillation targets [26 b]. Reusing these rollouts (Figure 1) should remove the need for regeneration while exposing rich information like preference pairs and rewards already computed during teacher RL.

Figure 1. Reusing teacher RL rollouts for student distillation. Top: Canonical distillation discards the rollouts saved at every teacher RL step nn (completions yiy_i, rewards rir_i, log-likelihoods ℓˉT(n)\bar{\ell}_{T}^{(n)}) and pays for a separate generation pass from the teacher (DsyntheticD_{\mathrm{synthetic}}). Bottom: Our method curates the saved rollouts using the pass rate E[r](x)\mathbb{E}[r](x): we first run SFT on the all-correct prompts (E[r](x)=1\mathbb{E}[r](x)=1), then DPO on the mixed-success prompts (0<E[r](x)<10 < \mathbb{E}[r](x) < 1), ordered from easy to hard. Within each prompt, we rank the responses by their saved teacher log-likelihood ℓˉT\bar{\ell}_{T} and use the top correct y~+\tilde{y}^{+} and incorrect y~−\tilde{y}^{-}.

However, effectively reusing these data is non-trivial. Teacher rollouts are generated from evolving policies where potentially only the later steps have the reasoning behaviours that we want to instil in the student, and the teacher completions can be arbitrarily off-policy for the student [34, 33, 22, 31, 7]. Consistent with previous work, we observe that naively using teacher rollouts for SFT underperforms canonical distillation. Similarly, we find that using the pairwise correct–incorrect information with Direct Preference Optimisation [29] is high variance, improving strong students but collapsing for weaker ones (Figure 3).

Figure 3. Comparison of canonical distillation and rollout reuse. Avg@8 on MATH500 for T1\mathcal{T}_1 (Math12K rollouts) and T2\mathcal{T}_2 (DeepScaler rollouts) in the top row, and on HumanEval+ and MBPP+ in coding (bottom row); base students are shown in grey. DsyntheticD_{\mathrm{synthetic}} is generated on Math12K for both maths teachers. Naive rollout reuse falls short of canonical distillation, and our two-stage recipe closes most of the gap.

In this paper we ask: Given access to a teacher’s RL rollouts, how can we use them effectively for student distillation? To answer this question, we treat rollout reuse as a data selection problem over the saved teacher RL rollouts using two pieces of metadata already recorded during GRPO: prompt pass rate and teacher log-likelihoods.

Inspired by the success of curriculum learning [13, 1, 25, 36], we use the prompt pass rate both to split the archive into an SFT warm start on the easiest (all-correct) questions followed by DPO on mixed-success questions, and to order prompts from easy to hard. For each prompt we have multiple completions; we keep the responses with the highest cached teacher log-likelihood. This selection is based on the observation that student preferences agree with the teacher preferences cached during rollouts—the completions with the highest likelihood under the base student are also likely under the teacher, across all five students (Figure 2). Cached teacher likelihood is therefore a student-agnostic proxy for student-compatible completions [42], requiring no scoring pass over the archive for each new student.

Figure 2. Agreement between cached teacher and base-student preferences (T1T_1). Fraction of prompts where the base student’s preferred completion (arg maxℓˉS0\mathop{\rm arg\,max}\bar{\ell}_{S_0}) lies in the teacher’s top-kk by cached mean log-likelihood ℓˉT(n)\bar{\ell}^{(n)}_T (k∈{1,2,3}k \in\{1,2,3\}), shown separately for correct (left) and incorrect (right) responses. Across all student families, completions with the highest likelihood under the teacher policy are also highly likely under the student, motivating our proxy in Section 5.

We compare our curation recipe against the canonical distillation pipeline on Python coding and maths. Across students from various model families, our SFT→DPO recipe on average matches canonical distillation, without any additional teacher generation or student scoring passes. In our setting, this avoids generating 58.3M maths tokens and 17.6M coding tokens, and such generation passes can be large at industrial scale: DeepSeek-R1, for example, reports about 600k reasoning samples kept after rejection sampling from an RL checkpoint [9]. In addition, we study the failure of naive rollout usage, compare our selection rules with other curation baselines, and analyse when an SFT warm start is required before preference learning.

More broadly, we hope that these findings encourage the community to treat rollouts as a resource instead of discarding them. We ask practitioners to save and share their rollouts, so that the compute spent on RL for large models can also train smaller models for the “compute-poor”.1

Related Work

Reasoning distillation. Distillation by generating synthetic data from strong teachers underlies recent open reasoning models [1, 39, 9, 28]; we keep this setup but ask if we can replace the separate generation pass with rollouts saved during teacher RL.

Learning negative signals in RL rollouts. Xu et al. [2025] also observe that negative traces can be useful and study how to better use traces from the Open-R1 dataset, where they suggest asymmetric weighting. Our question is orthogonal: we ask how to select which rollouts to imitate or contrast, using only metadata that is free under GRPO. While their baseline is naive SFT on rollouts, we compare against the canonical separate-inference distillation pipeline (Dsynthetic\mathcal{D}_{\mathrm{synthetic}}), treating naive SFT on rollouts as our lower bound.

Student-aligned data selection. Zhang et al. [2025], in their work GRAPE, show that aligning supervision with the student’s own distribution improves SFT. They distil on the responses that the student finds most likely (§ 4.3), while our proxy uses scores recorded during teacher training. We compare the cost and performance of GRAPE and our proxy in § 7.2.

Preliminaries

Teacher Training Using GRPO. When training a teacher policy πTBase\pi^{\mathrm{Base}}_T with Group Relative Policy Optimisation (GRPO) [30], we sample a group {y1,…,yG}\{y_1, \ldots, y_G\} for a given prompt xx, assign each completion a reward ri∈{0,1}r_i \in\{0,1\} (for verifiable tasks), and compute the group-relative advantage. The final teacher is referred to as πTRL\pi_{T}^{\mathrm{RL}}. For a generator policy πθold\pi_{\theta_{\mathrm{old}}} and training policy πθ\pi_{\theta}, the length-normalised, non-KL-regularised GRPO update is given by:

JGRPO(πθ)=Ex∼DRL,{yi}i=1G∼πθold(⋅∣x)[1G∑i=1G1∣yi∣∑t=1∣yi∣{min⁡[πθ(yi,t∣x,yi,<t)πθold(yi,t∣x,yi,<t)A^i,clip⁡(πθ(yi,t∣x,yi,<t)πθold(yi,t∣x,yi,<t),1−ϵ,1+ϵ)A^i]}](1)J_{\mathrm{GRPO}}(\pi_{\theta}) = \mathbb{E}_{x\sim D_{\mathrm{RL}},\{y_i\}_{i=1}^{G}\sim\pi_{\theta_{\mathrm{old}}}(\cdot\mid x)} \left[ \frac{1}{G}\sum_{i=1}^{G}\frac{1}{|y_i|}\sum_{t=1}^{|y_i|} \left\{ \min\left[ \frac{\pi_{\theta}(y_{i,t}\mid x,y_{i,<t})}{\pi_{\theta_{\mathrm{old}}}(y_{i,t}\mid x,y_{i,<t})}\hat{A}_i, \operatorname{clip}\left( \frac{\pi_{\theta}(y_{i,t}\mid x,y_{i,<t})}{\pi_{\theta_{\mathrm{old}}}(y_{i,t}\mid x,y_{i,<t})},1-\epsilon,1+\epsilon \right)\hat{A}_i \right] \right\} \right] \tag*{(1)}

where A^i=(ri−μG(x))/σG(x)\hat{A}_i=(r_i-\mu_G(x))/\sigma_G(x), with ri=R(x,yi)r_i=R(x,y_i) the verifier reward and μG(x)\mu_G(x), σG(x)\sigma_G(x) the mean and standard deviation of {rj}j=1G\{r_j\}_{j=1}^{G}. We pool μG(x)\mu_G(x) over steps into the pass rate E[r](x)\mathbb{E}[r](x).

In addition, for every yiy_i, we store its mean log-likelihood under the generator policy:

ℓˉT(n)(yi∣x)=1∣yi∣∑t=1∣yi∣log⁡πT(n)(yi,t∣x,yi,<t).(2)\bar{\ell}_{T}^{(n)}(y_i\mid x)=\frac{1}{|y_i|}\sum_{t=1}^{|y_i|}\log\pi_{T}^{(n)}(y_{i,t}\mid x,y_{i,<t}). \tag*{(2)}

Creation of DrolloutsD_{\mathrm{rollouts}}. The highlighted quantities are computed for every GRPO update anyway. We use these by-products to construct DrolloutsD_{\mathrm{rollouts}}, a dataset of prompts (x)(x), their completions (yi)(y_i) with corresponding rewards (ri)(r_i), pass rates (E[r](x)\mathbb{E}[r](x)), and mean log-likelihoods (Eq. (2)). Together, these give the rollout dataset, where nn runs over the RL steps up to the final teacher:

Drollouts={(x,yi,ri,ℓˉT(n)(yi∣x),E[r](x),n)}.(3)D_{\mathrm{rollouts}}=\{(x,y_i,r_i,\bar{\ell}_{T}^{(n)}(y_i\mid x),\mathbb{E}[r](x),n)\}. \tag*{(3)}

We note that for a GRPO run of NN training steps with batch size BB, the total number of completions in DrolloutsD_{\mathrm{rollouts}} is ∣Drollouts∣=N×B×G|D_{\mathrm{rollouts}}|=N\times B\times G. At production scale this archive is large: the public Nemotron 3 Ultra recipe uses a global batch of 8,192 (512 prompts ×\times 16 generations) for 178 steps, producing about 1.46M trajectories [26].

Distillation Objectives. Canonical distillation samples from the final teacher (y+∼πTRLy^{+} \sim\pi_{\mathcal{T}}^{\mathrm{RL}}) and trains a student policy πS\pi_{\mathcal{S}} by SFT on correct completions,

LSFT(θ)=−E(x,y+)∼DSFTlog⁡πS(y+∣x).(4)\mathcal{L}_{\mathrm{SFT}}(\theta)=-\mathbb{E}_{(x,y^{+})\sim\mathcal{D}_{\mathrm{SFT}}}\log\pi_{\mathcal{S}}(y^{+}\mid x). \tag*{(4)}

For a prompt xx, let P(x)={i:ri=1}P(x)=\{i:r_i=1\} and N(x)={i:ri=0}N(x)=\{i:r_i=0\} denote its correct and incorrect completion indices. To construct data for SFT from Drollouts\mathcal{D}_{\mathrm{rollouts}}, we can filter for correct completions. In addition to SFT, we can leverage the preference pairs from the rollouts for contrastive learning. Every mixed-success prompt from Drollouts\mathcal{D}_{\mathrm{rollouts}} supplies such pairs (y+y^{+} from P(x)P(x), y−y^{-} from N(x)N(x)). These pairs can be used to train a contrastive objective such as DPO [29]. Given a reference student policy πSref\pi_{\mathcal{S}_{\mathrm{ref}}} and a pair (y+,y−y^{+},y^{-}), DPO optimises

LDPO(θ)=−log⁡σ(β[log⁡πS(y+∣x)πSref(y+∣x)−log⁡πS(y−∣x)πSref(y−∣x)]).(5)\mathcal{L}_{\mathrm{DPO}}(\theta)=-\log\sigma\left(\beta\left[\log\frac{\pi_{\mathcal{S}}(y^{+}\mid x)}{\pi_{\mathcal{S}_{\mathrm{ref}}}(y^{+}\mid x)}-\log\frac{\pi_{\mathcal{S}}(y^{-}\mid x)}{\pi_{\mathcal{S}_{\mathrm{ref}}}(y^{-}\mid x)}\right]\right). \tag*{(5)}

DPO uses the contrastive signal and learns to widen the margin between y+y^{+} and y−y^{-}: Eq. (5) depends on a difference of student/reference log-likelihood ratios. A question then is which positive completion to imitate from P(x)P(x) and which of the ∣P(x)∣×∣N(x)∣|P(x)|\times|N(x)| preference pairs to use for DPO.

Motivation

After Section 3, you are hopefully convinced that Drollouts\mathcal{D}_{\mathrm{rollouts}} is a valuable resource, especially when coupled with information like likelihoods and average pass rates. Using it directly for distillation is, however, non-trivial. In this section we first discuss why, and then motivate our solutions.

Difficulty in Using Rollout Data Naively

As seen in Eq. (4), during SFT the student learns to mimic the teacher’s distribution. In canonical distillation, this target is the final teacher that regenerates the data: yregeneration∼πTRL(⋅∣x)y_{\mathrm{regeneration}}\sim\pi_{\mathcal{T}}^{\mathrm{RL}}(\cdot\mid x). On the other hand, rollout reuse draws from the union of the responses saved throughout teacher training, Drollouts=⋃nDrollouts(n)\mathcal{D}_{\mathrm{rollouts}}=\bigcup_n\mathcal{D}_{\mathrm{rollouts}}^{(n)} with y(n)∼πT(n)(⋅∣x)y^{(n)}\sim\pi_{\mathcal{T}}^{(n)}(\cdot\mid x) at step nn. Intuitively, the student is therefore asked to imitate a mixture of policies: earlier policies, even when correct, may not yet exhibit behaviours acquired later in RL, and the teacher changes substantially over training (Figure 6; Appendix § 12.§ 3). This motivates selecting which correct rollouts the student should imitate.

Figure 6. Maths teacher training. Training reward, response length and policy entropy of T1\mathcal{T}_1 (left) and T2\mathcal{T}_2 (right) during GRPO. Faint lines show each step and solid lines a ten-step moving average. Dashed lines mark the final teachers (steps 234 and 120), up to which we save the rollouts; T2\mathcal{T}_2 is shown up to step 150.

Off-Policy Methods (SFT/DPO) and the Need for Data Selection

Both SFT (Eq. (4)) and DPO (Eq. (5)) are off-policy: the policy that generated the data is not the one being trained. During SFT, the student learns to imitate y+y^{+}, but the distribution of y+y^{+} can be arbitrarily far from the student’s own. Previous work has shown that imitating a distribution far from the student’s pre-training distribution can degrade generalisation and induce forgetting [31, 7].

DPO dependence on student support. DPO has the same issue, as it learns to separate y+y^{+} from y−y^{-} when either can be far off-policy for the student, with mistakes the student itself may never make. As seen in Eq. (5), at initialisation (πS=πSref\pi_{\mathcal{S}}=\pi_{\mathcal{S}_{\mathrm{ref}}}), the implicit reward gap starts at zero regardless of absolute likelihood; Yang et al. [2025b] show that when both completions lie far outside the base student’s support, early gradient steps push the policy into a region where the log-ratio βlog⁡πS(y∣x)πSref(y∣x)\beta\log\frac{\pi_{\mathcal{S}}(y\mid x)}{\pi_{\mathcal{S}_{\mathrm{ref}}}(y\mid x)} grows large in magnitude and the sigmoid can saturate. This can stall preference learning before the model learns to meaningfully separate the two traces [40]. Thus, preference learning might be difficult when completions lie far outside the base student’s support. This motivates an SFT warm start on the easy questions before DPO, so that the chosen responses are already likely under the student when preference learning begins. This leads to our first hypothesis (H1), tested in Section 7.3:

H₁ (Student Support for Preference Learning). DPO on the rollouts may fail for students that assign low likelihood to the chosen responses; an SFT warm start that makes these responses likely before DPO can potentially help recover these cases.

Student-Compatible Traces and Approximating Them with Cached Teacher Likelihoods

To tackle some of these idiosyncrasies, GRAPE [42] gathers responses from various sources and keeps the one closest to the base student’s distribution. Given correct completions yiy_i, i∈P(x)i \in P(x), each of length Ti=∣yi∣T_i = |y_i|, and base student S0S_0, GRAPE chooses the highest probability completion:

iS⋆(x)=arg maxi∈P(x)1Tilog⁡PS0(yi,1:Ti∣x)=arg maxi∈P(x)ℓˉS0(yi∣x),yS⋆(x)=yiS⋆(x),(6)i^\star_S(x) = \mathop{\rm arg\,max}_{i \in P(x)} \frac{1}{T_i}\log P_{S_0}(y_{i,1:T_i}\mid x) = \mathop{\rm arg\,max}_{i \in P(x)} \bar{\ell}_{S_0}(y_i\mid x), \qquad y^\star_S(x) = y_{i^\star_S(x)}, \tag*{(6)}

where ℓˉS0\bar{\ell}_{S_0} is the mean completion-token log-likelihood of Eq. (2) under the base student.

As can be seen from Eq. (6), creating the GRAPE dataset from rollouts would require a pass over the full rollout pool for each student. Therefore, ideally, we wish to have a student-agnostic way to select completions.

Approximating student preferences with cached teacher likelihoods. We use the cached normalised log-likelihoods (Eq. (2)) that we are already saving in DrolloutsD_{\mathrm{rollouts}} as a student-agnostic proxy. The intuition is that teacher and student rank completions similarly (if one is preferred under the teacher policy, it is also more likely under the student policy than the other completions):

rank⁡S(yi;x)≈rank⁡T(yi;x),(7)\operatorname{rank}_{S}(y_i;x) \approx\operatorname{rank}_{T}(y_i;x), \tag*{(7)}

where the student and teacher rankings are induced by ℓˉS0(yi∣x)\bar{\ell}_{S_0}(y_i\mid x) and ℓˉT(n)(yi∣x)\bar{\ell}^{(n)}_T(y_i\mid x), respectively. To test whether this holds across students, we score every saved completion with each base student and, within each GRPO group, report top-kk agreement: how often the student’s preferred completion lies among the teacher’s top kk (top-1 agreement means that both select the same completion for a given prompt). Figure 2 shows this on T1T_1 for our five base students and Qwen3-8B-Base, from four model families: as expected, agreement is highest for the in-family Qwen3 students and lowest for Gemma-2-2B. This leads to our second hypothesis (H2_2):

H₂ (Likelihood-Rank Agreement). Teacher and student preferences over the set of completions of a prompt are highly correlated; therefore, the teacher-top1 rollout is a better training target than a random correct rollout.

We compare the downstream performance of teacher-top1 and GRAPE (student-top1) in maths and coding in Section 7.2.

Method

Building on the observations in Section 4, we treat rollout reuse as a data selection problem using metadata already recorded during GRPO, namely the pooled prompt pass rate and the cached log-likelihood. This framing raises the following three questions: Q1: Which questions should we reuse, and in what order? We use E[r](x)\mathbb{E}[r](x) as a proxy for prompt difficulty and partition Drollouts\mathcal{D}_{\mathrm{rollouts}} into consistently solved prompts (E[r](x)=1\mathbb{E}[r](x)=1) for an SFT warm start and mixed-success prompts (0<E[r](x)<10 < \mathbb{E}[r](x) < 1) for DPO. All-correct prompts provide a natural candidate for SFT, while mixed-success prompts provide the correct–incorrect pairs for DPO. Following curriculum learning, we order the mixed-success prompts from easy to hard by decreasing E[r](x)\mathbb{E}[r](x).

Q2: Given multiple completions for a question, how do we select which ones to train on? Rather than scoring all rollouts under each new student as in GRAPE, we exploit the rank agreement between teacher and student preferences (Eq. (7)) and select the highest-likelihood correct and incorrect rollouts under the generating teacher policy (teacher-top1). Maximising ℓˉT(n)\bar{\ell}_{T}^{(n)} selects student-compatible positives and plausible, in-support negatives (Figure 2, right).

Q3: Rollouts have both positive and negative completions; if and when does preference learning on these help over SFT? DPO on its own works well for many students, but it fails for the students that assign the lowest likelihood to the chosen responses. Because DPO can stall or collapse when chosen responses lie far outside the base student’s support, we first warm-start the student with SFT on the easiest prompts, and then initialise DPO from this checkpoint on the curriculum-ordered preference pairs.

Algorithm 1 Two-stage rollout distillation (DSFTallp,top1→DDPOcurr,top1\mathcal{D}_{\mathrm{SFT}}^{\mathrm{allp,top1}} \rightarrow\mathcal{D}_{\mathrm{DPO}}^{\mathrm{curr,top1}}) from Drollouts\mathcal{D}_{\mathrm{rollouts}} for a base student πS0\pi_{S_0}

Require: rollout dataset Drollouts\mathcal{D}_{\mathrm{rollouts}} (Eq. (3)) of prompts xx, completions yiy_i, rewards rir_i, mean log-likelihoods ℓˉT(n)(yi∣x)\bar{\ell}_{T}^{(n)}(y_i \mid x) and pass rates E[r](x)\mathbb{E}[r](x); base student πS0\pi_{S_0}.

P(x)P(x), N(x)N(x) as in Section 3.

  1. Split Drollouts\mathcal{D}_{\mathrm{rollouts}} by pass rate into all-correct and mixed-success prompts: ▷ Q1 Xallp←{x:E[r](x)=1}\mathcal{X}^{\mathrm{allp}} \leftarrow\{x : \mathbb{E}[r](x)=1\}, Xmix←{x:0<E[r](x)<1}\mathcal{X}^{\mathrm{mix}} \leftarrow\{x : 0 < \mathbb{E}[r](x) < 1\}

  1. Use the highest-likelihood y+y^{+} and y−y^{-} of each prompt: ▷ Q2 y~x+←arg⁡max⁡yi:i∈P(x)ℓˉT(n)(yi∣x)\tilde{y}_{x}^{+} \leftarrow\arg\max_{y_i:i\in P(x)} \bar{\ell}_{T}^{(n)}(y_i \mid x), y~x−←arg⁡max⁡yi:i∈N(x)ℓˉT(n)(yi∣x)\tilde{y}_{x}^{-} \leftarrow\arg\max_{y_i:i\in N(x)} \bar{\ell}_{T}^{(n)}(y_i \mid x)

  1. Build the SFT data from the all-correct prompts: DSFTallp,top1←{(x,y~x+):x∈Xallp}\mathcal{D}_{\mathrm{SFT}}^{\mathrm{allp,top1}} \leftarrow\{(x,\tilde{y}_{x}^{+}) : x \in\mathcal{X}^{\mathrm{allp}}\}

  1. Build the DPO data from the mixed prompts, ordered from easy to hard (decreasing E[r](x)\mathbb{E}[r](x)): ▷ Q1 DDPOcurr,top1←{(x,y~x+,y~x−):x∈Xmix}\mathcal{D}_{\mathrm{DPO}}^{\mathrm{curr,top1}} \leftarrow\{(x,\tilde{y}_{x}^{+},\tilde{y}_{x}^{-}) : x \in\mathcal{X}^{\mathrm{mix}}\}

  1. Run SFT on the base student: πSSFT←SFT⁡(πS0;DSFTallp,top1)\pi_{S}^{\mathrm{SFT}} \leftarrow\operatorname{SFT}(\pi_{S_0};\mathcal{D}_{\mathrm{SFT}}^{\mathrm{allp,top1}}) ▷ Q3

  1. Run DPO from the SFT checkpoint: πS←DPO⁡(πSSFT;DDPOcurr,top1)\pi_{S} \leftarrow\operatorname{DPO}(\pi_{S}^{\mathrm{SFT}};\mathcal{D}_{\mathrm{DPO}}^{\mathrm{curr,top1}}) ▷ Q3

The answers to these questions lead us to our method (Algorithm 1), which uses metadata cached during teacher RL. Notably, this method does not require any new generations from the teacher or any student-specific forward passes for data selection and creation.

Experimental Setup

Setting. We study rollout reuse in two domains with verifiable rewards, mathematical reasoning and Python coding. As described in Figure 1, the setup includes first training a teacher model with GRPO, then distilling into students either from the final teacher or by reusing the saved rollouts, and evaluating the distilled students on a set of benchmarks.

Training Datasets for Teacher RL. In maths, we use Math12K [14], the 12,000 MATH training problems in the split of Lightman et al. [2023] (holding out MATH500), and DeepScaler [20], a broader collection of competition maths problems, from which we use a random 20,000-problem subset. For coding, we use AceCode-87K [41]: 20,480 Python training tasks and a disjoint 256-task validation split after deduplication and test-set decontamination (rewarded only if all tests pass).

Teacher RL. We train all teachers with GRPO in verl [32], with G=16G=16 rollouts per prompt and binary verifier rewards. We instantiate two maths teachers that differ in the relationship between the teacher’s RL prompt distribution and the student’s evaluation distribution:

  • T1\mathcal{T}_1 — in-distribution (DRL=dDeval\mathcal{D}_{\mathrm{RL}} \overset{d}{=} \mathcal{D}_{\mathrm{eval}}). The teacher (Qwen3-4B-Base) is trained with full-parameter GRPO on the Math12K training split, and the student is evaluated on MATH500. The saved rollouts therefore come from the same distribution as the test prompts (∴\therefore in-dist.).

  • T2\mathcal{T}_2 — cross-distribution (DRL≠Deval\mathcal{D}_{\mathrm{RL}} \ne\mathcal{D}_{\mathrm{eval}}). The teacher (Qwen3-8B-Base) is trained with GRPO using LoRA [15] on DeepScaler-20K [20], and the student is again evaluated on MATH500. The saved rollouts therefore come from a related but different distribution than the test prompts (∴\therefore out-dist.), making this the harder setting for rollout distillation.

In coding, we fully fine-tune Qwen3-4B-Base on AceCode and evaluate students on HumanEval+ and MBPP+. We choose the final teachers on validation performance: step 234 for T1\mathcal{T}_1 and step 120 for T2\mathcal{T}_2 and coding (Appendix § 10).

Student Models. We distil our teachers into five base students from several families and architectures: Qwen2.5-1.5B [38] and Qwen3-4B-Base [39] from the Qwen family, SmolLM3-3B-Base [3] and Gemma-2-2B [10] as non-Qwen transformers, and LFM2.5-1.2B-Base [18] as a hybrid student. In coding, we use the same students except Gemma-2-2B (given its 8K context limit).

Baselines and Rollout Datasets. Our main baseline is canonical distillation, Dsynthetic\mathcal{D}_{\mathrm{synthetic}}: we sample eight responses per training prompt from the final teacher and train on the correct ones (one random correct response per prompt in coding), regenerating on Math12K for both maths teachers and on AceCode in coding. From Drollouts\mathcal{D}_{\mathrm{rollouts}}, we compare our recipe with naive random baselines (DSFTrandom\mathcal{D}_{\mathrm{SFT}}^{\mathrm{random}}, DDPOrandom\mathcal{D}_{\mathrm{DPO}}^{\mathrm{random}}), GRAPE, and other variants (the datasets are detailed in Table 1).

DatasetStagePromptsOrderCompletion selector
DSFTrandom\mathcal{D}_{\mathrm{SFT}}^{\mathrm{random}}SFTE[r](x)∈(0,1]\mathbb{E}[r](x) \in(0,1]shuffledrandom
DSFTshuffled,top1\mathcal{D}_{\mathrm{SFT}}^{\mathrm{shuffled,top1}}SFTE[r](x)∈(0,1]\mathbb{E}[r](x) \in(0,1]shuffledteacher-top1
GRAPESFTE[r](x)∈(0,1]\mathbb{E}[r](x) \in(0,1]shuffledstudent-top1
DSFTcurr,top1\mathcal{D}_{\mathrm{SFT}}^{\mathrm{curr,top1}}SFTE[r](x)∈(0,1]\mathbb{E}[r](x) \in(0,1]easy →\to hardteacher-top1
DSFTallp,top1\mathcal{D}_{\mathrm{SFT}}^{\mathrm{allp,top1}}SFTE[r](x)=1\mathbb{E}[r](x) = 1—teacher-top1
DDPOrandom\mathcal{D}_{\mathrm{DPO}}^{\mathrm{random}}DPOE[r](x)∈(0,1)\mathbb{E}[r](x) \in(0,1)shuffledrandom
DDPOshuffled,top1\mathcal{D}_{\mathrm{DPO}}^{\mathrm{shuffled,top1}}DPOE[r](x)∈(0,1)\mathbb{E}[r](x) \in(0,1)shuffledteacher-top1
DDPOcurr,top1\mathcal{D}_{\mathrm{DPO}}^{\mathrm{curr,top1}}DPOE[r](x)∈(0,1)\mathbb{E}[r](x) \in(0,1)easy →\to hardteacher-top1

Table 1. Descriptions of the rollout datasets studied. Each dataset keeps one correct completion per prompt for SFT or one correct–incorrect pair for DPO. Following Q1–Q2, we vary which questions to use (by pass rate E[r](x)\mathbb{E}[r](x)), what order to present them in (shuffled vs. easy →\to hard), and which completions to select: random, cached teacher log-likelihood (teacher-top1), or base-student log-likelihood (student-top1; GRAPE [42]).

Training Students. We use TRL [35] to train SFT with AdamW and DPO with β=0.1\beta= 0.1. For Dsynthetic\mathcal{D}_{\mathrm{synthetic}}, we sweep the learning rates and the scheduler (10−510^{-5} or 5×10−55 \times10^{-5}, constant or cosine) and keep the best run for each student; rollout SFT uses 10−510^{-5} with a cosine schedule. DPO runs use 5×10−65 \times10^{-6} with a constant schedule, chosen on DDPOrandom\mathcal{D}_{\mathrm{DPO}}^{\mathrm{random}} (Appendix § 10).

Evaluations. In maths, we evaluate the distilled students on MATH500 from the OpenAI split [14] (Lightman et al. 2023), GSM8K [8] (1,319 grade-school word problems), and AIME 2024, AIME 2025 and AMC 2023 [21], graded with Math-Verify [17]. In coding, we evaluate on HumanEval+ (164 problems) and MBPP+ (378 problems) [19], which add tests to HumanEval [6] and MBPP [2]. We report the average accuracy over 8 samples at temperature 0.7 (avg@8). Checkpoints are selected on MATH500 in maths and on the AceCode validation split in coding. In addition, we report one standard deviation as error bars and 95% confidence intervals from a paired bootstrap over test problems (Appendix § 11).

Results

Closing the Gap to Canonical Distillation

Naive rollout reuse underperforms canonical distillation. Figure 3 compares distillation from the saved rollouts against canonical distillation (Table 5). Consistent with our motivation, naively training SFT on a random correct rollout per prompt (DSFTrandomD_{\mathrm{SFT}}^{\mathrm{random}}) underperforms DsyntheticD_{\mathrm{synthetic}} across all ten maths teacher–student settings and in seven of eight coding comparisons (−1.95 points in maths and −4.44 in coding, averaged across students and benchmarks). Training DPO on random preference pairs (DDPOrandomD_{\mathrm{DPO}}^{\mathrm{random}}) is unstable: while it improves over DsyntheticD_{\mathrm{synthetic}} for three students on T1\mathcal{T}_1, it collapses to near-base accuracy on Gemma-2-2B and underperforms DsyntheticD_{\mathrm{synthetic}} for every student on T2\mathcal{T}_2. Simply having a large rollout pool is therefore not enough; how we select from DrolloutsD_{\mathrm{rollouts}} matters.

T1\mathcal{T}_1: Qwen3-4B / Math12KT2\mathcal{T}_2: Qwen3-8B / DeepScaler
StudentBaseDsynthetic\mathcal{D}_{\mathrm{synthetic}}DSFTrandom\mathcal{D}^{\mathrm{random}}_{\mathrm{SFT}}DDPOrandom\mathcal{D}^{\mathrm{random}}_{\mathrm{DPO}}GRAPEOursDsynthetic\mathcal{D}_{\mathrm{synthetic}}DSFTrandom\mathcal{D}^{\mathrm{random}}_{\mathrm{SFT}}DDPOrandom\mathcal{D}^{\mathrm{random}}_{\mathrm{DPO}}GRAPEOurs
Qwen2.5-1.5B35.351.046.352.249.854.646.140.842.044.847.4
SmolLM3-3B55.157.854.658.859.159.964.662.357.261.063.1
Gemma-2-2B3.823.218.67.221.817.120.613.65.017.716.6
LFM2.5-1.2B37.949.747.542.850.951.057.451.141.552.554.1
Qwen3-4B†^\dagger41.774.972.276.2–75.578.477.875.0–78.4
Coding: HumanEval+Coding: MBPP+
StudentBaseDsynthetic\mathcal{D}_{\mathrm{synthetic}}DSFTrandom\mathcal{D}^{\mathrm{random}}_{\mathrm{SFT}}GRAPEOursBaseDsynthetic\mathcal{D}_{\mathrm{synthetic}}DSFTrandom\mathcal{D}^{\mathrm{random}}_{\mathrm{SFT}}GRAPEOurs
Qwen2.5-1.5B17.422.88.510.121.314.017.54.25.023.3
SmolLM3-3B17.644.441.041.643.430.055.150.851.251.0
LFM2.5-1.2B25.721.428.428.028.423.524.321.027.026.0
Qwen3-4B†^\dagger50.276.873.974.876.448.865.564.462.865.0

Table 5. Main results on MATH500, HumanEval+ and MBPP+. Avg@8 (%) on MATH500 for both maths teachers (top) and on HumanEval+ and MBPP+ in coding (bottom). Dsynthetic\mathcal{D}_{\mathrm{synthetic}} needs a new generation pass from the final teacher; every other column reuses the teacher’s saved rollouts. Ours is DSFTallp,top1→DDPOcurr,top1\mathcal{D}^{\mathrm{allp,top1}}_{\mathrm{SFT}} \rightarrow\mathcal{D}^{\mathrm{curr,top1}}_{\mathrm{DPO}}. GRAPE is SFT on the correct rollout that the base student finds likely. Bold marks the best result in each row for each teacher or benchmark. Tables 6–9 and 11 give the full results on every benchmark, with all rollout variants. †^\daggerSame base model as the T1\mathcal{T}_1 and coding teachers.

Our recipe closes most of the gap. Our two-stage recipe (DSFTallp,top1→DDPOcurr,top1D_{\mathrm{SFT}}^{\mathrm{allp,top1}} \rightarrow D_{\mathrm{DPO}}^{\mathrm{curr,top1}}) improves over both naive rollout baselines for nearly every student. Averaged across students and benchmarks, it matches DsyntheticD_{\mathrm{synthetic}} closely in maths (−0.37 points, compared with −1.95 for DSFTrandomD_{\mathrm{SFT}}^{\mathrm{random}}) and is on par with DsyntheticD_{\mathrm{synthetic}} in coding (+0.89 points; refer to Appendix § 11 for CI). It also outperforms GRAPE-SFT in six of eight maths settings and six of eight coding cells (Table 5), without requiring any new teacher generation (Table 2) or student forward passes over the rollouts.

Completions / response tokensMaths (T1\mathcal{T}_1, step 234)Coding (step 120)
Saved during teacher RL, reused by our recipe239,592 / 167.7M61,440 / 26.7M
New teacher generation for canonical distillation96,000 / 58.3M163,840 / 17.6M
New teacher generation for our recipe0 / 00 / 0

Table 2. Teacher generation cost of canonical distillation versus our recipe. Total completions and response tokens (in millions, M) for the Qwen3-4B-Base maths (T1\mathcal{T}_1) and coding teachers. Canonical distillation samples eight new responses per prompt from the final teacher, whereas our recipe reuses rollouts already generated during teacher RL, saving millions of generated tokens.

Cross-dataset transfer. Unlike T1\mathcal{T}_1 (Math12K rollouts), T2\mathcal{T}_2 trains on DeepScaler, while its DsyntheticD_{\mathrm{synthetic}} baseline regenerates solutions from the final 8B teacher on the same Math12K training prompts used by the T1\mathcal{T}_1 baseline. Even under this harder test, our recipe is 1.5 points below Dsynthetic\mathcal{D}_{\mathrm{synthetic}} on average on MATH500, whereas naive SFT (DSFTrandom\mathcal{D}^{\mathrm{random}}_{\mathrm{SFT}}) is 4.3 points below. While the average gap to Dsynthetic\mathcal{D}_{\mathrm{synthetic}} is slightly larger than in the in-distribution setting (T1\mathcal{T}_1), rollouts from a related prompt pool transfer effectively.

The Need for Data Selection

Teacher-top1 selection improves over random selection. To test the effect of the selection rule, we train on the exact same prompts using either a random rollout or our proxy (the teacher-top1 rollout). Teacher-top1 improves both SFT and DPO on average under both maths teachers, and improves SFT in coding as well (Table 11). This is consistent with H2_2: the rollout the teacher found most likely is also high-likelihood under the student, making it a better target for student training than a random completion.

BenchmarkStudentBaseDsyntheticD_{\mathrm{synthetic}}DSFTrandomD_{\mathrm{SFT}}^{\mathrm{random}}DSFTallp,top1D_{\mathrm{SFT}}^{\mathrm{allp,top1}}SFT, teacher-top1SFT, GRAPEDSFTallp,top1→DDPOcurr,top1D_{\mathrm{SFT}}^{\mathrm{allp,top1}} \to D_{\mathrm{DPO}}^{\mathrm{curr,top1}}
HumanEval+Qwen2.5-1.5B17.38±1.4622.79±1.878.54±1.5318.06±2.7110.75±2.4210.14±2.0121.34±1.56
SmolLM3-3B17.61±3.1044.36±2.3741.01±2.8229.34±2.5139.02±2.7141.62±2.1843.45±1.69
LFM2.5-1.2B25.69±2.1721.42±2.5828.43±2.7524.24±1.4130.56±1.6128.05±2.0628.43±2.59
Qwen3-4B-Base50.15±2.5476.83±1.8173.86±2.0275.84±2.3976.30±3.2574.77±2.9576.37±1.16
MBPP+Qwen2.5-1.5B13.99±1.0717.49±2.114.17±0.8818.06±1.685.46±1.094.99±0.8123.31±1.45
SmolLM3-3B29.96±2.2655.06±1.2250.83±1.7747.16±1.8649.83±1.4151.19±2.0350.96±1.80
LFM2.5-1.2B23.48±2.5324.27±0.8521.00±2.1523.21±2.4127.94±1.0827.02±1.3425.96±1.52
Qwen3-4B-Base48.78±2.0465.54±1.1064.38±1.8864.42±1.6264.15±0.5162.80±0.7165.05±0.92

Table 11. Coding accuracy of the reported methods on HumanEval+ and MBPP+. Avg@8 (%) ± standard deviation over the eight samples, at temperature 0.7. Bold marks the best trained model in each row.

GRAPE shows gains at the cost of a student-scoring pass. GRAPE needs to score every correct rollout in the large rollout archive under each base student. On the same prompts (E[r](x)>0\mathbb{E}[r](x)>0), GRAPE achieves higher accuracy than teacher-top1 in maths (+1.05 and +1.23 points on MATH500 for T1\mathcal{T}_1 and T2\mathcal{T}_2; Figure 4), while in coding teacher-top1 is on par (+0.43 points; Appendix § 12.§ 2). On the student with the lowest likelihood overlap, Gemma-2-2B (Figure 2), GRAPE-SFT also beats our two-stage recipe, by 4.7 and 1.1 points for T1\mathcal{T}_1 and T2\mathcal{T}_2. This shows that GRAPE gives us gains at the cost of extra student passes over the rollout pool, while ours is zero-pass and student-agnostic. Both methods show that rollouts are worth saving, which is the broader point of our paper.

Figure 4. Comparison of different completion selection methods. MATH500 avg@8 for T1\mathcal{T}_1 (Math12K rollouts, left) and T2\mathcal{T}_2 (DeepScaler rollouts, right), for SFT and DPO using random, teacher-top1, and GRAPE (student-top1) selection on the same prompts in shuffled order (Table 12). We see that teacher-top1 selection improves over random selection.

Prompt order matters little. Our curriculum datasets combine two choices: teacher-top1 selection and easy-to-hard ordering by pass rate. Holding the selected completions fixed, ordering prompts from easy to hard instead of shuffling them gives only a small average gain on MATH500 (+0.2 points in SFT and +0.9 in DPO; Table 12), helping most in DPO on T2\mathcal{T}_2 and for the weaker students, where standalone DPO is most fragile. Since pass rates are cached, our recipe orders prompts at no extra cost. We see that the completion selection rules discussed above matter more than prompt order (+1.5 points in SFT and +1.7 in DPO).

StudentSFT, all solvable prompts: random shuffledSFT, all solvable prompts: top1 shuffledSFT, all solvable prompts: top1 curriculumDPO, mixed-success prompts: random shuffledDPO, mixed-success prompts: top1 shuffledDPO, mixed-success prompts: top1 curriculum
T1\mathcal{T}_1
Qwen2.5-1.5B46.349.951.352.254.452.5
SmolLM3-3B54.657.056.558.860.561.2
Gemma-2-2B18.620.220.87.24.34.3
LFM2.5-1.2B47.550.447.942.845.949.1
Qwen3-4B72.2–74.776.278.676.2
T2\mathcal{T}_2
Qwen2.5-1.5B40.840.742.842.048.348.6
SmolLM3-3B62.362.161.957.258.360.1
Gemma-2-2B13.616.116.95.04.47.4
LFM2.5-1.2B51.152.252.241.542.246.9
Qwen3-4B77.877.878.175.078.278.0
Mean change+1.5 (6/9)+0.2 (5/9)+1.7 (8/10)+0.9 (6/10)

Table 12. Isolating the effects of response selection and prompt ordering. MATH500 avg@8 (%). Within each stage, all three runs use the same prompts. We compare random and teacher-top1 selection with the prompts shuffled, and shuffled and easy → hard order with teacher-top1 selection. The last row averages each change over all settings, with the number of settings that improve in parentheses.

When Does Preference Learning Help?

Preference learning helps most students, but fails when base-student support is low. To test whether learning to contrast correct and incorrect responses (DPO) helps over imitating the correct ones (SFT), we compare DDPOcurr,top1\mathcal{D}^{\mathrm{curr,top1}}_{\mathrm{DPO}} with DSFTcurr,top1\mathcal{D}^{\mathrm{curr,top1}}_{\mathrm{SFT}}. They both use teacher-top1 correct responses ordered from easy to hard (Figure 5). DPO matches or outperforms SFT for most students, but leaves Gemma-2-2B near its base accuracy, and on T2\mathcal{T}_2 it also falls behind SFT for LFM2.5-1.2B. Consistent with H1_1, these are the students whose base policies assign the lowest log-likelihood to the chosen responses. As discussed in § 4.2, this motivates an SFT warm start to increase the student’s support for correct responses before DPO.

Figure 5. DPO versus SFT against base-student support. Difference in MATH500 avg@8 between DDPOcurr,top1\mathcal{D}^{\mathrm{curr,top1}}_{\mathrm{DPO}} and DSFTcurr,top1\mathcal{D}^{\mathrm{curr,top1}}_{\mathrm{SFT}}, which use the teacher-top1 correct responses, for T1\mathcal{T}_1 (left) and T2\mathcal{T}_2 (right), against base-student support E[ℓˉS0(y+∣x)]\mathbb{E}[\bar{\ell}_{S_0}(y^+ \mid x)]: the mean log-likelihood of the chosen DPO responses under the base student. DPO falls behind SFT for the students with the lowest base-student support (Gemma-2-2B, and LFM2.5-1.2B under T2\mathcal{T}_2); this trend is more apparent under T1\mathcal{T}_1.

An SFT warm start helps the low-support students. For the higher-support students (Qwen2.5-1.5B, SmolLM3-3B and Qwen3-4B), standalone DPO is already strong, and adding the warm start changes MATH500 by at most three points either way. For the low-support students, the warm start is useful: it lifts Gemma-2-2B from 4.3% to 17.1% on MATH500 under T1\mathcal{T}_1 and improves LFM2.5-1.2B under both teachers (Tables 6 and 8). This supports the second part of H1: an SFT warm start can recover the students for which standalone DPO fails.

The two-stage recipe is reliable across students. We see that neither stage works for all students on its own: standalone DPO fails on the low-support students, while the SFT warm start alone underperforms the full recipe for most students. Our two-stage recipe is therefore a reliable way to reuse rollouts: it stays within 1.3 points of the better of the two stages in every maths setting and outperforms running both stages on random rollouts (DSFTrandom→DDPOrandom\mathcal{D}^{\mathrm{random}}_{\mathrm{SFT}} \rightarrow\mathcal{D}^{\mathrm{random}}_{\mathrm{DPO}}) in eight of ten maths settings on MATH500 (Appendix B.1).

Discussion

We showed that the separate generation pass of canonical distillation can be replaced by curating saved teacher RL rollouts: selecting from Drollouts\mathcal{D}_{\mathrm{rollouts}} using the pass rates E[r](x)\mathbb{E}[r](x) and log-likelihoods ℓˉT(n)\bar{\ell}^{(n)}_{\mathcal{T}} that GRPO already computes matches canonical distillation on average across maths and coding, whereas naive rollout reuse falls short. While spending extra compute to score the archive under each student (as in GRAPE) yields a small additional gain in maths, cached teacher likelihood provides a zero-cost, student-agnostic alternative. At frontier scale, where a single RL run spans millions of trajectories across diverse environments, the saved rollout pool can distil students without additional teacher inference.

Limitations. Our experiments study 4B and 8B teachers distilling into 1.2B–4B students; whether our curation rules transfer across much larger teacher–student capacity gaps remains an open question. We focus on mathematical reasoning and Python coding with binary verifier rewards; in domains with non-verifiable rewards, partitioning prompts into positive and negative traces is less well defined. Finally, while we report evaluation variance over 8 repeats, we run a single training seed per configuration.

Future Directions. Our study opens two natural directions for making fuller use of teacher training artefacts. First, we can test whether SFT →\rightarrow DPO rollout distillation provides a stronger initialisation than standard SFT distillation for subsequent on-policy distillation or RL. Second, teacher training also produces intermediate checkpoints (πT(1),…,πT(N)\pi_{\mathcal{T}}^{(1)}, \ldots, \pi_{\mathcal{T}}^{(N)}); using them and their stage-specific rollouts for progressive curriculum (on/off-policy) distillation is another promising direction.

We hope our findings encourage practitioners to save and share their RL rollouts along with information like rewards and likelihoods computed during RL—in short, don’t discard your rollouts; reuse them for distillation.

Acknowledgments and Disclosure of Funding

This research was funded by the National Institute of Standards and Technology under Federal Award ID Number 60NANB24D231 and Carnegie Mellon University AI Measurement Science and Engineering Center (AIMSEC). This material is also based upon work supported by the National Science Foundation Grant 2326610. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation. The authors thank the CMU FLAME Center and the CMU Babel Compute Cluster for computational support. We also thank Lintang Sutawika and Xiaochuan Li for insightful discussions, and Petros Karypis for feedback on the manuscript.

Experimental Details

Teacher Training

We train all teachers with GRPO in verl [32], with G=16G=16 rollouts per prompt, sampling temperature 1.0 and no KL penalty. In maths, we consider two teacher settings, grading final answers with Math-Verify [17]:

  • T1\mathcal{T}_1 (train: Math12K; test: MATH500 and the other maths benchmarks). We fully fine-tune Qwen3-4B-Base for 234 steps on eight L40S GPUs, with learning rate 10−610^{-6}, 64 prompts per step and a 3,072-token response cap. We see a plateau in MATH500 validation accuracy during teacher training, so we use the last step (234) as the final teacher.

  • T2\mathcal{T}_2 (train: DeepScaler-20K; test: the same benchmarks). We train Qwen3-8B-Base with LoRA (r=128r=128, α=64\alpha=64), learning rate 5×10−55 \times10^{-5}, 64 prompts per step, and an 8,192-token response cap on eight L40S GPUs (tensor parallelism 2) for 205 steps. We use step 120, its best MATH500 validation checkpoint, as the final teacher.

Figure 6 shows the training reward, response length and policy entropy of both teachers.

In coding (train: AceCode; test: HumanEval+ and MBPP+), we fully fine-tune Qwen3-4B-Base on four GB200 GPUs, with learning rate 10−610^{-6}, 32 prompts per step, and 4,096-token prompt and 8,192-token response caps. A program gets reward one only if it passes all of its unit tests. We track validation accuracy with greedy decoding on 256 held-out AceCode tasks; it levels off after step 120 (Figure 7, right), so we use step 120 as the final teacher and keep the rollouts up to that step. Over these steps, the teacher’s avg@8 rises from 50.2% to 74.9% on HumanEval+ and from 48.8% to 63.8% on MBPP+.

Figure 7. Coding teacher training. Left: mean training reward, per step (faint) and as a ten-step moving average (solid). Right: validation accuracy on the 256 held-out AceCode tasks, with greedy decoding, every 40 steps. The dashed line marks the final teacher at step 120, up to which we save the rollouts.

Datasets

Table 3 lists the size of every training set. To avoid test contamination in coding, we remove exact duplicates from AceCode, along with any task that shares a normalised 9-gram with a HumanEval+ or MBPP+ prompt.

DatasetSelectionT1\mathcal{T}_1T2\mathcal{T}_2Coding
Canonical distillation: a new generation pass from the final teacher
Dsynthetic\mathcal{D}_{\mathrm{synthetic}}correct responses from eight samples per training prompt57,38064,76716,702
Dsynthetic\mathcal{D}_{\mathrm{synthetic}}, one per promptone random correct response per prompt of Dsynthetic\mathcal{D}_{\mathrm{synthetic}}8,7398,98016,702
Rollout by-products: no new teacher generation
Drollouts\mathcal{D}_{\mathrm{rollouts}}every rollout saved during teacher RL239,592122,88061,440
DSFTrandom\mathcal{D}^{\mathrm{random}}_{\mathrm{SFT}}one random correct rollout per solvable prompt10,8976,4603,252
DSFTcurr,top1\mathcal{D}^{\mathrm{curr,top1}}_{\mathrm{SFT}}one correct rollout per solvable prompt, by likelihood10,8976,4603,252
DSFTallp,top1\mathcal{D}^{\mathrm{allp,top1}}_{\mathrm{SFT}}teacher-top1 correct rollout, easy →\to hard10,8976,4603,252
DSFTrandom\mathcal{D}^{\mathrm{random}}_{\mathrm{SFT}}teacher-top1 rollout on prompts with E[r](x)=1\mathbb{E}[r](x)=15191,495338
DDPOrandom\mathcal{D}^{\mathrm{random}}_{\mathrm{DPO}}one random correct–incorrect pair per mixed-success prompt10,3784,9652,914
DDPOcurr,top1\mathcal{D}^{\mathrm{curr,top1}}_{\mathrm{DPO}}teacher-top1 pair per mixed-success prompt, easy →\to hard10,3784,9652,914

Table 3. Number of training examples in each dataset. SFT rows are responses and DPO rows are correct–incorrect pairs. Dsynthetic\mathcal{D}_{\mathrm{synthetic}} needs a new generation pass from the final teacher and keeps every correct response in maths and one per prompt in coding. The rollout datasets are all extracted from Drollouts\mathcal{D}_{\mathrm{rollouts}}, the completions saved during GRPO, so they need no new teacher generation; they differ in which prompts they use and how they pick responses (Table 1).

Student Training

We train all students with TRL [35] and AdamW (Table 4). In maths, we train on eight H100 GPUs with a global batch of 256; DPO uses β=0.1\beta=0.1 and DeepSpeed ZeRO-2. We tune learning rates only on the baselines: for Dsynthetic\mathcal{D}_{\mathrm{synthetic}} on T1\mathcal{T}_1, we sweep 10−510^{-5} and 5×10−55 \times10^{-5} with a constant or cosine schedule and keep the best run for each student. All rollout SFT runs then use 10−510^{-5} with a cosine schedule, and all DPO runs 5×10−65 \times10^{-6} with a constant schedule. In coding, we train on four GB200 GPUs with a global batch of 64 and a maximum sequence length of 12,288 tokens.

Maths SFTMaths DPOCoding
Dsynthetic\mathcal{D}_{\mathrm{synthetic}}RolloutsDSFTallp,top1\mathcal{D}^{\mathrm{allp,top1}}_{\mathrm{SFT}}SFTDPO
Learning rateswept∗^{*}10−510^{-5} cosine10−510^{-5} cosine5×10−65 \times10^{-6} constant10−510^{-5} cosine5×10−65 \times10^{-6} constant
Epochs126222
Max. sequence length4,0964,0964,0962,04812,28812,288
Global batch2562562562566464
DPO β\beta–––0.1–0.1

Table 4. Student training hyperparameters for each method. All runs use AdamW. ∗^{*}For Dsynthetic\mathcal{D}_{\mathrm{synthetic}} on T1\mathcal{T}_1, we sweep 10−510^{-5} and 5×10−55 \times10^{-5} with a constant or cosine schedule and keep the best run for each student; Dsynthetic\mathcal{D}_{\mathrm{synthetic}} on T2\mathcal{T}_2 uses 10−510^{-5} with a cosine schedule. For coding, LFM2.5-1.2B uses 5×10−55 \times10^{-5} for DSFTrandom\mathcal{D}^{\mathrm{random}}_{\mathrm{SFT}} and Dsynthetic\mathcal{D}_{\mathrm{synthetic}}.

Evaluation

We sample with vLLM [16] at temperature 0.7 (top-pp 0.95 in coding) and report avg@8, the mean accuracy over eight samples per problem. We allow 3,072 generated tokens for MATH500, GSM8K and AMC 2023, 16,384 for AIME (7,168 for Gemma-2-2B, whose context is 8K tokens) and 8,192 in coding. We select checkpoints on MATH500 in maths and on the 256-task AceCode validation split in coding. For differences between methods, we report 95% confidence intervals from a paired bootstrap over the test problems (100,000 resamples). For Gemma-2-2B, we use FlashAttention-2 in vLLM, since its FlashAttention-3 path lacks tanh soft-capping.

Complete Results

Mathematical Reasoning

Tables 6–9 report every maths method except GRAPE (Figure 12 and Figure 13) across all five benchmarks, and Figure 8 shows MATH500 and GSM8K for every student. Averaged over both teachers, five students, and all five benchmarks weighted equally, our two-stage recipe (DSFTallp,top1→DDPOcurr,top1\mathcal{D}^{\mathrm{allp,top1}}_{\mathrm{SFT}} \rightarrow\mathcal{D}^{\mathrm{curr,top1}}_{\mathrm{DPO}}) is 0.37 points below DsyntheticD_{\mathrm{synthetic}} (95% CI [−0.82, +0.08], which includes zero), whereas naive rollout SFT (DSFTrandomD_{\mathrm{SFT}}^{\mathrm{random}}) is 1.95 points below ([−2.33, −1.58]).

Figure 8. Maths results for every method and student. Avg@8 on MATH500 (left) and GSM8K (right) for T1\mathcal{T}_1 (top) and T2\mathcal{T}_2 (bottom); the MATH500 panels match Figure 3 in the main text. DsyntheticD_{\mathrm{synthetic}} is generated on Math12K for both teachers.

Figure 12. Teacher-top1 and GRAPE across all maths benchmarks (T1\mathcal{T}_1). Avg@8 (%) of SFT on one correct rollout per solvable prompt, chosen by saved teacher likelihood (teacher-top1) or by base-student likelihood (GRAPE), with DsyntheticD_{\mathrm{synthetic}} for reference.

Figure 13. Teacher-top1 and GRAPE across all maths benchmarks (T2\mathcal{T}_2). The same comparison for T2\mathcal{T}_2, whose rollouts come from DeepScaler while DsyntheticD_{\mathrm{synthetic}} regenerates on Math12K.

In maths, curated SFT data matches bigger SFT data. Our SFT warm start (DSFTallp,top1D_{\mathrm{SFT}}^{\mathrm{allp,top1}}) keeps the teacher-top1 response for only the consistently solved prompts (E[r](x)=1\mathbb{E}[r](x)=1). Despite using 21×21\times fewer prompts than DSFTrandomD_{\mathrm{SFT}}^{\mathrm{random}} on T1\mathcal{T}_1, it matches or outperforms DSFTrandomD_{\mathrm{SFT}}^{\mathrm{random}} for nearly every maths student and is on par with teacher-top1 SFT over all solvable prompts (DSFTcurr,top1D_{\mathrm{SFT}}^{\mathrm{curr,top1}}) on average (Table 6 and Table 8). We therefore use this split as the SFT warm start of our two-stage recipe, reserving the mixed-success prompts for DPO.

StudentDataAIMEAMCMATH500GSM8KAvg
Qwen2.5-1.5BBase0.004±0.0080.134±0.0300.353±0.0120.546±0.0320.259
Dsynthetic\mathcal{D}_{\mathrm{synthetic}}0.010±0.0170.263±0.0520.510±0.0170.697±0.0110.370
DSFTrandom\mathcal{D}_{\mathrm{SFT}}^{\mathrm{random}}0.019±0.0110.200±0.0570.463±0.0190.652±0.0210.334
DDPOrandom\mathcal{D}_{\mathrm{DPO}}^{\mathrm{random}}0.017±0.0120.256±0.0290.522±0.0150.707±0.0070.375
DSFTallp,top1\mathcal{D}_{\mathrm{SFT}}^{\mathrm{allp,top1}}0.015±0.0170.247±0.0340.506±0.0110.704±0.0110.368
DSFTcurr,top1\mathcal{D}_{\mathrm{SFT}}^{\mathrm{curr,top1}}0.023±0.0150.263±0.0500.513±0.0130.691±0.0060.372
DDPOcurr,top1\mathcal{D}_{\mathrm{DPO}}^{\mathrm{curr,top1}}0.013±0.0170.241±0.0380.525±0.0110.712±0.0090.373
DSFTallp,top1→DDPOcurr,top1\mathcal{D}_{\mathrm{SFT}}^{\mathrm{allp,top1}}\to\mathcal{D}_{\mathrm{DPO}}^{\mathrm{curr,top1}}0.013±0.0190.234±0.0530.546±0.0200.707±0.0070.375
DSFTrandom→DDPOrandom\mathcal{D}_{\mathrm{SFT}}^{\mathrm{random}}\to\mathcal{D}_{\mathrm{DPO}}^{\mathrm{random}}0.021±0.0210.259±0.0630.521±0.0120.719±0.0090.380
SFT, teacher-top1 (shuffled)0.015±0.0150.194±0.0320.499±0.0180.683±0.0100.348
DPO, teacher-top1 (shuffled)0.017±0.0130.238±0.0500.544±0.0140.719±0.0080.379
SmolLM3-3B-BaseBase0.019±0.0180.281±0.0550.551±0.0250.763±0.0110.404
Dsynthetic\mathcal{D}_{\mathrm{synthetic}}0.023±0.0210.294±0.0650.578±0.0150.774±0.0090.417
DSFTrandom\mathcal{D}_{\mathrm{SFT}}^{\mathrm{random}}0.025±0.0200.322±0.0670.546±0.0120.767±0.0120.415
DDPOrandom\mathcal{D}_{\mathrm{DPO}}^{\mathrm{random}}0.031±0.0260.322±0.0210.588±0.0100.793±0.0080.433
DSFTallp,top1\mathcal{D}_{\mathrm{SFT}}^{\mathrm{allp,top1}}0.021±0.0150.300±0.0480.567±0.0120.759±0.0080.412
DSFTcurr,top1\mathcal{D}_{\mathrm{SFT}}^{\mathrm{curr,top1}}0.027±0.0200.284±0.0420.565±0.0120.764±0.0090.410
DDPOcurr,top1\mathcal{D}_{\mathrm{DPO}}^{\mathrm{curr,top1}}0.033±0.0230.350±0.0420.612±0.0110.804±0.0090.450
DSFTallp,top1→DDPOcurr,top1\mathcal{D}_{\mathrm{SFT}}^{\mathrm{allp,top1}}\to\mathcal{D}_{\mathrm{DPO}}^{\mathrm{curr,top1}}0.048±0.0180.341±0.0730.599±0.0130.792±0.0080.445
DSFTrandom→DDPOrandom\mathcal{D}_{\mathrm{SFT}}^{\mathrm{random}}\to\mathcal{D}_{\mathrm{DPO}}^{\mathrm{random}}0.046±0.0240.350±0.0790.597±0.0120.798±0.0090.448
SFT, teacher-top1 (shuffled)0.029±0.0200.303±0.0280.570±0.0120.766±0.0090.417
DPO, teacher-top1 (shuffled)0.038±0.0200.347±0.0630.605±0.0190.799±0.0110.447
Gemma-2-2BBase0.000±0.0000.013±0.0190.038±0.0110.020±0.0060.017
Dsynthetic\mathcal{D}_{\mathrm{synthetic}}0.000±0.0000.094±0.0320.232±0.0140.356±0.0180.171
DSFTrandom\mathcal{D}_{\mathrm{SFT}}^{\mathrm{random}}0.004±0.0080.044±0.0290.186±0.0070.326±0.0190.140
DDPOrandom\mathcal{D}_{\mathrm{DPO}}^{\mathrm{random}}0.000±0.0000.028±0.0340.072±0.0120.057±0.0100.039
DSFTallp,top1\mathcal{D}_{\mathrm{SFT}}^{\mathrm{allp,top1}}0.004±0.0080.056±0.0370.174±0.0150.317±0.0100.138
DSFTcurr,top1\mathcal{D}_{\mathrm{SFT}}^{\mathrm{curr,top1}}0.002±0.0060.069±0.0260.208±0.0140.348±0.0050.157
DDPOcurr,top1\mathcal{D}_{\mathrm{DPO}}^{\mathrm{curr,top1}}0.000±0.0000.003±0.0090.043±0.0090.030±0.0060.019
DSFTallp,top1→DDPOcurr,top1\mathcal{D}_{\mathrm{SFT}}^{\mathrm{allp,top1}}\to\mathcal{D}_{\mathrm{DPO}}^{\mathrm{curr,top1}}0.000±0.0000.059±0.0330.171±0.0120.313±0.0110.136
DSFTrandom→DDPOrandom\mathcal{D}_{\mathrm{SFT}}^{\mathrm{random}}\to\mathcal{D}_{\mathrm{DPO}}^{\mathrm{random}}0.000±0.0000.084±0.0480.189±0.0150.324±0.0140.149
SFT, teacher-top1 (shuffled)0.006±0.0100.062±0.0350.202±0.0090.339±0.0120.152
DPO, teacher-top1 (shuffled)0.000±0.0000.022±0.0160.043±0.0090.031±0.0040.024

Table 6. Maths accuracy of every method and student on all benchmarks (T1\mathcal{T}_1). Avg@8 ± standard deviation over the eight samples, at temperature 0.7. AIME averages the 2024 and 2025 scores; Avg averages MATH500, GSM8K, AMC, and the combined AIME score. Bold marks the highest value per student and column. The rows below the rule are the shuffled teacher-top1 runs of Figure 4. DSFTrandom→DDPOrandom\mathcal{D}_{\mathrm{SFT}}^{\mathrm{random}}\to\mathcal{D}_{\mathrm{DPO}}^{\mathrm{random}} runs DPO on random pairs from the random-SFT checkpoint.

StudentDataAIMEAMCMATH500GSM8KAvg
Qwen2.5-1.5BBase0.004±0.0080.134±0.0300.353±0.0120.546±0.0320.259
DsyntheticD_{\mathrm{synthetic}}0.019±0.0150.231±0.0660.461±0.0160.699±0.0110.353
DrandomSFTD_{\mathrm{random}}^{\mathrm{SFT}}0.013±0.0140.172±0.0740.408±0.0140.663±0.0100.314
DrandomDPOD_{\mathrm{random}}^{\mathrm{DPO}}0.006±0.0090.172±0.0570.420±0.0140.595±0.0150.298
Dallp,top1SFTD_{\mathrm{allp,top1}}^{\mathrm{SFT}}0.010±0.0110.172±0.0410.424±0.0190.672±0.0140.320
Dcurr,top1SFTD_{\mathrm{curr,top1}}^{\mathrm{SFT}}0.008±0.0090.191±0.0380.428±0.0100.675±0.0070.325
Dcurr,top1DPOD_{\mathrm{curr,top1}}^{\mathrm{DPO}}0.021±0.0160.194±0.0500.486±0.0250.689±0.0090.347
Dallp,top1SFT→Dcurr,top1DPOD_{\mathrm{allp,top1}}^{\mathrm{SFT}}\to D_{\mathrm{curr,top1}}^{\mathrm{DPO}}0.019±0.0170.219±0.0320.474±0.0210.703±0.0090.354
DrandomSFT→DrandomDPOD_{\mathrm{random}}^{\mathrm{SFT}}\to D_{\mathrm{random}}^{\mathrm{DPO}}0.029±0.0210.247±0.0390.469±0.0160.690±0.0110.359
SFT, teacher-top1 (shuffled)0.010±0.0110.194±0.0400.407±0.0140.673±0.0060.321
DPO, teacher-top1 (shuffled)0.023±0.0180.222±0.0490.483±0.0190.672±0.0120.350
SmolLM3-3B-BaseBase0.019±0.0180.281±0.0550.551±0.0250.763±0.0110.404
DsyntheticD_{\mathrm{synthetic}}0.075±0.0280.387±0.0300.646±0.0130.825±0.0040.483
DrandomSFTD_{\mathrm{random}}^{\mathrm{SFT}}0.079±0.0330.369±0.0420.623±0.0100.799±0.0080.467
DrandomDPOD_{\mathrm{random}}^{\mathrm{DPO}}0.029±0.0170.353±0.0490.572±0.0130.774±0.0080.432
Dallp,top1SFTD_{\mathrm{allp,top1}}^{\mathrm{SFT}}0.088±0.0260.356±0.0260.623±0.0110.808±0.0080.469
Dcurr,top1SFTD_{\mathrm{curr,top1}}^{\mathrm{SFT}}0.073±0.0330.359±0.0330.619±0.0090.798±0.0070.462
Dcurr,top1DPOD_{\mathrm{curr,top1}}^{\mathrm{DPO}}0.029±0.0190.344±0.0700.601±0.0120.795±0.0080.442
Dallp,top1SFT→Dcurr,top1DPOD_{\mathrm{allp,top1}}^{\mathrm{SFT}}\to D_{\mathrm{curr,top1}}^{\mathrm{DPO}}0.092±0.0250.362±0.0440.631±0.0200.814±0.0070.475
DrandomSFT→DrandomDPOD_{\mathrm{random}}^{\mathrm{SFT}}\to D_{\mathrm{random}}^{\mathrm{DPO}}0.081±0.0380.378±0.0470.632±0.0170.812±0.0110.476
SFT, teacher-top1 (shuffled)0.083±0.0220.359±0.0350.621±0.0150.800±0.0090.466
DPO, teacher-top1 (shuffled)0.038±0.0190.316±0.0570.583±0.0140.792±0.0050.432
Gemma-2-2BBase0.000±0.0000.013±0.0190.038±0.0110.020±0.0060.017
DsyntheticD_{\mathrm{synthetic}}0.004±0.0080.069±0.0260.206±0.0130.388±0.0130.167
DrandomSFTD_{\mathrm{random}}^{\mathrm{SFT}}0.002±0.0060.041±0.0330.136±0.0070.303±0.0120.120
DrandomDPOD_{\mathrm{random}}^{\mathrm{DPO}}0.000±0.0000.013±0.0190.050±0.0050.030±0.0070.023
Dallp,top1SFTD_{\mathrm{allp,top1}}^{\mathrm{SFT}}0.004±0.0080.031±0.0350.167±0.0130.322±0.0090.131
Dcurr,top1SFTD_{\mathrm{curr,top1}}^{\mathrm{SFT}}0.002±0.0060.062±0.0230.169±0.0170.330±0.0150.141
Dcurr,top1DPOD_{\mathrm{curr,top1}}^{\mathrm{DPO}}0.000±0.0000.028±0.0210.074±0.0070.067±0.0120.042
Dallp,top1SFT→Dcurr,top1DPOD_{\mathrm{allp,top1}}^{\mathrm{SFT}}\to D_{\mathrm{curr,top1}}^{\mathrm{DPO}}0.000±0.0000.056±0.0320.166±0.0100.312±0.0120.134
DrandomSFT→DrandomDPOD_{\mathrm{random}}^{\mathrm{SFT}}\to D_{\mathrm{random}}^{\mathrm{DPO}}0.002±0.0060.041±0.0300.144±0.0140.304±0.0110.123
SFT, teacher-top1 (shuffled)0.000±0.0000.038±0.0300.161±0.0150.318±0.0150.129
DPO, teacher-top1 (shuffled)0.000±0.0000.009±0.0190.044±0.0080.028±0.0080.020

Table 8. Maths accuracy of every method and student on all benchmarks (T2\mathcal{T}_2). Avg@8 ± standard deviation over the eight samples, at temperature 0.7. AIME averages the 2024 and 2025 scores; Avg averages MATH500, GSM8K, AMC, and the combined AIME score. Bold marks the highest value per student and column. The rows below the rule are the shuffled teacher-top1 runs of Figure 4. Here DsyntheticD_{\mathrm{synthetic}} regenerates on Math12K, the training split of MATH500, while every rollout dataset reuses the DeepScaler rollouts of T2\mathcal{T}_2.

StudentDataAIMEAMCMATH500GSM8KAvg
LFM2.5-1.2B-BaseBase0.021±\pm0.0200.156±\pm0.0440.379±\pm0.0370.385±\pm0.0370.235
Dsyntheticrandom\mathcal{D}_{\mathrm{synthetic}}^{\mathrm{random}}0.010±\pm0.0110.234±\pm0.0480.497±\pm0.0160.613±\pm0.0090.339
DSFTrandom\mathcal{D}_{\mathrm{SFT}}^{\mathrm{random}}0.013±\pm0.0120.238±\pm0.0570.475±\pm0.0150.587±\pm0.0120.328
DDPOrandom\mathcal{D}_{\mathrm{DPO}}^{\mathrm{random}}0.019±\pm0.0250.194±\pm0.0370.428±\pm0.0180.464±\pm0.0370.276
DSFTallp,top1\mathcal{D}_{\mathrm{SFT}}^{\mathrm{allp,top1}}0.027±\pm0.0180.244±\pm0.0460.516±\pm0.0150.613±\pm0.0070.350
DSFTcurr,top1\mathcal{D}_{\mathrm{SFT}}^{\mathrm{curr,top1}}0.023±\pm0.0210.253±\pm0.0430.479±\pm0.0140.589±\pm0.0150.336
DDPOcurr,top1\mathcal{D}_{\mathrm{DPO}}^{\mathrm{curr,top1}}0.021±\pm0.0190.241±\pm0.0480.491±\pm0.0150.586±\pm0.0210.335
DSFTallp,top1→DDPOcurr,top1\mathcal{D}_{\mathrm{SFT}}^{\mathrm{allp,top1}}\to\mathcal{D}_{\mathrm{DPO}}^{\mathrm{curr,top1}}0.025±\pm0.0190.213±\pm0.0710.510±\pm0.0110.629±\pm0.0060.344
DSFTrandom→DDPOrandom\mathcal{D}_{\mathrm{SFT}}^{\mathrm{random}}\to\mathcal{D}_{\mathrm{DPO}}^{\mathrm{random}}0.021±\pm0.0150.206±\pm0.0400.486±\pm0.0140.581±\pm0.0100.324
SFT, teacher-top1 (shuffled)0.023±\pm0.0170.266±\pm0.0600.504±\pm0.0170.628±\pm0.0090.355
DPO, teacher-top1 (shuffled)0.019±\pm0.0180.191±\pm0.0270.459±\pm0.0180.543±\pm0.0220.303
Qwen3-4B-BaseBase0.069±\pm0.0320.216±\pm0.0720.417±\pm0.0620.488±\pm0.0500.298
Dsyntheticrandom\mathcal{D}_{\mathrm{synthetic}}^{\mathrm{random}}0.079±\pm0.0280.534±\pm0.0440.749±\pm0.0140.897±\pm0.0060.565
DSFTrandom\mathcal{D}_{\mathrm{SFT}}^{\mathrm{random}}0.100±\pm0.0290.509±\pm0.0550.722±\pm0.0160.890±\pm0.0070.556
DDPOrandom\mathcal{D}_{\mathrm{DPO}}^{\mathrm{random}}0.110±\pm0.0280.519±\pm0.0460.762±\pm0.0110.904±\pm0.0040.574
DSFTallp,top1\mathcal{D}_{\mathrm{SFT}}^{\mathrm{allp,top1}}0.083±\pm0.0280.516±\pm0.0800.743±\pm0.0120.901±\pm0.0100.561
DSFTcurr,top1\mathcal{D}_{\mathrm{SFT}}^{\mathrm{curr,top1}}0.098±\pm0.0330.534±\pm0.0460.747±\pm0.0080.901±\pm0.0040.570
DDPOcurr,top1\mathcal{D}_{\mathrm{DPO}}^{\mathrm{curr,top1}}0.090±\pm0.0340.509±\pm0.0350.762±\pm0.0170.901±\pm0.0060.566
DSFTallp,top1→DDPOcurr,top1\mathcal{D}_{\mathrm{SFT}}^{\mathrm{allp,top1}}\to\mathcal{D}_{\mathrm{DPO}}^{\mathrm{curr,top1}}0.108±\pm0.0260.544±\pm0.0460.755±\pm0.0100.905±\pm0.0050.578
DSFTrandom→DDPOrandom\mathcal{D}_{\mathrm{SFT}}^{\mathrm{random}}\to\mathcal{D}_{\mathrm{DPO}}^{\mathrm{random}}0.090±\pm0.0230.522±\pm0.0430.740±\pm0.0120.902±\pm0.0030.563
DPO, teacher-top1 (shuffled)0.131±\pm0.0260.550±\pm0.0330.786±\pm0.0080.906±\pm0.0050.593

Table 7. Maths accuracy of every method and student on all benchmarks (T1\mathcal{T}_1, continued from Table 6): LFM2.5-1.2B-Base and Qwen3-4B-Base.

StudentDataAIMEAMCMATH500GSM8KAvg
LFM2.5-1.2B-BaseBase0.021±0.0200.156±0.0440.379±0.0370.385±0.0370.235
Dsyntheticrandom\mathcal{D}_{\mathrm{synthetic}}^{\mathrm{random}}0.058±0.0190.284±0.0780.574±0.0130.658±0.0080.393
DSFTrandom\mathcal{D}_{\mathrm{SFT}}^{\mathrm{random}}0.048±0.0230.266±0.0380.511±0.0110.614±0.0120.360
DDPOrandom\mathcal{D}_{\mathrm{DPO}}^{\mathrm{random}}0.017±0.0150.184±0.0300.415±0.0280.438±0.0440.264
DSFTallp,top1\mathcal{D}_{\mathrm{SFT}}^{\mathrm{allp,top1}}0.054±0.0280.247±0.0340.526±0.0140.621±0.0120.362
DSFTcurr,top1\mathcal{D}_{\mathrm{SFT}}^{\mathrm{curr,top1}}0.052±0.0240.253±0.0560.522±0.0110.613±0.0120.360
DDPOcurr,top1\mathcal{D}_{\mathrm{DPO}}^{\mathrm{curr,top1}}0.027±0.0230.216±0.0530.469±0.0200.527±0.0260.310
DSFTrandom→DDPOcurr,top1\mathcal{D}_{\mathrm{SFT}}^{\mathrm{random}}\rightarrow\mathcal{D}_{\mathrm{DPO}}^{\mathrm{curr,top1}}0.042±0.0110.244±0.0290.541±0.0120.625±0.0090.363
DSFTrandom→DDPOrandom\mathcal{D}_{\mathrm{SFT}}^{\mathrm{random}}\rightarrow\mathcal{D}_{\mathrm{DPO}}^{\mathrm{random}}0.056±0.0290.250±0.0650.513±0.0190.611±0.0120.358
SFT, teacher-top1 (shuffled)0.050±0.0320.256±0.0440.522±0.0180.619±0.0100.362
DPO, teacher-top1 (shuffled)0.019±0.0180.166±0.0420.422±0.0320.475±0.0360.270
Qwen3-4B-BaseBase0.069±0.0320.216±0.0720.417±0.0620.488±0.0500.298
Dsyntheticrandom\mathcal{D}_{\mathrm{synthetic}}^{\mathrm{random}}0.213±0.0340.534±0.0480.784±0.0130.915±0.0050.611
DSFTrandom\mathcal{D}_{\mathrm{SFT}}^{\mathrm{random}}0.185±0.0340.497±0.0620.778±0.0050.909±0.0050.592
DDPOrandom\mathcal{D}_{\mathrm{DPO}}^{\mathrm{random}}0.169±0.0300.459±0.0190.750±0.0390.804±0.1160.546
DSFTallp,top1\mathcal{D}_{\mathrm{SFT}}^{\mathrm{allp,top1}}0.204±0.0450.528±0.0250.779±0.0170.907±0.0050.605
DSFTcurr,top1\mathcal{D}_{\mathrm{SFT}}^{\mathrm{curr,top1}}0.188±0.0420.522±0.0450.781±0.0080.910±0.0050.600
DDPOcurr,top1\mathcal{D}_{\mathrm{DPO}}^{\mathrm{curr,top1}}0.185±0.0280.519±0.0530.780±0.0050.908±0.0020.598
DSFTrandom→DDPOcurr,top1\mathcal{D}_{\mathrm{SFT}}^{\mathrm{random}}\rightarrow\mathcal{D}_{\mathrm{DPO}}^{\mathrm{curr,top1}}0.200±0.0300.537±0.0520.784±0.0060.904±0.0040.606
DSFTrandom→DDPOrandom\mathcal{D}_{\mathrm{SFT}}^{\mathrm{random}}\rightarrow\mathcal{D}_{\mathrm{DPO}}^{\mathrm{random}}0.217±0.0290.494±0.0500.780±0.0130.904±0.0070.599
SFT, teacher-top1 (shuffled)0.190±0.0240.500±0.0610.778±0.0070.906±0.0090.593
DPO, teacher-top1 (shuffled)0.177±0.0310.500±0.0460.782±0.0230.871±0.0680.583

Table 9. Maths accuracy of every method and student on all benchmarks (T2T_2, continued from Table 8): LFM2.5-1.2B-Base and Qwen3-4B-Base.

Longer DPO Training Sequences

We also rerun every maths DPO experiment (standalone random and curriculum DPO, and both two-stage variants) with a 4,096-token maximum sequence length instead of 2,048 (Figure 9 and Figure 10). We do not run a hyperparameter sweep for the 4,096-token runs; we use the same hyperparameters as the 2,048-token runs and the same SFT checkpoints as warm starts. Standalone DPO regresses at 4,096 tokens, most for the Qwen students and LFM2.5-1.2B, while the two-stage results stay similar except for Qwen2.5-1.5B under T2T_2.

Figure 9. Figure 9: Two-stage training with 2,048- and 4,096-token DPO. MATH500 avg@8 for curated (DSFTallp,top1→DDPOcur,top1\mathcal{D}_{\mathrm{SFT}}^{\mathrm{allp,top1}} \to\mathcal{D}_{\mathrm{DPO}}^{\mathrm{cur,top1}}, left) and random (DSFTrandom→DDPOrandom\mathcal{D}_{\mathrm{SFT}}^{\mathrm{random}} \to\mathcal{D}_{\mathrm{DPO}}^{\mathrm{random}}, right) two-stage training under T1T_1 (top) and T2T_2 (bottom), with the same SFT warm starts. Error bars show one standard deviation over the eight samples.

Figure 10. Standalone DPO with 2,048- and 4,096-token training. MATH500 avg@8 for DDPOrandom\mathcal{D}_{\mathrm{DPO}}^{\mathrm{random}} (left) and DDPOcurr,top1\mathcal{D}_{\mathrm{DPO}}^{\mathrm{curr,top1}} (right) under T1\mathcal{T}_1 (top) and T2\mathcal{T}_2 (bottom). Error bars show one standard deviation over the eight samples.

One Synthetic Response per Prompt

In maths, DsyntheticD_{\mathrm{synthetic}} keeps every correct response from the eight samples per prompt, whereas our rollout datasets keep one response per prompt. To isolate the effect of dataset size, we subsample one random correct response for each of the 8,739 solved prompts in the T1T_1 DsyntheticD_{\mathrm{synthetic}} pool and train under identical settings (Table 10). For four of the five students, using one response per prompt lies within 1.3 points of full DsyntheticD_{\mathrm{synthetic}} on MATH500; Gemma-2-2B is the exception, dropping from 23.2% to 18.0%.

DSFTrandomD_{\mathrm{SFT}}^{\mathrm{random}}DsyntheticD_{\mathrm{synthetic}}, one per promptDsyntheticD_{\mathrm{synthetic}}, all correctDSFTallp,top1→DDPOcurr,top1D_{\mathrm{SFT}}^{\mathrm{allp,top1}} \to D_{\mathrm{DPO}}^{\mathrm{curr,top1}}
Rows10,8978,73957,380519 + 10,378
Qwen2.5-1.5B46.351.651.054.6
SmolLM3-3B54.657.357.859.9
Gemma-2-2B18.618.023.217.1
LFM2.5-1.2B47.548.449.751.0
Qwen3-4B72.275.774.975.5

Table 10. Canonical distillation with one versus all correct synthetic responses per prompt. MATH500 avg@8 (%) on T1T_1. The one-per-prompt DsyntheticD_{\mathrm{synthetic}} keeps one random correct response for each prompt of DsyntheticD_{\mathrm{synthetic}} and uses the same training settings.

Python Coding

Table 11 reports the coding methods for the four students, and Figure 3 in the main text shows the main comparison. Across the eight student–benchmark cells, the two-stage recipe improves on the base model in every cell and is on par with DsyntheticD_{\mathrm{synthetic}} on average (+0.89 points, 95% CI [−0.12, +1.91]), whereas naive SFT falls 4.44 points below DsyntheticD_{\mathrm{synthetic}} ([−5.37, −3.53]).

Response Selection

This section gives the data behind Section 7.2: the selection and ordering controls, the comparison with GRAPE, and the RL steps that the selected responses come from.

Selection and Ordering Controls

Table 12 gives the MATH500 values behind Figure 4 and the ordering comparison of Section 7.2.

Random, Teacher-Top1 and GRAPE

Figure 11 compares single-stage SFT on one correct rollout per solvable prompt selected at random (DSFTrandomD^{\mathrm{random}}_{\mathrm{SFT}}), by cached teacher log-likelihood (teacher-top1), or by base-student log-likelihood (GRAPE [42]) across identical solvable prompts. In maths, GRAPE is 1.05 and 1.23 points above teacher-top1 on MATH500 for T1T_1 and T2T_2, and 0.61 and 0.34 points above it averaged across all five maths benchmarks (Figure 12 and Figure 13). In coding, across the 3,252 solvable tasks, teacher-top1 is 0.43 points above GRAPE on average (95% CI [−0.08,+0.97][-0.08,+0.97]).

Figure 11. Random, teacher-top1 and GRAPE selection. SFT on one correct rollout per solvable prompt, chosen at random, by saved teacher likelihood or by base-student likelihood on MATH500 for T1\mathcal{T}_1 and T2\mathcal{T}_2 (top, the four non-Qwen3 students) and on HumanEval+ and MBPP+ in coding (bottom).

Which RL Steps the Selected Responses Come From

Most T1\mathcal{T}_1 prompts are seen at a single RL step, so the selection rule usually chooses among the 16 rollouts of one step. Even so, our recipe leans towards later teacher checkpoints in two ways (Table 13 and Figure 14). First, the warm start (DSFTallp,top1D_{\mathrm{SFT}}^{\mathrm{allp,top1}}) takes most of its responses from the second half of training, since all-correct prompts (E[r](x)=1\mathbb{E}[r](x) = 1) become more common as the teacher improves. Second, for the 2,859 prompts seen at more than one step, teacher-top1 picks a response from the latest step 72% of the time (compared with 57% for random selection).

ResponsesRowsMean stepMedian stepSteps 1–117
DSFTrandomD_{\mathrm{SFT}}^{\mathrm{random}}10,897112.111252.8%
SFT, teacher-top1 (DSFTcurr,top1D_{\mathrm{SFT}}^{\mathrm{curr,top1}})10,897118.111949.2%
DSFTallp,top1D_{\mathrm{SFT}}^{\mathrm{allp,top1}}519140.114728.1%
DDPOcurr,top1D_{\mathrm{DPO}}^{\mathrm{curr,top1}}, chosen10,378117.011750.3%
DDPOcurr,top1D_{\mathrm{DPO}}^{\mathrm{curr,top1}}, rejected10,378108.910755.0%

Table 13. Source RL steps of the selected T1\mathcal{T}_1 responses. The teacher is trained for 234 steps; the last column gives the share of responses from the first half of training.

Figure 14. Teacher RL steps of the selected T1\mathcal{T}_1 responses. Share of responses per 18-step bin for the SFT datasets (left) and for the chosen and rejected responses of DDPOcurriculum,top1D_{\mathrm{DPO}}^{\mathrm{curriculum,top1}} (right); the dotted line marks the middle of training (step 117). The warm start (DSFTallp,top1D_{\mathrm{SFT}}^{\mathrm{allp,top1}}) draws mostly from the second half of training, while the DPO pairs span the whole run, with rejected responses slightly earlier on average.

Base-Student Likelihood of the DPO Pairs

Figure 5 in the main text plots the difference between DPO and SFT against the base-student likelihood of the chosen responses. Figure 15 compares the chosen and rejected responses in maths: the chosen responses are more likely than the rejected ones for almost every student, and Gemma-2-2B assigns both the lowest likelihood.

Figure 15. Base-student log-likelihood of DPO pairs. Mean base-student log-likelihood (nats/token) of the chosen and rejected DPO responses, normalised by completion length. Chosen responses receive higher likelihood for every student except Gemma-2-2B on T2T_2; Qwen3-8B-Base, the base model of T2T_2, is shown for reference. Values use each student’s tokenizer.

Assets and Licenses

We use every asset under its license or terms of use, and the benchmarks for evaluation only.

  • Models. Qwen2.5-1.5B [38], Qwen3-4B-Base and Qwen3-8B-Base [39]: Apache-2.0. SmolLM3-3B-Base [3]: Apache-2.0. Gemma-2-2B [10]: Gemma Terms of Use. LFM2.5-1.2B-Base [18]: LFM Open License v1.0.

  • Training data. MATH and Math12K [14]: MIT. DeepScaler [20]: MIT. AceCode-87K [41]: MIT.

  • Evaluation benchmarks. MATH500 (PRM800K split) [Lightman et al., 2023]: MIT. GSM8K [8]: MIT. HumanEval+ and MBPP+ (EvalPlus) [19]: Apache-2.0. AIME 2024, AIME 2025 and AMC 2023: problems published by the Mathematical Association of America [21].

  • Software. verl [32], TRL [35], vLLM [16], DeepSpeed, Math-Verify [17] and SandboxFusion [ByteDance Seed Foundation Code Team et al., 2025]: Apache-2.0.

Qualitative Examples from Teacher Training

Saved responses vary both across teacher checkpoints and among attempts at the same question. Below, we compare responses retained by random and teacher-top1 selection, examine how solutions evolve across teacher RL checkpoints, and highlight a failure mode where likelihood selection favours repetitive text.

Correct Responses Can Supply Different Training Targets

Correctness filtering alone does not remove all undesirable content from a completion. In coding, the verifier extracts a Python code block for execution, whereas SFT trains the student on the full completion. A correct program followed by unrelated continuation text can therefore pass the verifier while still introducing noisy supervision during SFT.

Figure 16 shows such an example on unique_elements, a task requiring deduplication while preserving first-occurrence order. At teacher step 10, four of the 16 rollouts pass the verifier. Random selection (DSFTrandomD_{\mathrm{SFT}}^{\mathrm{random}}) picks a 6,945-token rollout that gives a correct implementation and then continues into unrelated Android permission code. From the same group, teacher-top1 selects a clean 114-token solution (which is also used as the chosen response in DDPOcurr,top1D_{\mathrm{DPO}}^{\mathrm{curr,top1}}). We see similar cases in maths: for a question asking what fraction of a wall Heidi can paint in 9 minutes if the full wall takes 45 minutes, random selection picks a step-15 rollout that reaches 1/5 but continues into an unrelated spelling discussion, whereas teacher-top1 picks a concise rate calculation from step 225.

Comparison of random selection and teacher-top1 code responses

Figure 16. Correctness filtering retains an unrelated continuation under random selection. The random and teacher-top1 responses are selected from the same step-10 GRPO group. Both pass unit tests, but random selection retains 6,945 tokens with unrelated Android boilerplate outside the Python block, whereas teacher-top1 selects a concise 114-token solution.

Task. Implement unique_elements to preserve the order of first appearances. Both selected functions maintain a set seen; the excerpts show their final loops and subsequent text.

Changes in Solutions during Teacher RL

Figures 17 and 18 illustrate how teacher solutions improve over the course of GRPO training, showing why pooling rollouts naively mixes early exploratory errors with cleaner later solutions.

In maths (Figure 17), an early T1\mathcal{T}_1 checkpoint (step 55) acknowledges that the boxes are indistinguishable but applies the stars-and-bars formula as though they were labelled ((61)=6\binom{6}{1}=6), whereas the late checkpoint (step 230) correctly counts the three unordered partitions of 5 into at most 2 parts. In coding (Figure 18, Mbpp/167), the prompt explicitly requires next_power_of_2(0) == 1; the base model nevertheless applies math.log2 at zero, whereas the step-120 teacher handles the zero boundary case and uses integer doubling.

Comparison of incorrect and correct responses to a balls-and-boxes problem

Figure 17. The later T1\mathcal{T}_1 checkpoint correctly counts indistinguishable boxes. The step-55 response counts allocations to labelled boxes; the step-230 response counts unordered partitions.

Comparison of failing and passing implementations of next_power_of_2

Figure 18. Later coding checkpoint handles an explicit zero-input boundary case. On Mbpp/167, the step-0 program applies a logarithm at zero; the step-120 program returns one for n=0n = 0 and uses integer doubling.

A Limitation of Likelihood-Based Selection

Saved likelihood is not a universal measure of response quality. At coding step 39, the task employee_description asks for a formatted name and age. Teacher-top1 selects a correct program followed by repetitions of assistant up to the 8,192-token generation cap, whereas the random selection is 37 tokens long. Both pass the verifier, but the repetitive response has a higher saved mean log-likelihood because repeated tokens incur near-zero loss. Across all 3,252 solvable coding groups, teacher-top1 lowers median response length from 100 to 79 tokens relative to random selection, but selects 34 responses that hit the maximum length of 8,192 tokens (versus 14 for random selection). Pairing likelihood ranking with a simple length or repetition filter would be a useful practical safeguard.

Prompt. How many ways are there to put 5 balls in 2 boxes if the balls are not distinguishable and neither are the boxes?

Step 55: incorrect

… This is a classic problem of distributing indistinguishable objects (balls) into distinguishable bins (boxes).

… In our case, n=5n = 5 (balls) and k=2k = 2 (boxes). So, we have:

C(5+2−1,2−1)=C(6,1)C(5 + 2 - 1, 2 - 1) = C(6, 1)

… 6

Step 230: correct

… The partitions of 5 into up to 2 parts are:

  1. 5 (all balls in one box)

  2. 4 + 1 (4 balls in one box and 1 ball in the other)

  3. 3 + 2 (3 balls in one box and 2 balls in the other)

… Since the boxes are indistinguishable, the order of the parts does not matter …

The final answer is 3.

Prompt. Write a python function to find the smallest power of 2 greater than or equal to nn.

assert next_power_of_2(0) == 1

Step 0: fails execution tests

import math

def next_power_of_2(n):
    return 2 ** math.ceil(math.log2(n))

assert next_power_of_2(0) == 1

Step 120: passes execution tests

def next_power_of_2(n):
    if n == 0:
        return 1
    power = 1
    while power < n:
        power *= 2
    return power

NeurIPS Paper Checklist

  1. Claims

Question: Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope?

Answer: [Yes].

Justification: The abstract and introduction claim that curated reuse of saved teacher RL rollouts achieves comparable average performance to canonical distillation without additional generation, not that it wins in every setting. Averaged over two maths teachers (T1T_1 in-distribution, T2T_2 cross-distribution), five students and five benchmarks, the two-stage recipe is 0.37 points below DsyntheticD_{\mathrm{synthetic}} (95% CI [−0.82-0.82, +0.08+0.08]), compared with 1.95 points below for naive rollout SFT; in Python coding, it is 0.89 points above DsyntheticD_{\mathrm{synthetic}} over four students on HumanEval+ and MBPP+ (§ 7.1; Appendix § 11). Section 7 states where the recipe falls short, most clearly for Gemma-2-2B, and the limitations are discussed in Section 8.

  1. Limitations

Question: Does the paper discuss the limitations of the work performed by the authors?

Answer: [Yes].

Justification: The Limitations paragraph of Section 8 covers the scale we study (4B and 8B teachers, 1.2–4B students), the restriction to tasks with binary verifier rewards, and the use of a single training run per setting; Appendix § 15.§ 3 shows that teacher likelihood can prefer repetitive responses.

  1. Theory assumptions and proofs

Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof?

Answer: [N/A].

Justification: The paper is purely empirical; there are no theorems, lemmas, or formal claims that require proof. The only mathematical objects are dataset definitions and the standard GRPO/DPO/SFT objectives, which are stated as setup rather than as results. We make an intuitive assumption that teacher and student likelihoods have some correlation (§ 4.3); this is not a formal claim and is supported by the top-kk agreement analysis (Figure 2).

  1. Experimental result reproducibility

Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)?

Answer: [Yes].

Justification: Section 6 describes the maths and coding teachers, the students, the baselines and the training settings, and § 5 and Table 1 give the construction rule for every dataset, with Eq. (2) defining the mean completion-token log-likelihood used for teacher-top-11 selection. Appendix § 10 lists the GRPO, SFT, DPO and evaluation settings, including the coding data preparation, execution reward and checkpoint selection, and our code is released.

  1. Open access to data and code

Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material?

Answer: [Yes].

Justification: At https://github.com/vashisht/rollout_reuse, we release (a) the training and evaluation code for the GRPO teachers and for the student SFT, DPO and two-stage runs; (b) the saved rollouts of T1T_1, T2T_2 and the first 120 steps of the coding teacher, with each rollout’s verifier reward, mean log-likelihood under the generating policy, RL step and per-prompt pass rate; and (c) every derived dataset of Table 1, with instructions to rebuild the datasets and reproduce the tables. Section 6 and Appendix § 10 give the training and evaluation settings.

Experimental setting/details

Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer) necessary to understand the results?

Answer: [Yes].

Justification: Section 6 and Appendix A specify the optimiser (AdamW; DeepSpeed ZeRO-2 for DPO), the learning rates and how we chose them, batch sizes and epochs, checkpoint selection (MATH500 in maths and the AceCode validation split in coding), and the evaluation protocol (avg@8 at T=0.7T=0.7 on MATH500, GSM8K, AIME 2024, AIME 2025 and AMC 2023, and on HumanEval+ and MBPP+). Per-student details, such as the vLLM attention backend for Gemma-2-2B, are also listed.

Experiment statistical significance

Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments?

Answer: [Yes].

Justification: Figures report avg@8 with one standard deviation over the eight decoding samples, and averages across students come with 95% confidence intervals from a paired bootstrap over test problems (Section 6); the appendix tables report standard deviations over the eight decoding samples of the same runs. As Section 8 states, each setting uses a single training run, so the intervals reflect evaluation noise only.

Experiments compute resources

Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments?

Answer: [Yes].

Justification:

The central compute claim concerns generation. Table 2 (Section 7.1) reports the rollouts already produced during teacher RL (239,592 completions for T1T_1 and 61,440 for the coding archive) and the regeneration pass that reuse avoids (96,000 completions and 58.26M tokens in maths for T1T_1; 163,840 completions and 17.56M tokens in coding, which took 2.01 generation-stage GB200 GPU-hours). Each maths GRPO teacher trained for about four days on eight L40S GPUs (about 770 GPU-hours per teacher), and student training, evaluation and development used two eight-GPU H100 nodes for about ten days (about 3.8k GPU-hours); the coding teacher and students ran on four-GPU GB200 nodes. Scoring the coding archive for GRAPE took 0.11–0.27 allocated GPU-hours per student.

Code of ethics

Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines?

Answer: [Yes].

Justification: The work uses publicly released base models (Qwen2.5/Qwen3, SmolLM3, Gemma-2, LFM2.5) and publicly released maths datasets and benchmarks (MATH, GSM8K, AIME 2024/2025, AMC 2023, DeepScaler). No human subjects, no private data, no scraped content beyond what is already redistributed by the cited datasets. The public coding assets include AceCode, HumanEval+, and MBPP+; the coding splits are decontaminated and reference solutions are executed before use.

Broader impacts

Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed?

Answer: [Yes].

Justification: The work targets the accessibility of reasoning distillation: the canonical Dsynthetic\mathcal{D}_{\mathrm{synthetic}} pipeline requires a separate post-RL teacher inference pass at scale, which adds teacher inference on top of the RL run. Reusing rollouts that GRPO has already produced cuts that cost to zero and lowers the barrier to building strong small reasoning students.

We therefore also view this work as a call for the open community releasing RL post-training artefacts to ship the rollout pool (xx, completion, verifier reward, mean completion-token behaviour-policy log-likelihood, originating RL step, pooled per-prompt pass rate) alongside the converged checkpoint, since these by-products are the input to our pipeline and are otherwise discarded. On the negative side, cheaper distillation inherits the standard reasoning-LM misuse caveat – compressing capabilities (including undesirable ones) into smaller, more redistributable models – on a narrow verifier-graded maths and Python testbed; we do not introduce new misuse vectors beyond what the broader reasoning-LM distillation literature already exposes.

11. Safeguards

Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pre-trained language models, image generators, or scraped datasets)?

Answer: [N/A].

Justification: We release code and the saved rollouts of maths and coding teachers trained from public base models on public datasets. These are task-specific responses to maths and Python problems, with no scraped data and no general-purpose model, so they pose no high risk of misuse.

12. Licenses for existing assets

Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected?

Answer: [Yes].

Justification: Every model, dataset, benchmark and software asset is credited in Appendix E, and we use each under its license or terms of use, and the benchmarks for evaluation only. Models: Qwen2.5-1.5B, Qwen3-4B-Base, Qwen3-8B-Base and SmolLM3-3B-Base (Apache-2.0), Gemma-2-2B (Gemma Terms of Use) and LFM2.5-1.2B-Base (LFM Open License v1.0). Data: MATH, Math12K and MATH500 (PRM800K), GSM8K, DeepScaler and AceCode-87K (MIT); HumanEval+ and MBPP+ (EvalPlus, Apache-2.0); and AIME and AMC problems published by the MAA. Software: verl, TRL, vLLM, DeepSpeed, Math-Verify and SandboxFusion (Apache-2.0).

13. New assets

Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets?

Answer: [Yes].

Justification: The new assets are the saved rollouts of our three teachers and the datasets derived from them, released with the code. A data card documents each file’s fields (prompt, response, verifier reward, mean log-likelihood, RL step and pass rate), the teacher and RL step that generated each rollout, how the derived datasets are built, and the sources and licenses of the underlying models and datasets.

14. Crowdsourcing and research with human subjects

Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)?

Answer: [N/A].

Justification: No crowdsourcing and no human-subject experiments. All grading is automated via Math-Verify on closed-form numeric/symbolic ground truths. Python coding uses deterministic execution tests.

15. Institutional review board (IRB) approvals or equivalent for research with human subjects

Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained? Answer: [N/A].

Justification: No human subjects, so IRB review does not apply.

Declaration of LLM usage

Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigor, or originality of the research, declaration is not required.

Answer: [Yes].

Justification: The teachers and students we study are LLMs; Section 6 and Appendix § 10 describe them. As declared at submission, we used LLM assistants to edit the text, as coding assistants when implementing and running experiments, and to prepare figures; these uses are not part of the method and do not affect its originality.

References

  1. [1]Marah Abdin, Jyoti Aneja, Harkirat Behl, Sébastien Bubeck, Ronen Eldan, Suriya Gunasekar, Michael Harrison, Russell J. Hewett, Mojan Javaheripi, Piero Kauffmann, James R. Lee, Yin Tat Lee, Yuanzhi Li, Weishung Liu, Caio C. T. Mendes, Anh Nguyen, Eric Price, Gustavo de Rosa, Olli Saarikivi, Adil Salim, Shital Shah, Xin Wang, Rachel Ward, Xue Wu, Dingli Yu, Cyril Zhang, and Yi Zhang. Phi-4 technical report, 2024. URL https://arxiv.org/abs/2412.08905.
  2. [2]Jacob Austin, Augustus Odena, Maxwell Nye, Maarten Bosma, Henryk Michalewski, David Dohan, Ellen Jiang, Carrie Cai, Michael Terry, Quoc Le, and Charles Sutton. Program synthesis with large language models, 2021. URL https://arxiv.org/abs/2108.07732.
  3. [3]Elie Bakouch, Loubna Ben Allal, Anton Lozhkov, Nouamane Tazi, Lewis Tunstall, Carlos Miguel Patiño, Edward Beeching, Aymeric Roucher, Aksel Joonas Reedi, Quentin Gallouédec, Kashif Rasul, Nathan Habib, Clémentine Fourrier, Hynek Kydlíček, Guilherme Penedo, Hugo Larchev, Mathieu Morlon, Vaibhav Srivastav, Joshua Lochner, Xuan-Son Nguyen, Colin Raffel, Leandro von Werra, and Thomas Wolf. SmolLM3: smol, multilingual, long-context reasoner. https://huggingface.co/blog/smollm3, 2025.
  4. [4]Bespoke Labs. Bespoke-Stratos: The unreasonable effectiveness of reasoning distillation. https://www.bespokelabs.ai/blog/bespoke-stratos-the-unreasonable-effectiveness-of-reasoning-distillation, 2025. Accessed: 2026-05-06.
  5. [6]Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, et al. Evaluating large language models trained on code, 2021. URL https://arxiv.org/abs/2107.03374.
  6. [7]Tianzhe Chu, Yuexiang Zhai, Jihan Yang, Shengbang Tong, Saining Xie, Dale Schuurmans, Quoc V Le, Sergey Levine, and Yi Ma. SFT memorizes, RL generalizes: A comparative study of foundation model post-training. In Forty-second International Conference on Machine Learning, 2025. URL https://openreview.net/forum?id=dYur3ya bMj.arxiv.org/abs/2501.17161
  7. [8]Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, Christopher Hesse, and John Schulman. Training verifiers to solve math word problems, 2021. URL https://arxiv.org/abs/2110.14168.
  8. [9]DeepSeek-AI. DeepSeek-R1: Incentivizing reasoning capability in LLMs via reinforcement learning, 2025. URL https://arxiv.org/abs/2501.12948.
  9. [10]Gemma Team. Gemma 2: Improving open language models at a practical size. arXiv preprint arXiv:2408.00118, 2024.
  10. [11]GLM-5-Team, Aohan Zeng, Xin Lv, Zhenyu Hou, Zhengxiao Du, Qinkai Zheng, Bin Chen, Da Yin, Chendi Ge, Chenghua Huang, Chengxing Xie, Chenzheng Zhu, Congfeng Yin, Cunxiang Wang, Gengzheng Pan, Hao Zeng, Haoke Zhang, Haoran Wang, Huilong Chen, Jiajie Zhang, Jian Jiao, Jiaqi Guo, Jingsen Wang, Jingzhao Du, Jinzhu Wu, Kedong Wang, Lei Li, Lin Fan, Lucen Zhong, Mingdao Liu, Mingming Zhao, Pengfan Du, Qian Dong, Rui Lu, Shuang-Li, Shulin Cao, Song Liu, Ting Jiang, Xiaodong Chen, Xiaohan Zhang, Xuanchen Huang, Xuezhen Dong, Yabo Xu, Yao Wei, Yifan An, Yilin Niu, Yitong Zhu, Yuanhao Wen, Yukou Cen, Yushi Bai, Zhongpei Qiao, Zihan Wang, Zikang Wang, Zilin Zhu, Ziqiang Liu, Zixuan Li, Bojie Wang, Bosi Wen, Can Huang, Changpeng Cai, Chao Yu, Chen Li, Chengwei Hu, Chenhui Zhang, Dan Zhang, Daoyan Lin, Dayong Yang, Di Wang, Ding Ai, Erle Zhu, Fangzhou Yi, Feiyu Chen, Guohong Wen, Hailong Sun, Haisha Zhao, Haiyi Hu, Hanchen Zhang, Hanrui Liu, Hanyu Zhang, Hao Peng, Hao Tai, Haobo Zhang, He Liu, Hongwei Wang, Hongxi Yan, Hongyu Ge, Huan Liu, Huanpeng Chu, Jia’nì Zhao, Jiachen Wang, Jiajing Zhao, Jiamin Ren, Jiapeng Wang, Jiaxin Zhang, Jiayi Gui, Jiayue Zhao, Jijie Li, Jing An, Jing Li, Jingwei Yuan, Jinhua Du, Jinxin Liu, Junkai Zhi, Junwen Duan, Kaiyue Zhou, Kangjian Wei, Ke Wang, Keyun Luo, Laiqiang Zhang, Leigang Sha, Liang Xu, Lindong Wu, Lintao Ding, Lu Chen, Minghao Li, Nianyi Lin, Pan Ta, Qiang Zou, Rongjun Song, Ruiqi Yang, Shangqing Tu, Shantong Yang, Shaoxiang Wu, Shengyan Zhang, Shijie Li, Shuang Li, Shuyi Fan, Wei Qin, Wei Tian, Weining Zhang, Wenbo Yu, Wenjie Liang, Xiang Kuang, Xiangmeng Cheng, Xiangyang Li, Xiaoquan Yan, Xiaowei Hu, Xiaoying Ling, Xing Fan, Xingye Xia, Xinyuan Zhang, Xinze Zhang, Xirui Pan, Xu Zou, Xunkai Zhang, Yadi Liu, Yandong Wu, Yanfu Li, Yidong Wang, Yifan Zhu, Yijun Tan, Yilin Zhou, Yiming Pan, Ying Zhang, Yinpei Su, Yipeng Geng, Yong Yan, Yonglin Tan, Yuean Bi, Yuhan Shen, Yuhao Yang, Yujiang Li, Yunan Liu, Yunqing Wang, Yuntao Li, Yurong Wu, Yutao Zhang, Yuxi Duan, Yuxuan Zhang, Yezhen Liu, Zhengtao Jiang, Zhenhe Yan, Zheyu Zhang, Zhixiang Wei, Zhuo Chen, Zhuoer Feng, Zijun Yao, Ziwei Chai, Ziyuan Wang, Zuzhou Zhang, Bin Xu, Minlie Huang, Hongning Wang, Juanzi Li, Yuxiao Dong, and Jie Tang. GLM-5: from vibe coding to agentic engineering, 2026. URL https://arxiv.org/abs/2602.15763.
  11. [12]Etash Guha, Ryan Marten, Sedrick Keh, Negin Raoof, Georgios Smyrnis, Hritik Bansal, Marianna Nezhurina, Jean Mercat, Trung Vu, Zayne Sprague, Ashima Suvarna, Benjamin Feuer, Liangyu Chen, Zaid Khan, Eric Frankel, Sachin Grover, Caroline Choi, Niklas Muennighoff, Shiye Su, Wanjia Zhao, John Yang, Shreyas Pimpalgaonkar, Kartik Sharma, Charlie Cheng-Jie Ji, Yichuan Deng, Sarah Pratt, Vivek Ramanujan, Jon Saad-Falcon, Jeffrey Li, Achal Dave, Alon Albalak, Kushal Arora, Blake Wulfe, Chinmay Hegde, Greg Durrett, Sewoong Oh, Mohit Bansal, Saadia Gabriel, Aditya Grover, Kai-Wei Chang, Vaishaal Shankar, Aaron Gokaslan, Mike A. Merrill, Tatsunori Hashimoto, Yejin Choi, Jenia Jitsev, Reinhard Heckel, Maheswaran Sathiamoorthy, Alexandros G. Dimakis, and Ludwig Schmidt. OpenThoughts: Data recipes for reasoning models, 2025. URL https://arxiv.org/abs/2506.04178.
  12. [13]Suriya Gunasekar, Yi Zhang, Jyoti Aneja, Caio César Teodoro Mendes, Allie Del Giorno, Sivakanth Gopi, Mojan Javaheripi, Piero Kauffmann, Gustavo de Rosa, Olli Saarikivi, Adil Salim, Shital Shah, Harkirat Singh Behl, Xin Wang, Sébastien Bubeck, Ronen Eldan, Adam Tauman Kalai, Yin Tat Lee, and Yuanzhi Li. Textbooks are all you need, 2023. URL https://arxiv.org/abs/2306.11644.
  13. [14]Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring mathematical problem solving with the MATH dataset, 2021. URL https://arxiv.org/abs/2103.03874.
  14. [15]Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations, 2022. URL https://arxiv.org/abs/2106.09685.
  15. [16]Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Liannmin Zheng, Cody Hao Yu, Joseph E. Gonzalez, Hao Zhang, and Ion Stoica. Efficient memory management for large language model serving with PagedAttention. In Proceedings of the ACM SIGOPS 29th Symposium on Operating Systems Principles, 2023.arxiv.org/abs/2309.06180
  16. [17]Hynek Kydlíček. Math-Verify: Math verification library, 2024. URL https://github.com/huggingface/math-verify. Hunter Lightman, Vineet Kosaraju, Yura Burda, Harri Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. Let’s verify step by step, 2023. URL https://arxiv.org/abs/2305.20050.
  17. [18]Liquid AI. LFM2 technical report. arXiv preprint arXiv:2511.23404, 2025.
  18. [19]Jiawei Liu, Chunqiu Steven Xia, Yuyao Wang, and Lingming Zhang. Is your code generated by ChatGPT really correct? rigorous evaluation of large language models for code generation. In Advances in Neural Information Processing Systems, volume 36, 2023. URL https://arxiv.org/abs/2305.01210.
  19. [20]Michael Luo, Sijun Tan, Justin Wong, Xiaoxiang Shi, William Tang, Manan Roongta, Colin Cai, Jeffrey Luo, Tianjun Zhang, Erran Li, Raluca Ada Popa, and Ion Stoica. DeepScaleR: Surpassing O1-Preview with a 1.5B model by scaling RL, 2025. Technical report.
  20. [21]Mathematical Association of America. American Mathematics Competitions (AMC) and American Invitational Mathematics Examination (AIME). https://maa.org, 2025.
  21. [22]Yibo Miao, Bofei Gao, Shanghaoran Quan, Junyang Lin, Daoguang Zan, Jiaheng Liu, Jian Yang, Tianyu Liu, and Zhijie Deng. Aligning CodeLLMs with direct preference optimization. arXiv preprint arXiv:2410.18585, 2024.arxiv.org/abs/2410.18585
  22. [23]Jacob Morrison, Noah A. Smith, and Emma Strubell. The hidden cost of thinking: Energy use and environmental impact of LMs beyond pretraining, 2026. URL https://arxiv.org/abs/2605.01158.
  23. [24]Niklas Muennighoff, Zitong Yang, Weijia Shi, Xiang Lisa Li, Li Fei-Fei, Hannaneh Hajishirzi, Luke Zettlemoyer, Percy Liang, Emmanuel Candès, and Tatsunori Hashimoto. s1: Simple test-time scaling, 2025. URL https://arxiv.org/abs/2501.19393.
  24. [25]Subhabrata Mukherjee, Arindam Mitra, Ganesh Jawahar, Sahaj Agarwal, Hamid Palangi, and Ahmed Awadallah. Orca: Progressive learning from complex explanation traces of GPT-4, 2023. URL https://arxiv.org/abs/2306.02707.
  25. [26]NVIDIA. NeMo-RL: Nemotron 3 Ultra training recipe. https://github.com/NVIDIA-NeMo/RL/blob/ultra-v3/docs/guides/nemotron-3-ultra.md, 2026a. Accessed 2026-09-23.
  26. [28]OpenThoughts-Agent Team. OpenThoughts-Agent. https://www.open-thoughts.ai/blog/agent, December 2025.
  27. [29]Rafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D. Manning, Stefano Ermon, and Chelsea Finn. Direct preference optimization: Your language model is secretly a reward model. In Thirty-seventh Conference on Neural Information Processing Systems, 2023. URL https://arxiv.org/abs/2305.18290.
  28. [30]Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. DeepSeekMath: Pushing the limits of mathematical reasoning in open language models, 2024. URL https://arxiv.org/abs/2402.03300.
  29. [31]Idan Shenfeld, Jyothish Pari, and Pulkit Agrawal. RL’s razor: Why online reinforcement learning learns less. arXiv, abs/2509.04259, 2025. URL https://api.semanticscholar.org/CorpusID:281103647.
  30. [32]Guangming Sheng, Chi Zhang, Zilingfeng Ye, Xibin Wu, Wang Zhang, Ru Zhang, Yanghua Peng, Haibin Lin, and Chuan Wu. HybridFlow: A flexible and efficient RLHF framework. arXiv preprint arXiv:2409.19256, 2024.DOI
  31. [33]Fahim Tajwar, Anikait Singh, Archit Sharma, Rafael Rafailov, Jeff Schneider, Tengyang Xie, Stefano Ermon, Chelsea Finn, and Aviral Kumar. Preference fine-tuning of LLMs should leverage suboptimal, on-policy data. arXiv preprint arXiv:2404.14367, 2024.arxiv.org/abs/2404.14367
  32. [34]Yunhao Tang, Daniel Zhaohao Guo, Zeyu Zheng, Daniele Calandriello, Yuan Cao, Eugene Tarassov, Rémi Munos, Bernardo Ávila Pires, Michal Valko, Yong Cheng, and Will Dabney. Understanding the performance gap between online and offline alignment algorithms, 2024. URL https://arxiv.org/abs/2405.08448.
  33. [35]Leandro von Werra, Younes Belkada, Lewis Tunstall, Edward Beeching, Tristan Thrush, Nathan Lambert, Shengyi Huang, Kashif Rasul, and Quentin Gallouédec. TRL: Transformer reinforcement learning, 2020. URL https://github.com/huggingface/trl.
  34. [36]Liang Wen, Yunke Cai, Fenrui Xiao, Xin He, Qi An, Zhenyu Duan, Yimin Du, Junchen Liu, Lifu Tang, Xiaowei Lv, Haosheng Zou, Yongchao Deng, Shousheng Jia, and Xiangzheng Zhang. Light-R1: Curriculum SFT, DPO and RL for long COT from scratch and beyond. In Georg Rehm and Yunyao Li, editors, Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 6: Industry Track), pages 318–327, Vienna, Austria, July 2025. Association for Computational Linguistics. ISBN 979-8-89176-288-6. doi: 10.18653/v1/2025.acl-industry.24. URL https://aclanthology.org/2025.acl-industry.24/.DOI
  35. [38]An Yang, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chengyuan Li, Dayiheng Liu, Fei Huang, Haoran Wei, Huan Lin, Jian Yang, Jianghong Tu, Jianwei Zhang, Jianxin Yang, Jiaxi Yang, Jingren Zhou, Junyang Lin, Kai Dang, Keming Lu, Keqin Bao, Kexin Yang, Le Yu, Mei Li, Mingfeng Xue, Pei Zhang, Qin Zhu, Rui Men, Runji Lin, Tianhao Li, Tingyu Xia, Xingzhang Ren, Xuancheng Ren, Yan Fan, Yang Su, Yichang Zhang, Yu Wan, Yuqiong Liu, Zeyu Cui, Zhenru Zhang, and Zihan Qiu. Qwen2.5 technical report. arXiv preprint arXiv:2412.15115, 2024.arxiv.org/abs/2412.15115
  36. [39]An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Cheng'en Huang, Chenxu Lv, Chujie Zheng, Dayiheng Liu, Fan Zhou, Fei Huang, Feng Hu, Hao Ge, Haoran Wei, Huan Lin, Jialong Tang, Jian Yang, Jianghong Tu, Jianwei Zhang, Jianxin Yang, Jiaxi Yang, Jing Zhou, Jingren Zhou, Junyang Lin, Kai Dang, Keqin Bao, Kexin Yang, Le Yu, Lianhao Deng, Mei Li, Mingfeng Xue, Mingze Li, Pei Zhang, Peng Wang, Qin Zhu, Rui Men, Ruize Gao, Shixuan Liu, Shuang Luo, Tianhao Li, Tianyi Tang, Wenbiao Yin, Xingzhang Ren, Xinyu Wang, Xinyu Zhang, Xuancheng Ren, Yang Fan, Yang Su, Yichang Zhang, Ying'er Zhang, Yu Wan, Yuqiong Liu, Zekun Wang, Zeyu Cui, Zhenru Zhang, Zhipeng Zhou, and Zihan Qiu. Qwen3 technical report, 2025a. URL https://arxiv.org/abs/2505.09388.
  37. [40]Zhihe Yang, Xufang Luo, Dongqi Han, Yunjian Xu, and Dongsheng Li. Mitigating hallucinations in large vision-language models via DPO: On-policy data hold the key, 2025b. URL https://arxiv.org/abs/2501.09695.
  38. [41]Huaye Zeng, Dongfu Jiang, Haozhe Wang, Ping Nie, Xiaotong Chen, and Wenhu Chen. ACECODER: Acing coder RL via automated test-case synthesis, 2025. URL https://arxiv.org/abs/2502.01718.
  39. [42]Dylan Zhang, Qirun Dai, and Hao Peng. The best instruction-tuning data are those that fit. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025. URL https://openreview.net/forum?id=4JFSeKbADТ.arxiv.org/abs/2502.04194

Paper details

vlnc:W_kfwhp23w
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 8

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

LLM assistants

View statement
Looking for related papers…
Contents