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
Gradient leakage and data reconstruction
Privacy and Security · Privacy and security
The idea
Model gradients on a small batch may contain enough information to reconstruct inputs by optimizing dummy data until its gradients match the observed ones (Zhu & Han, 2020).
The risk
A server or observer that sees an individual update may try to reconstruct images or text; this is easier with small batches and simple models.
How it works
iDLG (Zhao et al., 2020) shows that the label can be extracted analytically from the last layer's gradient under cross-entropy. The “gradient leakage” experiment here performs real reconstruction on 8×8 digits for a linear model and reports relative error and PSNR versus batch size.
Defenses
- Larger batches and multi-step updates (harder but not prevented)
- Update clipping plus noise (differential privacy)
- Secure aggregation so the server never sees an individual update
Limits
The experiment uses a small linear model and says nothing about reconstructing real hospital images; deeper and larger models need other attacks.
Related experiments
References
- Zhu, Han (2020). Deep Leakage from Gradients. Federated Learning, LNCS, Springer, pp. 17-31. doi:10.1007/978-3-030-63076-8_2
- Zhao, Mopuri, Bilen (2020). iDLG: Improved Deep Leakage from Gradients. arXiv:2001.02610 (preprint). Link
