HackerPapers

arXiv:2604.01193cs.CL

Embarrassingly Simple Self-Distillation Improves Code Generation

Ruixiang Zhang, Richard He Bai, Huangjie Zheng, Navdeep Jaitly, Ronan Collobert, Yizhe Zhang

Early discovery. Linked by one identifiable commenter. This paper is outside the main ranking; a mention is not an endorsement.

Abstract

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. Our code is available at https://github.com/apple/ml-ssd

arXiv comments
Journal reference
DOI
Subjects
cs.CLComputation and Language

On Hacker News

Linked by 1 identifiable commenter in 4 comments across 4 threads, from Apr 2026 to Jun 2026. Found in 2 HN submissions from Apr 2026 to Apr 2026. Open submission discussions.

Comments linking this paper, per year.

Discussed in comments4 threads

    • >True, but the capabilities and knowledge of that model are also frozen in time, so the value of that model declines over time. Correction: The capabilities and knowledge of that model can be improved via self-distillation, so the value of that model increases over time. This is…

      teleforceView on HNParent context

  1. Claude Opus 4.8 1 comment
    • Please check the recent self-distillation work by MIT-ETH, UCLA and Apple [1],[2],[3],[4],[5]. Given the release timelines I suspect all 4.x after Opus 4 are probably self-distillation based fine-tuned models. The latest paper by Apple is focusing on code generation using the…

      teleforceView on HNParent context

    • Fun facts, this paper is cited by Simple Self-Distillation (SSD) paper by Apple [1],[2]. I think it is a bad naming scheme due to the very common SSD namesake and the fact that it belongs to on-policy self-distillation [3]. But again according to the authors their proposed…

      teleforceView on HNParent context

    • >Why domain specific LLMs won’t exist: an intuition >We would have a healthcare model, economics model, mathematics model, coding model and so on. It's not the question whether there ever will be specialized model, rather it's the matter of when. This will democratize almost all…

      teleforceView on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.