Federated Learning Empowered by Generative Content

Rui Ye, Xinyu Zhu, Jingyi Chai, Siheng Chen, Yanfeng Wang · DOI

Abstract

Federated Learning (FL) enables collaborative model training without sharing raw data, yet it is frequently hampered by data heterogeneity (non-IID data) across clients. We introduce FedGC (Federated Learning with Generative Content), a novel framework that utilizes generative models—such as Stable Diffusion and LLMs—to supplement local private data with synthetic samples. By diversifying local datasets, FedGC effectively mitigates model divergence, leading to significant accuracy improvements and enhanced privacy preservation.

Introduction: The Challenge of Data Heterogeneity

The primary obstacle in Federated Learning is the lack of Independent and Identically Distributed (IID) data. In real-world scenarios, clients often possess highly biased datasets (e.g., one client having only images of cats while another has only dogs). This heterogeneity causes local models to diverge significantly, making global aggregation difficult and degrading overall performance. Conventional optimization-based solutions often fail to address the root cause: the underlying data bias.

The FedGC Framework

FedGC addresses heterogeneity at the data level by providing each client with a public generative model to "fill in the gaps" of their local data. The framework is structured around four key design facets:

  1. Budget Allocation: Determining the volume of synthetic data to generate, potentially prioritizing clients with smaller local datasets.
  2. Prompt Design: Utilizing LLMs to generate diverse textual descriptions, ensuring the synthetic data covers a wide range of variations.
  3. Generation Guidance: A technical core of FedGC is Real-data-guidance. For image tasks, real images are encoded into a latent space, noised, and used as seeds for Diffusion Models, ensuring synthetic data remains relevant to the specific local task.
  4. Mixed Training: Local models are trained on a combined dataset of original private data and the newly generated synthetic content.
Overview of the FedGC framework and its four design facets for local model training.

Experimental Evaluation

FedGC was evaluated across diverse modalities, including image datasets (CIFAR-10, EuroSAT, PACS, VLCS, HAM10000) and text datasets (Sentiment140, Yahoo! Answers). It was compared against six major FL baselines, including FedAvg, FedProx, and SCAFFOLD.

Key Results

FedGC consistently outperformed all vanilla FL baselines. Notably, on the EuroSAT satellite imagery dataset with high heterogeneity, accuracy improved by 21.01%. Across all tested baselines, the framework provided an average accuracy boost of approximately 12%.

Accuracy comparison between Vanilla FL and FedGC across different baselines for Sentiment140 and Yahoo! Answers datasets.

Insights: Privacy and Diversity

A significant finding is the Privacy-Accuracy Win-Win. Typically, increasing model accuracy involves risks to data privacy. However, by augmenting private data with synthetic samples, FedGC prevents local models from overfitting on sensitive details. This makes the resulting models more robust against Membership Inference Attacks.

Furthermore, the study suggests that Diversity outweighs Fidelity. Even if generated samples are not perfectly realistic, the diversity they introduce acts as a powerful regularizer, preventing local models from drifting too far apart during the federated process.

Conclusion and Future Work

While FedGC offers a powerful solution to data heterogeneity, it introduces computational overhead for one-shot data generation on client devices. Future research will focus on optimizing these costs, improving the filtering of low-quality synthetic samples, and exploring personalized generation techniques like LoRA to further align synthetic data with local client environments.

Summary updated

BibTeX
@misc{ye2023federated,
  author = {Rui Ye and Xinyu Zhu and Jingyi Chai and Siheng Chen and Yanfeng Wang},
  title = {{Federated Learning Empowered by Generative Content}},
  year = {2023},
  eprint = {2312.05807},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.05807},
}
Figure