Don't Discard Your Rollouts: Reusing Teacher RL Traces for Student Distillation
Organizations: Carnegie Mellon University
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.
Figures & tables
| Dataset | Stage | Prompts | Order | Completion selector |
| SFT | shuffled | random | ||
| SFT | shuffled | teacher-top1 | ||
| GRAPE | SFT | shuffled | student-top1 | |
| SFT | easy hard | teacher-top1 | ||
| SFT | — | teacher-top1 | ||
| DPO | shuffled | random |
| Completions / response tokens | Maths ( , step 234) | Coding (step 120) |
|---|---|---|
| Saved during teacher RL, reused by our recipe | 239,592 / 167.7M | 61,440 / 26.7M |
| New teacher generation for canonical distillation | 96,000 / 58.3M | 163,840 / 17.6M |
| New teacher generation for our recipe | 0 / 0 | 0 / 0 |
Appendix figures & tables21 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset | Selection | Coding | ||
|---|---|---|---|---|
| Canonical distillation: a new generation pass from the final teacher | ||||
| correct responses from eight samples per training prompt | 57,380 | 64,767 | 16,702 | |
| , one per prompt | one random correct response per prompt of | 8,739 | 8,980 | 16,702 |
| Rollout by-products: no new teacher generation | ||||
| every rollout saved during teacher RL | 239,592 | 122,880 | 61,440 | |
| one random correct rollout per solvable prompt | 10,897 | 6,460 | 3,252 | |
| Maths SFT | Maths DPO | Coding | ||||
| Rollouts | SFT | DPO | ||||
| Learning rate | swept ∗ | cosine | cosine | constant | cosine | constant |
| Epochs | 1 | 2 | 6 | 2 | 2 | 2 |
| Max. sequence length | 4,096 | 4,096 | 4,096 | 2,048 | 12,288 | 12,288 |
| Global batch | 256 | 256 | 256 | 256 | 64 | 64 |
| DPO | – | – | – | 0.1 | – | 0.1 |
| : Qwen3-4B / Math12K | : Qwen3-8B / DeepScaler | ||||||||||
| Student | Base | GRAPE | Ours | GRAPE | Ours | ||||||
| Qwen2.5-1.5B | 35.3 | 51.0 | 46.3 | 52.2 | 49.8 | 54.6 | 46.1 | 40.8 | 42.0 | 44.8 | 47.4 |
| SmolLM3-3B | 55.1 | 57.8 | 54.6 | 58.8 | 59.1 | 59.9 | 64.6 | 62.3 | 57.2 | 61.0 | 63.1 |
| Gemma-2-2B | 3.8 | 23.2 | 18.6 | 7.2 | 21.8 | 17.1 | 20.6 | 13.6 | 5.0 | 17.7 | 16.6 |
| LFM2.5-1.2B | 37.9 | 49.7 | 47.5 | 42.8 | 50.9 | 51.0 | 57.4 | 51.1 | 41.5 | 52.5 | 54.1 |
| Qwen3-4B † | 41.7 | 74.9 | 72.2 | 76.2 | – | 75.5 | 78.4 | 77.8 | 75.0 | – | 78.4 |
| Student | Data | AIME | AMC | MATH500 | GSM8K | Avg |
|---|---|---|---|---|---|---|
| Qwen2.5-1.5B | Base | 0.004 0.008 | 0.134 0.030 | 0.353 0.012 | 0.546 0.032 | 0.259 |
| 0.010 0.017 | 0.263 0.052 | 0.510 0.017 | 0.697 0.011 | 0.370 | ||
| 0.019 0.011 | 0.200 0.057 | 0.463 0.019 | 0.652 0.021 | 0.334 | ||
| 0.017 0.012 | 0.256 0.029 | 0.522 0.015 | 0.707 0.007 | 0.375 | ||
| 0.015 0.017 | 0.247 0.034 | 0.506 0.011 | 0.704 0.011 | 0.368 | ||
| 0.023 0.015 | 0.263 0.050 | 0.513 0.013 | 0.691 0.006 | 0.372 |
| Student | Data | AIME | AMC | MATH500 | GSM8K | Avg |
|---|---|---|---|---|---|---|
| LFM2.5-1.2B-Base | Base | 0.021 0.020 | 0.156 0.044 | 0.379 0.037 | 0.385 0.037 | 0.235 |
| 0.010 0.011 | 0.234 0.048 | 0.497 0.016 | 0.613 0.009 | 0.339 | ||
| 0.013 0.012 | 0.238 0.057 | 0.475 0.015 | 0.587 0.012 | 0.328 | ||
| 0.019 0.025 | 0.194 0.037 | 0.428 0.018 | 0.464 0.037 | 0.276 | ||
| 0.027 0.018 | 0.244 0.046 | 0.516 0.015 | 0.613 0.007 | 0.350 | ||
| 0.023 0.021 | 0.253 0.043 | 0.479 0.014 | 0.589 0.015 | 0.336 |
| Student | Data | AIME | AMC | MATH500 | GSM8K | Avg |
|---|---|---|---|---|---|---|
| Qwen2.5-1.5B | Base | 0.004 0.008 | 0.134 0.030 | 0.353 0.012 | 0.546 0.032 | 0.259 |
| 0.019 0.015 | 0.231 0.066 | 0.461 0.016 | 0.699 0.011 | 0.353 | ||
| 0.013 0.014 | 0.172 0.074 | 0.408 0.014 | 0.663 0.010 | 0.314 | ||
| 0.006 0.009 | 0.172 0.057 | 0.420 0.014 | 0.595 0.015 | 0.298 | ||
| 0.010 0.011 | 0.172 0.041 | 0.424 0.019 | 0.672 0.014 | 0.320 | ||
| 0.008 0.009 | 0.191 0.038 | 0.428 0.010 | 0.675 0.007 | 0.325 |
| Student | Data | AIME | AMC | MATH500 | GSM8K | Avg |
|---|---|---|---|---|---|---|
| LFM2.5-1.2B-Base | Base | 0.021 0.020 | 0.156 0.044 | 0.379 0.037 | 0.385 0.037 | 0.235 |
| 0.058 0.019 | 0.284 0.078 | 0.574 0.013 | 0.658 0.008 | 0.393 | ||
| 0.048 0.023 | 0.266 0.038 | 0.511 0.011 | 0.614 0.012 | 0.360 | ||
| 0.017 0.015 | 0.184 0.030 | 0.415 0.028 | 0.438 0.044 | 0.264 | ||
| 0.054 0.028 | 0.247 0.034 | 0.526 0.014 | 0.621 0.012 | 0.362 | ||
| 0.052 0.024 | 0.253 0.056 | 0.522 0.011 | 0.613 0.012 | 0.360 |
| , one per prompt | , all correct | |||
|---|---|---|---|---|
| Rows | 10,897 | 8,739 | 57,380 | 519 + 10,378 |
| Qwen2.5-1.5B | 46.3 | 51.6 | 51.0 | 54.6 |
| SmolLM3-3B | 54.6 | 57.3 | 57.8 | 59.9 |
| Gemma-2-2B | 18.6 | 18.0 | 23.2 | 17.1 |
| LFM2.5-1.2B | 47.5 | 48.4 | 49.7 | 51.0 |
| Qwen3-4B | 72.2 | 75.7 | 74.9 | 75.5 |
| Benchmark | Student | Base | SFT, teacher-top1 | SFT, GRAPE | ||||
|---|---|---|---|---|---|---|---|---|
| HumanEval+ | Qwen2.5-1.5B | |||||||
| SmolLM3-3B | ||||||||
| LFM2.5-1.2B | ||||||||
| Qwen3-4B-Base | ||||||||
| MBPP+ | Qwen2.5-1.5B | |||||||
| SmolLM3-3B |
| SFT, all solvable prompts | DPO, mixed-success prompts | |||||
| Student | random | top1 | top1 | random | top1 | top1 |
| shuffled | shuffled | curriculum | shuffled | shuffled | curriculum | |
| Qwen2.5-1.5B | 46.3 | 49.9 | 51.3 | 52.2 | 54.4 | 52.5 |
| SmolLM3-3B | 54.6 | 57.0 | 56.5 | 58.8 | 60.5 | 61.2 |
| Gemma-2-2B | 18.6 | 20.2 | 20.8 | 7.2 | 4.3 | 4.3 |
| Responses | Rows | Mean step | Median step | Steps 1–117 |
|---|---|---|---|---|
| 10,897 | 112.1 | 112 | 52.8% | |
| SFT, teacher-top1 ( ) | 10,897 | 118.1 | 119 | 49.2% |
| 519 | 140.1 | 147 | 28.1% | |
| , chosen | 10,378 | 117.0 | 117 | 50.3% |
| , rejected | 10,378 | 108.9 | 107 | 55.0% |
Language Model Distillation
Language model distillation transfers a larger model’s capabilities to smaller or specialized models using outputs, probabilities, or internal representations.
See all 574 papers