回环蒸馏使零样本模型大小插值
Boomerang Distillation Enables Zero-Shot Model Size Interpolation
AI总结:
回环蒸馏通过蒸馏和重构实现零样本模型大小插值,生成细粒度模型家族,降低训练成本并提升适应性。
摘要:
大型语言模型(LLMs)通常在多样化的内存和计算约束下部署。现有方法通过单独训练每个大小的模型来构建模型家族,这成本高昂且只能提供粗粒度的大小选项。在本工作中,我们识别出一种新的现象,称为回环蒸馏:从一个大的基础模型(教师)开始,首先蒸馏到一个小的学生模型,然后通过逐步将教师层块重新纳入学生模型中,而不进行额外训练,逐步重建中间大小的模型。此过程会产生许多中间大小的零样本插值模型,其性能在学生和教师之间平滑地变化,经常匹配或超过预训练或蒸馏模型的相同大小。我们进一步分析这种插值何时成功,显示通过剪枝和蒸馏使教师和学生对齐是关键。回环蒸馏因此提供了一种简单而有效的方法来生成细粒度的模型家族,大幅降低训练成本,同时在部署环境中实现灵活的适应。代码和模型可在https://github.com/dcml-lab/boomerang-distillation获取。
英文摘要:
Large language models (LLMs) are typically deployed under diverse memory and compute constraints. Existing approaches build model families by training each size independently, which is prohibitively expensive and provides only coarse-grained size options. In this work, we identify a novel phenomenon that we call boomerang distillation: starting from a large base model (the teacher), one first distills down to a small student and then progressively reconstructs intermediate-sized models by re-incorporating blocks of teacher layers into the student without any additional training. This process produces zero-shot interpolated models of many intermediate sizes whose performance scales smoothly between the student and teacher, often matching or surpassing pretrained or distilled models of the same size. We further analyze when this type of interpolation succeeds, showing that alignment between teacher and student through pruning and distillation is essential. Boomerang distillation thus provides a simple and efficient way to generate fine-grained model families, dramatically reducing training cost while enabling flexible adaptation across deployment environments. The code and models are available at https://github.com/dcml-lab/boomerang-distillation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。