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

Communication cost and how to reduce it

Federated Learning Fundamentals · Lesson intermediate

The idea

Communication is the main bottleneck; cost is rounds × model size × participating clients × 2 (download and upload).

Explanation

More local work (larger E) reduces the number of rounds needed but may increase drift under non-IID data.

Sampling a fraction of clients lowers the per-round cost.

Compression, quantization and sparsification shrink messages; they are outside the simulator and are listed as a research direction.

Example

A 1,000-parameter model at 32 bits is ≈ 4 KB per message; with 10 clients and 50 rounds: 10×50×2×4 KB = 4,000 KB. The panel computes the actual value for your model.

Mathematical form

\mathrm{Comm}=T\cdot |S|\cdot 2\cdot d\cdot b

Related experiments

References

  1. McMahan, Moore, Ramage, Hampson, Agüera y Arcas (2017). Communication-Efficient Learning of Deep Networks from Decentralized Data. AISTATS 2017 (PMLR 54); arXiv:1602.05629. Link
  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