FT-based distillation vs logit distillation: and what works with closed APIs
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Explain the difference between classical logit distillation and FT-based distillation. Which one works when your teacher is a closed-API model (GPT-4o, Claude), and why?
Logit distillation matches the teacher's full softmax via KL and needs its logits. FT-based distillation just SFTs the student on teacher-generated text, so it works with any closed-API teacher.
Imagine learning chess from a grandmaster. The richest way is the master narrating not just the move they played, but how much they liked every other move too, a full ranked opinion on each turn. You copy that whole ranking. But some masters will only let you watch them play; they never share the rankings inside their head. So you fall back to the simpler way: watch thousands of their finished games and learn to imitate the moves you saw. You lose the rich 'how sure were they' signal, but you can learn from any master you can watch. To get cleaner lessons, you keep only their best games and study those.
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.
4 min: define both methods + the KL vs cross-entropy loss + what closed APIs expose + why FT-based is the only option there + rejection sampling and CoT traces + the licensing caveat.
| Aspect | Logit distillation | FT-based distillation |
|---|---|---|
| Signal copied | Full softmax over vocab (soft targets) | Sampled text only (hard targets) |
| Loss | KL divergence between distributions | Next-token cross-entropy (standard SFT) |
| Teacher access needed | Per-token logits plus aligned tokenizer | Text generation only |
| Works with closed APIs | No (full logits not exposed) | Yes (any callable teacher) |
| Information transferred | Confidence and rejected alternatives | Argmax behavior only (lossier) |
| Common augmentation | Temperature scaling on teacher | Rejection sampling, CoT traces |
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.
Claiming you can logit-distill from GPT-4o or Claude. Closed APIs expose at most top-k logprobs, never the full vocab softmax, so the KL loss cannot be computed. Only FT-based distillation works there.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.