Home▸AI & Machine Learning▸Federated Learning Simulation

🧪 Federated Learning Simulation

Interactive federated-learning simulator: watch six clients with non-IID data train a shared global model with FedAvg, then blend in local fine-tuning to see the personalization/generalization tradeoff in real time.

AI & Machine Learning2DModerate60 FPS📱 Mobile-adapted
ai-advanced-federated-learning-simulation ↗ Open standalone

Federated learning trains one shared model across many devices without ever collecting their raw data — but real devices rarely hold identical data (non-IID), so a single global model is always a compromise. This simulator runs a real FedAvg loop across six clients with their own rotated decision boundaries: each round every client takes local logistic-regression gradient steps and the server averages the resulting weights into a new global model. A personalization slider then blends each client's local fine-tuned weights back in, so you can watch the accuracy/generalization trade-off play out live as points flip between correctly and incorrectly classified.

⚙ Under the hood

This simulation demonstrates the concept of federated learning, where machine learning models are trained across multiple devices without exchanging data. It showcases distributed training approaches.

Federated LearningAI Simulation

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

What did you find?

Add reproduction steps (optional)