Training Generative Adversarial Networks with Adaptive Composite Gradient

Huiqing Qi, Fang Li, Shengli Tan, Xiangyun Zhang · OpenReview

Introduction

Generative Adversarial Networks (GANs) have revolutionized generative modeling but remain notoriously difficult to train. The adversarial interaction between the generator and discriminator often manifests as a non-cooperative min-max game. Mathematically, this leads to gradient fields that exhibit cyclic or rotational behavior around the Nash equilibrium, causing the training process to oscillate indefinitely rather than converge.

The Challenge of Convergence

Traditional approaches to stabilize GAN training, such as Symplectic Gradient Adjustment (SGA) or Consensus Optimization (ConOpt), rely on second-order information. By incorporating the Hessian matrix, these methods can counteract rotational dynamics. However, the computational overhead is prohibitive for modern deep architectures: computing the Hessian scales cubically with the number of parameters ($O(n^3)$), making it impractical for large-scale models.

Adaptive Composite Gradient (ACG)

To address these limitations, this paper introduces the Adaptive Composite Gradient (ACG) method. ACG is a "semi-gradient-free" algorithm designed to provide the stability of second-order methods with significantly lower computational costs.

Core Components

  1. Predictive Modeling of Spiral Trajectories: ACG treats the optimization path as a spiral. By analyzing the last $q$ iterations, the algorithm predicts the model's future state $s$ steps ahead. This allows the optimizer to "jump" toward the center of the spiral.
  2. Centripetal Acceleration: The method incorporates a projection mechanism to dampen oscillations. By calculating the "centripetal acceleration" of the parameter trajectory, ACG pulls the training process directly toward the equilibrium point.
Figure 5: Geometric interpretation of the ACG update mechanism, showing the projection of acceleration vectors to dampen rotational components.
  1. Efficiency: By replacing explicit Hessian calculations with predictive modeling based on past iterates, ACG reduces complexity from $O(n^3)$ to $O(nq^2)$, where $q$ is a small constant.

Experimental Evaluation

The authors evaluated ACG across a spectrum of tasks, from theoretical toy functions to high-resolution image generation.

Convergence in Toy Games

In bilinear and 3-player zero-sum games, ACG demonstrated superior convergence properties. While standard Stochastic Gradient Descent (SGD) often enters limit cycles, ACG converges linearly to the Nash equilibrium.

Figure 1: Comparison of optimization trajectories on a rotational vector field. ACG (red) converges more directly to the equilibrium compared to other baseline methods.

Mitigating Mode Collapse

A common failure mode in GANs is "mode collapse," where the generator produces a limited variety of outputs. In experiments with a 16-Gaussian mixture, standard optimizers like RMSProp failed to capture the full distribution. ACG successfully recovered all 16 modes and did so more efficiently than competing stable methods like ConOpt.

Image Generation Performance

On benchmark datasets including MNIST, Fashion-MNIST, CIFAR-10, and CelebA, ACG-enhanced models consistently outperformed baselines. When integrated with popular optimizers like Adam or RMSProp, ACG produced sharper, more diverse images and exhibited greater training stability, particularly in high-resolution tasks like CelebA.

Conclusion

The Adaptive Composite Gradient method offers a scalable and effective solution to the instability of GAN training. By leveraging predictive modeling and centripetal acceleration, it achieves the convergence benefits of second-order methods without the associated computational burden. While current theoretical proofs focus on convex-smooth games, the empirical success of ACG across diverse deep learning tasks suggests broad applicability for complex generative modeling.

Summary updated

BibTeX
@misc{qi2021training,
  author = {Huiqing Qi and Fang Li and Shengli Tan and Xiangyun Zhang},
  title = {{Training Generative Adversarial Networks with Adaptive Composite Gradient}},
  year = {2021},
  eprint = {2111.05508},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2111.05508},
}
Figure