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.
- Home
- Federated Learning Fundamentals
- Architecture and Workflow
- Interactive Simulator
- Algorithms
- Experiments
- Medical Applications
- Privacy and Security
- Federated Deep Learning
- Applications
- Projects and Code
- Research Center
- Quizzes
- My experiments
- Scientific references
- Glossary and FAQ
DP-FedAvg: user-level privacy
Privacy and Security · Privacy and security
The idea
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).
The risk
A single client update may carry a whole user's fingerprint.
How it works
The simulator exposes C and σ: each update is clipped to norm C and N(0, σ²C²) noise is added to the sum before division. The “DP” experiment sweeps σ and reports accuracy and the computed ε.
Defenses
- Choose C near the median update norm
- A large number of clients dilutes the noise
- Compute ε taking the sampling probability into account
Limits
The ε shown in the simulator is an educational computation under assumptions (Poisson sampling) and depends on its small client count; do not use it to claim protection for a real system.
Related experiments
References
- McMahan, Ramage, Talwar, Zhang (2018). Learning Differentially Private Recurrent Language Models. arXiv:1710.06963 (preprint). Link
- Abadi, Chu, Goodfellow, McMahan, Mironov, Talwar, Zhang (2016). Deep Learning with Differential Privacy. ACM CCS 2016, pp. 308-318. doi:10.1145/2976749.2978318
