Train models on distributed data without moving it: try FedAvg, FedProx and SCAFFOLD in a simulator that really computes in your browser, with privacy, medical applications, projects and quizzes.
- Home
- Federated Learning Fundamentals
- Architecture and Workflow
- Interactive Simulator
- Algorithms
- Experiments
- Medical Applications
- Privacy and Security
- Federated Deep Learning
- Applications
- Projects and Code
- Research Center
- Quizzes
- My experiments
- Scientific references
- Glossary and FAQ
Non-IID data
Federated Learning Fundamentals · Lesson intermediate
The idea
Data is IID when each client's samples are drawn from the same global distribution. In practice distributions differ: label skew, feature shift, or quantity skew.
Explanation
A common way to simulate label skew is a Dirichlet distribution with concentration α: the smaller α, the stronger the skew (Hsu et al., 2020; Li et al., 2022). In the simulator, α and the number of classes per client (shards) control the skew.
Effect: clients' update directions diverge, the global model oscillates and some clients lose accuracy. No single algorithm wins in every case (Li et al., 2022).
Example
A client that sees only two of four classes pushes its local model toward those two.
Mathematical form
p_k\sim \mathrm{Dir}(\alpha\,\mathbf{1}_K)Related experiments
See also
References
- Hsu, Qi, Brown (2020). Federated Visual Classification with Real-World Data Distribution. ECCV 2020 (LNCS). doi:10.1007/978-3-030-58607-2_5
- Li, Diao, Chen, He (2022). Federated Learning on Non-IID Data Silos: An Experimental Study. IEEE ICDE 2022. doi:10.1109/icde53745.2022.00077
