[Paper Review] Wasserstein GANs Work Because They Fail (to Approximate the Wasserstein Distance)
This paper challenges the widely held belief that Wasserstein GANs (WGANs) succeed because they accurately approximate the Wasserstein distance. It demonstrates that WGANs perform well not due to minimizing the Wasserstein distance, but because they fail to do so—due to poor approximation of the optimal discriminator and inherent issues with the Wasserstein metric as a loss function, especially for image data.
Wasserstein GANs are based on the idea of minimising the Wasserstein distance between a real and a generated distribution. We provide an in-depth mathematical analysis of differences between the theoretical setup and the reality of training Wasserstein GANs. In this work, we gather both theoretical and empirical evidence that the WGAN loss is not a meaningful approximation of the Wasserstein distance. Moreover, we argue that the Wasserstein distance is not even a desirable loss function for deep generative models, and conclude that the success of Wasserstein GANs can in truth be attributed to a failure to approximate the Wasserstein distance.
Motivation & Objective
- To critically examine the theoretical assumptions underlying WGANs and their practical implementation.
- To investigate whether the WGAN loss function genuinely approximates the Wasserstein distance in real training scenarios.
- To evaluate the suitability of the Wasserstein distance as a loss function for deep generative models, particularly for image data.
- To identify the true source of WGANs' success, challenging the dominant narrative that it stems from accurate Wasserstein distance minimization.
- To explore alternatives to the Wasserstein distance based on perceptually meaningful metrics and improved sample complexity.
Proposed method
- Conduct theoretical analysis of the discrepancy between the idealized WGAN framework and practical training dynamics.
- Compare the 'distributional' Wasserstein distance with the 'batch' Wasserstein distance, highlighting differences in approximation and optimization.
- Analyze the sample complexity of estimating the Wasserstein distance via mini-batches, showing that it requires prohibitively large batch sizes.
- Demonstrate empirically that minimizing the batch Wasserstein distance leads to poor-quality, k-medians-like generated images.
- Use entropic regularization and the c-transform to improve batch Wasserstein estimation, but show that performance still degrades due to metric limitations.
- Train multiple GAN variants (including vanilla GAN, WGAN-GP, LS GAN, BEGAN) across benchmark datasets (MNIST, Fashion-MNIST, CIFAR10, CelebA) with 100 random hyperparameter configurations to compare performance.
Experimental results
Research questions
- RQ1To what extent does the WGAN loss function approximate the true Wasserstein distance in practice?
- RQ2Why do WGANs with gradient penalty (WGAN-GP) achieve high-fidelity generation if they do not accurately minimize the Wasserstein distance?
- RQ3Is the Wasserstein distance a suitable loss function for deep generative models, particularly for image data?
- RQ4What role does the Lipschitz constraint on the discriminator play in WGAN performance, independent of the Wasserstein distance?
- RQ5Can alternative optimal transport metrics based on perceptually meaningful distances (e.g., VGG-features) outperform the standard L2-based Wasserstein distance?
Key findings
- The WGAN-GP loss function does not provide a meaningful approximation of the true Wasserstein distance due to poor approximation of the optimal discriminator.
- Even with improved estimators like the c-transform, the batch Wasserstein distance leads to worse generative performance due to inherent limitations of the L2 metric.
- Minimizing the batch Wasserstein distance results in generated images that are blurry and k-medians-like, indicating poor fidelity and perceptual quality.
- A perfect generator that outputs real data samples achieves a higher batch Wasserstein distance than a distribution centered on k-medians, proving that the batch distance is not minimized by realistic data distributions.
- Vanilla GANs with optimal hyperparameter tuning can achieve performance comparable to or better than WGAN-GP, indicating that the loss function is less critical than hyperparameter configuration.
- The Wasserstein distance is not a desirable loss function for image GANs because it relies on pixel-wise L2 distance, which does not align with perceptual similarity, and leads to false or undesirable minima in optimization.
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.