Wasserstein distance measures how much transport is required to transform one probability distribution into another. In generative adversarial networks, it provides an earthmover-style loss that compares real and generated data through a scaled distance rather than probability uncertainty. section 9.3.1
The GAN formulation changes the training signal in several practical ways:
- Replaces the discriminator’s real/fake probability with a critic score representing how real or fake an image is. section 9.3.1
- Measures vertical as well as horizontal differences between distributions, unlike the probabilistic comparison described for Kullback–Leibler and Jensen–Shannon distances. section 9.3.1
- Aims to make GAN training more robust and less sensitive while reducing mode collapse, convergence failure, and vanishing gradients. section 9.3 section 9.3.1
Using Wasserstein loss in a DCGAN
A DCGAN implementation renames the discriminator as a critic, compiles it with wasserstein_loss, and computes the loss as the mean of true labels multiplied by predictions. Both generator and critic use RMSprop with a learning rate of 0.00005. After each critic iteration, clipping every layer’s weights to ±clip_value limits exploding gradients. The experiment trains on one extracted MNIST digit class for 80 epochs and can be switched to Fashion-MNIST. section 9.3.2
Compare probabilistic distance with earthmover distance through the supplied distribution diagram. section 9.3.1



