arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.27486cs.LGcs.AI
收藏

FedAdamW: 一种具有收敛性和泛化保证的联邦大模型高效优化器

FedAdamW: A Communication-Efficient Optimizer with Convergence and Generalization Guarantees for Federated Large Models

School of Computer Science and Technology, Tianjin University(天津大学计算机科学与技术学院);Medical College, Tianjin University(天津大学医学院);School of Artificial Intelligence, Xidian University(西安电子科技大学人工智能学院);State Key Lab of General Artificial Intelligence, School of Intelligence Science and Technology, Peking University(北京大学智能科学与技术学院通用人工智能国家重点实验室);Pazhou Laboratory (Huangpu), Guangzhou, Guangdong, China(广州黄埔 Pazhou 实验室)

Junkang Liu, Fanhua Shang, Hongying Liu, Yuxuan Tian, Yuanyuan Liu, Jin Liu, Kewen Zhu, Zhouchen Lin

AI总结:

本文提出FedAdamW,通过局部修正机制和解耦权重衰减缓解联邦学习中的局部过拟合和方差问题,理论证明其收敛速率并实验证明其在语言和视觉Transformer模型中的有效性。

摘要:

AdamW已成为训练大规模模型最有效的优化器之一。我们还观察到其在联邦学习(FL)中的有效性。然而,直接在联邦学习设置中应用AdamW存在显著挑战:(1)由于数据异质性,AdamW往往导致第二矩估计$\boldsymbol{v}$的高方差;(2)AdamW的局部过拟合可能引起客户端漂移;(3)每轮重新初始化矩估计($\boldsymbol{v}$,$\boldsymbol{m}$)会减慢收敛速度。为解决这些挑战,我们提出了首个联邦AdamW算法,称为FedAdamW,用于训练和微调各种大规模模型。FedAdamW通过局部修正机制和解耦权重衰减对齐局部更新与全局更新,以缓解局部过拟合。FedAdamW高效聚合第二矩估计的均值以减少其方差并重新初始化它们。理论上,我们证明FedAdamW在不假设异质性的情况下,实现了线性加速收敛速率$\mathcal{O}(\sqrt{(L Δσ_l^2)/(S K R ε^2)}+(L Δ)/R)$。我们还采用PAC-Bayesian泛化分析来解释解耦权重衰减在局部训练中的有效性。实验上,我们在语言和视觉Transformer模型中验证了FedAdamW的有效性。与多个基线相比,FedAdamW显著减少了通信轮次并提高了测试准确率。代码可在https://github.com/junkangLiu0/FedAdamW获取。

英文摘要:

AdamW has become one of the most effective optimizers for training large-scale models. We have also observed its effectiveness in the context of federated learning (FL). However, directly applying AdamW in federated learning settings poses significant challenges: (1) due to data heterogeneity, AdamW often yields high variance in the second-moment estimate $\boldsymbol{v}$; (2) the local overfitting of AdamW may cause client drift; and (3) Reinitializing moment estimates ($\boldsymbol{v}$, $\boldsymbol{m}$) at each round slows down convergence. To address these challenges, we propose the first \underline{Fed}erated \underline{AdamW} algorithm, called \texttt{FedAdamW}, for training and fine-tuning various large models. \texttt{FedAdamW} aligns local updates with the global update using both a \textbf{local correction mechanism} and decoupled weight decay to mitigate local overfitting. \texttt{FedAdamW} efficiently aggregates the \texttt{mean} of the second-moment estimates to reduce their variance and reinitialize them. Theoretically, we prove that \texttt{FedAdamW} achieves a linear speedup convergence rate of $\mathcal{O}(\sqrt{(L Δσ_l^2)/(S K R ε^2)}+(L Δ)/R)$ without \textbf{heterogeneity assumption}, where $S$ is the number of participating clients per round, $K$ is the number of local iterations, and $R$ is the total number of communication rounds. We also employ PAC-Bayesian generalization analysis to explain the effectiveness of decoupled weight decay in local training. Empirically, we validate the effectiveness of \texttt{FedAdamW} on language and vision Transformer models. Compared to several baselines, \texttt{FedAdamW} significantly reduces communication rounds and improves test accuracy. The code is available in https://github.com/junkangLiu0/FedAdamW.

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

↑