Recursive Offline Distillation via Entropy Gain Sampling and Answer Mixing
Organizations: Applied AI Institute
Abstract
Distillation of reasoning chains from Large Language Models (LLMs) into their smaller siblings is a standard training approach. Frequently, researchers do not have full access to a teacher model and its internal representations, which limits the resulting performance. We propose a recursive offline distillation method combining two components: entropy-based sampling for selective distillation and answer mixing. Specifically, for three open models (3-4B), at each epoch, we sample reasoning chains weighted by entropy difference with an auxiliary medium model (70-72B) and, next, supplement thinking traces with single-token ground truth answers. Our approach consistently outperforms naive distillation with comparable data budgets ( vs 51.61 on average) and offers a much steeper learning curve. Additionally, we present a comparative analysis of methods to generate and normalize distillation traces.
Figures & tables
| Method | Answer Mix | LLaMA 3.2 3B | Qwen 2.5 3B | Phi4-mini | Mean |
| Direct reasoning trace | No | 46.09 / 45.55 | 51.45 / 50.37 | 57.27 / 62.43 | 51.61 / 52.78 |
| Corrected answer | No | 47.80 / 47.26 | 50.87 / 49.42 | 58.81 / 61.26 | 52.49 / 52.65 |
| Student entropy (deterministic) | Yes | 48.84 / 49.09 | 55.86 / 55.49 | 58.02 / 63.30 | 54.24 / 55.96 |
| Entropy gain (deterministic) | Yes | 49.58 / 49.00 | 53.16 / 53.33 | 60.22 / 62.43 | 54.32 / 54.92 |
| Student entropy (once, ) | No | 41.35 / 40.11 | 39.44 / 39.07 | 50.17 / 52.87 | 43.65 / 44.01 |
| Student entropy (once, ) | No | 42.19 / 41.06 | 43.18 / 43.02 | 53.20 / 52.62 | 46.19 / 45.57 |
| Sampler | Mix | Mean Accuracy | |
|---|---|---|---|
| Direct reasoning trace (baseline) | No | 51.61 | |
| Corrected answer (baseline) | No | 52.49 | |
| Random | Yes | 55.08 | |
| Student entropy | Yes | 55.87 | |
| Discounted entropy gain | Yes | 56.06 | |
| Entropy gain | Yes | 57.15 | |
Appendix figures & tables15 assets
Supplementary material from the paper’s appendix.
Appendix
| Student | Cap | No mix | Mix |
|---|---|---|---|
| LLaMA 3.2 3B | 2,048 | 1 | 2 |
| Qwen 2.5 3B | 2,048 | 1 | 0 |
| Phi4-mini | 2,048 | 3 | 8 |
| LLaMA 3.2 3B | 4,096 | 0 | 2 |
| Qwen 2.5 3B | 4,096 | 3 | 0 |
| Phi4-mini | 4,096 | 187 | 122 |
| Budget (chars) | Direct traces | Corrected traces |
|---|---|---|
| 3,072 | 3,603 (37.4%) | 3,721 (38.7%) |
| 8,192 | 1,879 (19.5%) | 1,921 (20.0%) |
| 24,000 | 738 (7.7%) | 749 (7.8%) |
| Model | Accuracy (%) | Mean |
|---|---|---|
| LLaMA 70B | 52.2 | 0.0126 |
| Qwen 72B | 54.2 | 0.0265 |
| LLaMA 3B | 28.9 | 0.1189 |
| Qwen 3B | 36.2 | 0.0287 |
| Phi4-mini | 37.8 | 0.1101 |
| Entropy | Correctness | ||
|---|---|---|---|
| Models compared | |||
| LLaMA 70B / Qwen 72B | 0.240 | 0.533 | 0.554 |
| Mean proxy / LLaMA 3B | 0.369 | 0.435 | 0.322 |
| Mean proxy / Qwen 3B | 0.343 | 0.461 | 0.447 |
| Mean proxy / Phi4-mini | 0.502 | 0.582 | 0.441 |
Task-Specific Knowledge Distillation via Intermediate Probes
Probing to Refine: Reinforcement Distillation of LLMs via Explanatory Inversion
EXGRPO) uses a reinforcement learning algorithm with a novel Dialogue Structure Utility Bonus, which explicitly rewards the student for maintaining a coherent reasoning process across these probes. Extensive evaluations on 12 datasets demonstrate significant improvements. Using Gemma-7b as the student model, our method yields an average 20.39% increase over zero-shot performance and a 6.02% improvement over the state-of-the-art distillation baselines. Moreover, models distilled with our method show remarkable training efficiency (e.g., surpassing vanilla fine-tuning with 10-25% training data) and strong generalization to out-of-distribution tasks. Implementation is released at https://github.com/Zhen-Tan-dmml/ExGRPO.git.