arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.26246cs.LG
收藏

LLM蒸馏中的桥园困境:为什么混合硬标签和软标签有效

The Bridge-Garden Dilemma in LLM Distillation: Why Mixing Hard and Soft Labels Works

School of Computer Science and Technology, University of Chinese Academy of Sciences, Beijing, China(中国科学院大学计算机科学与技术学院);Alibaba Group, Hangzhou, China(阿里巴巴集团);State Key Laboratory of AI Safety, Institute of Computing Technology, Chinese Academy of Sciences, Beijing, China(中国科学院人工智能安全国家重点实验室);Beijing Academy of Artificial Intelligence, Beijing, China(北京人工智能研究院);Key Laboratory of Big Data Mining and Knowledge Management (BDKM), University of Chinese Academy of Sciences, Beijing, China(中国科学院大数据挖掘与知识管理重点实验室)

Guanghui Wang, Kaiwen Lv Kacuila, Zhiyong Yang, Zitai Wang, Jin-Wen Wu, Longtao Huang, Qianqian Xu, Qingming Huang

AI总结:

针对大语言模型知识蒸馏中硬标签与软标签的混合使用,提出桥园分解理论解释其降低暴露偏差的机制,并开发自适应混合监督方法,在多个模型上实现性能提升和9.7倍训练成本降低。

摘要:

知识蒸馏(KD)将知识从大型教师模型转移到较小的学生模型。在语言建模中,学生模型要么在从教师模型采样的标记(硬标签)上训练,要么在教师模型的完整下一个标记分布(软标签)上训练。尽管软标签看起来严格更丰富,但我们发现混合硬标签和软标签始终能产生更好的结果。关键的是,我们表明这种增益不能通过训练期间更接近教师匹配来解释。相反,它来自于减少暴露偏差,即训练和推理分布之间的不匹配。为了解释这一现象,我们引入了桥园分解理论,该理论将生成步骤分为两类:桥(Bridge),其中下一个标记必须精确;园(Garden),其中下一个标记可以灵活。我们表明,仅硬标签的KD在桥中通过避免风险偏差表现出色,而仅软标签的KD在园中保持多样性。混合策略处理两种情况,从而减少整个序列中的暴露偏差。在该理论的指导下,我们开发了一系列桥园混合监督方法,自适应地平衡硬标签和软标签。在包含七个教师-学生对(包括Qwen、Llama、Gemma和DeepSeek)的主要套件以及推理和编码基准测试中,我们的方法优于基于散度和基于策略的KD基线,同时将训练成本降低了9.7倍,实现了高效的模型压缩。代码可在https://github.com/ghwang-s/bridge_garden_hybrid_kd_release获取。

英文摘要:

Knowledge distillation (KD) transfers knowledge from a large teacher model to a smaller student. In language modeling, the student is trained either on tokens sampled from the teacher (hard labels) or the teacher's full next-token distribution (soft labels). Despite soft labels appear strictly richer, we find that mixing hard and soft labels consistently yields better results. Crucially, we show that this gain cannot be explained by closer teacher matching during training. Instead, it comes from reduced exposure bias, the mismatch between training and inference distributions. To explain this phenomenon, we introduce the Bridge-Garden Decomposition theory, which categorizes generation steps into two types: Bridges, where the next token must be exact, and Gardens, where it can be flexible. We show that hard-only KD excels in Bridges by avoiding risky deviations, while soft-only KD preserves diversity in Gardens. A hybrid strategy handles both cases and, as a result, reduces exposure bias across the sequence. Guided by this theory, we develop a family of Bridge-Garden hybrid supervision methods that adaptively balance hard and soft labels. Across a primary suite of seven teacher-student pairs (including Qwen, Llama, Gemma, and DeepSeek) and benchmarks in reasoning and coding, our approach outperforms divergence-based and on-policy KD baselines while reducing training cost by 9.7x, enabling efficient model compression. Code is available at https://github.com/ghwang-s/bridge_garden_hybrid_kd_release.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑