Back to Module 8.
Problem 8.1 (What the teacher must provide).For Definition 8.1 and Definition 8.2, say whether you need the teacher’s chosen tokens, the teacher’s logits, and a shared tokenizer. Why is hard distillation the default when the teacher is a remote API?
Solution
Solution to Problem 8.1.
Hard distillation needs the chosen tokens only. Soft distillation needs the logits, or an equivalent full distribution, at each position. Soft distillation also needs a shared vocabulary so that index
means the same token in both models. A remote API that returns text and hides logits can train a hard-distilled student and cannot train a soft one. Hard distillation can also cross tokenizer families, because the student tokenizes the teacher’s text with its own tokenizer. The target ids are then the student’s, not the teacher’s.
Problem 8.2 (The mask).A row is 4 prompt tokens followed by 6 teacher tokens, then 2 padding tokens. Under Definition 8.3, at which positions is the next-token loss evaluated? Why are the prompt positions excluded?
Solution
Solution to Problem 8.2.
The loss is evaluated at the 6 teacher positions: each teacher token is predicted from the prompt plus the teacher tokens before it. Padding is ignored, same as the prompt.
Including the prompt would train the student to reproduce the question and would dilute the average over the trace. The question is context. Figure 8.1 is this split.
Problem 8.3 (A bad filter).You skip the verifier filter and train on every teacher trace, including the ones whose boxed answer is wrong. The student’s training loss falls. What can you no longer conclude from that curve, and which number do you report instead?
Solution
Solution to Problem 8.3.
A falling training loss means the student is getting better at reproducing the stored strings. Some of those strings end at the wrong answer, so part of the improvement is imitation of mistakes. Report greedy MATH-500 accuracy under Definition 3.2, on items that were not in the training traces, and spot-check whether the boxed value follows from the generated trace.
Problem 8.4 (Compare the two training methods).Give one reason distillation can beat GRPO for a 0.6B student, and one thing distillation cannot do that GRPO can.
Solution
Solution to Problem 8.4.
Distillation can win because the teacher already searched. The student imitates a finished trace instead of having to discover a correct rollout from a 15 percent baseline. The DeepSeek-R1 report is the published version of this comparison for small students.
Distillation cannot improve on the teacher using only a verifier. It never sees a reward for an answer the teacher did not write. GRPO can, in principle, reinforce a correct sample the current policy found on its own. In practice a weak policy rarely finds those samples, which is why the two methods are complements: distill a capable starting policy, then run GRPO if you still have a verifier and a compute budget.