mlsanityData to 7 Oct 2026

The Valley of Code Reasoning: Scaling Knowledge Distillation of Large Language Models

arXiv 2510.06101 ↗First posted 7 Oct 2025cs.CLcited by 2

On the map: LLM reasoning → Reasoning for agents, planning and code

Abstract (arXiv)

Distilling the thinking traces of a Large Language Model (LLM) with reasoning capabilities into a smaller model has been proven effective. Yet, there is a scarcity of work done on how model performances scale with the quantity of distillation data. In this work, we study the scaling trend of distilling competitive coding skills on two small non-reasoning LLMs. We validate the hypothesis that there is a textitvalley of code reasoning: downstream performance on competitive coding first drops as data quantity increases, then it steadily increases in a sharper-than-log-linear fashion. Having identified the trend, we further fine-tune the models at two different distillation stages on the same data to ground conclusions on their respective learning phases. We learn that across stages in the low and medium-low data regimes, small models benefit significantly from easier coding questions than from harder ones. We also find that, surprisingly, the correctness of outputs in training data makes no difference to distillation outcomes. Our work represents a step forward in understanding the training dynamics of code reasoning distillation outside intuition

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 20 of its 23 references that are in the map. First posted on arXiv 7 Oct 2025.

Builds on

20 of 23 references.

Closest ancestors · 5

Same direction, newest first

  1. 2025OpenCodeReasoning-II: A Simple Test Time Scaling Approach via Self-Critique11 Jul
  2. 2025rStar-Coder: Scaling Competitive Code Reasoning with a Large-Scale Verified Dataset27 May
  3. 2025OpenCodeReasoning: Advancing Data Distillation for Competitive Coding2 Apr
  4. 2025CodeElo: Benchmarking Competition-level Code Generation of LLMs with Human-comparable Elo Ratings2 Jan
  5. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code12 Mar

Other references · 15

  1. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
  2. 2017Decoupled Weight Decay Regularizationcited by 1,722
  3. 2022STaR: Bootstrapping Reasoning With Reasoningcited by 895
  4. 2025LIMO: Less is More for Reasoningcited by 488
  5. 2024Quiet-STaR: Language Models Can Teach Themselves to Think Before Speakingcited by 292
  6. 2025Chain of Draft: Thinking Faster by Writing Lesscited by 290
  7. 2025OpenThoughts: Data Recipes for Reasoning Modelscited by 287
  8. 2025When More is Less: Understanding Chain-of-Thought Length in LLMscited by 182
  9. 2025CoT-Valve: Length-Compressible Chain-of-Thought Tuningcited by 167
  10. 2023TACO: Topics in Algorithmic COde generation datasetcited by 150
  11. 2025LLMs Can Easily Learn to Reason from Demonstrations Structure, not content, is what matters!cited by 132
  12. 2025Deconstructing Long Chain-of-Thought: A Structured Reasoning Optimization Framework for Long CoT Distillationcited by 39
3 more
  1. 2025Long-Short Chain-of-Thought Mixture Supervised Fine-Tuning Eliciting Efficient Reasoning in Large Language Modelscited by 37
  2. 2025The First Few Tokens Are All You Need: An Efficient and Effective Unsupervised Prefix Fine-Tuning Method for Reasoning Modelscited by 31
  3. 2025KAT-V1: Kwai-AutoThink Technical Reportcited by 12

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Not All Code Is Equal: A Data-Centric Study of Code Complexity and LLM Reasoning
  2. 2025Small Models Struggle to Learn from Strong Reasoners
  3. 2026Playing Psychic: Using Thought Trees to Predict Reasoning Models Accuracy on Coding Tasks
  4. 2025CodeCrash: Exposing LLM Fragility to Misleading Natural Language in Code Reasoning
  5. 2025An Empirical Study of Reasoning Steps in Thinking Code LLMs
  6. 2025Z1: Efficient Test-time Scaling with Code
  7. 2025The Illusion of Thinking: Understanding the Strengths and Limitations of Reasoning Models via the Lens of Problem Complexity
  8. 2025Beyond Scaling Law: A Data-Efficient Distillation Framework for Reasoning