arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.01342cs.LGstat.ML
收藏

通过固定神经元锚点的训练时神经元对齐改进模型融合

Improving Model Fusion by Training-time Neuron Alignment with Fixed Neuron Anchors

Zhejiang University(浙江大学);Georgia Institute of Technology(佐治亚理工学院);Westlake University(西湖大学);Hong Kong University of Science and Technology(香港科技大学)

Zexi Li, Zhiqi Li, Jie Lin, Tao Shen, Jun Xiao, Yike Guo, Tao Lin, Chao Wu

AI总结:

本文提出训练时神经元对齐方法TNA-PFN,利用固定神经元锚点减少排列差异,改进模型融合,并衍生出联邦学习方法FedPFN和FedPNU,在异构联邦学习中达到最优性能。

摘要:

模型融合旨在通过融合参数将多个深度神经网络(DNN)模型的知识整合到一个模型中,其应用前景广阔,例如提升基础模型的泛化能力以及联邦学习中的参数平均。然而,在不同设置(数据、超参数等)下训练的模型具有不同的神经元排列;换言之,从损失景观的角度来看,它们位于不同的损失盆地中,从而阻碍了模型融合的性能。为缓解此问题,以往研究强调了排列不变性的作用,并开发了在训练后寻找正确网络排列以进行神经元对齐的方法。与以往尝试正交,本文研究训练时的神经元对齐,无需后匹配即可改进模型融合。训练时对齐比训练后对齐成本更低,并适用于各种模型融合场景。从基本假设和定理出发,本文引入了一种简单且无损的算法,称为TNA-PFN。TNA-PFN利用部分固定的神经元权重作为锚点,以减少训练时排列的可能性,并在降低线性模式连通性和多模型融合的障碍方面得到了实证验证。同时验证了TNA-PFN可以在模型汤(视觉变换器)和ColD融合(预训练语言模型)的设置下改进预训练模型的融合。基于TNA-PFN,本文提出了两种联邦学习方法FedPFN和FedPNU,展示了训练时神经元对齐的前景。FedPFN和FedPNU在异构设置下的联邦学习中达到了最先进的性能,并可兼容服务器端算法。

英文摘要:

Model fusion aims to integrate several deep neural network (DNN) models' knowledge into one by fusing parameters, and it has promising applications, such as improving the generalization of foundation models and parameter averaging in federated learning. However, models under different settings (data, hyperparameter, etc.) have diverse neuron permutations; in other words, from the perspective of loss landscape, they reside in different loss basins, thus hindering model fusion performances. To alleviate this issue, previous studies highlighted the role of permutation invariance and have developed methods to find correct network permutations for neuron alignment after training. Orthogonal to previous attempts, this paper studies training-time neuron alignment, improving model fusion without the need for post-matching. Training-time alignment is cheaper than post-alignment and is applicable in various model fusion scenarios. Starting from fundamental hypotheses and theorems, a simple yet lossless algorithm called TNA-PFN is introduced. TNA-PFN utilizes partially fixed neuron weights as anchors to reduce the potential of training-time permutations, and it is empirically validated in reducing the barriers of linear mode connectivity and multi-model fusion. It is also validated that TNA-PFN can improve the fusion of pretrained models under the setting of model soup (vision transformers) and ColD fusion (pretrained language models). Based on TNA-PFN, two federated learning methods, FedPFN and FedPNU, are proposed, showing the prospects of training-time neuron alignment. FedPFN and FedPNU reach state-of-the-art performances in federated learning under heterogeneous settings and can be compatible with the server-side algorithm.

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

↑