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 Learning Lab

Algorithms

Twelve algorithms with equations, steps, pseudocode, comparison and original papers.

  • 12Items

This lab is educational: the simulations are small (simple models and synthetic data or 8×8 digit images) and run in your browser with real computation. Their results do not generalise automatically to production systems, and federated learning alone does not guarantee privacy.

Algorithms

2017

FedSGD

A special case of FedAvg: one gradient step over all local data, then gradient aggregation.

Details
2018 (MLSys 2020)

FedProx

Adds a proximal term that penalizes the local model for moving away from the global model during local training.

Details
2019 (ICML 2020)

SCAFFOLD

Uses control variates to correct drift: subtracts the client-specific direction and adds the global one.

Details
2020

FedNova

Normalizes each client's update by its number of local steps before aggregation so that clients doing more work do not dominate.

Details
2020 (ICLR 2021)

FedAdam

Adam on the server applied to Δ_t with first and second moments.

Details
2020 (ICLR 2021)

FedYogi

Like FedAdam but with a more conservative second-moment update that prevents it from growing too fast.

Details
2019

FedPer

Splits the network into base layers aggregated federatedly and personalization layers that stay local.

Details
2021

FedBN

Batch-normalization layers stay local and are not aggregated, while the rest of the network is.

Details
2021 (ICML 2021)

FedRep

Learns a shared representation federatedly and a local head per client: trains the head first and then the representation.

Details