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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: He, Muyu, Shafique, Muhammad Ali, Kumar, Anand, Mackey, Tsach, Rajani, Nazneen
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916994890072064
author He, Muyu
Shafique, Muhammad Ali
Kumar, Anand
Mackey, Tsach
Rajani, Nazneen
author_facet He, Muyu
Shafique, Muhammad Ali
Kumar, Anand
Mackey, Tsach
Rajani, Nazneen
contents 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 $\textit{valley 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
format Preprint
id arxiv_https___arxiv_org_abs_2510_06101
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle The Valley of Code Reasoning: Scaling Knowledge Distillation of Large Language Models
He, Muyu
Shafique, Muhammad Ali
Kumar, Anand
Mackey, Tsach
Rajani, Nazneen
Computation and Language
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 $\textit{valley 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
title The Valley of Code Reasoning: Scaling Knowledge Distillation of Large Language Models
topic Computation and Language
url https://arxiv.org/abs/2510.06101