On reproduction of On the regularization of Wasserstein GANs

Junghoon Seo, Taegyun JeonarXiv 2017

Abstract

This report presents a reproduction of the Lipschitz Penalty (LP) regularization technique for Wasserstein Generative Adversarial Networks (WGANs), as proposed in the ICLR 2018 Reproducibility Challenge. We investigate the claim that a "one-sided" Lipschitz penalty significantly improves training stability and robustness compared to the standard two-sided gradient penalty (WGAN-GP). Our implementation confirms that allowing gradients to be smaller than 1, rather than forcing them to be exactly 1, provides a superior training signal. Results on synthetic 2D datasets demonstrate that WGAN-LP is less sensitive to hyperparameter tuning and achieves faster convergence.

Introduction

Generative Adversarial Networks (GANs) are powerful generative models that are notoriously difficult to train, often suffering from mode collapse or oscillating losses. The Wasserstein GAN (WGAN) was introduced to mitigate these issues by using the Earth Mover’s Distance (Wasserstein distance) as a loss function. This framework requires the "critic" (discriminator) to be a 1-Lipschitz function.

Early methods enforced this constraint via weight clipping, which often led to poor optimization. WGAN-GP (Gradient Penalty) improved upon this by penalizing the critic if its gradient norm deviated from 1. However, WGAN-GP can be overly restrictive. This study reproduces WGAN-LP, which applies a one-sided penalty only when the gradient norm exceeds 1, providing the critic with more flexibility to learn the data distribution's geometry.

Methodology

We implemented four GAN variants to benchmark performance:

  • WGAN: The original version utilizing weight clipping.
  • WGAN-GP: The standard gradient penalty forcing gradients toward a norm of 1.
  • DRAGAN: A variant applying gradient penalties locally around real data points.
  • WGAN-LP: The target "one-sided" penalty, defined by the loss term: $\lambda \mathbb{E}_z [(\max(0, \|\nabla f_\phi(z)\|_2 - 1))^2]$.

The models were built in TensorFlow and tested across various sampling strategies, including interpolation between real and fake data and local perturbations.

Experimental Setup

To evaluate the models, we used three synthetic 2D datasets designed for sanity-checking generative models:

  1. Swiss Roll: A complex, spiral-shaped distribution.
  2. 8Gaussians: Eight Gaussian clusters arranged in a circular pattern.
  3. 25Gaussians: A 5x5 grid of Gaussian clusters.

These datasets allow for clear visualization of the critic's learned level sets and the resulting generator distribution.

Key Results and Discussion

Critic Geometry and Stability

Visualizations of the critic's level sets confirm that WGAN-LP learns the underlying data manifold more smoothly than its predecessors. By not forcing the gradient to be exactly 1 in regions far from the data, the critic maintains a more natural shape.

Level sets of the critic on the Swiss Roll dataset. The smooth contours indicate stable learning of the data manifold.

Our reproduction verified that WGAN-LP exhibits significantly fewer oscillations in critic loss compared to WGAN-GP. This stability is largely due to the one-sided nature of the penalty, which provides a more flexible training signal.

Hyperparameter Robustness and Convergence

A critical finding is the robustness of WGAN-LP to the penalty coefficient ($\lambda$). While WGAN-GP performance can degrade significantly with sub-optimal $\lambda$ values, WGAN-LP remains stable across a wider range. Furthermore, WGAN-LP consistently achieved lower approximated Wasserstein-1 distances (Earth Mover's Distance) in fewer training steps.

Comparison of learned critic geometry across different training iterations.

Limitations

While the core findings were successfully reproduced, we encountered several challenges:

  • Evaluation Speed: Calculating the Earth Mover's Distance for evaluation is computationally expensive, significantly increasing training time.
  • Optimization Details: Some hyperparameters for the RMSProp optimizer were omitted in the original text, requiring the use of standard defaults.
  • Scale: Due to resource constraints, this study focused on synthetic 2D data rather than larger image datasets like CIFAR-10.

Conclusion

The reproduction confirms that WGAN-LP is a valuable and verifiable improvement for GAN training. By relaxing the Lipschitz constraint to a one-sided penalty, the model achieves better stability and faster convergence, offering a more robust alternative to standard gradient penalty methods.

Summary updated

BibTeX
@misc{seo2017reproduction,
  author = {Junghoon Seo and Taegyun Jeon},
  title = {{On reproduction of On the regularization of Wasserstein GANs}},
  year = {2017},
  eprint = {1712.05882},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1712.05882},
}
Figure