Machine Learning
Single LLM as Both Teacher and Student: New Self-Distillation Method Boosts Reasoning Efficiency
Researchers propose On-Policy Self-Distillation, where a language model learns from verified reasoning traces without requiring a separate teacher model.
A novel training approach called On-Policy Self-Distillation (OPSD) allows a single large language model to teach itself how to reason more effectively, eliminating the need for a separate, often larger teacher model.
The Core Innovation#
The method works by having one LLM operate in two distinct modes simultaneously. In teacher mode, the model accesses privileged information such as verified problem solutions or reasoning steps; in student mode, it sees only the original question. During training, the system learns to minimize the difference between how the teacher and student versions generate responses, token by token, using only the student's own generated trajectories. This approach draws on the insight that a sufficiently capable model can explain external reasoning evidence and transmit that knowledge to its weaker self.
Addressing Known Limitations#
Traditional knowledge distillation requires maintaining two separate models—a larger teacher and a smaller student—which adds computational overhead. Earlier "on-policy" improvements to distillation kept training and inference distributions aligned but still depended on an external teacher. OPSD sidesteps both issues: it uses a single model with different contexts and directly incorporates ground-truth solutions already present in reasoning datasets, rather than discarding that privileged information.
Performance Gains#
Testing across mathematical reasoning benchmarks, OPSD outperforms earlier off-policy distillation approaches and achieves superior efficiency compared to reinforcement learning methods when measured by tokens used. The results suggest that having access to correct reasoning traces—and leveraging them through self-distillation—significantly improves how well models learn to generate sound logical steps.
The research paper and accompanying code are now available to the research community.