TL;DR
This paper introduces FedSynth, a novel approach to reduce communication costs in federated learning by having clients send synthetic data instead of model updates. This synthetic data allows the server to reconstruct local model updates, achieving comparable or better performance than traditional compression methods like random masking, especially under high compression.
What Problem Does This Paper Address?
Federated Learning (FL) enables training machine learning models across decentralized devices without directly accessing user data. However, a major bottleneck is the high communication cost, especially for large models. Traditional FL methods like FedAvg require clients to send their entire model updates to the server, which can be prohibitively expensive. Existing compression techniques, such as sparsification (e.g., masking, quantization), often lead to a trade-off between compression rate and model accuracy, degrading performance significantly at higher compression levels. This paper addresses the need for a communication-efficient FL method that maintains high model utility even with substantial compression.
Methods
The core idea of FedSynth is to replace the transmission of model updates with the transmission of a small, carefully crafted synthetic dataset. Each client generates a synthetic dataset that, when used to train the model locally, results in a model update similar to what would be achieved using the client's real data.
The process involves:
- Synthetic Data Generation: Each client initializes a synthetic dataset.
- Local Optimization: Clients then optimize this synthetic dataset. The objective is to find a synthetic dataset
Dsynsuch that the model updated usingDsyn(wsyn) performs as well on the client's true training data (Dtr) as a model updated usingDtrdirectly. This is formalized as minimizingFk(Dtr; ClientUpdatek(Dsyn; wt)), whereClientUpdatekrepresents the local optimization process (e.g., SGD). - Transmission: Clients send this optimized synthetic dataset to the server.
- Server Reconstruction: The server uses the received synthetic data to reconstruct the local model update for each client.
- Aggregation: The server aggregates these reconstructed updates to form the new global model, similar to standard FL aggregation.
A key innovation is the flexibility in how clients learn the synthetic data. The paper proposes an algorithm that uses gradient descent on the synthetic data itself. Notably, they also explore training the labels of the synthetic data, rather than fixing them to one-hot encodings, to potentially improve performance.
Datasets
The paper evaluates FedSynth on three common federated learning benchmark datasets:
- FEMNIST: An extension of MNIST for handwritten letters, used for a 62-class image classification task.
- MNIST: A standard dataset for 10-class image classification.
- Reddit: A dataset used for next-word prediction, a text-based task.
These datasets are naturally partitioned among users, reflecting a realistic federated learning scenario.
Key Insights and Ideas
- Synthetic Data as a Communication Proxy: The fundamental insight is that a small synthetic dataset can encapsulate the "knowledge" needed to produce a useful model update, acting as an efficient proxy for the much larger model update itself.
- Decoupling Compression from Model Updates: Instead of directly compressing model weights or gradients, FedSynth compresses information by generating synthetic data. This sidesteps the direct accuracy-utility trade-off often seen in sparsification methods.
- Trainable Labels for Synthetic Data: Allowing synthetic data points to have trainable labels, rather than fixed one-hot encodings, can potentially improve the model's ability to capture nuances from the real data, though it doesn't always outperform fixed labels.
- Importance of Batching: The way synthetic data is used for local updates matters. Using multiple small batches of synthetic data leads to significantly better performance than using a single large batch, highlighting the benefit of iterative updates even with synthetic data.
Key Results
- Comparable or Better Performance: FedSynth consistently achieves comparable or better test accuracy than random masking baselines across all three datasets (FEMNIST, MNIST, Reddit) at various compression rates.
- Advantage at Low Compression: The method shows a particular advantage over random masking at low compression rates.
- Robustness on Sensitive Tasks: On the Reddit dataset, which is highly sensitive to compression, FedSynth (even without trainable labels) achieves higher test accuracy than prior works.
- Impact of Synthetic Data Configuration: Table 2 demonstrates that using more synthetic batches and smaller batch sizes generally leads to better model performance, with a single large batch rendering the model barely useful.
Limitations and Future Work
- Scalability: The authors acknowledge that learning synthetic data currently requires more iterations, and they aim to make the algorithm more scalable in the future.
- Privacy: A significant future direction is exploring how to send differentially private synthetic data to protect local data from potential privacy leakage.
- Generalization of ClientUpdate: While the paper proposes an algorithm for FedAvg, the formulation of optimizing synthetic data is general and could potentially be adapted to other local optimization methods.
Summary updated