A Short and General Duality Proof for Wasserstein Distributionally Robust Optimization I: Worst-Case Loss = min over λ ≥ 0 of λρ + E[sup f − λc] for All ρ > 0 iff Interchangeability HoldsResearch Paper
Motivation
Wasserstein distributionally robust optimization (DRO) hedges a decision against every probability distribution within a given transport distance of a nominal one, typically the empirical distribution of data. The inner problem, the worst-case loss, is an optimization over an infinite-dimensional set of measures, and every practical use of Wasserstein DRO — tractable reformulations, statistical guarantees, regularization interpretations — rests on a strong duality theorem that replaces it with a one-dimensional minimization over a Lagrange multiplier.
Such duality theorems have been proved under progressively weaker hypotheses:
- Mohajerin Esfahani and Kuhn (2018) and Zhao and Guan (2018): empirical nominal distributions on subsets of , via conic duality.
- Blanchet and Murthy (2019): Polish spaces, lower semi-continuous costs and upper semi-continuous losses, via an approximation argument (arXiv:1604.01446).
- Gao and Kleywegt (2023): Polish spaces with costs that are powers of a metric and arbitrary measurable losses (arXiv:1604.02199).
- Zhang, Yang and Gao (2022, v4 2024): an arbitrary measurable space, an arbitrary measurable cost with values in and a measurable loss, with duality characterized exactly by an interchangeability principle (arXiv:2205.00362).
This mission formalizes the last of these, Theorem 1 of Zhang–Yang–Gao.
Setting
Let be a probability space, a measurable loss with , and a measurable transport cost with (Assumption 1). Expectations take values in , and the convention is used for products .
The Kantorovich transport cost between and a probability measure is
where is the set of couplings with marginals and . The worst-case loss is
with for . For let and
is the set of probability measures on with first marginal . A measurable satisfies the interchangeability principle (IP) if is -measurable (measurable for the completion of ) and
The Legendre transform of is .
Formalization targets
Goal: Theorem 1, (D)
satisfies (IP) for every if and only if the supremum functions are -measurable and
The minimum is attained. Both sides may be .
Milestones
- Lemma 1. is bounded below by , increasing and concave on .
- (P-soft). For , .
- Theorem 1, first display. for .
- Lemma 3. Properties of for a decreasing convex proper that is on .
- Lemma 2. and are bounded below by , decreasing, convex and lower semi-continuous on (two items).
- Theorem 1, second display. for : duality with no assumption beyond Assumption 1.
- Theorem 1, third display. For fixed , satisfies (IP) iff .
Significance
The result. Theorem 1 separates Wasserstein DRO duality into two parts. The first, the second display, holds with no regularity at all: the worst-case loss always equals a one-dimensional minimum over of a supremum over couplings with fixed first marginal. The second identifies exactly when that supremum can be moved inside the expectation, which is the form (D) used in applications: (D) holds for all radii if and only if (IP) holds. The question of when Wasserstein DRO has its standard dual becomes a question about measurable selection and measurable projection, which is studied in a companion mission of this series. The duality results of the timeline above become special cases in which (IP) can be verified.
Formalizing it. The results are proved in the paper; none of them has a machine-checked proof. A formalization produces a verified duality theorem at the level of generality of measurable spaces with extended-valued costs, together with a reusable layer: Kantorovich costs with values in , extended-real expectations, and one-dimensional Legendre transforms of extended-real functions.
Difficulty
The proof is short on paper because it delegates to one-dimensional convex analysis: the involution of the Legendre transform on (Rockafellar, Theorem 12.2), applied to . The work is in the extended reals. can be on all of , can be identically , and the costs and products involve . Concavity of on requires mixing near-optimal distributions and couplings, and lower semi-continuity of requires Fatou's lemma for functions bounded below by , not by . The "only if" direction of the goal has to recover (IP) for every from (D), which goes through biconjugation of and the right continuity at of both transforms. A proof that treats every value as finite does not cover the theorem.
Formalization scope
The Lean development lives in the namespace ShortWDRODual.Legendre.
- is a measurable space and a probability measure. The cost is
ENNReal-valued and curried,c x̂ x, with the nominal point first. The loss is real-valued and measurable. - is the published
RWPI.SqrtLasso.transportCost(infimum over probability couplings of the lower Lebesgue integral of , in ). - Expectations are the published
ModelRiskOT.Duality.extIntegral, inEReal. This agrees with the paper whenever one part is finite. It assigns to the undefined case , so a law or coupling with an undefined expectation never raises a supremum. - The ball constraint is compared in
EReal, so that for . Reading it as would make every Legendre transform . - uses the paper's (Mathlib's product has ). This matters for : the supremum is then over .
- "min" is attainment plus lower bound (
IsLeast). Concavity, convexity and monotonicity of extended-real functions are stated as explicit inequalities with real weights. Lower semi-continuity "on " is relative to . - -measurability is
NullMeasurable. Disclosed reading: in the goal and in the fixed- milestone, the measurability of the supremum functions is stated explicitly next to the duality formula, because the paper's expectation in (D) presupposes it and (IP) contains it. Lemma 2's statement on assumes this measurability for , for the same reason. - Ruled out: a goal that assumes (IP) and concludes (D) states only one direction. So does a goal that drops attainment, or uses Mathlib's . All three are weaker theorems.
A complete development needs the one-dimensional Fenchel–Moreau theorem for extended-real functions on , gluing and mixing of couplings with a fixed first marginal, and Fatou's lemma for extIntegral. Each is reusable well beyond this mission. Contributions of any of these as separate lemmas are welcome.
Selected references
- L. Zhang, J. Yang, R. Gao, A Short and General Duality Proof for Wasserstein Distributionally Robust Optimization, arXiv:2205.00362v4, 2024. https://arxiv.org/abs/2205.00362
- J. Blanchet, K. Murthy, Quantifying Distributional Model Risk via Optimal Transport, Mathematics of Operations Research 44(2):565–600, 2019. https://arxiv.org/abs/1604.01446
- R. Gao, A. Kleywegt, Distributionally Robust Stochastic Optimization with Wasserstein Distance, Mathematics of Operations Research 48(2):603–655, 2023. https://arxiv.org/abs/1604.02199
- P. Mohajerin Esfahani, D. Kuhn, Data-driven Distributionally Robust Optimization Using the Wasserstein Metric, Mathematical Programming 171:115–166, 2018. https://arxiv.org/abs/1505.05116
- R. T. Rockafellar, Convex Analysis, Princeton University Press, 1970. https://doi.org/10.1515/9781400873173