2025-02-10 · 进阶 · 机器学习

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

本文提出了一种基于子空间对齐的模型融合框架,通过引入任务特定子空间来提高模型融合的效果,实现了在多个场景下的最优性能。

更新于 2025-02-10。作者:Daniel Marczak、Simone Magistri、Sebastian Cygert、Bartłomiej Twardowski、Andrew D. Bagdanov、Joost van de Weijer。

中文摘要

模型合并将多个任务特定模型的权重整合成一个单一的多任务模型。尽管最近对该问题产生了兴趣,但组合模型和单任务模型之间仍存在显著的性能差距。在本文中,我们研究了任务矩阵的关键特性——应用于预训练模型的权重更新矩阵——这些特性使得有效的合并成为可能。我们表明,任务特定矩阵和合并矩阵的奇异成分之间的对齐与预训练模型性能的提升密切相关。基于此,我们提出了一种各向同性的合并框架,该框架将任务矩阵的奇异值谱展平,增强对齐,并缩小性能差距。此外,我们还结合了公共和任务特定的子空间,以进一步提高对齐和性能。我们提出的方法在多个场景中实现了最先进的性能,包括各种任务集合和模型规模。这项工作推进了对模型合并动态的理解,提供了一种无需额外训练即可合并模型的有效方法。代码可在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 across multiple scenarios, including 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 .

解读

一句话总结

本文提出了一种基于子空间对齐的模型融合框架,通过引入任务特定子空间来提高模型融合的效果,实现了在多个场景下的最优性能。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt