aNet.ai
Machine Learning/Learning path
0day streak0XP · Lv 1
← 5. Similarity / Divergence Measures
Lesson 9 of 13 10 min · 158 words

Wasserstein distance

The earth mover's distance: the cheapest cost of moving one distribution's mass onto the other.

The Wasserstein-1 distance, or earth mover's distance, imagines each distribution as a pile of earth. It is the minimum total work — mass times distance moved — needed to reshape one pile into the other:

is the set of all transport plans — joint distributions whose marginals are P and Q. By Kantorovich–Rubinstein duality it equals an IPM over 1-Lipschitz functions: .

The key advantage: Wasserstein reflects *how far apart* the distributions are, even when they don't overlap. Two point masses at 0 and have — a smooth, useful gradient — while KL is infinite and JS is stuck at . This is why Wasserstein GAN trains more stably.

Formula to remember

Integral Probability Metric

Slides

The function class 𝓕 decides which metric you get.

Quick check · +5 XP

Which statement about KL divergence is true?

Practice this topic
Saved in this browser as you type.
aNet.ai · Introduction to Machine Learning · NewUU course outlineProgress saved in this browser