FeGAN: Scaling Distributed GANs

Rachid Guerraoui, Arsany Guirguis, Anne-Marie Kermarrec, Erwan Le Merrer

Abstract

Training Generative Adversarial Networks (GANs) is computationally expensive and often suffers from communication bottlenecks and training instability in distributed environments. FeGAN is a novel middleware designed to scale GAN training across hundreds of distributed devices. By co-locating generators and discriminators on each device and employing strategies like balanced sampling and KL weighting, FeGAN achieves significant throughput gains and superior image quality compared to existing distributed approaches.

Introduction

Training GANs typically requires days of computation on high-end hardware. Distributing this workload is challenging due to two primary factors:

  1. Communication Bottlenecks: Traditional architectures often centralize the generator, requiring constant synchronization of high-dimensional data between the server and workers.
  2. Training Instability: In non-iid (non-independent and identically distributed) settings, GANs are prone to mode collapse or vanishing gradients as the competition between the generator and discriminator becomes unbalanced.

Methodology

FeGAN addresses these challenges through several key design innovations:

  • Co-location of G and D: Every device hosts a full GAN (generator $G$ and discriminator $D$). This enables local training and reduces network traffic to model weight updates rather than raw data or samples.
  • Balanced Sampling: The central server uses a priority queue of classes to select devices that provide a balanced representation of the global dataset, mitigating mode collapse.
  • Kullback-Leibler (KL) Weighting: Model updates are weighted based on the KL divergence between local and global data distributions, favoring devices that better represent the target distribution.
  • Heterogeneity Awareness: The system dynamically adjusts local batch sizes and iterations based on device hardware to prevent stragglers from slowing down the global training process.
FeGAN system architecture showing co-located generators (G) and discriminators (D) on distributed devices.

Experimental Setup

FeGAN was evaluated on standard image generation benchmarks including MNIST, Fashion-MNIST, CelebA, and a 100k subset of ImageNet. To simulate real-world conditions, the researchers utilized a custom distribution engine to create non-iid data partitions across devices.

Key Results and Insights

FeGAN demonstrates that distribution can actually enhance image quality. By providing the global model with a diverse ensemble of views, FeGAN achieved lower Fréchet Inception Distance (FID) scores than centralized baselines. For instance, on Fashion-MNIST, FeGAN reached an FID of ~50, while competing distributed models remained above 100.

Throughput performance: (a) Comparison between centralized and distributed training across datasets; (b) Scalability with increasing device counts.

Performance metrics highlight the system's efficiency:

  • Throughput: FeGAN achieved a 5x throughput increase over MD-GAN when scaled to 176 devices.
  • Scalability: Unlike previous methods that plateau, FeGAN exhibits near-linear scaling as shown in the experimental results.
  • Convergence: The system reached target quality levels 1.27x to 3.67x faster than standard Federated Learning.

Conclusion and Future Work

While FeGAN significantly improves distributed GAN training, challenges remain regarding privacy. Balanced sampling requires sharing class distribution metadata, which may be sensitive. Future work will focus on integrating formal Differential Privacy (DP) mechanisms and optimizing implementation bottlenecks, such as the GPU-to-CPU data transfers currently required for KL weighting calculations.

Summary updated

BibTeX
@inproceedings{guerraoui2020fegan,
  author = {Rachid Guerraoui and Arsany Guirguis and Anne-Marie Kermarrec and Erwan Le Merrer},
  title = {{FeGAN: Scaling Distributed GANs}},
  booktitle = {Middleware},
  year = {2020},
  doi = {10.1145/3423211.3425688},
}
Figure