Prompts Forms Resume Reports ★ Saved ★ Saved★ + Submit a tool
Techniques

Advanced Model Distillation

About 3693 characters Updated Nov 30, 2026 21 views AI wiki

Advanced model distillation refers to a series of advanced methods that have evolved beyond basic knowledge distillation around signal form, data source and training strategy, aiming to approximate the reasoning ability of a large model as closely as possible on a smaller model. Under the practical demand of "pushing large-model capability down to edge devices and private deployment", it has become one of the mainstream routes of model compression, alongside quantization.

Core Principles

In classical distillation, the teacher model outputs temperature-softened soft labels, and the student model fits both the soft labels and the true hard labels; the soft labels contain the relative relations among classes, the so-called "dark knowledge". Advanced methods branch into several main lines on top of this.

The first is white-box distillation: with access to the teacher's internal representations, beyond the output distribution it also aligns intermediate-layer hidden states and attention distributions, giving richer signals and faster convergence, but usually requiring the student and teacher to have similar structure and compatible vocabularies, at higher implementation cost. The second is black-box distillation: only the teacher's text output is available, and the student imitates it through constructed instruction data; it applies to closed-source API teachers and is the simplest in engineering, but the information bandwidth is low, transferring only final answers with the teacher's uncertainty lost.

The third is chain-of-thought distillation: the student learns the teacher's reasoning process rather than only conclusions. Practice repeatedly shows that the gains small models obtain from samples with reasoning steps far exceed those from answers alone, especially on math, code and logic tasks, making this almost the cheapest path to give small models reasoning ability.

The fourth is on-policy distillation (GKD, Generalized Knowledge Distillation): traditional methods train on fixed data generated by the teacher, so the student only sees the teacher's distribution and cannot correct itself once it generates an erroneous state, leaving a distribution shift between training and inference. GKD has the student generate sequences itself first, then has the teacher give the distribution on the student's state as supervision, with interpolation tuned by the proportion of teacher data. Intermediate compromises such as seq-kd and adaptive mixing strategies are common, and the schedule curve of the teacher data proportion is a key hyperparameter.

Key Points

Practice focuses on three points: first, temperature and loss weights, where too high a temperature makes the soft distribution approach uniform and loses information, usually two to five, with the KL term and cross-entropy term balanced per task; second, data quality over quantity, since samples where the teacher is wrong directly contaminate the student and must be filtered, deduplicated and stratified by difficulty; third, capacity gap, where the gain decays rapidly when student and teacher parameter counts differ too much, so the teacher should be chosen by the student's absorption capacity rather than by being as large as possible.

On costs: white-box requires open structure, and black-box is limited by API output; chain-of-thought distillation needs massive reasoning traces, expensive and slow to generate; GKD requires online teacher calls with low training efficiency but usually the best results. In addition, the distilled student often has a narrower generalization surface and weaker robustness to out-of-distribution inputs than the teacher.

Common Misconceptions

First, distilling only answers and not the process, so the student noticeably drops on multi-step tasks. Second, blindly pursuing a large teacher and ignoring the capacity gap, so training fails to converge or the gain approaches zero. Third, believing distillation can conjure new capabilities out of nothing, when in fact it mainly does capability transfer and format alignment.

Application Scenarios

On-device small models, vertical domain models, cost reduction of reasoning models, replacing closed-source API dependence, low-latency online services, private deployment, multimodal student model training, code completion models.