BTS:将专业化专家模型协调融合为通用型 LLM
BTS: Harmonizing Specialized Experts into a Generalist LLM
AI总结:
提出 Branch-Train-Stitch (BTS) 算法,通过在冻结的 LLM 和专家间插入轻量级拼接层进行少量训练,将独立训练的专家模型组合成通用模型,实现灵活增删并保留专家能力。
摘要:
我们提出了 Branch-Train-Stitch (BTS),这是一种高效且灵活的训练算法,用于将独立训练的大型语言模型 (LLM) 专家组合成一个单一且强大的通用模型。遵循 Li 等人的方法,我们从一个单一的种子语言模型开始,通过持续预训练将其分支为特定领域(例如编程或数学)的专家。BTS 使用轻量级的拼接层将专家组合成一个通用模型,这些拼接层被插入到冻结的专家和种子 LLM 之间,并在专家领域的小型数据混合上进行训练。拼接层使种子 LLM 能够在前向传播过程中整合来自任意数量专家的表示,从而允许其泛化到新领域,尽管它仍保持冻结状态。由于 BTS 不改变组成它的 LLM,BTS 提供了一种模块化且灵活的方法:可以轻松移除专家,并且只需少量训练即可添加新专家。与替代的模型合并方法相比,BTS 在各种下游任务上产生了最佳的通用性能,保留了每个专家的专门能力。
英文摘要:
We present Branch-Train-Stitch (BTS), an efficient and flexible training algorithm for combining independently trained large language model (LLM) experts into a single, capable generalist model. Following Li et al., we start with a single seed language model which is branched into domain-specific (e.g., coding or math) experts with continual pretraining. BTS combines experts into a generalist model using lightweight stitch layers, which are inserted between frozen experts and the seed LLM, and trained on a small datamix of the expert domains. Stitch layers enable the seed LLM to integrate representations from any number of experts during the forward pass, allowing it to generalize to new domains, despite remaining frozen. Because BTS does not alter the constituent LLMs, BTS provides a modular and flexible approach: experts can be easily removed and new experts can be added with only a small amount of training. Compared to alternative model merging approaches, BTS yields the best generalist performance on a variety of downstream tasks, retaining the specialized capabilities of each of the experts.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。