First Order Generative Adversarial Networks

Calvin Seward, Thomas Unterthiner, Urs Bergmann, Nikolay Jetchev, Sepp Hochreiter

Overview

Generative Adversarial Networks (GANs) often struggle to converge because their parameter updates do not consistently point in the direction of steepest descent. This paper introduces a theoretical framework outlining four requirements for optimal GAN updates and proposes the First Order GAN (FOGAN). By regularizing the critic's first-order information (its gradients), FOGAN guarantees unbiased, steepest-descent updates, achieving competitive image generation and state-of-the-art character-level text generation.

The Problem: Misaligned Updates and Instability

Training GANs is notoriously unstable. A core mathematical reason for this instability is that the updates applied to the generator's parameters often fail to align with the true "steepest descent" of the objective function—the divergence between the real and generated data distributions.

In popular models like the original GAN and the WGAN-GP, the update direction is either misaligned with the steepest descent or suffers from high variance during mini-batch training. If the generator isn't reliably stepping "downhill" toward the target distribution, the model can fail to learn complex datasets, suffer from mode collapse, or simply diverge. The authors set out to find an adversarial divergence and a corresponding update rule that guarantees an unbiased, low-variance estimate of the steepest descent direction.

Methods: Four Requirements for Optimal GANs

The authors establish a rigorous theoretical framework that places four requirements on an optimal GAN setup:

  1. Weak Divergence: It must behave like the Wasserstein distance, providing useful gradients even when distributions don't overlap.
  2. Tractable Critic: The optimization problem for the critic must be solvable, unlike the strict Lipschitz constraint in the original WGAN.
  3. Well-Defined Update Rule: The gradients must exist everywhere they are needed.
  4. Low Variance: The update rule must be an unbiased, low-variance estimate of the steepest descent.

To meet these criteria, the authors first propose the Penalized Wasserstein Divergence (PWGAN), which replaces the WGAN Lipschitz constraint with a squared penalty. However, PWGAN fails requirements 3 and 4 because the optimal critic's gradient is undefined outside the exact data manifolds.

To fix this, they introduce the First Order Penalized Wasserstein Divergence (FOGAN). The key novelty is a specific gradient penalty applied to the critic. This penalty forces the critic's gradient to be well-defined and to point directly from the generated data toward the real data. This ensures the generator's update rule perfectly aligns with the direction of steepest descent.

Key Insights

  • The Disconnect in GAN Updates: Just because a GAN's loss function (divergence) is mathematically sound doesn't mean the mini-batch update rule derived from it actually points toward the optimal solution.
  • The High-Variance Trap: Calculating the true steepest descent usually requires estimating complex expectations across both real and generated data, introducing massive variance during mini-batch SGD.
  • The "Aha" Moment: You can bypass this high-variance math by forcing the critic to take a specific shape. By adding a gradient penalty that regularizes the critic's first-order information, the optimal critic naturally yields a simple, low-variance update rule that perfectly aligns with steepest descent.

Key Results

The models were evaluated on image generation (CelebA, LSUN, CIFAR-10) and a highly challenging character-level text generation task (One Billion Word Benchmark).

Text Generation (State-of-the-Art): FOGAN shines on the One Billion Word benchmark. It significantly outperformed WGAN-GP, achieving a lower Jensen-Shannon Divergence (JSD) for 6-grams (0.556 vs. 0.573).

JSD6 over training steps comparing FOGAN and WGAN-GP

Faster Convergence: Because FOGAN's formulation requires fewer sampling steps per iteration than WGAN-GP, it converges significantly faster in terms of actual wall-clock time.

JSD6 over wall-clock time showing FOGAN's faster convergence

Image Generation: FOGAN achieves competitive Fréchet Inception Distance (FID) scores on image tasks without extensive hyperparameter tuning. While it didn't strictly beat WGAN-GP on CelebA (6.0 vs 4.2) or CIFAR-10 (27.4 vs 24.8), it proved highly stable and viable across different modalities.

Limitations and Future Work

The primary limitation of this work is theoretical: the mathematical proofs rely on the assumption that the network can find the perfect, optimal critic. In reality, neural networks only approximate this optimal critic, meaning the theoretical guarantees of "perfect steepest descent" are only approximated in practice.

For future work, the authors suggest extending their theoretical insights to account for approximate critics. Furthermore, they hope the "gradient penalty trick" introduced in FOGAN can be retrofitted onto other popular GAN architectures to ensure their generator updates also point in the direction of steepest descent.

Summary updated

BibTeX
@inproceedings{seward2018first,
  author = {Calvin Seward and Thomas Unterthiner and Urs Bergmann and Nikolay Jetchev and Sepp Hochreiter},
  title = {{First Order Generative Adversarial Networks}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
}
Figure