Introduction to Federated Learning

25 Aug 2026

When I was in high school preparing group projects, my classmates and I often faced a dilemma when compiling our notes. We each had personal study diaries full of private annotations, shorthand tricks, and thoughts that we did not want everyone else to read.

At first we tried sharing the entire notebooks, but people felt uncomfortable having their private pages scrutinized. So we changed strategy: each of us studied at home, extracted only the high-level conclusions from our chapters, and brought those summaries to class to assemble the master project. No personal notes left our desks, yet the collective project was smarter than what any single one of us could have produced alone.

In Data Science we do something almost identical when we train models on decentralized data without shipping the raw records around: Federated Learning. The data stays on local devices—phones, regional hospitals, factory sensors—and only model updates (gradients, weights, or similar summaries) travel to a coordinator, or sometimes only between peers.

There are several ways to partition the problem

Architectures are usually classified by how features and samples are split across participants:

Aggregation and orchestration

Local updates still need a way to become a global model:

None of these choices is free. FedAvg is simple and often good enough; FedProx buys robustness under heterogeneity at the cost of an extra hyperparameter to tune; peer-to-peer removes a single point of failure but makes debugging and auditing harder.

Trade-offs that show up outside the paper

Final remarks

Federated Learning is really a negotiation between what you are allowed to move and what you need the model to learn. Regulations tighten, warehouses remain attractive targets, and more teams discover that “just centralize everything” is not an option. The study-group trick still holds: share the conclusions, keep the diaries at home, and only then ask whether the assembled project is good enough to ship.

In later essays we can dig into horizontal versus vertical pipelines in more detail, and into what changes when the local models are not neural nets but random forests or gradient boosting—settings that show up surprisingly often once you leave the textbook examples.