当困惑度谎言:面向生成的混合序列模型蒸馏
When Perplexity Lies: Generation-Focused Distillation of Hybrid Sequence Models
AI总结:
本文提出Hybrid-KDA架构与GenDistill蒸馏流程,通过生成导向评估揭示传统困惑度评估的局限性,并展示改进后的模型在知识基准上的高准确率与内存效率提升。
摘要:
将预训练的Transformer转换为更高效的混合模型通过蒸馏,提供了一种减少推理成本的有希望的方法。然而,实现蒸馏模型的高质量生成需要仔细设计学生架构和蒸馏过程。许多先前的蒸馏工作通过排名候选答案的对数似然来评估下游多项选择基准,而不是要求自回归生成,这可能掩盖了模型质量的重要差异。例如,我们展示了一个7B参数蒸馏模型在对数似然评分下几乎与教师模型相差0.2pp,但在必须自回归生成时却落后20.8pp。我们提出Hybrid-KDA架构与GenDistill多阶段蒸馏流程,并在整个过程中使用基于生成的评估来指导设计决策。将此方法应用于Qwen3-0.6B,我们系统地消除了六个设计轴:训练目标、损失掩码、训练持续时间、数据集选择、参数冻结和架构选择。我们发现基于对数似然的评估一致低估了教师和学生之间的差距,并且在某些情况下会反转设计选择的排名,意味着仅基于困惑度的评估结论可能是误导的。在我们研究的因素中,数据集选择、仅完成掩码和训练后冻结注意力层对生成质量影响最大。我们的最佳Hybrid-KDA模型在知识基准上保留了86-90%的教师准确性,同时将KV缓存内存减少高达75%,并在128K-token上下文中将时间到第一个token提高2-4倍。
英文摘要:
Converting a pretrained Transformer into a more efficient hybrid model through distillation offers a promising approach to reducing inference costs. However, achieving high-quality generation in distilled models requires careful joint design of both the student architecture and the distillation process. Many prior distillation works evaluate downstream multiple-choice benchmarks by ranking candidate answers with log-likelihood rather than requiring autoregressive generation, which can obscure important differences in model quality. For example, on overlapping benchmarks, we show that a 7B distilled model that nearly matches its teacher to within 0.2 pp under log-likelihood scoring falls behind by 20.8 pp when it must generate answers autoregressively. We investigate this phenomenon with GenDistill, a multi-stage pipeline we designed for distilling a pretrained Transformer into an efficient Hybrid Kimi Delta Attention (Hybrid-KDA) student. Using it as a controlled testbed on Qwen3-0.6B, we systematically ablate six design axes (training objective, loss masking, training duration, dataset selection, parameter freezing, and architecture choice) and evaluate every choice under both log-likelihood and generation-based protocols. We find that log-likelihood-based evaluation consistently underestimates the gap between teacher and student, and can in some cases reverse the ranking of design choices, so conclusions drawn from perplexity-only evaluation may be misleading. Among the factors we study, dataset selection, completion-only masking, and freezing attention layers during post-training have the largest impact on generation quality. Our best distillation recipe, using a Hybrid-KDA model as the student, retains 86-90% of teacher accuracy on knowledge benchmarks while reducing KV cache memory by up to 75% and improving time-to-first-token by 2-4x at 128K-token contexts.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。