Federated learning is a machine learning technique that trains models across decentralized data sources without sharing raw data. Here's how it works in five steps:
-
Initialize Global Model: A central server creates an initial model (e.g., neural network weights) and distributes it to participating devices.
-
Local Training: Each device trains the model on its local data. No raw data leaves the device—only model updates (gradients or weights) are computed.
-
Send Updates: Devices send their encrypted model updates back to the central server.
-
Aggregate Updates: The server combines updates (e.g., via Federated Averaging) to improve the global model.
-
Repeat: Steps 1–4 repeat for multiple rounds until the model converges.
This approach preserves privacy by keeping data local while enabling collaborative learning. It's widely used in applications like predictive text on smartphones and medical imaging.