← All 44 Terms
1. LLM & Deep Learning Foundations
Read in Ch. 2: Training, Fine-Tuning & Adaptation →
Knowledge Distillation
In One Sentence
Training a smaller, faster 'student' model to mimic the outputs, reasoning traces, or probability distributions of a much larger 'teacher' model.
ELI5 (Intuition)
Having a grandmaster solve 10,000 puzzles out loud so a fast apprentice can study the worked solutions and play nearly as well at a fraction of the cost.
ELI18 (Technical)
Minimizes KL divergence between softened teacher and student distributions \(D_{\text{KL}}(P_{\text{teacher}}(y \mid x; T) \,\|\, P_{\text{student}}(y \mid x; T))\), or runs SFT on teacher-generated synthetic chain-of-thought trajectories.
In Practice
How 'mini', 'flash', and 'haiku' models achieve strong coding and reasoning accuracy at 10x lower latency and price—and how teams distill a frontier LLM prompt into a tiny local classifier.