2025-03-10 · 专家 · 机器学习 · 自然语言处理

TinyR1-32B-Preview: Boosting Accuracy with Branch-Merge Distillation

本文提出了一种名为Branch-Merge的蒸馏方法,通过分支和合并两个阶段,有效提升了小型语言模型的推理准确率。

更新于 2025-03-26。作者:Lin Sun、Guangxiang Zhao、Xiaoqi Jian、Yuhan Wu、Weihong Lin、Yongfu Zhu、Change Jia、Linglin Zhang、Jinzhu Wu、Junfeng Ran、Sai-er Hu、Zihan Jiang、Junting Zhou、Wenrui Liu、Bin Cui、Tong Yang、Xiangzheng Zhang。

中文摘要

在保持大型语言模型(LLMs)性能的同时缩小其体积的挑战受到了广泛关注。然而,现有的方法,如模型蒸馏和迁移学习,往往难以实现高精度。为了解决这一局限性,我们提出了分支-合并蒸馏方法,该方法通过两个阶段来提升模型压缩效果:(1) 分支阶段,通过领域特定的监督微调(SFT)将有知识的大教师模型选择性地蒸馏到专业的学生模型中;以及(2) 合并阶段,将这些学生模型合并,以实现跨领域知识迁移并提高泛化能力。我们使用DeepSeek-R1作为教师模型,DeepSeek-R1-Distill-Qwen-32B作为学生模型来验证我们的蒸馏方法。结果产生的合并模型TinyR1-32B-Preview在多个基准测试中优于其对应的DeepSeek-R1-Distill-Qwen-32B模型,包括数学(+5.5分)、编码(+4.4分)和科学(+2.9分),同时在AIME 2024测试中与DeepSeek-R1的性能几乎相同。分支-合并蒸馏方法为创建更小、性能更高且计算成本和时间减少的LLMs提供了一种可扩展的解决方案。

英文摘要

The challenge of reducing the size of Large Language Models (LLMs) while maintaining their performance has gained significant attention. However, existing methods, such as model distillation and transfer learning, often fail to achieve high accuracy. To address this limitation, we introduce the Branch-Merge distillation approach, which enhances model compression through two phases: (1) the Branch Phase, where knowledge from a large teacher model is selectively distilled into specialized student models via domain-specific supervised fine-tuning (SFT); And (2) the Merge Phase, where these student models are merged to enable cross-domain knowledge transfer and improve generalization. We validate our distillation approach using DeepSeek-R1 as the teacher and DeepSeek-R1-Distill-Qwen-32B as the student. The resulting merged model, TinyR1-32B-Preview, outperforms its counterpart DeepSeek-R1-Distill-Qwen-32B across multiple benchmarks, including Mathematics (+5.5 points), Coding (+4.4 points) and Science (+2.9 points), while achieving near-equal performance to DeepSeek-R1 on AIME 2024. The Branch-Merge distillation approach provides a scalable solution for creating smaller, high-performing LLMs with reduced computational cost and time.

解读

一句话总结

本文提出了一种名为Branch-Merge的蒸馏方法,通过分支和合并两个阶段,有效提升了小型语言模型的推理准确率。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源