Understanding and Improving Model Averaging in Federated Learning on Heterogeneous Data
- 28 May 2024
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Mobile Computing
- Vol. 23 (12) , 12131-12145
Abstract
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 i) the client model's loss on non-overlapping data between client datasets and the global dataset and ii) 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.Keywords
All Related Versions
Funding Information
- Hong Kong Research Grants Council (AoE/E-601/22-R)
- NSFC/RGC Collaborative Research Scheme (CRS_HKUST603/22)
- Guangzhou Municipal Science and Technology Project (2023A03J0011)
- Guangdong Provincial Key Laboratory of Integrated Communications, Sensing and Computation for Ubiquitous Internet of Things
- National Foreign Expert Project (G2022030026)
This publication has 31 references indexed in Scilit:
- Improving Generalization in Federated Learning by Seeking Flat Minima2022
- Stochastic Coded Federated Learning with Convergence and Privacy Guarantees2022
- OoD-Bench: Quantifying and Understanding Two Dimensions of Out-of-Distribution Generalization2022
- Federated Learning on Non-IID Data Silos: An Experimental Study2022
- Federated learning on non-IID data: A surveyNeurocomputing, 2021
- Reconciling modern machine-learning practice and the classical bias–variance trade-offProceedings of the National Academy of Sciences, 2019
- Deeper, Broader and Artier Domain Generalization2017
- Overcoming catastrophic forgetting in neural networksProceedings of the National Academy of Sciences, 2017
- Deep Residual Learning for Image Recognition2016
- Between Two Extremes: Examining Decompositions of the Ensemble Objective FunctionLecture Notes in Computer Science, 2005