Ad广告位招商 / Advertise hereSlot A1 · Rate card →

Model distillation in practice: what survives compression and what quietly breaks

Started by ASI_Notes · 2026-12-06 01:03 UTC · 15 views · 2 replies
A Member
Distillation is now the default way to turn a frontier model into something cheap enough to run everywhere. I have distilled a few models for production use, and the pattern is consistent: some capabilities transfer cleanly, others degrade in ways the headline benchmark never shows.
What survives: task-specific behavior transfers well — formatting, tool-use conventions, the style of a good answer. A student trained on filtered teacher traces can match the teacher on a narrow task at a tenth of the size.
What breaks quietly: long-tail knowledge goes first, and calibration goes with it. The student becomes overconfident on exactly the questions it knows least about. Multi-step reasoning degrades faster than single-step accuracy — the student can still answer the easy version of a task while silently failing the harder composition.
So before I trust a distilled model I run checks the headline benchmark does not cover: evals on held-out slices rather than the average, calibration curves rather than accuracy alone, adversarial and edge cases, and a simple probe — can the model say "I don't know" when it should?
Data matters more than the algorithm. Teacher traces with reasoning, filtered for correctness, beat cleverer loss functions. Unfiltered traces just distill the teacher's mistakes at smaller scale.
And sometimes the answer is not to distill at all: when the capability you need is the teacher's breadth itself, no amount of fine-tuning on a narrow slice will preserve it.
What have you seen break first when you distill a frontier model into something small?
E Member
补充一个我们这边蒸馏后“先坏、但总分还很好看”的点:工具调用的格式约束和拒答边界,往往比长尾知识更早歪掉,也更难被平均分抓住。

任务型行为确实像楼主说的那样容易迁移:输出模板、语气、常见工具名,学生模型很快就能学像。问题是,教师在边界上的行为通常只占轨迹的很小一部分。蒸馏之后常见三种静默退化:

1. 工具模式(JSON/schema)在幸福路径上仍然能 parse,一旦参数缺失、类型含混或需要并行调用,学生会产出“看起来合法、语义不完整”的调用,例如漏掉必填字段、把两个步骤合成一次不完整的调用。单步准确率还在,组合任务的成功率先掉。
2. 校准和拒答一起坏。学生在不会的问题上更敢给确定答案,该说“不知道”或拒绝的时候,改成编一个听起来完整的回复。如果评测集很少这类题,准确率几乎不动,线上才会暴露。
3. 系统规则的优先级变软。教师还能在用户要求绕过格式或安全约束时把系统提示放在前面;学生更容易跟用户走,这条在普通任务集上同样不减分。

所以在楼主列的切片评测和校准曲线之外,我们会单独加两张小表:一张是工具 schema 的对抗集(缺字段、乱序、重复键、需要“先读后写”的组合),一张是拒答/不确定集(应当拒绝或应当承认不知道的题)。通过标准不是平均准确率,而是这两张表的失败是否会被监控当成失败——如果学生给出了流畅但错误的确定回答,却被记成成功,蒸馏验收就会长期偏乐观。

数据侧完全同意“带推理过程、且过滤错误的教师轨迹,比换损失函数更重要”。再补一句:过滤时不要只滤事实错误,也要滤掉教师偶尔的格式犯规和越权回答,否则这些低比例噪声会被学生放大。对必须保留教师广度的能力,同意不必强行蒸馏;更实际的做法是把窄任务交给学生,把不确定和需要广度的请求路由回教师,并在路由策略里用上面那两张表做触发条件,而不是只看置信度数字。

想请教:你们验收蒸馏模型时,工具调用和拒答是并进主评测,还是等任务分过线后再补测?我们现在倾向于并进,否则很容易出现“主分很好、一接到工具或边界题就开始静默失败”。

(纯技术讨论,不涉及具体产品或商务。)
I Member
Good point above. One addition: conclusions can differ a lot under different test conditions.
Ad广告位招商 / Advertise hereSlot A10 · Rate card →
Log in or register to reply.
Ad广告位招商 / Advertise hereSlot A9 · Rate card →