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

模型合并中的多层级协作

Multi-Level Collaboration in Model Merging

National University of Singapore(新加坡国立大学)

Qi Li, Runpeng Yu, Xinchao Wang

AI总结:

本文探索去除限制后模型合并与集成的性能一致性,提出NeuLig验证框架,在理论上建立性能相关性,实验证明其在多模型规模下实现近乎相同的性能。

摘要:

参数级模型合并是多任务学习中的一种新兴范式,具有广阔前景。先前研究探索了其与预测级模型集成(通常被视为合并的性能上界)的联系,以揭示实现两者性能一致性的潜力。然而,这一观察依赖于特定前提,例如仅限于两个模型、使用基于 ViT 的模型,且所有模型均从相同的预训练检查点微调而来。为了进一步理解模型合并与模型集成之间的内在联系,本文探索了一种有趣的可能性:如果去除这些限制,合并与集成之间是否仍能实现性能一致性?为回答此问题,我们首先在理论上建立了合并与集成之间的性能相关性。我们发现,即使不满足先前的限制条件,模型合并仍有一种方式能够获得与集成近乎相同且更优的性能。为验证我们的发现是否具有实用性,我们引入了一种名为 Neural Ligand (NeuLig) 的验证框架。NeuLig 的学习过程经过精心设计,配备了具有理论基础支持的专用损失函数。实验结果证明了 NeuLig 在模型规模和协作模型数量方面具有稳健的弹性。例如,在涉及 5 个 CLIP-ViT-B/32 模型的案例中,参数级合并实现了与预测级集成相同的性能(合并:95.44% 对比 集成:95.46%)。

英文摘要:

Parameter-level model merging is an emerging paradigm in multi-task learning with significant promise. Previous research has explored its connections with prediction-level model ensembling-commonly viewed as the upper bound for merging-to reveal the potential of achieving performance consistency between the two. However, this observation relies on certain preconditions, such as being limited to two models, using ViT-based models, and all models are fine-tuned from the same pre-trained checkpoint. To further understand the intrinsic connections between model merging and model ensembling, this paper explores an interesting possibility: If these restrictions are removed, can performance consistency still be achieved between merging and ensembling? To answer this question, we first theoretically establish a performance correlation between merging and ensembling. We find that even when previous restrictions are not met, there is still a way for model merging to attain a near-identical and superior performance similar to that of ensembling. To verify whether our findings are practical, we introduce a validation framework termed Neural Ligand (NeuLig). The learning process of NeuLig is meticulously designed with a specialized loss function supported by theoretical foundations. Experimental results demonstrate the robust resilience of NeuLig in terms of both model scale and the number of collaborating models. For instance, for the case involving 5 CLIP-ViT-B/32 models, parameter-level merging achieves the same performance as prediction-level ensembling (merging: 95.44% vs. ensembling: 95.46%).

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

↑