Student-in-the-Loop Chain-of-Thought Distillation via Generation-Time Selection
Organizations: Tsinghua University
Abstract
Large reasoning models achieve strong performance on complex tasks through long chain-of-thought (CoT) trajectories, but directly transferring such reasoning processes to smaller models remains challenging. A key difficulty is that not all teacher-generated reasoning trajectories are suitable for student learning. Existing approaches typically rely on post-hoc filtering, selecting trajectories after full generation based on heuristic criteria. However, such methods cannot control the generation process itself and may still produce reasoning paths that lie outside the student's learning capacity. To address this limitation, we propose Gen-SSD (Generation-time Self-Selection Distillation), a student-in-the-loop framework that performs generation-time selection. Instead of passively consuming complete trajectories, the student evaluates candidate continuations during the teacher's sampling process, guiding the expansion of only learnable reasoning paths and enabling early pruning of unhelpful branches. Experiments on mathematical reasoning benchmarks demonstrate that Gen-SSD consistently outperforms standard knowledge distillation and recent baselines, with improvements of around 5.9 points over Standard KD and up to 4.7 points over other baselines. Further analysis shows that Gen-SSD produces more stable and learnable reasoning trajectories, highlighting the importance of incorporating supervision during generation for effective distillation.
Figures & tables
| Method | AIME25 | AIME24 | AMC23 | OlympiadBench | GSM8K | Avg |
|---|---|---|---|---|---|---|
| Teacher | 49.79 | 67.50 | 91.09 | 66.91 | 94.20 | 73.90 |
| Student | 0.83 | 3.33 | 19.06 | 15.73 | 38.74 | 15.54 |
| Cold Start | 3.75 | 0.42 | 19.53 | 16.17 | 51.63 | 18.30 |
| Standard KD | 7.08 | 7.08 | 35.00 | 24.78 | 71.11 | 29.01 |
| Self-Distillation | 2.71 | 2.71 | 29.53 | 22.55 | 63.76 | 24.25 |
| MCC-KD | 5.21 | 5.63 | 35.47 | 27.15 | 77.79 | 30.25 |
| Method | PPL | Token length |
|---|---|---|
| MoRSD | 2.46 | 6139.10 |
| Gen-SSD | 1.57 | 5049.60 |
| Method | AIME25 | AIME24 | AMC23 | OlympiadBench | GSM8K | Avg |
|---|---|---|---|---|---|---|
| Cold Start | 3.75 | 0.42 | 19.53 | 16.17 | 51.63 | 18.30 |
| w/o cold-start | 6.25 | 6.88 | 34.84 | 28.64 | 68.84 | 29.09 |
| w/ cold-start | 10.00 | 10.21 | 41.88 | 30.71 | 81.88 | 34.94 |
| Setting | AIME25 | AIME24 | AMC23 | OlympiadBench | GSM8K | Avg |
|---|---|---|---|---|---|---|
| High PPL | 7.08 | 4.37 | 34.06 | 25.82 | 68.39 | 27.94 |
| Random PPL | 9.58 | 7.92 | 35.78 | 28.64 | 74.75 | 31.33 |
| Low PPL | 10.00 | 10.21 | 41.88 | 30.71 | 81.88 | 34.94 |
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| Hyperparameter | Value |
|---|---|
| Learning Rate | |
| Number of Epochs | 5 |
| Number of Devices | 4 |
| Batch Size | 32 |
| Optimizer | AdamW |
| Learning Rate Scheduler | cosine |
| Setting | Time | Accuracy |
|---|---|---|
| 1K | ||
| 16 candidates | 35.46 | 31.22 |
| Decreasing sampling | 28.20 | 31.73 |
| 4K | ||
| 16 candidates | 34.22 | 33.66 |
| Decreasing sampling | 31.59 | 34.94 |
| Method | AIME25 | AIME24 | AMC23 | OlympiadBench | GSM8K | Avg |
|---|---|---|---|---|---|---|
| Standard KD* | 7.92 | 6.46 | 38.12 | 26.85 | 78.24 | 31.52 |
| Gen-SSD* | 10.00 | 6.88 | 44.37 | 31.01 | 82.26 | 34.90 |
| Cold Start | 6.04 | 4.79 | 29.06 | 24.93 | 65.96 | 26.16 |
| Standard KD | 9.58 | 7.50 | 37.97 | 30.56 | 77.41 | 32.60 |
| Gen-SSD | 9.79 | 8.96 | 45.16 | 32.49 | 84.84 | 36.25 |
| Method | MBPP | ARC-C | StrategyQA | CommonsenseQA | Average |
|---|---|---|---|---|---|
| Standard KD | 20.03 | 38.65 | 63.23 | 41.66 | 40.89 |
| MCC-KD | 17.76 | 38.14 | 64.37 | 40.67 | 40.24 |
| MoRSD | 22.07 | 38.91 | 64.93 | 40.43 | 41.59 |
| Gen-SSD | 21.36 | 39.68 | 65.68 | 42.07 | 42.20 |
| Method | AIME25 | AIME24 | AMC23 | OlympiadBench | GSM8K | Avg |
|---|---|---|---|---|---|---|
| Standard KD* | 4.37 | 3.75 | 33.28 | 23.29 | 69.52 | 26.84 |
| Gen-SSD | ||||||
| 512 | 8.33 | 6.04 | 33.59 | 26.71 | 74.53 | 29.84 |
| 1K | 8.54 | 6.25 | 37.5 | 28.19 | 78.17 | 31.73 |
| 2K | 7.50 | 6.67 | 40.78 | 27.60 | 74.37 | 31.38 |
| 4K | 10.00 | 10.21 | 41.88 | 30.71 | 81.88 | 34.94 |
| Method | AIME25 | AIME24 | AMC23 | OlympiadBench | GSM8K | Avg |
|---|---|---|---|---|---|---|
| R1-7B | ||||||
| Standard KD* | 7.92 | 8.33 | 38.91 | 26.26 | 76.27 | 31.54 |
| Gen-SSD | 10.83 | 9.79 | 41.88 | 31.16 | 82.56 | 35.24 |
| R1-14B | ||||||
| Standard KD* | 10.21 | 6.88 | 37.81 | 26.41 | 77.10 | 31.68 |
| Gen-SSD | 12.08 | 9.17 | 45.31 | 30.71 | 80.52 | 35.56 |
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 512 papers