A Distributed Training Algorithm of Generative Adversarial Networks with Quantized Gradients

Xiaojun Chen, Shu Yang, Li Shen, Xuanrong PangarXiv 2020

Introduction

Training Generative Adversarial Networks (GANs) is a notoriously difficult "min-max" optimization problem. Unlike standard deep learning models that minimize a single loss function, GANs involve a generator and a discriminator in a zero-sum game. This setup is mathematically non-convex and non-concave, making convergence fragile; standard optimization often leads to mode collapse or oscillations.

Distributed training offers a potential speedup, but it introduces a significant bottleneck: communication overhead. In a parameter-server model, workers must constantly exchange massive gradient vectors. While gradient quantization (e.g., reducing 32-bit floats to 8-bit integers) reduces this overhead in standard classifiers, it often destabilizes the delicate equilibrium required for GAN training.

The DQGAN Framework

The authors propose DQGAN (Distributed Quantized GAN), the first distributed training algorithm for GANs that successfully utilizes quantized gradients to reduce communication costs while maintaining training stability.

The distributed training architecture of DQGAN, showing the interaction between the central server and multiple workers.

DQGAN is built on three core components:

  1. Optimistic Mirror Descent (OMD): OMD incorporates a "lookahead" step using the gradient from the previous iteration. This helps prevent the "cycling" behavior common in adversarial training.
  2. Compressor-Agnostic Design: The algorithm supports any quantization method satisfying a $\delta$-approximate property, providing flexibility for different hardware constraints.
  3. Error-Feedback Mechanism: This is the critical innovation. DQGAN tracks the information lost during quantization (the "bias") and compensates for it in subsequent iterations. This ensures the correct gradient direction is maintained over time despite low-precision communication.

Experimental Evaluation

The researchers evaluated DQGAN on the CIFAR-10 and CelebA datasets. They compared DQGAN against full-precision centralized parallel Optimistic Adam (CPOAdam) and a naive quantized version (CPOAdam-GQ).

Performance comparison on CIFAR-10: Inception Score (left) and Fréchet Inception Distance (right) across training epochs.

Key Results

  • Efficiency: DQGAN achieved a near-linear training speedup. By using 8-bit gradients, communication volume was reduced by 75%, significantly improving throughput as the number of GPUs increased to 32.
  • Quality: On CIFAR-10, DQGAN's performance was comparable to full-precision models. While naive quantization (CPOAdam-GQ) led to erratic behavior, DQGAN maintained smooth convergence and high image quality, with only a minor decrease in Inception Score (~0.6) and a slight increase in FID (~30) compared to full-precision baselines.
  • Stability: The error-feedback mechanism proved essential. Without it, the quantization noise disrupted the min-max balance, leading to poor results.

Conclusion and Future Work

DQGAN demonstrates that communication-efficient distributed training is possible for GANs through the combination of optimistic optimization and error-feedback. While the current implementation uses a synchronous framework—where workers must wait for the slowest "straggler"—future work aims to extend these principles to asynchronous communication. This would further reduce the synchronization barrier and optimize performance in heterogeneous computing environments.

Summary updated

BibTeX
@misc{chen2020distributed,
  author = {Xiaojun Chen and Shu Yang and Li Shen and Xuanrong Pang},
  title = {{A Distributed Training Algorithm of Generative Adversarial Networks with Quantized Gradients}},
  year = {2020},
  eprint = {2010.13359},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.13359},
}
Figure