[Paper Review] The Cramer Distance as a Solution to Biased Wasserstein Gradients
The paper shows that SGD with Wasserstein loss has biased gradients and may converge to wrong minima, and introduces the Cramér distance as an unbiased, geometry-aware alternative, plus a Cramér GAN.
The Wasserstein probability metric has received much attention from the machine learning community. Unlike the Kullback-Leibler divergence, which strictly measures change in probability, the Wasserstein metric reflects the underlying geometry between outcomes. The value of being sensitive to this geometry has been demonstrated, among others, in ordinal regression and generative modelling. In this paper we describe three natural properties of probability divergences that reflect requirements from machine learning: sum invariance, scale sensitivity, and unbiased sample gradients. The Wasserstein metric possesses the first two properties but, unlike the Kullback-Leibler divergence, does not possess the third. We provide empirical evidence suggesting that this is a serious issue in practice. Leveraging insights from probabilistic forecasting we propose an alternative to the Wasserstein metric, the Cramér distance. We show that the Cramér distance possesses all three desired properties, combining the best of the Wasserstein and Kullback-Leibler divergences. To illustrate the relevance of the Cramér distance in practice we design a new algorithm, the Cramér Generative Adversarial Network (GAN), and show that it performs significantly better than the related Wasserstein GAN.
Motivation & Objective
- Motivate the need for divergences that respect geometry while enabling reliable optimization.
- Diagnose why Wasserstein gradients are biased when estimated from samples.
- Introduce the Cramér distance as an ideal divergence with unbiased sample gradients.
- Demonstrate practical benefits of the Cramér distance through ordinal regression and GAN experiments.
Proposed method
- Define and compare KL, Wasserstein, and Cramér distances in terms of scale sensitivity, sum invariance, and unbiased sample gradients.
- Prove that KL has unbiased gradients but is not scale sensitive, while Wasserstein is ideal but lacks unbiased gradients (U).
- Show that the Wasserstein gradient is biased via a theoretical result (Theorem 1) in a Bernoulli setting.
- Introduce the Cramér distance and prove it satisfies scale invariance (S), sum invariance (I), and unbiased gradients (U) (Theorem 2).
- Propose Cramér GAN by transforming variables with a learned h and using energy-distance style losses, with a gradient-penalized critic.
- Provide experiments on ordinal regression and image generation to compare Cramér GAN against Wasserstein GANs.
Experimental results
Research questions
- RQ1Do Wasserstein gradients have unbiased sample gradients when optimized with SGD?
- RQ2Does the Cramér distance provide unbiased gradients while preserving geometric sensitivity?
- RQ3How does the Cramér distance perform in practical learning tasks like ordinal regression and GANs compared to Wasserstein or KL-based methods?
Key findings
- Sample Wasserstein loss yields biased gradient estimates and can converge to wrong minima (Theorem 1).
- The Cramér distance has unbiased sample gradients and preserves geometric information (Theorem 2).
- In ordinal regression, minimizing the Cramér distance yields better RMSE and lower Wasserstein loss than Wasserstein or KL baselines.
- Cramér GAN produces more diverse image completions and more stable training than WGAN-GP, with better independent critic distances.
- The proposed framework demonstrates practical advantages of using Cramér distance over Wasserstein in ML applications.
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.