HomeMachine Learning & Neural NetworksSecure Aggregation in Federated Learning

Secure Aggregation in Federated Learning (2D)

Interactive 2D simulator of the pairwise-masking secure-aggregation protocol used in federated learning: watch pairwise random masks hide every client's raw update from the server while their sum still cancels out to the exact true aggregate.

Machine Learning & Neural Networks2DAdvanced60 FPS📱 Mobile-adapted⇄ 3D version
2d-ai-topic-36 ↗ Open standalone

Federated learning trains a shared model across many clients' private data without ever centralising it — but the model updates themselves can still leak information unless the server is prevented from seeing any single client's contribution. This 2D simulator renders each client as a node around a central server, applies the real pairwise-masking scheme used in production secure-aggregation protocols to a private per-client vector, and animates the masked values flowing to the server. Live readouts compare the true aggregate against what the server reconstructs after the masks cancel, a toggle exposes both the "server view" (masked, individually unreadable) and a "debug view" (raw values), and a dropout button demonstrates why real deployments need secret-sharing to stay correct when a client disappears mid-round.

⚙ Under the hood

Interactive 3D simulator of the pairwise-masking secure-aggregation protocol used in federated learning: client updates are individually hidden from the server, yet their sum still cancels the masks to reveal the exact true aggregate.

federated-learningsecure-aggregationprivacycryptographymachine-learningdistributed-systems

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)