Abstract
Generative Adversarial Networks (GANs) are a powerful class of generative models in the deep learning community. Current practice on large-scale GAN training utilizes large models and distributed large-batch training strategies, and is implemented on deep learning frameworks designed in a centralized manner. In the centralized network topology, every worker needs to either directly communicate with the central node or indirectly communicate with all other workers in every iteration. However, when the network bandwidth is low or network latency is high, the performance would be significantly degraded. Despite recent progress on decentralized algorithms for training deep neural networks, it remains unclear whether it is possible to train GANs in a decentralized manner. The main difficulty lies at handling the nonconvex-nonconcave min-max optimization and the decentralized communication simultaneously. In this paper, we address this difficulty by designing the first gradient-based decentralized parallel algorithm which allows workers to have multiple rounds of communications in one iteration and to update the discriminator and generator simultaneously, and this design makes it amenable for the convergence analysis of the proposed decentralized algorithm. Theoretically, our proposed decentralized algorithm is able to solve a class of non-convex non-concave min-max problems with provable non-asymptotic convergence to first-order stationary point. Experimental results on GANs demonstrate the effectiveness of the proposed algorithm.
Introduction
Training large-scale Generative Adversarial Networks (GANs) is computationally intensive, typically requiring distributed strategies. Standard implementations rely on a centralized topology where worker nodes communicate with a central parameter server. This architecture creates a significant communication bottleneck, particularly in high-latency or low-bandwidth environments like cloud computing. While decentralized algorithms—where nodes only communicate with immediate neighbors—have succeeded in standard minimization tasks, their application to the non-convex non-concave min-max optimization inherent in GANs has remained an open challenge.
The DPOSG Algorithm
To address these challenges, we introduce DPOSG (Decentralized Parallel Optimistic Stochastic Gradient), the first decentralized parallel algorithm for GAN training with rigorous theoretical guarantees. DPOSG incorporates several key design elements to maintain stability and convergence in a peer-to-peer setting:
- Optimistic Foundation: It utilizes the Optimistic Stochastic Gradient (OSG) method, leveraging information from previous iterations to stabilize updates in the volatile min-max landscape.
- Simultaneous Updates: The generator and discriminator are updated concurrently, maximizing parallel efficiency.
- Multiple Communication Rounds ($t$): To ensure consensus among workers, the algorithm allows for $t$ rounds of neighbor-to-neighbor communication per iteration. Theoretical analysis shows that a logarithmic number of rounds is sufficient to maintain the delicate balance required for GAN convergence.
We also explore Rand-DP-OAdam, a variant using random mixing strategies to accelerate information flow across the network.
Experimental Evaluation
The algorithm was evaluated on CIFAR-10 (WGAN-GP) and ImageNet (Self-Attention GAN, ~315MB model). The results demonstrate that DPOSG matches the convergence quality and Inception Score (IS) of centralized baselines while offering superior scalability.
Robustness to Latency
A critical advantage of decentralized learning is its resilience to network latency. In high-performance computing (HPC) environments, latency is minimal, but in cloud environments, it can be orders of magnitude higher. Centralized systems suffer significantly as the master node becomes a bottleneck. In contrast, DPOSG maintains near-linear speedup as the number of learners increases.
As shown in the figures above, decentralized methods (DP-OAdam and Rand-DP-OAdam) significantly outperform the centralized approach (CP-OAdam) in high-latency scenarios, achieving much faster convergence in terms of wall-clock time without sacrificing final model quality.
Conclusion and Future Work
DPOSG provides a robust framework for moving GAN training away from fragile centralized architectures toward resilient peer-to-peer networks. While the algorithm achieves provable convergence to first-order stationary points, future work will explore the optimal balance between communication frequency and local computation, as well as the sensitivity of hyperparameters across diverse architectures. This work paves the way for more private, scalable, and efficient large-scale generative modeling.
Summary updated