Federated Generative Learning with Foundation Models

Jie Zhang, Xiaohua Qi, Bo Zhao · DOI

Introduction

Traditional Federated Learning (FL) faces significant hurdles as model sizes grow. Synchronizing billions of parameters across edge devices leads to high communication costs, while data heterogeneity (non-IID data) causes local models to drift, degrading global performance. Furthermore, sharing gradients or weights exposes clients to privacy risks like gradient inversion attacks.

Federated Generative Learning (FGL) proposes a paradigm shift: instead of sharing model weights, clients share the semantic essence of their data via text embeddings. This allows a central server to use a foundation generative model to synthesize a high-quality proxy dataset, enabling efficient "one-shot" learning that often outperforms traditional methods.

Methodology: The FGL Framework

FGL treats the central server as a "data factory" powered by generative AI. The process involves three main stages:

  1. Prompt Generation and Embedding: Clients analyze local data to generate descriptive text prompts. This can be done at a class level (e.g., "A photo of a bird") or an instance level using models like BLIP-2 to describe specific images. These prompts are converted into low-bandwidth text embeddings using a frozen CLIP encoder.
  2. Data Synthesis: The server aggregates these embeddings and uses a foundation model, such as Stable Diffusion, to generate synthetic images. These images serve as a privacy-preserving proxy for the clients' actual data.
  3. Global Training: The server trains the global model on this synthetic dataset. In many cases, a single round of this process (one-shot) is sufficient to achieve high accuracy.
The FGL pipeline and client-side embedding generation.

Experimental Setup

The authors evaluated FGL across 12 diverse datasets, including ImageNet subsets (ImageNette, ImageFruit, etc.), fine-grained recognition tasks (CUB-200, Stanford Cars), and challenging domains like satellite imagery (EuroSAT) and medical imaging (BloodMNIST, DermaMNIST). This broad range tests the framework's robustness to various data distributions and domain gaps.

Results and Discussion

FGL demonstrates remarkable efficiency and performance. On several natural image datasets, a single round of FGL outperformed 200 rounds of the standard FedAvg algorithm. For instance, on ImageNet100 with highly skewed data, FGL achieved a 12% accuracy boost over FedAvg in just one round.

Performance comparison between one-shot FGL and 200-round FedAvg.

Key Insights

  • Efficiency: FGL drastically reduces communication overhead by replacing hundreds of weight-syncing rounds with a one-time transmission of text embeddings.
  • Robustness to Heterogeneity: By synthesizing a balanced dataset from all client inputs, the server naturally mitigates the "local drift" problem common in non-IID settings.
  • Privacy Resilience: Text embeddings provide a "privacy buffer." The synthetic images share semantic meaning with private data but do not replicate exact pixels, making the model more resistant to membership inference attacks.
  • Domain Sensitivity: The success of FGL is tied to the foundation model's "world knowledge." While it excels in natural image domains, specialized fields like medical imaging may require additional rounds or fine-tuning to bridge the domain gap.

Conclusion

Federated Generative Learning offers a compelling alternative to weight-based FL, particularly in the era of foundation models. By leveraging the creative capabilities of generative AI, FGL achieves superior communication efficiency and privacy. Future research will focus on bridging domain discrepancies through local fine-tuning and exploring more sophisticated prompting techniques to capture complex data textures.

Summary updated

BibTeX
@misc{zhang2023federated,
  author = {Jie Zhang and Xiaohua Qi and Bo Zhao},
  title = {{Federated Generative Learning with Foundation Models}},
  year = {2023},
  eprint = {2306.16064},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.16064},
}
Figure