Federated Learning Lab

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.

14interactive experiments

Core challenges: heterogeneity, communication, systems

Federated Learning Fundamentals · Lesson intermediate

The idea

Li et al. (2020) name four challenges: communication cost, systems heterogeneity, statistical heterogeneity, and privacy.

Explanation

Communication: each round moves the model twice per client; it is reduced with more local epochs, compression, or by sampling clients.

Systems heterogeneity: some clients are slower or drop out (stragglers), so the amount of work differs.

Statistical heterogeneity: label or feature distributions differ across parties, causing client drift.

Privacy: updates can leak information.

Example

In the simulator choose non-IID data and compare FedAvg with FedProx to see the difference in minimum client accuracy.

Review questions

  • Which challenge does FedProx target?
  • Why does more local epochs not solve everything?

Related experiments

See also

References

  1. Li, Sahu, Talwalkar, Smith (2020). Federated Learning: Challenges, Methods, and Future Directions. IEEE Signal Processing Magazine 37(3):50-60. doi:10.1109/msp.2020.2975749
  2. Kairouz, McMahan, et al. (2021). Advances and Open Problems in Federated Learning. Foundations and Trends in Machine Learning 14(1-2):1-210. doi:10.1561/2200000083