Embarrassingly Simple Self-Distillation Improves Code Generation
Can a large language model (LLM) improve at code generation using only its own raw outputs, without a verifier, a teacher model, or reinforcement learning? We answer in the affirmative with simple self-distillation (SSD): sample solutions from the model with certain temperature and truncation configurations, then fine-tune on those samples with standard supervised fine-tuning. SSD improves Qwen3-30B-Instruct from 42.4% to 55.3% pass@1 on LiveCodeBench v6, with gains concentrating on harder problems, and it generalizes across Qwen and Llama models at 4B, 8B, and 30B scale, including both instruct and thinking variants. To understand why such a simple method can work, we trace these gains t...
| Authors | Ruixiang Zhang, Richard He Bai, Huangjie Zheng et al. |
|---|---|
| Primary category | cs.CL |
| Published | 1 April 2026 |
| Last updated at source | 24 June 2026 |
Connected in the knowledge graph
- apple/SimpleSD-4B-thinkingModel · cited by
- apple/SimpleSD-30B-instructModel · cited by
- apple/SimpleSD-4B-instructModel · cited by
- ludsvick/ssd-reasoning-traces-experimentDataset · cited by
Models and datasets referencing this paper
Silytics shows public metadata from arXiv and links to the original. Information may be incomplete or out of date. Last refreshed 17 October 2026. Licenses and terms of the original apply to the work itself. Not financial, legal or professional advice.