Explain distillation for LLMs - black-box vs logit distillation - and the licensing caveats.
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
Distillation transfers capability from a stronger/larger teacher to a smaller/cheaper student. Two regimes:
Black-box (data) distillation: you only need the teacher's text outputs. Generate prompts, have the teacher produce high-quality responses (optionally with reasoning traces), filter, then SFT the student on the pairs. This is by far the most common pattern - it's how most open-source instruct datasets were built, and R1-style distillation showed that SFT on a strong reasoner's chain-of-thought traces transfers a surprising amount of reasoning ability to small models. Works across architectures and through APIs; each example carries only hard-label signal (one sampled sequence).
Full worked answer
Distillation transfers capability from a stronger/larger teacher to a smaller/cheaper student. Two regimes:
Black-box (data) distillation: you only need the teacher's text outputs. Generate prompts, have the teacher produce high-quality responses (optionally with reasoning traces), filter, then SFT the student on the pairs. This is by far the most common pattern - it's how most open-source instruct datasets were built, and R1-style distillation showed that SFT on a strong reasoner's chain-of-thought traces transfers a surprising amount of reasoning ability to small models. Works across architectures and through APIs; each example carries only hard-label signal (one sampled sequence).
Logit (white-box) distillation: the student trains to match the teacher's full next-token distributions - classically, cross-entropy/KL against the teacher's (temperature-softened) probabilities, often mixed with the hard-label loss. Richer signal per token (the "dark knowledge" in the relative probabilities of wrong-but-plausible tokens), so it's more sample-efficient - but it requires teacher weights or logprobs, a shared (or carefully aligned) tokenizer/vocabulary, and compute to run teacher forwards. Used when you control both models - e.g., building a small model as a compressed version of your own big one; several open model families train their small sizes this way.
Going further: follow-up territory
Licensing caveats - the part that trips teams up: many hosted-API providers' terms of service restrict using outputs to develop models that compete with them; training your commercial model on a frontier API's outputs may violate ToS regardless of technical feasibility. Open-weight models aren't automatically free either: licences like Llama's community licence attach conditions to derivative models and even to models trained on Llama outputs (naming/attribution clauses, usage thresholds). Also, synthetic data inherits any restrictions of the teacher and can leak memorised copyrighted or personal content into your training set. The correct answer in an interview: "I'd get the ToS/licence reviewed before committing the data pipeline - this is a legal gate, not an engineering detail."
What a good answer covers
- Distillation transfers capability from a stronger/larger teacher to a smaller/cheaper student
- Black-box (data) distillation: you only need the teacher's text outputs
- Generate prompts, have the teacher produce high-quality responses (optionally with reasoning traces),…
- This is by far the most common pattern - it's how most open-source instruct datasets were built, and…
- Works across architectures and through APIs; each example carries only hard-label signal (one sampled…
Key terms: Black-box (data) distillation · Logit (white-box) distillation
In the glossary: Distillation · SFT · Cross-entropy · Logprobs
Interviewer follow-ups to expect
Why do soft targets carry more information than sampled text?
Your student and teacher have different tokenizers - what breaks in logit distillation and what are the workarounds?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep