什么对大规模模型融合至关重要?
What Matters for Model Merging at Scale?
AI总结:
本研究系统评估10亿至640亿参数规模下4种模型融合方法的效用,揭示基础模型质量、模型规模等因素对融合效果的影响规律,为大规模模型融合研究提供参考。
摘要:
模型融合旨在将多个专家模型组合为一个能力更强的单一模型,具备降低存储与部署成本、提升泛化能力、支持去中心化模型开发等优势。尽管前景广阔,但以往研究主要聚焦于少量小型模型的融合,这使得模型规模扩展的效果及其与基础模型质量、专家模型数量等其他关键因素的相互作用对融合模型性能的影响仍存在诸多未解问题。本研究系统评估了大规模模型融合的效用,考察了上述不同因素的影响。我们采用4种主流融合方法——Averaging(平均法)、Task Arithmetic(任务算术)、Dare和TIES——对参数量在10亿至640亿之间的全量微调模型进行融合实验,最多融合8个不同的专家模型。我们从两类任务评估融合模型:一是已见任务(即专家模型的训练任务),二是对未见任务的零样本泛化能力。实验得出了若干关于大规模模型融合及不同因素间相互作用的新发现:第一,当专家模型由强基础模型(即零样本性能优异的模型)构建时,融合效果更佳;第二,更大的模型更易实现融合;第三,融合始终能提升泛化能力,值得注意的是,融合8个大型专家模型时,融合模型的泛化能力通常优于多任务训练模型;第四,使用更大的模型时,可更好地融合更多专家模型;第五,不同融合方法在更大规模下的表现高度相似。总体而言,本研究发现揭示了模型融合的若干有趣特性,同时也指出了部分局限性,希望能为后续相关研究提供大规模融合方向的参考。
英文摘要:
Model merging aims to combine multiple expert models into a more capable single model, offering benefits such as reduced storage and serving costs, improved generalization, and support for decentralized model development. Despite its promise, previous studies have primarily focused on merging a few small models. This leaves many unanswered questions about the effect of scaling model size and how it interplays with other key factors -- like the base model quality and number of expert models -- , to affect the merged model's performance. This work systematically evaluates the utility of model merging at scale, examining the impact of these different factors. We experiment with merging fully fine-tuned models using 4 popular merging methods -- Averaging, Task~Arithmetic, Dare, and TIES -- across model sizes ranging from 1B-64B parameters and merging up to 8 different expert models. We evaluate the merged models on both held-in tasks, i.e., the expert's training tasks, and zero-shot generalization to unseen held-out tasks. Our experiments provide several new insights about model merging at scale and the interplay between different factors. First, we find that merging is more effective when experts are created from strong base models, i.e., models with good zero-shot performance. Second, larger models facilitate easier merging. Third merging consistently improves generalization capabilities. Notably, when merging 8 large expert models, the merged models often generalize better compared to the multitask trained models. Fourth, we can better merge more expert models when working with larger models. Fifth, different merging methods behave very similarly at larger scales. Overall, our findings shed light on some interesting properties of model merging while also highlighting some limitations. We hope that this study will serve as a reference point on large-scale merging for upcoming research.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。