arXiv:2510.27486cs.LGcs.AI2025-10AAAI被引 14

FedAdamW提升大模型联邦学习通信效率与泛化能力

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

  • 引入局部修正机制与解耦权重衰减,缓解客户端过拟合
  • 通过均值聚合降低二阶矩方差,实现线性加速收敛
  • 理论证明无异质性假设下的收敛性,适合大规模模型训练

AdamW是训练大规模模型的有效优化器,但在联邦学习中面临三大挑战:数据异构导致二阶矩估计方差高、局部过拟合引发客户端漂移、每轮重置动量会拖慢收敛。为此,我们提出首个联邦版AdamW算法——FedAdamW,通过局部修正机制和解耦权重衰减对齐本地与全局更新,以减少过拟合。同时,高效聚合二阶矩均值以降低方差并适时重置。理论上,证明了其在无异质性假设下达到线性加速收敛率:\mathcal{O}(\sqrt{(L Δσ_l^2)/(S K R ε^2)}+(L Δ)/R),其中S为每轮参与客户端数,K为本地迭代次数,R为总通信轮数。还采用PAC-Bayesian分析解释解耦权重衰减的泛化有效性。实验验证了其在语言与视觉Transformer模型上的优越表现,显著减少通信轮数并提升测试准确率。

原文摘要 · Abstract (English)

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.

联邦学习优化器大模型通信效率

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。