Federated Learning with GAN-based Data Synthesis for Non-IID Clients

Zijian Li, Jiawei Shao, Yuyi Mao, Jessie Hui Wang, Jun Zhang

Abstract

Federated Learning (FL) is often hindered by the Non-Independent and Identically Distributed (Non-IID) nature of client data, which leads to significant model divergence. This paper discusses Synthetic Data Aided Federated Learning (SDA-FL), a framework that utilizes Differentially Private Generative Adversarial Networks (DP-GANs) to generate and share synthetic data. By combining local private data with a globally shared synthetic dataset and employing an iterative pseudo-labeling mechanism, SDA-FL effectively mitigates the distribution gap between clients. Experimental results across multiple benchmarks, including a COVID-19 medical dataset, demonstrate that SDA-FL significantly outperforms traditional FL methods in extreme non-IID scenarios.

1. Introduction

Federated Learning (FL) has emerged as a promising paradigm for privacy-preserving collaborative machine learning. By allowing clients to train models locally and share only model updates with a central Parameter Server (PS), FL avoids the risks associated with raw data centralization. However, the practical deployment of FL faces a critical challenge: Non-IID data distribution. When clients possess data from different distributions (e.g., varying classes or features), local models tend to drift toward local optima, resulting in a suboptimal aggregated global model.

Existing approaches to mitigate this drift include model regularization and simple data augmentation. However, these methods often struggle in extreme non-IID cases or may inadvertently leak private information. To address these limitations, the SDA-FL framework introduces a privacy-preserving synthetic data sharing mechanism that homogenizes the training distribution without compromising raw data privacy.

2. The SDA-FL Framework

The SDA-FL methodology integrates GAN-based synthesis into the standard FL pipeline through five key stages:

2.1 Local DP-GAN Pretraining

Prior to the collaborative training phase, each client trains a local Wasserstein GAN with Gradient Penalty (WGAN-GP). To ensure formal privacy guarantees, Gaussian noise is injected into the training process, adhering to the principles of Differential Privacy (DP). This ensures that the generated synthetic samples do not reveal sensitive information about the underlying raw data.

2.2 Global Synthetic Dataset Construction

Once the local GANs are trained, clients generate and upload a set of synthetic samples to the Parameter Server. These samples are aggregated to form a global synthetic dataset. Because the GANs are trained in an unsupervised manner, this dataset initially lacks labels.

2.3 Iterative Pseudo-Labeling

To utilize the unlabeled synthetic data, SDA-FL employs an iterative pseudo-labeling mechanism. The PS uses the current global model (or aggregated local models) to predict labels for the synthetic dataset. As the FL process progresses and the model accuracy improves, these pseudo-labels become increasingly reliable, creating a positive feedback loop between model quality and data labeling.

2.4 Synthetic Data Aided Training

During local training rounds, clients utilize a Mixup strategy. This involves creating linear interpolations between their private local data and the shared synthetic data. This process effectively "fills in" the missing parts of the local distribution, reducing the divergence between client models.

2.5 Server-Side Updates

In addition to standard model averaging, the PS performs direct updates on the global model using the synthetic dataset and their corresponding pseudo-labels. This further stabilizes the global model against local drift.

3. Experimental Evaluation

The framework was evaluated on standard benchmarks (MNIST, FashionMNIST, CIFAR-10, and SVHN) and a real-world COVID-19 chest X-ray dataset.

3.1 Performance in Extreme Non-IID Scenarios

SDA-FL demonstrates remarkable resilience to data skew. In a FashionMNIST experiment where each client held only one class of data, SDA-FL achieved an accuracy of 85.70%, compared to a mere 16.50% for the standard FedAvg algorithm. On CIFAR-10 with three classes per client, SDA-FL reached 84.56% accuracy, surpassing FedAvg (79.33%) and FedMix (79.49%).

3.2 Medical Application

In the high-stakes context of COVID-19 diagnosis, SDA-FL achieved 96.25% accuracy. Notably, this performance exceeded a theoretical "IID" version of FedAvg (95.19%), suggesting that the synthetic data serves as a powerful regularizer that enhances generalization beyond what is possible with raw data alone.

4. Discussion

The success of SDA-FL is rooted in the "interplay effect" between model training and pseudo-labeling. Improved models yield better labels, which in turn facilitate better training. Furthermore, the framework manages the privacy-utility trade-off effectively; even with a strict privacy budget (epsilon=5), the framework maintains high classification accuracy despite an increase in the Fréchet Inception Distance (FID) of the synthetic images.

5. Conclusion and Future Work

SDA-FL provides a robust solution for the Non-IID challenge in Federated Learning by leveraging DP-GANs and pseudo-labeling. While the framework introduces some computational overhead due to local GAN training and initial communication costs for the synthetic dataset, its performance gains in skewed environments are substantial. Future research will explore more efficient GAN architectures and methods to further reduce the computational burden on edge devices.

Summary updated

Abstract

Federated learning (FL) has recently emerged as a popular privacy-preserving collaborative learning paradigm. However, it suffers from the non-IID (independent and identically distributed) data among clients. In this paper, we propose a novel framework, namely Synthetic Data Aided Federated Learning (SDA-FL), to resolve the non-IID issue by sharing differentially private synthetic data. Specifically, each client pretrains a local generative adversarial network (GAN) to generate synthetic data, which are uploaded to the parameter server (PS) to construct a global shared synthetic dataset. The PS is responsible for generating and updating high-quality labels for the global dataset via pseudo labeling with a confident threshold before each global aggregation. A combination of the local private dataset and labeled synthetic dataset leads to nearly identical data distributions among clients, which improves the consistency among local models and benefits the global aggregation. To ensure privacy, the local GANs are trained with differential privacy by adding artificial noise to the local model gradients before being uploaded to the PS. Extensive experiments evidence that the proposed framework outperforms the baseline methods by a large margin in several benchmark datasets under both the supervised and semi-supervised settings.
BibTeX
@inproceedings{li2022federated,
  author = {Zijian Li and Jiawei Shao and Yuyi Mao and Jessie Hui Wang and Jun Zhang},
  title = {{Federated Learning with GAN-based Data Synthesis for Non-IID Clients}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=8rpv8g3zfF},
}
Figure