Lesson 5 of 7 · 4 min read
Distilling Reasoning into Smaller Models
showing the reasoning, not just the answer, helps a model reach a better result. It can also help a different, smaller model learn to reason well in the first place — if the smaller model is trained on those visible reasoning traces, not just the final answers.
The question it answers
"Can a small model learn to reason well by training on a larger model's reasoning, not just its answers?" Training a small model only on (question, final answer) pairs teaches it to associate questions with answers directly, with no exposure to how to get there. Training the same small model on (question, full reasoning trace, final answer) triples — generated by a larger, more capable model — gives it direct exposure to the intermediate steps, which it can learn to imitate even without the larger model's underlying capability to have generated those steps from scratch.
Intuition
Teaching someone only the final answers to a set of problems gives them a lookup table, not a method — show them a new, similar problem and they have no strategy to apply. Teaching them the full worked solutions, step by step, gives them something to imitate and generalize from, even if they couldn't have derived those steps independently at first. Distilling reasoning into a smaller model works the same way: the smaller model doesn't need to independently discover good reasoning strategies if it can learn to reproduce ones demonstrated by a larger model that already has them.
Definition and notation
answer-only training data: {(question, final_answer)}
reasoning-distilled data: {(question, reasoning_trace, final_answer)}
where reasoning_trace is generated by a larger, more capable model
train the SMALL model on either dataset using ordinary supervised
fine-tuning (the training method doesn't change -- only what's in
the training examples does)
A worked example
A small model's accuracy on a held-out reasoning task, trained two different ways:
trained on answer-only pairs: 42% accuracy
trained on distilled reasoning traces: 68% accuracy
Both training runs use the identical small model architecture and the identical supervised fine-tuning procedure — the only difference is whether the training examples included the larger model's intermediate reasoning steps. Exposure to how to reach an answer, not just what the answer was, accounts for the entire 26-percentage-point gap.
Bench
Interactive bench: Learning the steps, not just the answer. Compare a small model's accuracy trained on answers only against one trained on full reasoning traces from a larger model.
Try this
- Look at the answer-only training approach's accuracy.
- Switch to the reasoning-trace-distilled approach and compare.
- Consider what's identical between the two training runs, and what's the only thing that differs.
What you should notice: nothing about the small model's architecture or training algorithm changed between the two approaches — the entire improvement traces back to what information was present in the training examples themselves.
Where it appears in AI
- Reasoning distillation is a practical way to get much of a large, expensive reasoning model's capability into a small, cheap-to-serve model, by training the small model on reasoning traces the large model generated.
- It's a specific application of the general idea of further training on a targeted dataset, here targeted specifically at reasoning traces rather than general domain text.
- The quality of the larger model's reasoning traces is the ceiling on what distillation can teach — a small model distilled from flawed or inconsistent reasoning traces can only imitate that same flawed reasoning.
Common pitfalls
- Assuming the small model "understands" the reasoning the way the large model did. It's learning to imitate the pattern of reasoning demonstrated in its training data — this can generalize well, but it's imitation of a pattern, not independent derivation of a strategy from first principles.
- Treating distillation as a way to exceed the teacher model's own capability. A small model distilled from a larger model's reasoning traces is bounded, at best, by the quality of the traces it was trained on.
- Forgetting this requires actually generating (and often filtering) a large set of reasoning traces first. Producing good-quality training data this way has a real upfront cost, even though training the small model on it afterward uses ordinary SFT.
Quick check
1. What's the key difference between answer-only training data and reasoning-distilled training data?
Answer-only data pairs a question directly with its final answer; reasoning-distilled data additionally includes the full intermediate reasoning trace (generated by a larger model) leading to that answer.2. In the worked example, what was the only difference between the two training runs that produced such different accuracy?
Whether the training examples included the larger model's reasoning traces, or only the final answers — the model architecture and training procedure were otherwise identical.3. What limits how good a distilled small model's reasoning can become?
The quality of the larger model's reasoning traces it was distilled from — a small model can imitate flawed or inconsistent reasoning just as readily as it can imitate good reasoning.Key terms
- Reasoning distillation: training a smaller model on a larger model's full reasoning traces, not just its final answers.
- Reasoning trace: the intermediate steps a model produces en route to a final answer.
- Imitation (in distillation): a smaller model learning to reproduce demonstrated reasoning patterns, rather than independently deriving them.
Related
Chain-of-Thought Prompting · Continued Pretraining and Domain Adaptation · Self-Refinement and Iterative Critique