Embarrassingly Simple Self-Distillation Improves Code Generation

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Zhang, Ruixiang, Bai, Richard He, Zheng, Huangjie, Jaitly, Navdeep, Collobert, Ronan, Zhang, Yizhe
Natura: Preprint
Pubblicazione: 2026
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866908931614310400
author Zhang, Ruixiang
Bai, Richard He
Zheng, Huangjie
Jaitly, Navdeep
Collobert, Ronan
Zhang, Yizhe
author_facet Zhang, Ruixiang
Bai, Richard He
Zheng, Huangjie
Jaitly, Navdeep
Collobert, Ronan
Zhang, Yizhe
contents 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 to a precision-exploration conflict in LLM decoding and show that SSD reshapes token distributions in a context-dependent way, suppressing distractor tails where precision matters while preserving useful diversity where exploration matters. Taken together, SSD offers a complementary post-training direction for improving LLM code generation.
format Preprint
id arxiv_https___arxiv_org_abs_2604_01193
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Embarrassingly Simple Self-Distillation Improves Code Generation
Zhang, Ruixiang
Bai, Richard He
Zheng, Huangjie
Jaitly, Navdeep
Collobert, Ronan
Zhang, Yizhe
Computation and Language
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 to a precision-exploration conflict in LLM decoding and show that SSD reshapes token distributions in a context-dependent way, suppressing distractor tails where precision matters while preserving useful diversity where exploration matters. Taken together, SSD offers a complementary post-training direction for improving LLM code generation.
title Embarrassingly Simple Self-Distillation Improves Code Generation
topic Computation and Language
url https://arxiv.org/abs/2604.01193