[Paper Review] From GAN to WGAN
This paper introduces Wasserstein GAN (WGAN), a GAN variant that replaces the original GAN's Jensen-Shannon divergence with the Wasserstein distance to stabilize training. By enforcing Lipschitz continuity on the critic via weight clipping and using a dual-form Wasserstein loss, WGAN provides a smoother, more meaningful gradient signal, leading to improved training stability and convergence, even when the real and generated distributions are disjoint.
This paper explains the math behind a generative adversarial network (GAN) model and why it is hard to be trained. Wasserstein GAN is intended to improve GANs' training by adopting a smooth metric for measuring the distance between two probability distributions.
Motivation & Objective
- To address the instability and non-convergence issues in training standard GANs due to the use of non-smooth divergences like JS and KL.
- To propose a training objective based on the Wasserstein distance, which provides a more meaningful and continuous measure of distributional difference.
- To enable stable training even when the real and generated data distributions have minimal or no overlap.
- To demonstrate that the Wasserstein distance, unlike JS divergence, remains smooth and differentiable even in cases of distributional disjointness.
- To introduce a practical method—weight clipping—for enforcing the Lipschitz constraint required by the Wasserstein metric in a deep learning setting.
Proposed method
- Replaces the GAN loss function with the Wasserstein distance between the real data distribution $p_r$ and the generator's distribution $p_g$, defined as $W(p_r, p_g) = \sup_{\|f\|_L \leq K} \mathbb{E}_{x\sim p_r}[f(x)] - \mathbb{E}_{x\sim p_g}[f(x)]$.
- Uses the Kantorovich-Rubinstein duality to transform the Wasserstein distance into a tractable optimization problem over K-Lipschitz continuous critic functions $f_w$.
- Enforces the K-Lipschitz condition on the critic by clipping the weights of the critic network to a fixed range $[-c, c]$ after each gradient update.
- Replaces the original GAN's sigmoid-based discriminator output with a critic that estimates the Wasserstein distance directly, eliminating the need for log probabilities.
- Employs RMSProp optimizer for the critic to improve training stability, as opposed to momentum-based optimizers like Adam.
- Treats the critic as a feature extractor for the Wasserstein distance rather than a binary classifier, shifting the objective from classification to metric learning.
Experimental results
Research questions
- RQ1Why do standard GANs suffer from training instability and mode collapse, and how does the choice of divergence metric contribute to this?
- RQ2How does the Wasserstein distance compare to JS and KL divergences in measuring distributional differences, especially when distributions are disjoint?
- RQ3Can a critic network trained to estimate the Wasserstein distance provide a more stable and informative gradient signal for the generator than a standard discriminator?
- RQ4What practical method can enforce the Lipschitz continuity constraint required by the Wasserstein metric in a deep neural network?
- RQ5Does replacing the GAN loss with a Wasserstein-based objective lead to improved training convergence and sample quality?
Key findings
- The Wasserstein distance provides a smooth, continuous, and meaningful measure of distributional difference, even when the real and generated distributions are disjoint, unlike JS divergence which becomes undefined or discontinuous.
- The use of weight clipping to enforce K-Lipschitz continuity on the critic network enables stable training of the WGAN, although the authors acknowledge it is suboptimal.
- The WGAN loss function, derived from the dual form of the Wasserstein distance, correlates more closely with sample quality and provides a stable, non-vanishing gradient signal during training.
- Empirical results show that WGAN achieves better training stability and convergence compared to standard GANs, especially in scenarios with non-overlapping data distributions.
- The critic in WGAN no longer outputs a probability but instead estimates the Wasserstein distance, which correlates better with the actual quality of generated samples.
- The paper notes that while weight clipping works, it is a poor method for enforcing Lipschitz constraints, and future work should explore alternatives like gradient penalty.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.