beginnerFederated learning trains one shared model on data held by several parties. Raw data stays with each party; instead, model updates (parameters or parameter differences) travel to a coordinating server that combines them.
DetailsbeginnerIn centralized learning, data is gathered in one place. In distributed learning inside a data center, homogeneous data under one owner is sharded over machines to speed training. In federated learning the data is alread…
DetailsintermediateYang et al. (2019) classify federated learning by overlap of samples and features: horizontal (same features, different samples), vertical (same samples, different features), and federated transfer learning (little over…
DetailsintermediateCross-device: a huge number of resource-limited devices (phones) participating intermittently. Cross-silo: a small number of institutions (hospitals, banks) with good resources, stable links, and known identities.
DetailsintermediateLi et al. (2020) name four challenges: communication cost, systems heterogeneity, statistical heterogeneity, and privacy.
DetailsintermediateData is IID when each client's samples are drawn from the same global distribution. In practice distributions differ: label skew, feature shift, or quantity skew.
DetailsadvancedThe goal is to minimize the global loss, a weighted average of client losses, where client k has local loss F_k on its data D_k.
DetailsbeginnerA round consists of: selecting participating clients, sending the model, local training, sending updates, aggregation, and updating the global model.
DetailsintermediateCommunication is the main bottleneck; cost is rounds × model size × participating clients × 2 (download and upload).
DetailsintermediateEach round a fraction C of clients participates. Some may drop out after being selected; the server aggregates only those who reported and renormalizes weights over participants.
DetailsintermediateE is the number of passes over a client's data per round. FedSGD is a special case: one gradient step on all local data.
DetailsintermediateA single average accuracy is not enough: look at per-client accuracy, the worst client, the standard deviation across clients, rounds to reach a target, and communication volume.
DetailsbeginnerNot moving data reduces exposure but is not a guarantee: an observer of updates may try to reconstruct data (gradient leakage) or infer whether a record was used in training (membership inference).
DetailsbeginnerPopular frameworks: Flower (flwr), TensorFlow Federated (TFF), PySyft, FATE, and NVIDIA FLARE. They differ in simulation support, real deployment and languages.
DetailsintermediateIf data can legally and technically be pooled safely, and communication or coordination is costly, centralized training may be simpler and more accurate.
DetailsbeginnerClient: a party that holds data and trains locally. Server: coordinates and aggregates. Round: one broadcast-train-aggregate cycle. Local epoch: a local pass over data. Aggregation: combining updates. Global model: the …
Details