Distillation (LLM)
Category: Generative AI / LLM
The process of training a smaller student model to replicate the behavior of a larger teacher model, transferring knowledge into a more efficient form.
Full Explanation
Knowledge distillation for large language models trains a smaller, faster student model to mimic the outputs of a larger, more capable teacher model. The student learns not just from ground truth labels but from the teacher rich output distributions (soft labels), which contain more information about the relationships between possible outputs. For LLMs, distillation approaches include training on teacher-generated text (data distillation), matching the teacher output probability distributions (logit distillation), and aligning intermediate representations (feature distillation). Distillation has produced highly effective compact models like DistilBERT, Alpaca (distilled from GPT), and Phi (leveraging synthetic data from larger models). The technique is crucial for deploying capable models in resource-constrained environments. Modern LLM distillation often involves generating large synthetic datasets using the teacher model, which the student then trains on, effectively transferring the teacher capabilities through its generated outputs.
Related Terms
More in Generative AI / LLM
Explore More
- AI Tools Library — Discover AI tools related to Distillation (LLM)
- AI Education — Courses to learn about Generative AI / LLM
- AI News — Latest news and updates