Improving Generalization in Federated Learning with Highly Heterogeneous Data via Momentum-Based Stochastic Controlled Weight Averaging
Junkang Liu, Yuanyuan Liu, Fanhua Shang, Hongying Liu, Jin Liu, Wei Feng
Abstract
For federated learning (FL) algorithms such as FedSAM, their generalization capability is crucial for real-word applications. In this paper, we revisit the generalization problem in FL and investigate the impact of data heterogeneity on FL generalization. We find that FedSAM usually performs worse than FedAvg in the case of highly heterogeneous data, and thus propose a novel and effective federated learning algorithm with Stochastic Weight Averaging (called FedSWA), which aims to find flatter minima in the setting of highly heterogeneous data. Moreover, we introduce a new momentum-based stochastic controlled weight averaging FL algorithm (FedMoSWA), which is designed to better align local and global models. Theoretically, we provide both convergence analysis and generalization bounds for FedSWA and FedMoSWA. We also prove that the optimization and generalization errors of FedMoSWA are smaller than those of their counterparts, including FedSAM and its variants. Empirically, experimental results on CIFAR10/100 and Tiny ImageNet demonstrate the superiority of the proposed algorithms compared to their counterparts. Open source code at: https://github. com/junkangLiu0/FedSWA .
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
23 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- SCAFFOLD: Stochastic Controlled Averaging for Federated Learning cites Federated Learning Based on Dynamic Regularization
- FedALT: Federated Fine-Tuning Through Adaptive Local Training with Rest-of-World LoRA cites LoRA-FAIR: Federated LoRA Fine-Tuning with Aggregation and Initialization Refinement
- FedALT: Federated Fine-Tuning Through Adaptive Local Training with Rest-of-World LoRA cites FedAdamW: A Communication-Efficient Optimizer with Convergence and Generalization Guarantees for Federated Large Models
- FedAdamW: A Communication-Efficient Optimizer with Convergence and Generalization Guarantees for Federated Large Models cites FedALT: Federated Fine-Tuning Through Adaptive Local Training with Rest-of-World LoRA
- LoRA-FAIR: Federated LoRA Fine-Tuning with Aggregation and Initialization Refinement cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Adaptive LoRA Experts Allocation and Selection for Federated Fine-Tuning cites SCAFFOLD: Stochastic Controlled Averaging for Federated Learning
- Adaptive LoRA Experts Allocation and Selection for Federated Fine-Tuning cites LoRA-FAIR: Federated LoRA Fine-Tuning with Aggregation and Initialization Refinement
- FedAdamW: A Communication-Efficient Optimizer with Convergence and Generalization Guarantees for Federated Large Models cites SCAFFOLD: Stochastic Controlled Averaging for Federated Learning
- FedAdamW: A Communication-Efficient Optimizer with Convergence and Generalization Guarantees for Federated Large Models cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- FedAdamW: A Communication-Efficient Optimizer with Convergence and Generalization Guarantees for Federated Large Models cites LoRA-FAIR: Federated LoRA Fine-Tuning with Aggregation and Initialization Refinement
- Rethinking LoRA for Privacy-Preserving Federated Learning in Large Models cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Rethinking LoRA for Privacy-Preserving Federated Learning in Large Models cites FedALT: Federated Fine-Tuning Through Adaptive Local Training with Rest-of-World LoRA
- Rethinking LoRA for Privacy-Preserving Federated Learning in Large Models cites LoRA-FAIR: Federated LoRA Fine-Tuning with Aggregation and Initialization Refinement
- Rethinking LoRA for Privacy-Preserving Federated Learning in Large Models cites Adaptive LoRA Experts Allocation and Selection for Federated Fine-Tuning
- Rethinking LoRA for Privacy-Preserving Federated Learning in Large Models cites FedAdamW: A Communication-Efficient Optimizer with Convergence and Generalization Guarantees for Federated Large Models
- Rethinking LoRA for Privacy-Preserving Federated Learning in Large Models cites When Do Flat Minima Optimizers Work?
- When Do Flat Minima Optimizers Work? cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- When Do Flat Minima Optimizers Work? cites Sharpness-aware Minimization for Efficiently Improving Generalization
Cited by top-tier papers23
- LoRA-FAIR: Federated LoRA Fine-Tuning with Aggregation and Initialization RefinementJieming Bian, Lei Wang, Letian Zhang, Jie XuICCV 2025 · 56 citations
- Adaptive LoRA Experts Allocation and Selection for Federated Fine-TuningLei Wang, Jieming Bian, Letian Zhang, Jie XuNeurIPS 2025 · 14 citations
- FedALT: Federated Fine-Tuning Through Adaptive Local Training with Rest-of-World LoRAJieming Bian, Lei Wang, Letian Zhang, Jie XuAAAI 2026 · 12 citations
- FedAdamW: A Communication-Efficient Optimizer with Convergence and Generalization Guarantees for Federated Large ModelsJunkang Liu, Fanhua Shang, Hongying Liu, Yuxuan Tian et al.AAAI 2026 · 12 citations
- Rethinking LoRA for Privacy-Preserving Federated Learning in Large ModelsJin Liu, Yinbin Miao, Ning Xi, Junkang LiuICLR 2026 · 9 citations
Builds on8
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
- SCAFFOLD: Stochastic Controlled Averaging for Federated LearningSai Praneeth Karimireddy, Satyen Kale, Mehryar Mohri, Sashank J. Reddi et al.ICML 2020 · 3,875 citations
- Sharpness-aware Minimization for Efficiently Improving GeneralizationPierre Foret, Ariel Kleiner, Hossein Mobahi, Behnam NeyshaburICLR 2021 · 1,861 citations
- Federated Learning Based on Dynamic RegularizationDurmus Alp Emre Acar, Yue Zhao, Ramon Matas Navarro, Matthew Mattina et al.ICLR 2021 · 114 citations
- When Do Flat Minima Optimizers Work?Jean Kaddour, Linqing Liu, Ricardo Silva, Matt J. KusnerNeurIPS 2022 · 102 citations
Related papers
- Generalized Federated Learning via Sharpness Aware MinimizationZhe Qu, Xingyu Li, Rui Duan, Yao Liu et al.ICML 2022 · 219 citations
- Momentum Benefits Non-iid Federated Learning Simply and ProvablyZiheng Cheng, Xinmeng Huang, Pengfei Wu, Kun YuanICLR 2024 · 40 citations
- Consistency of Local and Global Flatness for Federated LearningJunkang Liu, Fanhua Shang, Yuxuan Tian, Hongying Liu et al.ACM MM 2025 · 1 citation
- FedAdamom: Adaptive Momentum for Improved Generalization in Federated OptimizationWenjie Hou, Tianxiang Chen, Feng Wang, Tiantong Wu et al.CVPR 2026
- On the Role of Server Momentum in Federated LearningJianhui Sun, Xidong Wu, Heng Huang, Aidong ZhangAAAI 2024
