Federated Learning via Synthetic Data

Jack Goetz, Ambuj Tewari

Introduction

Federated Learning (FL) has emerged as a standard framework for training machine learning models on decentralized data without compromising user privacy. However, a primary bottleneck in FL is the high communication cost associated with transmitting large model updates (gradients) from clients to a central server. For modern neural networks with millions of parameters, these updates can be prohibitively large for users on slow or metered connections. This paper proposes a radical alternative: instead of transmitting model gradients, clients send a small set of optimized synthetic data points that "distill" the local knowledge.

Methodology

The core of the proposed method is Dataset Distillation. Rather than sending the raw mathematical difference between model weights, the client creates a tiny synthetic dataset designed to produce a similar update when trained upon by the server.

Workflow of the proposed federated learning method using dataset distillation.

The workflow consists of four main stages:

  1. Local Training: The client trains on private data to determine the "true" model update.
  2. Distillation: The client optimizes a small set of synthetic data points and "soft labels" (probability distributions) to match the true update in parameter space.
  3. Transmission: Only the synthetic data and labels are sent to the server.
  4. Reconstruction: The server reconstructs the update by taking gradient steps on the received synthetic data.

To ensure computational efficiency, the authors utilize Pearlmutter’s trick to calculate Hessian-vector products, keeping the complexity linear relative to the number of parameters.

Experimental Results

The method was evaluated using a standard Convolutional Neural Network (CNN) on the MNIST dataset under both Independent and Identically Distributed (IID) and non-IID settings. In the non-IID scenario, data is sharded such that each client only observes two classes, representing a more realistic and challenging federated environment.

Performance comparison between synthetic data FL and full FL under non-IID client partitioning.

Communication Efficiency

The synthetic data approach achieved a massive reduction in communication overhead. For the MNIST CNN, transmitting 50 synthetic data points required approximately 40,000 floats, compared to 1.6 million floats for a full gradient update—a 97.6% reduction (1/40th the size).

Model Performance

As shown in the experimental results, the synthetic data approach (Synthetic data FL) performs comparably to standard FL (Full FL). While there is a slight lag in accuracy, the synthetic method follows the same general learning curve. Furthermore, the authors demonstrated that this approach could be extended to server-to-client downloads, achieving a 90% reduction in download costs with minimal impact on final accuracy.

Discussion and Limitations

While the communication savings are significant, they come at the cost of increased local computation. Generating synthetic data requires approximately 5.5x more computation than standard local training. Additionally, the use of synthetic data raises potential privacy concerns, as distilled images might inadvertently reveal features of the private training data. The authors suggest that integrating Differential Privacy (DP) could mitigate these risks.

Conclusion

This research demonstrates that viewing a neural network's training process as a "decompression" of synthetic data can lead to dramatic improvements in communication efficiency for Federated Learning. By transmitting information-dense synthetic examples rather than raw gradients, the proposed method offers a promising path toward scalable and efficient decentralized machine learning. Future work will focus on scaling this approach to high-resolution datasets and more complex model architectures.

Summary updated

BibTeX
@misc{goetz2020federated,
  author = {Jack Goetz and Ambuj Tewari},
  title = {{Federated Learning via Synthetic Data}},
  year = {2020},
  eprint = {2008.04489},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2008.04489},
}
Figure