Understanding and Improving Model Averaging in Federated Learning on Heterogeneous Data
Not on the map. Why?
Abstract (arXiv)
Model averaging is a widely adopted technique in federated learning (FL) that aggregates multiple client models to obtain a global model. Remarkably, model averaging in FL yields a superior global model, even when client models are trained with non-convex objective functions and on heterogeneous local datasets. However, the rationale behind its success remains poorly understood. To shed light on this issue, we first visualize the loss landscape of FL over client and global models to illustrate their geometric properties. The visualization shows that the client models encompass the global model within a common basin, and interestingly, the global model may deviate from the basin's center while still outperforming the client models. To gain further insights into model averaging in FL, we decompose the expected loss of the global model into five factors related to the client models. Specifically, our analysis reveals that the global model loss after early training mainly arises from textiti) the client model's loss on non-overlapping data between client datasets and the global dataset and textitii) the maximum distance between the global and client models. Based on the findings from our loss landscape visualization and loss decomposition, we propose utilizing iterative moving averaging (IMA) on the global model at the late training phase to reduce its deviation from the expected minimum, while constraining client exploration to limit the maximum distance between the global and client models. Our experiments demonstrate that incorporating IMA into existing FL methods significantly improves their accuracy and training speed on various heterogeneous data setups of benchmark datasets. Code is available at urlhttps://github.com/TailinZhou/FedIMA.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Builds on 50 of its 82 references that are in the map. First posted on arXiv 13 May 2023.
Builds on
50 of 82 references.
References · 50
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,364
- 2016Communication-Efficient Learning of Deep Networks from Decentralized Datacited by 7,669
- 2016Overcoming catastrophic forgetting in neural networkscited by 4,787
- 2017Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithmscited by 4,349
- 2019Advances and Open Problems in Federated Learningcited by 3,046
- 2018Federated Optimization in Heterogeneous Networkscited by 2,987
- 2020Sharpness-Aware Minimization for Efficiently Improving Generalizationcited by 1,417
- 2019On the Convergence of FedAvg on Non-IID Datacited by 1,229
- 2018Averaging Weights Leads to Wider Optima and Better Generalizationcited by 1,209
- 2017Visualizing the Loss Landscape of Neural Netscited by 1,130
- 2018Federated Learning with Non-IID Datacited by 1,108
38 more
- 2020Adaptive Federated Optimizationcited by 1,046
- 2017Deeper, Broader and Artier Domain Generalizationcited by 986
- 2018Reconciling modern machine learning practice and the bias-variance trade-offcited by 927
- 2020Tackling the Objective Inconsistency Problem in Heterogeneous Federated Optimizationcited by 906
- 2013An Empirical Investigation of Catastrophic Forgetting in Gradient-Based Neural Networkscited by 722
- 2018Loss Surfaces, Mode Connectivity, and Fast Ensembling of DNNscited by 588
- 2021FedBN: Federated Learning on Non-IID Features via Local Batch Normalizationcited by 571
- 2021Federated Learning on Non-IID Data Silos: An Experimental Studycited by 568
- 2017Can Decentralized Algorithms Outperform Centralized Algorithms? A Case Study for Decentralized Parallel Stochastic Gradient Descentcited by 502
- 2021SWAD: Domain Generalization by Seeking Flat Minimacited by 434
- 2019Bayesian Nonparametric Federated Learning of Neural Networkscited by 387
- 2020A Unified Theory of Decentralized SGD with Changing Topology and Local Updatescited by 367
- 2018Essentially No Barriers in Neural Network Energy Landscapecited by 330
- 2021A Field Guide to Federated Optimizationcited by 315
- 2019The Non-IID Data Quagmire of Decentralized Machine Learningcited by 305
- 2018Parallel Restarted SGD with Faster Convergence and Less Communication: Demystifying Why Model Averaging Works for Deep Learningcited by 278
- 2019A Joint Learning and Communications Framework for Federated Learning over Wireless Networkscited by 263
- 2014Qualitatively characterizing neural network optimization problemscited by 188
- 2022Diverse Weight Averaging for Out-of-Distribution Generalizationcited by 148
- 2020UVeQFed: Universal Vector Quantization for Federated Learningcited by 107
- 2022Improving Generalization in Federated Learning by Seeking Flat Minimacited by 98
- 2021OoD-Bench: Quantifying and Understanding Two Dimensions of Out-of-Distribution Generalizationcited by 86
- 2016Stochastic Multiple Choice Learning for Training Diverse Deep Ensemblescited by 77
- 2020FedHome: Cloud-Edge based Personalized Federated Learning for In-Home Health Monitoringcited by 61
- 2023Revisiting Weighted Aggregation in Federated Learning with Neural Networkscited by 58
- 2020Stochastic Weight Averaging in Parallel: Large-Batch Training that Generalizes Wellcited by 57
- 2020The Global Landscape of Neural Networks: An Overviewcited by 57
- 2022FedFA: Federated Learning with Feature Anchors to Align Features and Classifiers for Heterogeneous Datacited by 50
- 2021SparseFed: Mitigating Model Poisoning Attacks in Federated Learning with Sparsificationcited by 46
- 2022On the Unreasonable Effectiveness of Federated Averaging with Heterogeneous Datacited by 38
- 2016Parallel SGD: When does averaging help?cited by 32
- 2022Federated Learning with GAN-based Data Synthesis for Non-IID Clientscited by 25
- 2022Gradient Masked Averaging for Federated Learningcited by 22
- 2022DReS-FL: Dropout-Resilient Secure Federated Learning for Non-IID Clients via Secret Data Sharingcited by 17
- 2020Toward Multiple Federated Learning Services Resource Sharing in Mobile Edge Networkscited by 11
- 2022Stochastic Coded Federated Learning with Convergence and Privacy Guaranteescited by 10
- 2022CFLIT: Coexisting Federated Learning and Information Transfercited by 4
- 2021Server Averaging for Federated Learningcited by 2
Built on by
Citing papers per year: 2023: 2; 2024: 4; 2025: 1.
7 papers.
- 2024The Future of Large Language Model Pre-training is Federatedcited by 30
- 2023A Survey of What to Share in Federated Learning: Perspectives on Model Utility, Privacy Leakage, and Communication Efficiencycited by 21
- 2023Mode Connectivity and Data Heterogeneity of Federated Learningcited by 3
- 2024Optimizing Federated Learning by Entropy-Based Client Selectioncited by 3
- 2025Federated Learning from Molecules to Processes: A Perspectivecited by 3
- 2024Federated Prompt-based Decision Transformer for Customized VR Services in Mobile Edge Computing Systemcited by 2
- 2024Overcoming label shift with target-aware federated learningcited by 2
- 2025Federated Learning from Molecules to Processes: A Perspective23 Jun 2025
- 2024Overcoming label shift with target-aware federated learning6 Nov 2024
- 2024Optimizing Federated Learning by Entropy-Based Client Selection2 Nov 2024
- 2024The Future of Large Language Model Pre-training is Federated17 May 2024
- 2024Federated Prompt-based Decision Transformer for Customized VR Services in Mobile Edge Computing System15 Feb 2024
- 2023Mode Connectivity and Data Heterogeneity of Federated Learning29 Sep 2023
- 2023A Survey of What to Share in Federated Learning: Perspectives on Model Utility, Privacy Leakage, and Communication Efficiency20 Jul 2023