A small model can learn more from a big model's answer than from the right answer. Lessons 01–02 build the foundations on language models; lessons 03–06 carry the framework to diffusion models — how to turn a 1000-step image teacher into a 1–4-step student — every claim derived, every trade-off made honest.
Three knobs organize the whole field: what the student matches (the teacher's outputs, its internal features, or the sequences it generates), how the gap is measured (temperature, forward vs reverse KL), and where the training data comes from (a fixed set, the teacher's generations, or the student's own rollouts). A concrete method is one choice per knob — Hinton KD is response × forward-KL × fixed-set; MiniLLM is sequences × reverse-KL × on-policy.
Who this is for
You know cross-entropy, softmax, and what an autoregressive language model is. By the end you can: derive the T² gradient correction in a few lines; explain why reverse KL makes a student commit and forward KL makes it hedge; say why sequence-level KD works through a black-box API but word-level KD does not; and lay out a distill-then-prune-then-quantize deployment stack. The diffusion arc (03–06) additionally assumes the score / PF-ODE picture from the generative series (lessons 16–17) — it picks up where that series' "distillation" row left off.
The one picture
A hard label is a single point; a teacher is a whole distribution. Distillation moves the teacher's function into a smaller student — and the three knobs are the degrees of freedom in how you do it.
Part 2 · Distilling diffusion models (lessons 03–06)
A diffusion teacher isn't a distribution over tokens — it's a multi-step solver that needs ~1000 (or ~25) network calls per image. The goal is a student that needs 1–4. The three knobs survive the move, but each changes meaning: WHAT becomes "match the trajectory / the distribution," HOW falls back to L2-in-sample-space (no density to KL) before re-earning a distributional loss, and WHERE keeps its off-policy/on-policy axis. Built on the generative series' score/PF-ODE foundations.
Distillation is SFT on a teacher's outputs — so the gpt_mini SFT lesson is the prerequisite in spirit, and on-policy distillation borrows its machinery from the RL track. Few-step diffusion samplers are distilled too (the generative series), and the speculative-decoding draft model is a distilled student (the vLLM / SGLang serving tracks).