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

不落下任何任务:基于公共子空间与任务特定子空间的各向同性模型合并

No Task Left Behind: Isotropic Model Merging with Common and Task-Specific Subspaces

Warsaw University of Technology, Poland;IDEAS Research Center, Warsaw, Poland;Department of Information Engineering, Media Integration;Communication Center (MICC), University of Florence, Italy;NASK - PIB, National Research Institute, Warsaw, Poland;Gdańsk University of Technology, Poland;Computer Vision Center, Barcelona, Spain;Department of Computer Science, Universitat Autonoma de Barcelona, Spain

Daniel Marczak, Simone Magistri, Sebastian Cygert, Bartłomiej Twardowski, Andrew D. Bagdanov, Joost van de Weijer

AI总结:

该研究针对模型合并后与单任务模型存在性能差距的问题,通过分析任务矩阵奇异分量对齐度与性能的关联,提出结合公共及任务特定子空间的各向同性合并框架,无需额外训练即可在多任务多规模下达到SOTA性能。

摘要:

模型合并将多个任务特定模型的权重整合为单个多任务模型。尽管近期该问题受到关注,但合并模型与单任务模型之间仍存在显著性能差距。本文研究了任务矩阵(即应用于预训练模型的权重更新矩阵)实现有效合并的关键特征。我们发现,任务特定矩阵与合并矩阵的奇异分量之间的对齐度,与模型相较于预训练模型的性能提升高度相关。基于此,我们提出一种各向同性合并框架,该框架可平坦化任务矩阵的奇异值谱,增强对齐度并缩小性能差距。此外,我们结合公共子空间与任务特定子空间,以进一步提升对齐度与性能。我们提出的方法在视觉和语言任务上,于多种任务集合与模型规模下均达到了当前最优性能。本工作深化了对模型合并动态机制的理解,提供了一种无需额外训练即可合并模型的有效方法。代码可在https://github.com/danielm1405/iso-merging 获取。

英文摘要:

Model merging integrates the weights of multiple task-specific models into a single multi-task model. Despite recent interest in the problem, a significant performance gap between the combined and single-task models remains. In this paper, we investigate the key characteristics of task matrices -- weight update matrices applied to a pre-trained model -- that enable effective merging. We show that alignment between singular components of task-specific and merged matrices strongly correlates with performance improvement over the pre-trained model. Based on this, we propose an isotropic merging framework that flattens the singular value spectrum of task matrices, enhances alignment, and reduces the performance gap. Additionally, we incorporate both common and task-specific subspaces to further improve alignment and performance. Our proposed approach achieves state-of-the-art performance on vision and language tasks across various sets of tasks and model scales. This work advances the understanding of model merging dynamics, offering an effective methodology to merge models without requiring additional training. Code is available at https://github.com/danielm1405/iso-merging .

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

↑