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 Fundamentals

Fifteen lessons from the concept to the mathematical formulation and challenges, with examples and review questions.

  • 16Items

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.

Lessons

beginner

What is federated learning?

Federated learning trains one shared model on data held by several parties. Raw data stays with each party; instead, model updates (parameters or parameter differences) travel to a coordinating server that combines them.

Details
beginner

Federated vs centralized vs distributed learning

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 alread…

Details
intermediate

Types: horizontal, vertical and transfer FL

Yang et al. (2019) classify federated learning by overlap of samples and features: horizontal (same features, different samples), vertical (same samples, different features), and federated transfer learning (little over…

Details
intermediate

Cross-silo vs cross-device

Cross-device: a huge number of resource-limited devices (phones) participating intermittently. Cross-silo: a small number of institutions (hospitals, banks) with good resources, stable links, and known identities.

Details
intermediate

Non-IID data

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.

Details
beginner

One federated round in detail

A round consists of: selecting participating clients, sending the model, local training, sending updates, aggregation, and updating the global model.

Details
intermediate

Client selection and dropout

Each round a fraction C of clients participates. Some may drop out after being selected; the server aggregates only those who reported and renormalizes weights over participants.

Details
intermediate

Evaluating a federated model

A single average accuracy is not enough: look at per-client accuracy, the worst client, the standard deviation across clients, rounds to reach a target, and communication volume.

Details
beginner

Key terms at a glance

Client: a party that holds data and trains locally. Server: coordinates and aggregates. Round: one broadcast-train-aggregate cycle. Local epoch: a local pass over data. Aggregation: combining updates. Global model: the …

Details