Federated Learning with Non-IID Data

Yue Zhao, Meng Li, Liangzhen Lai, Naveen Suda, Damon Civin +1 more
6/2/2018
3,647 citations
cs.LGstat.ML
federated

No official code found. Best implementation: yjlee22/FedShare (123 stars, Python, MIT, PyTorch, last commit 2022-07-01). 3 more below.

Abstract

Federated learning enables resource-constrained edge compute devices, such as mobile phones and IoT devices, to learn a shared model for prediction, while keeping the training data local. This decentralized approach to train models provides privacy, security, regulatory and economic benefits.

Show full abstract

In this work, we focus on the statistical challenge of federated learning when local data is non-IID. We first show that the accuracy of federated learning reduces significantly, by up to 55% for neural networks trained for highly skewed non-IID data, where each client device trains only on a single class of data. We further show that this accuracy reduction can be explained by the weight divergence, which can be quantified by the earth mover's distance (EMD) between the distribution over classes on each device and the population distribution. As a solution, we propose a strategy to improve training on non-IID data by creating a small subset of data which is globally shared between all the edge devices. Experiments show that accuracy can be increased by 30% for the CIFAR-10 dataset with only 5% globally shared data.

View on arXivView PDF

Code Implementations(4)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
yjlee22/FedShareCommunity123PythonMIT2022-07-01
gaoliang13/FedDCCommunity90PythonMIT2022-03-22
seyoungahn/FedDifCommunity22Python–2024-03-14
qizhuang-qz/FedCSPCCommunity12Python–2024-12-17
yjlee22/FedShareCommunity25%
PyTorchMIT

PyTorch implementation of Federated Learning with Non-IID Data, and federated learning algorithms, including FedAvg, FedProx.

12325Python, ShellNov 15, 20214 years agoMIT
federated-learningoptimizationpytorch
gaoliang13/FedDCCommunity25%
MIT

An implementation for "Federated Learning with Non-IID Data via Local Drift Decoupling and Correction"

9016PythonMar 14, 20224 years agoMIT
seyoungahn/FedDifCommunity25%

Official implementations for "Communication-Efficient Diffusion Strategy for Performance Improvement of Federated Learning with Non-IID Data" paper.

223PythonJan 17, 20222 years ago
auction-theoryfederated-learning

Cross-Silo Prototypical Calibration for Federated Learning with Non-IID Data

122PythonAug 2, 20231 years ago

Similar Papers

Cite this paper

@article{zhao2018federated,
  title  = {Federated Learning with Non-IID Data},
  author = {Yue Zhao and Meng Li and Liangzhen Lai and Naveen Suda and Damon Civin and Vikas Chandra},
  year   = {2018},
  eprint = {1806.00582},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1806.00582}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1806.00582.svg)](https://codeofpaper.com/paper/1806.00582)

Discussion