Gradient Leakage Attack on Federated Learning
Interactive 3D demo of Deep Leakage from Gradients: watch an attacker reconstruct a client's private image from a single leaked gradient update in federated learning, and see how differential-privacy noise defeats the attack.
Federated learning promises that a client's raw data never leaves its device — only model gradients are shared. This simulator shows why that promise is weaker than it sounds: it implements a real, minimal version of the Deep Leakage from Gradients attack, where an adversary who intercepts a single leaked gradient runs its own gradient descent to reconstruct the private 8×8 image that produced it, watching a random noise grid converge pixel-by-pixel onto the hidden original. Sliders let you dial in the differential-privacy defenses real federated systems use — Gaussian noise injection and gradient clipping — and watch the reconstruction stall as the defenses strengthen, with live readouts tracking the gradient-matching loss, reconstruction error, and the leaked gradient's norm.
Watch an attacker reconstruct a client's private 8x8 image from a single leaked model gradient using real Deep Leakage from Gradients math, then dial in differential-privacy noise and gradient clipping to see the attack fail.
3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install