Techniques
Federated Learning
Federated learning is a technology that allows joint model training "without the data leaving the local site", and its core is privacy protection.
The problem it solves
Training a good model requires lots of data, but in reality data is scattered across institutions and highly sensitive: hospitals cannot share medical records, and banks cannot exchange customer transactions.
Federated learning allows all parties to exchange only model parameters, not raw data.
Workflow
- The server distributes an initial model to each participant
- Each party trains on local data and obtains parameter updates
- Only the updated parameters (or gradients) are uploaded to the server
- The server aggregates all updates to obtain a new global model
- Repeat the above until convergence
The raw data always stays local and never leaves.
Two types
- Horizontal federation: parties share the same data features but different samples (similar cases from multiple hospitals)
- Vertical federation: parties share the same samples but different features (a bank has spending data, an e-commerce company has shopping data)
Challenges
- High communication overhead: model parameters are transmitted repeatedly, creating bandwidth pressure
- Non-IID data: data distributions differ greatly across parties, affecting convergence
- Security risk: parameter updates may themselves leak information, needing differential privacy or secure aggregation