Introduction: The Fragility of GANs
Generative Adversarial Networks (GANs) have demonstrated impressive capabilities in generating high-quality samples, but their training process is notoriously fragile. They often require meticulous hyperparameter tuning and specific architectural choices to prevent issues like mode collapse or vanishing gradients.
This fragility largely stems from a dimensional mismatch. Real-world data, such as high-resolution images, typically lies on a low-dimensional manifold embedded within a high-dimensional space. When the generator's distribution and the true data distribution do not overlap perfectly, the discriminator can easily find a "perfect" decision boundary. Once the discriminator becomes too good, mathematical distance measures (like the Jensen-Shannon divergence) become undefined or provide zero useful gradient information back to the generator. Essentially, the generator stops learning because the discriminator provides a "fail" grade without any constructive feedback.
A Novel Regularization Approach
To overcome this fundamental limitation, the authors propose a computationally efficient gradient-norm regularizer that mathematically simulates adding noise to the data.
- Noise Convolution: Instead of comparing the raw, non-overlapping distributions, the authors propose convolving both the real and model distributions with Gaussian noise. This "blurs" the manifolds, ensuring they have overlapping support and making the training objective well-defined.
- Analytic Approximation: Explicitly adding high-dimensional noise during training is computationally expensive and introduces massive variance. To bypass this, the authors use a Taylor expansion to derive an analytic approximation of this noise.
- The Gradient-Norm Penalty: This approximation results in a penalty on the squared gradient norm of the discriminator. Unlike a generic gradient penalty, this regularizer is specifically weighted based on the discriminator's output. For a standard Jensen-Shannon GAN, it penalizes the gradients of the discriminator's logits on both real and generated data.
- Annealing Schedule: The authors suggest starting with high regularization to stabilize the early stages of training and decaying it over time to allow the model to capture fine details.
Key Results and Insights
The proposed method was validated across several standard benchmarks, including a 2D Submanifold Mixture toy problem, CelebA, CIFAR-10, and LSUN Bedrooms.
Indefinite Stability
In a toy 2D-in-3D task designed to test dimensional mismatch, unregularized GANs collapsed after 50,000 iterations. In contrast, the regularized versions trained indefinitely (past 100,000 iterations) without issue. By regularizing the gradients, the discriminator is forced to be "short-sighted," ignoring infinitesimal differences between non-overlapping manifolds and providing smoother, more useful gradients.
Architecture Agnostic
The regularizer allowed "difficult" architectures to train successfully. Models using tanh activations or lacking Batch Normalization typically fail immediately without regularization. However, with the proposed gradient penalty, these architectures successfully generated coherent images.
Efficiency and Generalization
The method adds only a marginal computational overhead (roughly 1.4x slower per iteration), making it significantly cheaper than other stability methods like "unrolling" the discriminator. Furthermore, cross-testing revealed that the regularized discriminator was much harder to "fool" by an opposing generator, indicating that the regularization leads to better generalization rather than mere memorization of the training set.
Limitations and Future Work
While decaying the regularization strength (annealing) works well, a "universal" or optimal schedule for every dataset remains elusive. Additionally, the regularizer relies on the Euclidean metric of the ambient space, which may be less effective for data types where Euclidean distance is not a meaningful measure of similarity. Finally, while regularizing the generator is possible, it was found to sometimes destabilize training near convergence, leaving room for future refinement.
Summary updated