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
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.
FedZMG: Efficient Client-Side Optimization in Federated Learning
TelSiP Research Laboratory, Department of Electrical and Electronic Engineering, School of Engineering, University of West Attica(TelSiP研究实验室,电气与电子工程系,工程学院,西阿提卡大学)
FedSubMuon: Communication-Efficient Federated LLM Fine-Tuning via Structured Subspace Muon
King Abdullah University of Science and Technology (KAUST)(阿卜杜拉国王科技大学);Imperial College London(帝国理工学院);Technische Universität Berlin (TU Berlin)(柏林工业大学);Ocean University of China(中国海洋大学);The Hong Kong Polytechnic University(香港理工大学)
Taming the Instability: A Robust Second-Order Optimizer for Federated Learning over Non-IID Data
Key Laboratory of Collaborative Intelligence Systems of Ministry of Education, Xidian University(西安电子科技大学教育部协同智能系统重点实验室);Centre for Frontier AI Research, Institute of High Performance Computing, Agency for Science, Technology and Research(新加坡科技研究局高性能计算研究所前沿人工智能研究中心);State Key Laboratory of ISN, School of Cyber Engineering, Xidian University(西安电子科技大学网络与信息安全学院综合业务网理论及关键技术国家重点实验室);College of Computing and Data Science, Nanyang Technological University(南洋理工大学计算与数据科学学院);Department of Computing Technologies, Swinburne University of Technology(斯威本科技大学计算技术系)
Towards Serverless Semi-Decentralized Federated Learning with Heterogeneous Optimizers
Department of Electrical and Computer Engineering, Princeton University(普林斯顿大学电子工程与计算机科学系);Department of Electrical and Computer Engineering, Purdue University(帕克森大学电子工程与计算机科学系)
Correcting Before Adapting: Gradient Correction for Federated Adaptive Optimization
Elmore Family School of Electrical and Computer Engineering, Purdue University, West Lafayette, IN(电气与计算机工程学院,普渡大学);IBM T. J. Watson Research Center, Yorktown Heights, NY, USA(IBM沃森研究中心,纽约州扬斯敦);Department of Computer Science and Engineering, Yonsei University, Seoul, Korea(计算机科学与工程系,延世大学)
OledFL: Unleashing the Potential of Decentralized Federated Learning via Opposite Lookahead Enhancement
National University of Defense Technology(国防科技大学);Hebei University of Technology(河北工业大学);School of Cyber Science and Technology, Shenzhen Campus of Sun Yat-sen University(中山大学深圳校区网络空间科学与技术学院)
TriShield: Zero-Utility-Loss Defense Against Privacy Backdoors in Federated Language Model Fine-Tuning via Orthogonal Gradient Projection and Optimizer State Entanglement
Debunking Optimization Myths in Federated Learning for Medical Image Classification
School of Electrical Engineering, KAIST, South Korea(韩国釜山科学技术大学电气工程学院);AI Group, AMD, United States(AMD美国人工智能小组);Department of Applied AI, Hansung University, South Korea(韩国汉 Sung大学应用人工智能系);Department of Computer Science, Institute of Science Tokyo, Japan(日本东京科学研究院计算机科学系)