Federated Learning with Non-IID Data
Yue ZhaoMeng LiLiangzhen LaiNaveen SudaDamon CivinVikas Chandra
Quantifies the severe accuracy drop in non-IID federated learning through earth mover's distance-based weight divergence and provides a data-sharing strategy that substantially recovers model performance with minimal shared data.
Federated learning allows edge devices such as phones and IoT sensors to train a shared model without sending raw data to a central server, thereby preserving privacy and reducing transmission costs. In practice, however, the data held on each device often follows a very different distribution from the overall population, and this statistical mismatch sharply reduces model accuracy. The paper examines how severe that reduction becomes, identifies its mathematical cause, and tests a practical remedy.
The authors set out to measure the accuracy loss of the standard FederatedAveraging algorithm under non-independent-and-identically-distributed data, to explain the loss through weight divergence, and to demonstrate whether a modest amount of globally shared data can restore performance. They trained representative convolutional networks on MNIST, CIFAR-10, and a keyword-spotting speech dataset, comparing fully IID partitions against two extreme non-IID partitions in which each client held examples from only one or two classes. They also derived an analytic bound linking weight divergence to the earth mover’s distance between each client’s class distribution and the global distribution, then validated the bound experimentally.
Accuracy fell by as much as 55 percent on the most skewed one-class partitions; even the milder two-class partitions produced double-digit losses on CIFAR-10 and keyword spotting. The magnitude of the loss tracked the earth mover’s distance closely, and the divergence appeared in the first communication round and grew with further local updates. Introducing a globally shared subset equal to only 5 percent of the total training data, together with a warm-start model trained on that subset, raised CIFAR-10 accuracy by roughly 30 percentage points while limiting the data each device actually received to half of the shared pool.
These results show that the statistical heterogeneity long acknowledged in federated-learning literature can be mitigated without abandoning the decentralized training paradigm. The trade-off is modest centralization of a small reference set whose size and distribution fraction can be tuned to the application. Because the shared data need be distributed only once at initialization, communication overhead remains negligible and privacy exposure is limited to non-sensitive examples.
The analysis rests on three image and speech classification tasks and on the assumption that synchronization occurs after a fixed number of local steps; performance on other model families or under highly variable client participation was not measured. Within those bounds, the experimental trends and the supporting proof are consistent across data sets and hyper-parameter choices, giving decision makers a clear quantitative basis for adopting the data-sharing approach when non-IID conditions are expected.
- Paper: Federated Learning: Strategies for Improving Communication Efficiency, Jakub Konečný et al. (2016). This foundational work on reducing communication overhead in federated learning establishes the basic parameter-sharing and update-compression techniques that the source paper later builds upon to address statistical heterogeneity.
- Paper: On the Convergence of FedAvg on Non-IID Data, Xiang Li et al. (2019). Analyzing the convergence properties of Federated Averaging under non-IID data distributions, this paper provides critical theoretical context for understanding the accuracy drops and weight divergence phenomena investigated in the source paper.
- Paper: Federated Optimization in Heterogeneous Networks, Tian Li et al. (2018). Directly extending the source paper's exploration of non-IID challenges in federated learning, this work introduces FedProx to handle variable device constraints and non-convex objectives through a proximal regularizer.
- Paper: SCAFFOLD: Stochastic Controlled Averaging for Federated Learning, Sai Praneeth Karimireddy et al. (2019). Building upon the non-IID federated optimization problem defined in the source, this paper proposes SCAFFOLD to correct client drift using control variates and eliminate the convergence slowdowns caused by data heterogeneity.
- Paper: Federated Learning: Challenges, Methods, and Future Directions, Tian Li et al. (2019). Expanding upon the specific statistical challenges identified in the source paper, this comprehensive survey maps out the broader landscape of federated learning challenges, methods, and future directions.
