FedNSAM:联邦学习中局部与全局平坦度的一致性
FedNSAM:Consistency of Local and Global Flatness for Federated Learning
AI总结:
FedNSAM通过引入全局Nesterov动量提升SAM效果,解决高数据异质性下局部平坦度不保证全局模型平坦度的问题,理论证明收敛界更紧,实验验证性能优越。
摘要:
在联邦学习中,多步局部更新和数据异质性通常导致更尖锐的全局极小值,降低全局模型性能。流行的FL算法通过整合sharpness-aware minimization (SAM)来解决此问题。然而,在高数据异质性设置下,局部训练中的平坦度不意味着全局模型的平坦度。因此,最小化客户端数据上的局部损失曲面的尖锐度并不能使SAM在FL中的有效性提高全局模型的泛化能力。我们定义了平坦度距离来解释这一现象。通过重新思考FL中的SAM并理论上分析平坦度距离,我们提出了一种新的FedNSAM算法,通过在局部更新中引入全局Nesterov动量来加速SAM算法,以协调全局和局部平坦度的一致性。FedNSAM将全局Nesterov动量作为客户端全局扰动的局部估计方向和外推方向。理论上,我们通过Nesterov外推证明了比FedSAM更紧的收敛界。实验上,我们在CNN和Transformer模型上进行了全面实验,验证了FedNSAM的优越性能和效率。代码可在https://github.com/junkangLiu0/FedNSAM获取。
英文摘要:
In federated learning (FL), multi-step local updates and data heterogeneity usually lead to sharper global minima, which degrades the performance of the global model. Popular FL algorithms integrate sharpness-aware minimization (SAM) into local training to address this issue. However, in the high data heterogeneity setting, the flatness in local training does not imply the flatness of the global model. Therefore, minimizing the sharpness of the local loss surfaces on the client data does not enable the effectiveness of SAM in FL to improve the generalization ability of the global model. We define the \textbf{flatness distance} to explain this phenomenon. By rethinking the SAM in FL and theoretically analyzing the \textbf{flatness distance}, we propose a novel \textbf{FedNSAM} algorithm that accelerates the SAM algorithm by introducing global Nesterov momentum into the local update to harmonize the consistency of global and local flatness. \textbf{FedNSAM} uses the global Nesterov momentum as the direction of local estimation of client global perturbations and extrapolation. Theoretically, we prove a tighter convergence bound than FedSAM by Nesterov extrapolation. Empirically, we conduct comprehensive experiments on CNN and Transformer models to verify the superior performance and efficiency of \textbf{FedNSAM}. The code is available at https://github.com/junkangLiu0/FedNSAM.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。