Menu

Federated Learning: Why Averaging Model Updates Works - and When It Fails
📰

Federated Learning: Why Averaging Model Updates Works - and When It Fails

DEV Community: deeplearning·Umesh Tharuka Malaviarachchi·about 10 hours ago
#dH9GqKGj
#devtodeeplearning#education#devto#dev#client
Reading 0:00
15s threshold

Most machine learning still assumes a convenient fiction: all the data sits in one place, ready to be shuffled, split, and trained on. Real data rarely cooperates. It lives on phones, in hospitals, in banks, and in factories, where moving it is expensive, slow, or simply not allowed. Federated learning is the attempt to train anyway, without centralising the data.

The core idea is disarmingly simple. Instead of sending data to the model, send the model to the data. Each client trains locally, sends back only an update, and a server averages those updates into a new global model. That averaging step, called Federated Averaging or FedAvg, looks almost too naive to work. Understanding why it usually does work, and exactly where it breaks, is the key to using it well.

The problem FedAvg solves

Suppose there are K clients. Client k holds n_k examples, and n is the total number of examples across all clients.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.