Home Knowledge Base Federated Learning

Federated Learning is the distributed machine learning paradigm where multiple clients (mobile devices, hospitals, organizations) collaboratively train a shared model without sharing their raw data — each client trains on local data and sends only model updates (gradients or weights) to a central server that aggregates them, preserving data privacy and data sovereignty while enabling model training across decentralized datasets that cannot be centralized due to privacy regulations (GDPR, HIPAA), competitive concerns, or communication constraints.

Federated Averaging (FedAvg)

The foundational algorithm (McMahan et al., Google, 2017): 1. Server broadcasts current global model W_t to a subset of clients (10-1000 per round). 2. Each selected client trains the model on its local data for E local epochs (E=1-5) using SGD. 3. Each client sends its updated model W_t^k back to the server. 4. Server aggregates: W_{t+1} = Σ_k (n_k/n) × W_t^k (weighted average by dataset size). 5. Repeat for 100-1000 communication rounds.

Communication efficiency: instead of sending gradient updates every batch (100K batches per epoch), each client sends one model update per round after E full epochs — 1000-100,000× fewer messages.

Challenges

Non-IID Data: Different clients have different data distributions. A hospital in Japan has different patient demographics than one in Nigeria. Non-IID data causes client models to diverge — averaging divergent models can produce a worse global model than any individual client's model.

Communication Efficiency: Model updates are large (hundreds of MB for modern models). Mobile networks have limited bandwidth.

Privacy Guarantees

FedAvg alone does not guarantee privacy — model updates can leak information:

Applications

Federated Learning is the privacy-preserving paradigm that enables collaborative AI without data centralization — the technical infrastructure for training models across organizational and regulatory boundaries, proving that strong AI and strong privacy are not mutually exclusive.

federated learning privacydistributed model training privacydifferential privacy machine learningsecure aggregation modelfederated averaging algorithm

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.