Abstract
Wasserstein Generative Adversarial Networks (WGANs) provide a stable framework for image synthesis but are computationally demanding. Distributed training typically employs data-parallelism, which introduces significant communication overhead due to the frequent synchronization required between the generator and discriminators. We propose a novel parallel architecture that utilizes multiple independent, asynchronous discriminators. By eliminating parameter synchronization among workers and employing a semi-discrete optimal transport formulation, our method achieves near-linear speedup and superior image quality by treating the generator's output as the barycenter of distributed data partitions. Experimental results on CIFAR-10 and LSUN datasets demonstrate that our approach outperforms standard distributed WGAN-GP implementations in both convergence speed and final image fidelity.
1. Introduction
Generative Adversarial Networks (GANs) are powerful tools for data generation but are notoriously difficult to train. Wasserstein GANs (WGANs) improved training stability by utilizing the Wasserstein distance to measure the discrepancy between real and synthetic data distributions. However, the computational intensity of WGANs remains a barrier to large-scale application.
Standard distributed training relies on a parameter server model where multiple workers synchronize gradients. In GAN training, the discriminator is typically updated multiple times for every generator update. This "skewed" update pattern leads to a massive communication bottleneck in distributed environments, as GPUs frequently idle while waiting for network transfers and synchronization.
2. Proposed Parallel Architecture
To address these bottlenecks, we introduce a "Master-Worker" architecture designed for efficient parallelization.
2.1 Master-Worker Design
The architecture consists of a central Master Unit housing the Generator ($G$) and multiple Worker Units, each containing its own Discriminator ($D$) and a unique partition of the real dataset. The Master Unit generates synthetic images and broadcasts them to all workers.
2.2 Asynchronous Discriminators
Unlike standard data-parallelism, the discriminators on different workers do not synchronize their parameters. Each worker independently calculates a local Wasserstein distance based on its specific data partition. This diversity in discriminator "perspectives" prevents the generator from easily "cheating," leading to more robust training.
2.3 Semi-Discrete Optimal Transport
We utilize a semi-discrete Kantorovich dual formulation instead of the standard dual formulation. This approach involves calculating Voronoi cells to estimate probability mass, providing a more accurate evaluation of the Wasserstein distance. The generator is trained to minimize the average Wasserstein distance across all workers, effectively treating its output as the "barycenter" of the distributed real data distributions.
3. Experimental Results
The framework was evaluated on the CIFAR-10 and LSUN (Bedroom) datasets using a cluster of 8 NVIDIA GTX 1080 GPUs.
3.1 Speedup and Scalability
As shown in Figure 4, the proposed method achieves significantly better scalability than the standard MPI All-Reduce based WGAN-GP. On 8 GPUs, our method reached target convergence thresholds nearly twice as fast as the baseline. The speedup remains near-linear as the number of GPUs increases, demonstrating the effectiveness of removing the synchronization bottleneck.
3.2 Image Quality
The proposed architecture also yields superior image quality. On the LSUN Bedroom dataset, our method achieved a Frechet Inception Distance (FID) of 21.0, compared to 27.3 for the standard WGAN-GP. On CIFAR-10, it achieved an Inception Score (IS) of 7.81, outperforming the baseline of 7.73.
4. Discussion and Conclusion
By allowing discriminators to remain unsynchronized, we transform a primary parallelization weakness into a strength. The resulting diversity among discriminators enhances the generator's robustness.
While our method eliminates discriminator synchronization, the broadcast of generated data from the master to workers remains a potential bottleneck for extremely large-scale clusters. Future work will explore techniques to mitigate this overhead and extend the framework to other GAN variants. In conclusion, the proposed parallel WGAN architecture provides a scalable and effective solution for high-quality image synthesis in distributed environments.
Summary updated