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

基于贝叶斯优化的动态Fisher加权模型合并

Dynamic Fisher-weighted Model Merging via Bayesian Optimization

School of Computer Science, Peking University(北京大学计算机学院);Meituan(美团);Meta AI

Sanwoo Lee, Jiahao Liu, Qifan Wang, Jingang Wang, Xunliang Cai, Yunfang Wu

AI总结:

本文提出DF-Merge框架,通过贝叶斯优化动态调整系数并结合Fisher信息,统一了模型合并策略,在多任务上实现接近最优性能。

摘要:

预训练语言模型的微调使得任务专用模型被广泛使用。模型合并提供了一种高效的方式,通过在参数级别组合这些微调模型来创建多任务模型,而无需训练数据或在多个数据集上进行联合训练。现有的合并方法通常涉及按模型缩放参数或按参数整合参数重要性。这两种方法都存在各自的弱点,导致与多任务微调相比存在显著的性能差距。在本文中,我们将这些看似不同的策略统一到一个更通用的合并框架中,并引入了动态Fisher加权合并(DF-Merge)。具体而言,候选模型与一组系数相关联,这些系数线性缩放其微调后的参数。应用贝叶斯优化来动态调整这些系数,旨在最大化验证集上的整体性能。该过程的每次迭代都整合了基于系数条件化的Fisher信息的参数重要性。实验结果表明,DF-Merge在不同规模的模型和多种任务上均优于强基线。我们的分析表明,DF-Merge的有效性源于合并的统一视角,并且即使使用最少的验证数据,也能在少数几次迭代中实现接近最优的性能。

英文摘要:

The fine-tuning of pre-trained language models has resulted in the widespread availability of task-specific models. Model merging offers an efficient way to create multi-task models by combining these fine-tuned models at the parameter level, without the need for training data or joint training on multiple datasets. Existing merging approaches typically involve scaling the parameters model-wise or integrating parameter importance parameter-wise. Both approaches exhibit their own weaknesses, leading to a notable performance gap compared to multi-task fine-tuning. In this paper, we unify these seemingly distinct strategies into a more general merging framework, and introduce Dynamic Fisher-weighted Merging (DF-Merge). Specifically, candidate models are associated with a set of coefficients that linearly scale their fine-tuned parameters. Bayesian optimization is applied to dynamically adjust these coefficients, aiming to maximize overall performance on validation sets. Each iteration of this process integrates parameter importance based on the Fisher information conditioned by the coefficients. Experimental results show that DF-Merge outperforms strong baselines across models of different sizes and a variety of tasks. Our analysis shows that the effectiveness of DF-Merge arises from the unified view of merging and that near-optimal performance is achievable in a few iterations, even with minimal validation data.

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

↑