Why Knowledge Distillation Makes Smaller LLMs Worse
This article explains a counterintuitive failure mode in large language model knowledge distillation: training a smaller student model on a stronger teacher's outputs can degrade performance instead of improving it. It breaks down the root causes—distribution shift, capacity crowding, and error accumulation—and shows why structured tasks suffer the most. The core solution is collaborative synthesis, where the teacher supplies key reasoning steps and the student generates transitions in its own style, followed by automated verification. The article also covers key design practices, a dual-baseline evaluation approach, a decoupled engineering pipeline, and common pitfalls to avoid.
1. The Phenomenon: Why Learning from the Strongest Model Can Cause Regression
In day-to-day work on model compression and capability transfer, a counterintuitive pattern keeps recurring: you take a more capable model as the teacher, use its generated solutions to train a smaller student model, and the student does not get stronger—it clearly degrades on evaluations. This degradation is not occasional training noise. It is a systematic problem that reproduces reliably.
An analogy helps. An apprentice receives a recipe left behind by a famous chef, filled with jargon and professional shorthand like “heat the wok with plenty of oil” or “fragrant and golden.” The instructions jump between ideas and skip many basic steps. The apprentice, however, is used to a step-by-step process: bloom the aromatics first, add the main ingredients, then reduce the sauce. The recipe itself is not wrong. The problem is that the two “expression languages” cannot connect directly. If the apprentice copies it verbatim, the result is that the original working rhythm is lost and the judgment of heat control is never actually learned.
Transfer between large models is highly analogous. The teacher’s output distribution, reasoning granularity, terminology density, and way of skipping steps together form a kind of “style fingerprint.” When the training objective becomes imitating this fingerprint word by word, the student is forced to spend its limited parameter capacity fitting surface-level writing style rather than absorbing transferable problem-solving structure. The result is catastrophic forgetting: old capabilities are overwritten, and new ones are never established.
2. Root Cause Breakdown: How Style Mismatch Destroys the Training Signal
Breaking the problem apart, the degradation comes from three overlapping mechanisms.
- Distribution shift. Relative to the student, the teacher’s output token sequences are out-of-distribution samples. Every prediction step pulls the student toward a direction it originally assigned very low probability, so the gradient signal is noisy and high in variance.
- Capacity crowding. The student has limited parameters. Fitting a complex writing style crowds out the capacity needed to represent task structure, showing up as simultaneous drops in general capability and other tasks.
- Error accumulation. The longer the reasoning chain, the more the bias introduced by style differences amplifies along the chain, eventually turning “can solve it” into “solves it wrong.”
It is worth stressing that the magnitude of degradation is strongly correlated with task type. In scenarios with high demands for structured output—code generation or competition-style problem solving, for example—the evaluation distribution differs more from the teacher’s style, and the degradation is more severe; measured drops range from single digits to double-digit percentages. On classification tasks with low style sensitivity, the degradation is often mild or even invisible. This shows the problem is not the distillation paradigm itself, but the way the data is constructed.
3. The Solution: Have Teacher and Student Solve Every Problem Together
The core idea is to change “the teacher generates alone and the student passively imitates” into “teacher-student collaborative synthesis.” The data construction for each problem has a clear division of labor:
- The teacher handles the key reasoning steps—the nodes that require deep thinking and embody problem-solving insight: problem decomposition, key lemmas, boundary conditions, complexity judgment, and warnings about common mistakes.
- The student handles transitions and expression—the connective sentences between nodes, stylistically personal wording, and any necessary restatement or summary.
Samples produced this way have both “structurally correct” and “stylistically consistent” properties: the structure comes from the teacher, while the writing style stays close to the student’s own distribution. During training, the gradient directions align, and the risk of forgetting drops substantially.
A schematic collaborative synthesis flow can be written as the following pseudocode (it only expresses the logic and is not bound to any specific tool):
def synthesize(problem, teacher, student):# 1. The teacher produces a structured skeleton: keep only key reasoning nodesskeleton = teacher.plan(problem, style="neutral", granularity="key_steps")# 2. The student fills in transitions and expression in its own stylefilled = student.expand(skeleton, style="self")# 3. Consistency check: the answer and structure must be verifiableif not verify(filled.answer, problem):return reject(filled, reason="answer_mismatch")if not structure_intact(filled, skeleton):return reject(filled, reason="skeleton_broken")return filled
4. Key Design Points
- A style-neutral skeleton. The teacher’s output should strip away rhetoric as much as possible and keep only verifiable logical nodes, avoiding writing style being baked into the “standard answer.”
- Verification first. For any task that can be judged automatically (code that can be executed, math that can be checked, formats that can be parsed), always fall back on a verifier, turning synthesized data quality from “relying on the model’s self-discipline” into “gated by rules.”
- Difficulty tiering. Sample problem difficulty according to the student’s current ability. Too easy yields no gain; too hard means the skeleton itself exceeds what the student can understand, which creates noise instead.
- Deduplication and diversity control. Deduplicate skeletons semantically to avoid the same problem-solving pattern recurring and causing overfitting.
- Preserve a proportion of the “student’s own voice.” Transition sentences are generated by the student, but their length share should be limited to prevent the model from learning verbose filler.
5. Evaluation and Engineering Implementation
Evaluation must use a dual-baseline comparison: one trained only on teacher data, and one trained on the collaboratively synthesized data, compared under the same student initial weights, the same hyperparameters, and the same evaluation set. Beyond the target metric, always observe general-capability regression tests as well, to confirm that a single-point gain was not bought by sacrificing foundational ability.
For engineering, it is recommended to split the pipeline into four stages: problem sampling, collaborative synthesis, automated verification, and training with regression. Decouple the four stages with a message queue, store artifacts in object storage, and track metrics such as synthesis success rate, verification rejection rate, and skeleton integrity rate throughout using logging and monitoring with alerting. If a container platform hosts the synthesis and training jobs, allocate compute with elastic scaling so the verification stage does not become a bottleneck. On the data side, keep complete, traceable metadata (problem identifier, skeleton version, verification result) to make issue tracing and batch rollback easier.
6. Common Pitfalls
- Assuming “the stronger the teacher, the better.” The teacher’s capability ceiling determines skeleton quality, but style differences grow along with it, so neutralization constraints are needed.
- Distilling only the final answer, not the process. Supervision from the final answer alone is too sparse to convey problem-solving structure.
- Ignoring regression tests. A single-metric improvement can mask degradation in general capability.
- Treating verification as optional. Without automated verification, the gains from collaborative synthesis are quickly consumed by incorrect samples.
7. Summary
The essence of “learning without mastery” is not that the teacher is not strong enough, but that the data treats style as knowledge. Give the key reasoning to the teacher, return the expression to the student, and use automated verification to hold the quality line, and distillation shifts from “imitating writing style” back to “transferring structure.” In general engineering practice on platforms such as Baidu AI Cloud, decoupling synthesis, verification, training, and monitoring into separate stages with full observability is a realistic path to reproducing these gains reliably.
