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

Federated vs centralized vs distributed learning

Federated Learning Fundamentals · Lesson beginner

The idea

In centralized learning, data is gathered in one place. In distributed learning inside a data center, homogeneous data under one owner is sharded over machines to speed training. In federated learning the data is already distributed, we do not control its distribution, it may be heterogeneous, parties are not fully trusted and links are slow.

Explanation

Key differences: (1) who owns the data: one party or many; (2) data homogeneity: IID in sharded training, usually non-IID in federated; (3) communication cost, the bottleneck in federated settings; (4) number and availability of parties: millions of intermittently available devices or dozens of institutions.

This page compares the concepts and does not claim that any one wins: when data can legally and technically be pooled, centralized training remains a strong baseline that must be measured.

Example

The “centralized vs federated baseline” experiment in the experiments module measures the gap on synthetic data.

Related experiments

See also

References

  1. 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
  2. Yang, Liu, Chen, Tong (2019). Federated Machine Learning: Concept and Applications. ACM TIST 10(2):1-19. doi:10.1145/3298981