Applied and computational mathematics
Optimal transport
Finding the cheapest way to reshape one distribution of mass into another — from moving piles of sand to comparing images, probability distributions, and populations of cells.
IntuitionMoving a pile of sand into a hole at the least possible cost
Imagine a big pile of sand of some shape, and a hole in the ground of the exact same total volume but a different shape. You want to move every grain of sand into the hole using as little total effort as possible, where moving one grain a distance costs units of work — grains that travel farther cost more to move. This is the optimal transport problem: given a source distribution of mass and a target distribution with the same total mass, find the cheapest way to rearrange one into the other.
It sounds like a purely physical puzzle about sand, but the same question — matching one distribution of stuff to another at the least cost — shows up whenever you compare two probability distributions, two images, two economic supply-and-demand profiles, or two shapes. Optimal transport measures exactly how different two distributions are, and tells you exactly how to morph one into the other.
Example: A minimal example: two piles, two holes
Suppose you have one unit of sand at position and another unit at , and two unit-sized holes at and . Moving a unit of sand a distance costs . There are only two ways to match piles to holes: send and , or send and . Which matching is cheaper, and what is the minimum total cost?
Solution
The direct (non-crossing) matching costs . The crossing matching costs . So the cheapest choice sends each pile to the nearer hole without the paths crossing, for a minimum total cost of . This is already a seed of a general fact used later: for cost on the real line, an optimal transport plan is always order-preserving — it never routes two units of mass along crossing paths.
UndergraduateMonge's map and Kantorovich's relaxation
In 1781, the French mathematician and military engineer Gaspard Monge posed the problem precisely: given a source measure on a space and a target measure on a space with the same total mass, and a cost function giving the price of moving one unit of mass from to , find a map that **pushes forward to ** — written , meaning for every measurable set — while minimizing the total transport cost:
Monge's original formulation frequently has no solution at all. The starkest example: let be a single point mass at the origin, and let split its mass between two points. Any map must send to a single point , so is again a point mass — it can never equal , no matter how is chosen. Monge's problem is infeasible here even though a perfectly sensible way to move the mass obviously exists: split it, half going left and half going right. A deterministic map simply cannot split mass.
Definition: Transport plans and couplings
Given and , a transport plan (or coupling) is a probability measure on whose two marginals recover and : Interpret as "how much mass moves from near to near ": a deterministic map corresponds to the special coupling , but a general is also allowed to send a single point of mass to several destinations at once. The independent product always lies in , so — unlike the set of Monge maps — this set is never empty.
For probability measures on , on (Polish spaces) and a continuous, bounded-below cost , the Kantorovich problem is equal to a dual maximization over pairs of Kantorovich potentials , satisfying pointwise: and both the minimum and the supremum are attained.
Why is it true?
Think of as a price charged for picking up mass at and as a price paid for dropping it off at , in a decentralized market of independent shippers. No shipper can profitably undercut the direct route: buying at and selling at can never beat physically moving the mass and paying — exactly the constraint . In a market that clears optimally, equality holds exactly along the routes actually used by an optimal plan.
Proof
For finite discrete measures , , the Kantorovich problem is the finite linear program subject to , , . Its LP dual is exactly subject to for all — one dual variable per primal (marginal) constraint. The primal is feasible (the product coupling always works) and bounded below by , and the feasible polytope is compact, so strong linear-programming duality gives equality of the two optimal values, with both attained. This proves the theorem exactly in the discrete case; the general statement on Polish spaces follows from the same primal-dual pattern applied via Fenchel–Rockafellar duality to convex functionals on (Kantorovich 1942; see Villani 2009, Theorem 5.10, for the full argument).
The proof above for finite measures is a direct application of linear-programming duality — exactly the primal-dual machinery from convex optimization: the transport plan is the primal variable, the potentials are the dual (Lagrange) variables attached to the marginal constraints, and strong duality holds because is compact and convex. This is the first of two genuine bridges from optimal transport to its neighboring fields: measure theory supplies the language ( as measures, pushforwards, marginals), and convex duality supplies the proof technique.
AdvancedBrenier's theorem and the geometry of Wasserstein space
Let be probability measures on with finite second moments, and suppose is absolutely continuous with respect to Lebesgue measure. For the quadratic cost there exists a convex function , unique up to an additive constant, such that is well-defined -almost everywhere, satisfies , and is the (essentially) unique minimizer of both the Kantorovich problem and Monge's original problem.
Why is it true?
Any optimal plan for a strictly convex cost like is supported on a **-cyclically monotone** set: no finite re-matching of pairs can lower the total cost. For the quadratic cost, cyclical monotonicity of a set of pairs turns out to be exactly the condition that some convex function has in its subdifferential at for every — this is Rockafellar's theorem characterizing cyclically monotone sets as subdifferentials of convex functions. Since is absolutely continuous, a convex function is differentiable -almost everywhere (Alexandrov's theorem), turning the set-valued subdifferential into a genuine gradient map .
Proof
(Sketch, following Brenier 1991.) Step 1: Kantorovich duality for lets one rewrite the optimal potentials via so that is convex and its Legendre transform plays the role of the second potential; the dual constraint becomes exactly on the support of an optimal . Step 2: Rockafellar's theorem states that every cyclically monotone subset of is contained in the graph of for some convex lower semicontinuous ; the support of an optimal plan is cyclically monotone because minimizes , so no finite re-matching among finitely many pairs on the support can strictly decrease . Step 3: because Lebesgue, is differentiable -almost everywhere by Alexandrov's theorem, so is concentrated on the graph , i.e. . This exhibits a deterministic optimal map , so it also solves Monge's problem, and any other optimal map must agree with it -almost everywhere by strict convexity of the cost.
Once the cost is fixed to , the minimal transport cost itself becomes a genuine distance between probability measures — the 2-Wasserstein distance . The space of probability measures with finite second moment, equipped with , behaves remarkably like a genuine infinite-dimensional Riemannian manifold: Felix Otto's heuristic — now called Otto calculus — treats a tangent vector at as a velocity field solving the continuity equation , with Riemannian metric . Geodesics in this formal Riemannian structure are exactly the constant-speed paths built from the very Brenier map above. This formal Riemannian structure on the space of measures is the second, genuine bridge — this time from optimal transport to Riemannian geometry.
Example: Explicit optimal transport between two centered Gaussians
Let and be centered one-dimensional Gaussians with standard deviations and . Use Brenier's theorem to write down the optimal transport map pushing forward to for the quadratic cost, and compute .
Solution
Both measures are centered, so the general 1D Gaussian optimal-transport map reduces to the pure scalar rescaling . This is indeed the gradient of the convex quadratic , since , confirming Brenier's theorem. One can check directly that pushes forward to : if then . The transport cost is , so , matching the general Gaussian formula with equal means.
ResearchDisplacement convexity, curvature, and transport at scale
A geodesic in the Wasserstein space is called a displacement interpolation; a functional on measures (such as the entropy for ) is displacement convex if is convex along every such geodesic. Around 2006–2009, John Lott and Cédric Villani, and independently Karl-Theodor Sturm, used the displacement convexity of entropy along -geodesics to define a synthetic (curvature-dimension) lower bound on Ricci curvature — the condition — for completely general metric-measure spaces, with no smooth manifold structure required. Remarkably, these curvature-dimension bounds are stable under Gromov–Hausdorff limits, letting geometers make sense of "curved" spaces that arise as limits of Riemannian manifolds, or spaces (graphs, fractals, singular spaces) that were never smooth to begin with.
A very different, thoroughly contemporary application: in 2017 Martin Arjovsky, Soumith Chintala, and Léon Bottou proposed the Wasserstein GAN, replacing the Jensen–Shannon divergence used to train classical generative adversarial networks with the (dual, Kantorovich–Rubinstein form of the) Wasserstein-1 distance between the real and generated data distributions. Because stays well-behaved and gives useful gradients even when two distributions have disjoint support — unlike the Jensen–Shannon divergence, which saturates — WGAN training is markedly more stable and far less prone to mode collapse, and the technique remains a standard building block of modern generative modeling.
Why does Monge's original formulation of optimal transport sometimes have no solution at all, while Kantorovich's relaxation always has a minimizer (under mild conditions)?
By Brenier's theorem, for the quadratic cost and an absolutely continuous source measure on , what form does the optimal transport map take (almost everywhere)?
In the Kantorovich duality theorem, what constraint links the two Kantorovich potentials and in the dual problem?
Why did Cuturi's 2013 entropic regularization (leading to the Sinkhorn algorithm) transform computational optimal transport in machine learning?
References
- Cédric Villani (2009). Optimal Transport: Old and New
- Marco Cuturi (2013). Sinkhorn Distances: Lightspeed Computation of Optimal Transport · arXiv:1306.0895
- Yann Brenier (1991). Polar Factorization and Monotone Rearrangement of Vector-Valued Functions · DOI:10.1002/cpa.3160440402
- John Lott, Cédric Villani (2009). Ricci Curvature for Metric-Measure Spaces via Optimal Transport