Abstract
Recent work has shown local convergence of GAN training for absolutely continuous data and generator distributions. In this paper, we show that the requirement of absolute continuity is necessary: we describe a simple yet prototypical counterexample showing that in the more realistic case of distributions that are not absolutely continuous, unregularized GAN training is not always convergent. Furthermore, we discuss regularization strategies that were recently proposed to stabilize GAN training. Our analysis shows that GAN training with instance noise or zero-centered gradient penalties converges. On the other hand, we show that Wasserstein-GANs and WGAN-GP with a finite number of discriminator updates per generator update do not always converge to the equilibrium point. We discuss these results, leading us to a new explanation for the stability problems of GAN training. Based on our analysis, we extend our convergence results to more general GANs and prove local convergence for simplified gradient penalties even if the generator and data distribution lie on lower dimensional manifolds. We find these penalties to work well in practice and use them to learn high-resolution generative image models for a variety of datasets with little hyperparameter tuning.
TL;DR
This paper identifies a fundamental reason why Generative Adversarial Networks (GANs) often fail to train: the assumption that data and generator distributions are "smooth" (absolutely continuous) rarely holds in the real world. By introducing a minimal counterexample called the Dirac-GAN, the authors prove that standard training methods and even popular variants like WGAN-GP can fail to converge, and they propose zero-centered gradient penalties as a mathematically sound and practically effective fix.
What Problem Does This Paper Address?
Training GANs is notoriously difficult. While researchers have made strides in stabilizing them, the theoretical "why" behind their instability remained murky.
Earlier proofs of GAN convergence relied on the assumption of absolute continuity—the idea that the data and generator distributions have a density everywhere in the space. In reality, high-dimensional data like images usually lie on much lower-dimensional "manifolds." When distributions are concentrated on these manifolds, the discriminator can easily find a "perfect" way to distinguish real from fake, leading to gradients that are either zero or point in unhelpful directions. This causes the training dynamics to oscillate or diverge rather than settling into a stable equilibrium (a Nash equilibrium).
Methods
The authors approach this problem through both mathematical analysis and empirical testing:
- The Dirac-GAN: They introduce a "prototypical counterexample"—the simplest possible GAN. It has one parameter for the generator (moving a single point) and one for the discriminator (a linear slope). Despite its simplicity, unregularized gradient descent on this model results in permanent oscillations rather than convergence.
- Jacobian Analysis: They analyze the Jacobian (a matrix of partial derivatives) of the GAN's gradient vector field. For a system to be stable, the eigenvalues of this matrix at the equilibrium point must have negative real parts. They show that for many GANs, these eigenvalues are purely imaginary, leading to "orbits" instead of landing on the solution.
- Simplified Gradient Penalties ($R_1$ and $R_2$): To fix the instability, they propose adding a penalty on the squared gradient of the discriminator, specifically:
- $R_1$: Penalizing the gradient on the real data.
- $R_2$: Penalizing the gradient on the generated data. This forces the discriminator to be "flat" near the data manifold, providing a more stable signal for the generator.
Datasets
The authors validated their findings across a wide range of complexity:
- Synthetic 2D Data: 2D Gaussians, line segments, circles, and "four lines" to visualize convergence paths.
- CIFAR-10: A standard benchmark for small-scale image generation.
- ImageNet: Training on all 1000 classes at 128x128 resolution.
- CelebA & LSUN: High-resolution datasets (bedrooms, churches, towers) at 256x256.
- CelebA-HQ: Ultra-high resolution (1024x1024) face images.
Key Insights and Ideas
- The Manifold Problem is the Root Cause: The lack of overlap between data and generator distributions in high-dimensional space is why "naive" GANs fail. If the discriminator is too good too quickly, the generator gets no useful feedback.
- WGAN-GP isn't a Guarantee: Surprisingly, the authors show that Wasserstein GANs with Gradient Penalty (WGAN-GP) do not technically guarantee local convergence in their Dirac-GAN setup when using a finite number of discriminator updates.
- Zero-Centered Penalties are Key: Unlike the penalties in WGAN-GP (which push gradients toward a value of 1), the $R_1$ and $R_2$ penalties push gradients toward zero at the equilibrium. This is what mathematically ensures local stability even when distributions are on manifolds.
Key Results
- Theoretical Proof: The authors provide a formal proof that GAN training with $R_1$ or $R_2$ penalties is locally convergent to the Nash equilibrium.
- High-Resolution Success: They successfully trained a GAN on the CelebA-HQ 1024x1024 dataset end-to-end. This was a significant feat at the time, as most other methods required complex scheduling or multi-stage training.
- State-of-the-Art ImageNet: Their model achieved an Inception Score of 30.2 on 128x128 ImageNet, outperforming WGAN-GP and showing that their regularization scales to highly diverse datasets.
- Robustness: The $R_1$ penalty worked well across different architectures (ResNets, DCGANs) with very little hyperparameter tuning.
Limitations and Future Work
- Local vs. Global: The paper focuses on local convergence (what happens when you are already near the solution). It does not guarantee that a GAN will find the solution if it starts very far away (global convergence).
- Realizability: The proofs assume the "realizable" case—that the generator is actually capable of representing the true data distribution.
- Finite Sampling: The theoretical analysis assumes access to the true distribution, whereas in practice, we only have finite samples. Investigating the effects of finite sample sizes on training dynamics is a vital next step.
Summary updated