Zubnet AIसीखेंWiki › Distillation
Training

Distillation

Knowledge Distillation, Model Distillation
एक बड़े “teacher” model के behavior को mimic करने के लिए एक छोटे “student” model को train करना। Student को hard labels (cat/dog) के साथ raw data पर train करने के बजाय, आप उसे teacher के soft probability distributions (70% cat, 20% dog, 10% fox) पर train करते हैं। Soft outputs hard labels से ज़्यादा information carry करते हैं क्योंकि वो teacher की uncertainty और categories के बीच के relationships encode करते हैं।

यह क्यों matter करता है

Distillation वो तरीका है जिससे industry powerful AI को accessible बनाती है। एक 70 billion parameter model real-time applications के लिए बहुत बड़ा और महँगा हो सकता है, लेकिन उससे distilled एक 7B model 10% cost पर 90% capability capture कर सकता है। Local पर चलाए जाने वाले बहुत से small, fast models बड़े frontier models से distilled होते हैं।

Deep Dive

The original insight from Hinton et al. (2015) was that a teacher's output probabilities contain "dark knowledge" — information about which wrong answers are almost right. A digit classifier that sees a "7" might output 0.8 for "7" but 0.15 for "1" and 0.03 for "9" — revealing that 7s look more like 1s than 9s. A student trained on these soft targets learns these relationships, which hard labels ("it's a 7, period") don't convey.

In the LLM Era

For LLMs, distillation takes several forms. The most common is training a smaller model on outputs generated by a larger model — you run the teacher on a large set of prompts, collect its responses, and fine-tune the student on those (prompt, response) pairs. This is sometimes called "distillation through generation." It's controversial because some model licenses prohibit using outputs to train competing models, and because it can create models that sound confident but lack the teacher's deeper reasoning abilities.

Distillation vs. Quantization

People sometimes confuse distillation with quantization. Quantization shrinks a model by reducing numerical precision (32-bit to 4-bit) — same model, smaller numbers. Distillation creates an entirely new, architecturally smaller model — fewer layers, smaller dimensions — that has learned from the teacher. They're complementary: you can distill a 70B model into a 7B model and then quantize the 7B model to make it even smaller.

संबंधित अवधारणाएँ

← सभी Terms
← Diffusion Transformer Distributed Training →