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

EMR-Merging:免调优的高性能模型合并

EMR-Merging: Tuning-Free High-Performance Model Merging

Fudan University(复旦大学);The Chinese University of Hong Kong(香港中文大学);Shanghai AI Laboratory(上海人工智能实验室)

Chenyu Huang, Peng Ye, Tao Chen, Tong He, Xiangyu Yue, Wanli Ouyang

AI总结:

本文提出免调优的EMR-Merging方法,通过选举统一模型并生成轻量级任务特定调制器(掩码和缩放器)对齐方向与幅度,在无需额外数据或训练的情况下实现高性能的多任务模型合并。

摘要:

预训练-微调范式的成功带来了大量模型权重的发布。在这种情况下,将在不同任务上微调的模型合并,以使单个模型具备多任务能力,因其实用性而受到越来越多的关注。现有的模型合并方法通常面临(1)显著的性能下降或(2)需要额外数据或训练进行调优。在本文中,我们重新思考并分析了现有的模型合并范式。我们发现,使用单一模型的权重很难模拟所有模型的性能。为了解决这个问题,我们提出了 Elect, Mask & Rescale-Merging(EMR-Merging)。我们首先(a)从所有模型权重中选举出一个统一模型,然后(b)生成极其轻量级的任务特定调制器,包括掩码和缩放器,分别用于对齐统一模型与每个特定模型之间的方向和幅度。EMR-Merging 是免调优的,因此不需要数据可用性或任何额外训练,同时展现出令人印象深刻的性能。我们发现,在不同的经典和新建立的设置下,与现有的合并方法相比,EMR-Merging 展现出卓越的性能,包括合并不同数量的视觉模型(最多30个)、NLP模型、PEFT模型和多模态模型。

英文摘要:

The success of pretrain-finetune paradigm brings about the release of numerous model weights. In this case, merging models finetuned on different tasks to enable a single model with multi-task capabilities is gaining increasing attention for its practicability. Existing model merging methods usually suffer from (1) significant performance degradation or (2) requiring tuning by additional data or training. In this paper, we rethink and analyze the existing model merging paradigm. We discover that using a single model's weights can hardly simulate all the models' performance. To tackle this issue, we propose Elect, Mask & Rescale-Merging (EMR-Merging). We first (a) elect a unified model from all the model weights and then (b) generate extremely lightweight task-specific modulators, including masks and rescalers, to align the direction and magnitude between the unified model and each specific model, respectively. EMR-Merging is tuning-free, thus requiring no data availability or any additional training while showing impressive performance. We find that EMR-Merging shows outstanding performance compared to existing merging methods under different classical and newly-established settings, including merging different numbers of vision models (up to 30), NLP models, PEFT models, and multi-modal models.

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

↑