Federated Learning with Diffusion Models for Privacy-Sensitive Vision Tasks

Ye Lin Tun, Chu Myaet Thwal, Ji Su Yoon, Sun Moo Kang, Chaoning Zhang, Choong Seon Hong · DOI

Introduction

Diffusion models have emerged as a state-of-the-art approach for image synthesis, yet their reliance on massive, centralized datasets presents significant hurdles in privacy-sensitive domains. In fields such as healthcare, legal and ethical constraints prevent the aggregation of raw data—such as patient CT scans or X-rays—into a single repository. This paper introduces FedDM, a framework designed to bridge the gap between high-fidelity generative modeling and decentralized data privacy by applying Federated Learning (FL) to the diffusion training process.

The FedDM Framework

FedDM integrates the standard Denoising Diffusion Probabilistic Model (DDPM) into the Federated Averaging (FedAvg) algorithm. This approach allows a global model to learn from distributed data silos without the raw data ever leaving its local environment.

The training process follows a cyclical communication loop:

  1. Global Broadcast: A central server distributes the current global model weights to a subset of participating clients.
  2. Local Training: Each client performs local optimization using their private data. They minimize the standard diffusion objective: predicting the noise added to an image at various timesteps.
  3. Weight Aggregation: Clients transmit their updated weights back to the server. The server then performs a weighted average of these updates (proportional to each client's data size) to produce an improved global model.
  4. Iteration: This process repeats for hundreds of rounds until the global model achieves convergence.

To simulate real-world complexities, the researchers utilized a Dirichlet distribution to control data heterogeneity. This allowed for the testing of "non-IID" (not identically and independently distributed) scenarios, where individual clients might possess highly specific data distributions, such as a hospital specializing in a particular pathology.

Experimental Evaluation

The study evaluated FedDM across four diverse datasets to test its robustness and utility:

  • CIFAR-10 & Fashion-MNIST: Standard benchmarks for small-scale color and grayscale image synthesis.
  • SVHN (Street View House Numbers): A large-scale dataset of cropped house numbers used to test performance at scale.
  • SARS-CoV-2 CT-scan: A specialized medical dataset containing 2,482 CT scans, serving as a primary use case for privacy-critical generative tasks.

Results and Key Insights

The "Privacy Tax" and Performance Gap

The experiments revealed a clear performance disparity between centralized and federated training, often referred to as a "privacy tax." On the CIFAR-10 dataset, the centralized baseline achieved a Fréchet Inception Distance (FID) of 11.70, whereas the FedAvg implementation reached 22.67. While the federated models produced perceptually recognizable images, they exhibited higher FID scores and slight blurriness compared to centralized counterparts.

Impact of Data Heterogeneity

Data heterogeneity proved to be a significant challenge. As the data distribution became more non-IID, the global model's performance declined. This is attributed to "client drift," where local models optimize toward their specific local data distributions, making the resulting weight average less representative of the overall global distribution. Interestingly, this bias suggests that FL could be repurposed for personalized generative services, where models are tailored to a specific user's style or local requirements.

Compute vs. Communication Trade-offs

The researchers found that increasing the number of local epochs ($E$)—the amount of training performed on-device before communication—significantly improved image quality. For the SVHN dataset, increasing $E$ from 1 to 10 reduced the FID score from 52.85 to 17.31. This indicates that intensive local computation is a vital lever for improving diffusion model performance in federated settings.

Medical Feasibility

In the SARS-CoV-2 CT-scan task, FedDM successfully generated synthetic CT scans that were perceptually similar to real medical images. Although the FID score was higher than the centralized baseline (134.98 vs. 48.17), the results demonstrate the feasibility of using FL to generate synthetic medical data for downstream tasks without compromising patient confidentiality.

Discussion and Future Work

While FedDM proves the viability of federated diffusion models, several challenges remain:

  • Communication Overhead: Diffusion models typically utilize large U-Net backbones, making the frequent exchange of model weights bandwidth-intensive.
  • Algorithmic Refinement: The current study utilized basic FedAvg. Future research may benefit from more advanced FL algorithms like FedProx or Scaffold, which are specifically designed to mitigate the effects of non-IID data.
  • Clinical Validation: For medical applications, synthetic images require validation by medical professionals to ensure clinical accuracy and utility for diagnostic augmentation.

In conclusion, FedDM represents a significant step toward privacy-preserving generative AI, offering a framework that respects data sovereignty while harnessing the power of diffusion-based synthesis.

Summary updated

BibTeX
@misc{tun2023federated,
  author = {Ye Lin Tun and Chu Myaet Thwal and Ji Su Yoon and Sun Moo Kang and Chaoning Zhang and Choong Seon Hong},
  title = {{Federated Learning with Diffusion Models for Privacy-Sensitive Vision Tasks}},
  year = {2023},
  eprint = {2311.16538},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.16538},
}
Figure