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

Privacy and Security

Twelve topics with leakage, differential-privacy, secure-aggregation and poisoning simulations, with no automatic-guarantee claims.

  • 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.

Privacy and security topics

Membership inference

An attack that tries to decide whether a given record was in the training data using model behavior (higher confidence or lower loss on training records) (Shokri et al., 2017).

Details

Differential privacy

A mathematical guarantee: the output distribution of an algorithm is nearly the same whether or not one individual's record is present, to a degree set by ε (and δ) (Dwork & Roth, 2014).

Details

DP-FedAvg: user-level privacy

Adding differential privacy to FedAvg: client updates are norm-clipped, summed, and noise is added to the sum, giving a guarantee at the level of a whole user rather than one example (McMahan et al., 2018).

Details

Secure aggregation

A protocol letting the server learn only the sum of client updates without seeing any individual update, using pairwise random masks that cancel in the sum (Bonawitz et al., 2017).

Details

Poisoning and backdoor attacks

Malicious clients send updates crafted to corrupt the global model (untargeted poisoning) or to plant a hidden behavior triggered by a pattern (backdoor) (Sun et al., 2019).

Details

Robust aggregation rules

Alternatives to the mean that tolerate a fraction of outlying updates: coordinate-wise median, trimmed mean, and Krum, which selects the update closest to its neighbors (Blanchard et al., 2017).

Details