arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.01804cs.LGcs.CL
收藏

专家汤:通过参数平均预训练专家模型

Soup-of-Experts: Pretraining Specialist Models via Parameters Averaging

Apple(苹果公司)

Pierre Ablin, Angelos Katharopoulos, Skyler Seto, David Grangier

AI总结:

本文提出 Soup-of-Experts 架构,通过线性组合专家参数库,在测试时按任意域权重快速实例化专家模型,无需重新训练,适用于模型规模约束下快速交付多个专家模型。

摘要:

机器学习模型通常在不同数据域的混合数据上进行训练。不同的域权重会导致下游性能产生很大差异。我们提出 Soup-of-Experts,这是一种新颖的架构,可以在测试时针对任意域权重实例化一个模型,计算成本极低,且无需重新训练模型。我们的架构由一个专家参数库组成,这些参数通过线性组合来实例化一个模型。我们学习线性组合系数,将其作为输入域权重的函数。为了训练该架构,我们采样随机域权重,实例化相应的模型,并使用按这些域权重采样的一个批次数据进行反向传播。我们展示了该方法如何在多个语言建模任务上快速获得小型专家模型。当需要在模型规模约束下快速交付许多不同的专家模型时,Soup-of-Experts 尤其具有吸引力。

英文摘要:

Machine learning models are routinely trained on a mixture of different data domains. Different domain weights yield very different downstream performances. We propose the Soup-of-Experts, a novel architecture that can instantiate a model at test time for any domain weights with minimal computational cost and without re-training the model. Our architecture consists of a bank of expert parameters, which are linearly combined to instantiate one model. We learn the linear combination coefficients as a function of the input domain weights. To train this architecture, we sample random domain weights, instantiate the corresponding model, and backprop through one batch of data sampled with these domain weights. We demonstrate how our approach obtains small specialized models on several language modeling tasks quickly. Soup-of-Experts are particularly appealing when one needs to ship many different specialist models quickly under a model size constraint.

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

↑