Idea · Aug 1, 2026
Federated Learning Privacy Lab
Students build and experiment with a browser-based federated learning simulation — local models, gradient aggregation, and adjustable differential privacy noise — so they can directly observe the privacy-utility tradeoff without any GPU or server setup.
What it would do
Federated Learning Privacy Lab is a multi-week capstone assignment for AI, ML, or data-privacy courses. Students implement a client-server FL system entirely in the browser using TensorFlow.js for training and a lightweight Flask server for gradient aggregation. A control panel lets students dial in the number of simulated clients, the dataset partition strategy (IID vs. non-IID), and the Laplace or Gaussian differential privacy noise level added to each gradient update before it leaves the client. A live dashboard shows model accuracy after each round, the privacy budget consumed (epsilon), and per-client gradient norms. A Claude-powered narrator explains what is happening at each training round in plain language, making the math approachable. Students submit a lab report analyzing specific scenarios: how much accuracy is lost per unit of privacy added, and when non-IID data distributions cause model divergence.
Key features
- Browser-based TF.js training for each simulated client — no GPU or cloud account needed
- Adjustable differential privacy noise (Laplace/Gaussian) with real-time epsilon budget meter
- IID vs. non-IID data partition toggle to observe statistical heterogeneity effects
- Claude-powered round-by-round narrator explaining aggregation and privacy mechanics