TALK.md — Wasserstein GAN
Press & Blog Coverage
-
Read-through: Wasserstein GAN, Alex Irpan, February 2017. A walkthrough of the paper section by section, including the Earth Mover’s distance and the theory behind it.
-
From GAN to WGAN, Lilian Weng, Lil’Log, 20 August 2017. Explains why GANs are hard to train and how WGAN’s distance helps; also on arXiv as 1904.08994.
-
Wasserstein GAN on Hugging Face Papers, the paper’s page on Hugging Face.
-
martinarjovsky/WassersteinGAN, GitHub. The authors’ PyTorch code; its README notes that the critic is trained 100 times per generator step at the start and every 500 iterations.
-
Wasserstein Generative Adversarial Networks, Proceedings of ICML 2017 (PMLR volume 70). The conference version of the paper.
Q&A (answers from the paper)
Q1: What is wrong with the distance a standard GAN minimises? A: A standard GAN effectively minimises the Jensen-Shannon (JS) divergence. When the real and generated distributions lie on low-dimensional shapes that barely overlap, the JS and KL divergences are not continuous and give no usable gradient (Section 2). The paper’s Example 1, two parallel lines, shows the JS divergence jumping to log 2 as soon as the lines separate, while the Earth Mover’s distance grows smoothly with the gap (Section 2, Figure 1). Theorem 1 shows the Earth Mover’s distance is continuous and differentiable almost everywhere under mild assumptions (Section 2).
Q2: How can a network estimate the Earth Mover’s distance? A: The Kantorovich-Rubinstein duality turns the distance into the largest gap E[f(real)] − E[f(fake)] over all 1-Lipschitz functions f (Section 3, equation 2). A network with weights in a compact set is K-Lipschitz for some K, so training it to maximise the gap gives K times the distance, and the generator can be trained through it (Section 3, equation 3, Theorem 3).
Q3: Why clip the weights? A: Clipping every weight to a small box, such as [−0.01, 0.01], keeps the weights in a compact set, which is a simple way to keep the critic Lipschitz (Section 3). The paper calls it “a clearly terrible way to enforce a Lipschitz constraint”: a large clipping value makes the critic slow to train, and a small one can make gradients vanish. The authors tried variants such as projecting the weights onto a sphere, saw little difference, and invited better methods (Section 3).
Q4: What are the training settings? A: Algorithm 1 trains the critic 5 times per generator step and clips its weights after every update. All experiments used learning rate 0.00005, clipping 0.01 and batch size 64, with RMSProp for both networks (Section 3, Algorithm 1). With Adam on the critic, training “becomes unstable at times”; the authors saw the cosine between the Adam step and the gradient turn negative when this happened, and switched to RMSProp (Section 4.2).
Q5: Why is the critic’s loss useful? A: Because the critic is trained well before each generator step, its loss estimates the Earth Mover’s distance up to a constant factor (Section 4.2). In the paper’s experiments this estimate went down as sample quality improved (Figure 3), while the standard GAN’s JS estimate stayed flat or went up, often close to log 2 ≈ 0.69 (Figure 4). The paper does not claim it as a way to compare models yet, because the constant depends on the critic’s architecture (Section 4.2).
Q6: Does WGAN prevent mode collapse? A: The paper argues that training the critic to optimality makes it impossible for the generator to collapse onto a few points (Section 3), and reports that “in no experiment did we see evidence of mode collapse for the WGAN algorithm” (Section 4.3). It also found WGAN worked with generators that failed as standard GANs: a DCGAN without batch normalization and a 4-layer MLP (Section 4.3, Figures 5–7).
Common Misconceptions
-
“WGAN guarantees there is no mode collapse.” The paper reports no evidence of mode collapse in its experiments (Section 4.3), and argues why it should not happen when the critic is trained to optimality (Section 3). That is an observation and an argument, not a guarantee for every setting.
-
“Weight clipping is the right way to enforce the Lipschitz constraint.” The paper itself calls it “a clearly terrible way” and leaves better methods for future work (Section 3). WGAN-GP later replaced it with a gradient penalty.
-
“The critic’s loss is the Wasserstein distance.” It is an estimate up to a constant factor that depends on the critic’s architecture and clipping, so values from different critics cannot be compared directly (Section 4.2).
-
“Any optimizer works.” The paper found training unstable at times with Adam on the critic and used RMSProp (Section 4.2).
-
“A toy reproduction shows WGAN beating a standard GAN.” In this repo’s notebook, on a 2D ring of 8 Gaussians, the critic’s estimate did go down as the samples improved, but the standard GAN made much tighter samples than the WGAN. See its Summary.
Real Citations
-
Arjovsky, M., Chintala, S., & Bottou, L. (2017). Wasserstein Generative Adversarial Networks. ICML 2017. arXiv:1701.07875
-
Goodfellow, I., Pouget-Abadie, J., Mirza, M., Xu, B., Warde-Farley, D., Ozair, S., Courville, A., & Bengio, Y. (2014). Generative Adversarial Nets. NIPS 2014 (now NeurIPS). arXiv:1406.2661
-
Arjovsky, M., & Bottou, L. (2017). Towards Principled Methods for Training Generative Adversarial Networks. ICLR 2017. arXiv:1701.04862
-
Radford, A., Metz, L., & Chintala, S. (2016). Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networks (DCGAN). ICLR 2016. arXiv:1511.06434
-
Gulrajani, I., Ahmed, F., Arjovsky, M., Dumoulin, V., & Courville, A. (2017). Improved Training of Wasserstein GANs (WGAN-GP). NIPS 2017 (now NeurIPS). arXiv:1704.00028
-
Miyato, T., Kataoka, T., Koyama, M., & Yoshida, Y. (2018). Spectral Normalization for Generative Adversarial Networks. ICLR 2018. arXiv:1802.05957
-
Brock, A., Donahue, J., & Simonyan, K. (2019). Large Scale GAN Training for High Fidelity Natural Image Synthesis (BigGAN). ICLR 2019. arXiv:1809.11096 BigGAN uses the hinge-loss GAN objective, not the WGAN loss (its Section 3).
Citation count: about 7,100 for the arXiv version (OpenAlex, 7,064 when checked on 29 November 2026).