arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2408.12237cs.AIcs.LG
收藏

权重范围对齐:一种极其简单的模型合并方法

Weight Scope Alignment: A Frustratingly Easy Method for Model Merging

School of Artificial Intelligence, Nanjing University(南京大学人工智能学院);National Key Laboratory for Novel Software Technology, Nanjing University(南京大学新型软件技术国家重点实验室)

Yichu Xu, Xin-Chun Li, Le Gan, De-Chuan Zhan

AI总结:

本文提出了一种极其简单的模型合并方法权重范围对齐(WSA),通过利用目标权重范围指导训练和融合多模型权重范围,有效解决了训练随机性或非独立同分布数据对模型合并的挑战,并在模式连通性和联邦学习场景中验证了其有效性。

摘要:

在考虑模型效率与鲁棒性的应用中,模型合并已成为一项基本程序。训练随机性或非独立同分布(Non-I.I.D.)数据给基于平均的模型融合带来了巨大挑战。以往的研究侧重于逐元素正则化或神经置换来增强模型平均,却忽略了模型间的权重范围变化,而这会显著影响合并效果。本文揭示了不同训练条件下权重范围的变化,阐明了其对模型合并的影响。幸运的是,每层参数基本遵循高斯分布,这启发了一种名为权重范围对齐(WSA)的全新简单正则化方法。它包含两个关键部分:1)利用目标权重范围指导模型训练过程,以确保后续模型合并时的权重范围匹配;2)将两个或多个模型的权重范围融合为统一范围,用于多阶段模型融合。我们将WSA正则化扩展至模式连通性和联邦学习两种不同场景。大量实验研究验证了该方法的有效性。

英文摘要:

Merging models becomes a fundamental procedure in some applications that consider model efficiency and robustness. The training randomness or Non-I.I.D. data poses a huge challenge for averaging-based model fusion. Previous research efforts focus on element-wise regularization or neural permutations to enhance model averaging while overlooking weight scope variations among models, which can significantly affect merging effectiveness. In this paper, we reveal variations in weight scope under different training conditions, shedding light on its influence on model merging. Fortunately, the parameters in each layer basically follow the Gaussian distribution, which inspires a novel and simple regularization approach named Weight Scope Alignment (WSA). It contains two key components: 1) leveraging a target weight scope to guide the model training process for ensuring weight scope matching in the subsequent model merging. 2) fusing the weight scope of two or more models into a unified one for multi-stage model fusion. We extend the WSA regularization to two different scenarios, including Mode Connectivity and Federated Learning. Abundant experimental studies validate the effectiveness of our approach.

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

↑