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

Mixup 模型合并:通过随机线性插值增强模型合并性能

Mixup Model Merge: Enhancing Model Merging Performance through Randomized Linear Interpolation

Yue Zhou, Yi Chang, Yuan Wu

AI总结:

提出 Mixup 模型合并(M3),利用 Beta 分布采样的随机线性插值探索任务特定 LLM 的最优贡献比例,无需训练即可提升合并模型性能、鲁棒性,并可结合 DARE 进一步增强。

摘要:

模型合并旨在将多个任务特定模型整合为一个统一模型,该模型继承各任务特定模型的能力,且无需额外训练。现有的模型合并方法往往未考虑不同任务特定模型对最终合并模型的贡献比例差异。在本文中,我们提出了 Mixup 模型合并(M3),这是一种简单而有效的方法,灵感来源于 Mixup 数据增强技术中的随机线性插值策略。M3 在两个任务特定的大语言模型(LLM)的参数空间中执行随机线性插值,其中插值系数从 Beta 分布中采样,以探索多样的贡献比例。这种可控的随机性使 M3 能够通过发现更好的贡献比例组合,优于标准的等比例合并。大量实验表明,M3 显著地(1)提升了合并后 LLM 在多个任务上的性能,(2)增强了分布外和对抗鲁棒性,(3)优于稀疏化方法 DARE 在模型合并中的正面效果,并可进一步与 DARE 结合以获得更优结果,(4)通过调整 Beta 分布的形状参数,在贡献比例的探索效率与多样性之间取得平衡。代码已在补充材料中提供。

英文摘要:

Model merging aims to integrate multiple task-specific models into a unified model that inherits the capabilities of the task-specific models, without additional training. Existing model merging methods often lack consideration of the varying contribution ratios of different task-specific models to the final merged model. In this paper, we propose Mixup Model Merge (M3), a simple yet effective method inspired by the randomized linear interpolation strategy from the Mixup data augmentation technique. M3 performs randomized linear interpolation in parameter space between two task-specific LLMs, where interpolation coefficients are sampled from a Beta distribution to explore diverse contribution ratios. This controllable randomness allows M3 to outperform standard equal-ratio merging by discovering better contribution ratio combinations. Extensive experiments show that M3 significantly (1) improves merged LLM performance across tasks, (2) enhances out-of-distribution and adversarial robustness, (3) outperforms the positive effects of the sparsification method DARE on model merging and can be further combined with DARE to achieve superior results, and (4) balances exploration efficiency and diversity in contribution ratios by tuning the Beta distribution's shape parameters. The code is provided in the supplementary materials.

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

↑