DeepSeek-style reasoning distillation: what travels from teacher to student, and what gets cut from the loss?
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
In a DeepSeek-style reasoning distillation recipe, describe what the teacher actually produces, what shape the student's training examples take, which tokens are inside the loss versus masked out, and why the distillation collapses if the chain-of-thought is dropped from the target.
Teacher emits trace plus answer. Each example is a (problem, trace, answer) triple; SFT loss covers trace and answer with the prompt masked. Drop the trace and you teach answer-copying, not reasoning.
Imagine learning math from a tutor in two different styles. In style one, the tutor solves problems on a whiteboard step by step, and you copy the whole working including every line of arithmetic. In style two, the tutor only writes the final answer at the bottom and erases the rest. After a week of style one, you can solve new problems because you internalised the procedure. After a week of style two, you can recite the answers to the problems you saw, but a new problem stumps you because you never saw how the tutor got there. DeepSeek-style distillation works because the student copies the whole whiteboard, including the messy middle. Skip the middle and the student learns to mimic the bottom line of a fixed list of problems.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
5 min: teacher emits trace plus answer + triple as data shape + completion-only masking with trace in loss + correctness filtering + why trace in loss carries reasoning + comparison to answer-only SFT.
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Treating the trace as part of the prompt rather than part of the response. The trace must sit inside the loss; the student is being graded on reproducing it, not conditioning on it.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.