Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

Optimal Transport

87 missions · 22 completed

Missions

Open65Completed22All87
🏆Completed
Pure Mathematics·Captain: ykanoria

Excursion Coupling for the Monge Problem on the Line (Juillet 2019)Research Paper

The Monge optimal transport problem on the real line with the classical distance cost ∣x−y∣|x-y|∣x−y∣ famously fails to have a unique solution. Juillet (2019) restored uniqueness by considering the strictly concave power costs ∣x−y∣p|x-y|^p∣x−y∣p with p<1p<1p<1 and letting p→1−p\to 1^-p→1−: the limit selects a distinguished optimal plan, the excursion coupling, built from the level sets of the difference Fσ=Fμ−FνF_\sigma=F_\mu-F_\nuFσ​=Fμ​−Fν​ of the cumulative distribution functions. This mission formalizes the completed-graph construction, the generalized Banach indicatrix identities of Bertoin-Yor, the alternating crossing structure of almost every level, and the marginal identities for the crossing counting measures. It culminates in Propositions 3.5-3.6: every monotone transport plan is concentrated on the paired routes, and the marginals uniquely determine the coupling carried by those routes, including in the presence of atoms.

This mission formalizes the key implication 3=>4 in Juillet's Main Theorem.

37 thms5 active usersReviewed
🏆Completed
CombinatoricsLinear OptimizationOptimization·Captain: mikedeng1

Computational Optimal Transport V: A Feasible Pair of Kantorovich Potentials Is Optimal or Strictly Improves Along a Direction (1_S, −1_S′)Textbook

Motivation

The discrete optimal transport problem between two histograms is a linear program, and much of the algorithmic theory of optimal transport is the theory of solving that linear program well. Chapter 3 of Peyré and Cuturi's Computational Optimal Transport (Foundations and Trends in Machine Learning, 2019) surveys the classical combinatorial solvers: the network simplex, dual ascent methods, and the auction algorithm. Dual ascent methods work entirely with the dual variables, the Kantorovich potentials (f,g)(f, g)(f,g): they keep a feasible pair of potentials and improve it step by step until it is optimal. The specialisation of this idea to assignment problems is the Hungarian algorithm of Kuhn (1955), and its general form is the primal-dual method for network flow problems presented in Bertsimas and Tsitsiklis, Introduction to Linear Optimization (1997, §7.7), on which §3.6 of the book is modelled.

The mathematical engine of every dual ascent method is one alternative: a feasible pair of potentials is either already optimal, or it can be improved along a direction of a very special, combinatorial form. This mission formalizes that alternative (Proposition 3.6 of the book) together with the results it rests on.

Setting

Fix integers n,m≥1n, m \ge 1n,m≥1, a cost matrix C∈Rn×mC \in \mathbb{R}^{n\times m}C∈Rn×m, and two histograms a∈Σna \in \Sigma_na∈Σn​, b∈Σmb \in \Sigma_mb∈Σm​, where Σn={a∈R+n:∑iai=1}\Sigma_n = \{a \in \mathbb{R}^n_+ : \sum_i a_i = 1\}Σn​={a∈R+n​:∑i​ai​=1} is the probability simplex. Write [ ⁣[n] ⁣]={1,…,n}[\![n]\!] = \{1, \dots, n\}[[n]]={1,…,n} for the row indices and, following the book, [ ⁣[m] ⁣]′={1′,…,m′}[\![m]\!]' = \{1', \dots, m'\}[[m]]′={1′,…,m′} for the column indices.

The couplings between aaa and bbb form the transportation polytope

U(a,b)={P∈R+n×m:P1m=a, PT1n=b},U(a,b) = \{P \in \mathbb{R}^{n\times m}_+ : P\mathbb{1}_m = a,\ P^{\mathsf T}\mathbb{1}_n = b\},U(a,b)={P∈R+n×m​:P1m​=a, PT1n​=b},

and the primal problem is LC(a,b)=min⁡P∈U(a,b)⟨C,P⟩\mathrm{L}_C(a,b) = \min_{P\in U(a,b)} \langle C, P\rangleLC​(a,b)=minP∈U(a,b)​⟨C,P⟩ with ⟨C,P⟩=∑i,jCi,jPi,j\langle C, P\rangle = \sum_{i,j} C_{i,j}P_{i,j}⟨C,P⟩=∑i,j​Ci,j​Pi,j​. A pair of vectors (f,g)∈Rn×Rm(f, g) \in \mathbb{R}^n \times \mathbb{R}^m(f,g)∈Rn×Rm is dual feasible, written (f,g)∈R(C)(f,g) \in R(C)(f,g)∈R(C), when fi+gj≤Ci,jf_i + g_j \le C_{i,j}fi​+gj​≤Ci,j​ for all (i,j)(i, j)(i,j). The dual problem (3.4) is

LC(a,b)=max⁡(f,g)∈R(C)⟨f,a⟩+⟨g,b⟩.\mathrm{L}_C(a,b) = \max_{(f,g)\in R(C)} \langle f, a\rangle + \langle g, b\rangle .LC​(a,b)=(f,g)∈R(C)max​⟨f,a⟩+⟨g,b⟩.

For a feasible pair (f,g)(f, g)(f,g), a pair of indices (i,j′)(i, j')(i,j′) is balanced if fi+gj=Ci,jf_i + g_j = C_{i,j}fi​+gj​=Ci,j​ and inactive if fi+gj<Ci,jf_i + g_j < C_{i,j}fi​+gj​<Ci,j​. A matrix PPP and a pair (f,g)(f, g)(f,g) are complementary if Pi,j>0P_{i,j} > 0Pi,j​>0 implies Ci,j=fi+gjC_{i,j} = f_i + g_jCi,j​=fi​+gj​, that is, PPP is supported on balanced pairs. For S⊂[ ⁣[n] ⁣]S \subset [\![n]\!]S⊂[[n]] the vector 1S∈Rn\mathbb{1}_S \in \mathbb{R}^n1S​∈Rn has ones at the indices in SSS and zeros elsewhere; likewise 1S′∈Rm\mathbb{1}_{S'} \in \mathbb{R}^m1S′​∈Rm for S′⊂[ ⁣[m] ⁣]′S' \subset [\![m]\!]'S′⊂[[m]]′.

Formalization targets

Goal: Proposition 3.6 (p. 416)

For a∈Σna \in \Sigma_na∈Σn​, b∈Σmb \in \Sigma_mb∈Σm​ and (f,g)∈R(C)(f,g) \in R(C)(f,g)∈R(C): either (f,g)(f, g)(f,g) is optimal for (3.4), or there exist S⊂[ ⁣[n] ⁣]S \subset [\![n]\!]S⊂[[n]], S′⊂[ ⁣[m] ⁣]′S' \subset [\![m]\!]'S′⊂[[m]]′ and ε0>0\varepsilon_0 > 0ε0​>0 such that for every 0<ε≤ε00 < \varepsilon \le \varepsilon_00<ε≤ε0​,

(f~,g~)=(f,g)+ε(1S,−1S′)∈R(C)and⟨f~,a⟩+⟨g~,b⟩>⟨f,a⟩+⟨g,b⟩.(\tilde f, \tilde g) = (f, g) + \varepsilon(\mathbb{1}_S, -\mathbb{1}_{S'}) \in R(C) \quad\text{and}\quad \langle \tilde f, a\rangle + \langle \tilde g, b\rangle > \langle f, a\rangle + \langle g, b\rangle .(f~​,g~​)=(f,g)+ε(1S​,−1S′​)∈R(C)and⟨f~​,a⟩+⟨g~​,b⟩>⟨f,a⟩+⟨g,b⟩.

Milestones

  1. Proposition 3.3 (p. 405). If P∈U(a,b)P \in U(a,b)P∈U(a,b) and (f,g)∈R(C)(f,g) \in R(C)(f,g)∈R(C) are complementary, then PPP is primal optimal and (f,g)(f,g)(f,g) is dual optimal.
  2. Proposition 3.5 (p. 415). If every balanced pair (i,j′)(i, j')(i,j′) with i∈Si \in Si∈S has j′∈S′j' \in S'j′∈S′, then (f,g)+ε(1S,−1S′)∈R(C)(f,g) + \varepsilon(\mathbb{1}_S, -\mathbb{1}_{S'}) \in R(C)(f,g)+ε(1S​,−1S′​)∈R(C) for all sufficiently small ε>0\varepsilon > 0ε>0.
  3. Objective change (proof of Proposition 3.6, pp. 416–417). The step changes the dual objective by exactly ε(1STa−1S′Tb)\varepsilon(\mathbb{1}_S^{\mathsf T}a - \mathbb{1}_{S'}^{\mathsf T}b)ε(1ST​a−1S′T​b).
  4. Labeled sets (proof of Proposition 3.6, pp. 416–417). If no coupling in U(a,b)U(a,b)U(a,b) is complementary to (f,g)(f,g)(f,g), then there are S,S′S, S'S,S′ with every balanced pair leaving SSS landing in S′S'S′, and
1STa−1S′Tb>0.\mathbb{1}_S^{\mathsf T}a - \mathbb{1}_{S'}^{\mathsf T}b > 0 .1ST​a−1S′T​b>0.

Significance

The result. Proposition 3.6 says that non-optimality of a feasible dual pair is always witnessed by a direction with entries in {0,±1}\{0, \pm 1\}{0,±1}, determined by two index sets, which keeps the pair feasible for a positive step and strictly improves the objective. This is what makes dual ascent a finite combinatorial method rather than a generic linear-programming iteration: the search for an ascent direction reduces to a maximum-flow computation on the bipartite graph of balanced pairs. Combined with the step length of Proposition 3.5, it is the primal-dual method, which reduces to the Hungarian algorithm on assignment problems. Milestone 1 is the optimality certificate of complementary slackness, used throughout the book's chapter 3.

Formalizing it. These results are classical and proved in the book and in Bertsimas and Tsitsiklis; no machine-checked proof of them is known to exist. The mission produces a formal statement and proof of the optimality-or-ascent alternative for the discrete Kantorovich dual, together with the complementary-slackness certificate in the transport setting. Milestone 4 is a Hall-type statement (a supply–demand theorem on a bipartite graph) whose formal proof is reusable for other matching and transportation results.

Difficulty

Milestones 1–3 are short computations. The content of the goal is in milestone 4. The obvious argument is linear-programming duality: if (f,g)(f,g)(f,g) is not optimal, some feasible direction improves the objective. But LP duality only produces an arbitrary real direction; the claim that a direction of the form (1S,−1S′)(\mathbb{1}_S, -\mathbb{1}_{S'})(1S​,−1S′​) suffices is a combinatorial statement. The book obtains S,S′S, S'S,S′ as the labeled nodes of a maximal flow (Ford–Fulkerson) and argues through max-flow/min-cut; the flow bookkeeping printed on p. 417 is garbled, so the step from "no complementary coupling exists" to "1STa>1S′Tb\mathbb{1}_S^{\mathsf T}a > \mathbb{1}_{S'}^{\mathsf T}b1ST​a>1S′T​b for a set closed under balanced edges" has to be supplied carefully. Separately, connecting "not optimal" to "no complementary coupling exists" needs the converse direction of complementary slackness or strong duality for the transport problem.

Formalization scope

Row and column indices are Fin n and Fin m (0-based); the primed column set [ ⁣[m] ⁣]′[\![m]\!]'[[m]]′ is just Fin m. Cost matrices and couplings are Matrix (Fin n) (Fin m) ℝ; histograms and potentials are real functions on Fin n, Fin m; Σn\Sigma_nΣn​ is Mathlib's stdSimplex ℝ (Fin n). Index sets S,S′S, S'S,S′ are Finsets and 1S\mathbb{1}_S1S​ is indicatorVec S. "Optimal for Problem (3.4)" is the predicate IsDualOptimal: feasible, and no feasible pair has a larger objective (no real infimum or supremum is used, so no junk value can enter). The book's "for a small enough ε>0\varepsilon > 0ε>0" is stated as "for every ε∈(0,ε0]\varepsilon \in (0, \varepsilon_0]ε∈(0,ε0​]", which is equivalent because R(C)R(C)R(C) is convex and the objective is linear.

Standing assumptions, all from the book: (f,g)(f, g)(f,g) is dual feasible (p. 415, "In what follows, (f,g)(f,g)(f,g) is a feasible dual pair in R(C)R(C)R(C)"); a,ba, ba,b are histograms in the simplex (used for the goal and milestone 4; without equal masses the dual is unbounded and optimality fails for every pair). Milestone 4 replaces the book's flow hypothesis "the throughput is strictly smaller than 1" by the equivalent flow-free statement "no coupling in U(a,b)U(a,b)U(a,b) is complementary to (f,g)(f,g)(f,g)"; flows, capacities and the labeling algorithm appear in no statement.

The goal admits a trivializing formalization: allowing an arbitrary direction (u,v)(u, v)(u,v) instead of (1S,−1S′)(\mathbb{1}_S, -\mathbb{1}_{S'})(1S​,−1S′​) turns Proposition 3.6 into plain non-optimality of a linear program. The statement here fixes the direction to (1S,−1S′)(\mathbb{1}_S, -\mathbb{1}_{S'})(1S​,−1S′​) exactly as the book does.

A complete development needs finite LP duality or complementary slackness for the transportation problem, and a max-flow/min-cut or Hall-type theorem on bipartite graphs with vertex capacities. Both are reusable well beyond this mission. Contributions welcome: proofs of the milestones, a self-contained proof of milestone 4 by induction or by a max-flow argument, and alternative proofs of the goal through LP duality plus a vertex argument.

Selected references

  • G. Peyré, M. Cuturi, Computational Optimal Transport, Foundations and Trends in Machine Learning 11(5–6):355–607, 2019. https://doi.org/10.1561/2200000073 (§3.1–3.3, §3.6, pp. 400–417)
  • D. Bertsimas, J. N. Tsitsiklis, Introduction to Linear Optimization, Athena Scientific, 1997, §7.7 (the primal-dual method) and pp. 305–308 (Ford–Fulkerson and the labeling algorithm).
  • H. W. Kuhn, The Hungarian method for the assignment problem, Naval Research Logistics Quarterly 2(1–2):83–97, 1955. https://doi.org/10.1002/nav.3800020109
  • L. R. Ford, D. R. Fulkerson, Maximal flow through a network, Canadian Journal of Mathematics 8:399–404, 1956. https://doi.org/10.4153/CJM-1956-045-5
9 thms4 active usersReviewed
🏆Completed
AnalysisOptimization·Captain: mikedeng1

Computational Optimal Transport X: For the Cost c = d a Function Is a c-Transform if and only if It Is 1-Lipschitz, and Then f^c = −fTextbook

Motivation

Optimal transport compares two probability distributions by the least cost of moving one onto the other. When the ground cost is itself a distance, c(x,y)=d(x,y)c(x,y)=d(x,y)c(x,y)=d(x,y), the resulting quantity is the 1-Wasserstein distance W1\mathcal W_1W1​, also called the earth mover's distance. It is the transport distance most used in practice for comparing histograms, images and point clouds, and it is the setting of Chapter 6 of G. Peyré and M. Cuturi, Computational Optimal Transport (FnT ML 2019).

For general costs the dual problem has two potentials (f,g)(f,g)(f,g) coupled by the constraint f(x)+g(y)≤c(x,y)f(x)+g(y)\le c(x,y)f(x)+g(y)≤c(x,y). For a metric cost the dual collapses to a single potential constrained to be 1-Lipschitz. This is the Kantorovich–Rubinstein formula (Kantorovich and Rubinstein, 1958, cited by the book on p. 473), the basis of dual computations of W1\mathcal W_1W1​: network-flow algorithms, the discrete linear programs of §6.1, and Wasserstein GANs, whose critics are 1-Lipschitz networks (Arjovsky, Chintala and Bottou, 2017). Proposition 6.1 of the book is the step that makes the collapse happen. It describes exactly which functions arise as ccc-transforms when c=dc=dc=d.

Setting

Let (X,d)(\mathcal X,d)(X,d) be a metric space and take Y=X\mathcal Y=\mathcal XY=X with ground cost c(x,y)=d(x,y)c(x,y)=d(x,y)c(x,y)=d(x,y). For a real function fff on X\mathcal XX its ccc-transform (the book's (5.1)) is

fc(y)=inf⁡x∈X d(x,y)−f(x),y∈X.f^c(y)=\inf_{x\in\mathcal X}\, d(x,y)-f(x),\qquad y\in\mathcal X .fc(y)=x∈Xinf​d(x,y)−f(x),y∈X.

The infimum can be −∞-\infty−∞ when the family is unbounded below. A function of the form gcg^cgc is called ccc-concave. The Lipschitz constant of fff is

Lip(f)=sup⁡{∣f(x)−f(y)∣d(x,y):(x,y)∈X2, x≠y},\mathrm{Lip}(f)=\sup\left\{\frac{|f(x)-f(y)|}{d(x,y)} : (x,y)\in\mathcal X^2,\ x\ne y\right\},Lip(f)=sup{d(x,y)∣f(x)−f(y)∣​:(x,y)∈X2, x=y},

and fff is 1-Lipschitz when Lip(f)≤1\mathrm{Lip}(f)\le 1Lip(f)≤1, i.e. ∣f(x)−f(y)∣≤d(x,y)|f(x)-f(y)|\le d(x,y)∣f(x)−f(y)∣≤d(x,y) for all x,yx,yx,y.

For the discrete companion, fix points z1,…,zN∈Xz_1,\dots,z_N\in\mathcal Xz1​,…,zN​∈X and probability histograms a,b∈ΣNa,b\in\Sigma_Na,b∈ΣN​ (nonnegative entries summing to one). Let Dk,ℓ=d(zk,zℓ)D_{k,\ell}=d(z_k,z_\ell)Dk,ℓ​=d(zk​,zℓ​). The couplings U(a,b)U(a,b)U(a,b) are the nonnegative N×NN\times NN×N matrices with row sums aaa and column sums bbb. The optimal transport cost is LD(a,b)=min⁡P∈U(a,b)⟨D,P⟩L_D(a,b)=\min_{P\in U(a,b)}\langle D,P\rangleLD​(a,b)=minP∈U(a,b)​⟨D,P⟩ with ⟨D,P⟩=∑k,ℓDk,ℓPk,ℓ\langle D,P\rangle=\sum_{k,\ell}D_{k,\ell}P_{k,\ell}⟨D,P⟩=∑k,ℓ​Dk,ℓ​Pk,ℓ​.

Formalization targets

Goal: Proposition 6.1 (p. 472)

For every real function fff on X\mathcal XX:

(∃ g∈C(X): f=gc)  ⟺  Lip(f)≤1,andLip(f)≤1 ⟹ fc=−f.\bigl(\exists\, g\in\mathcal C(\mathcal X):\ f=g^c\bigr)\iff \mathrm{Lip}(f)\le 1, \qquad\text{and}\qquad \mathrm{Lip}(f)\le1\ \Longrightarrow\ f^c=-f .(∃g∈C(X): f=gc)⟺Lip(f)≤1,andLip(f)≤1 ⟹ fc=−f.

Milestones (from the book's proof, pp. 472–473)

  1. If f=gcf=g^cf=gc is real valued, then ∣f(x)−f(y)∣≤d(x,y)|f(x)-f(y)|\le d(x,y)∣f(x)−f(y)∣≤d(x,y) for all x,yx,yx,y.
  2. If Lip(f)≤1\mathrm{Lip}(f)\le1Lip(f)≤1 and g=−fg=-fg=−f, then gc(y)=inf⁡x [d(x,y)+f(x)]=f(y)g^c(y)=\inf_x\,[d(x,y)+f(x)]=f(y)gc(y)=infx​[d(x,y)+f(x)]=f(y) for every yyy.
  3. If Lip(f)≤1\mathrm{Lip}(f)\le1Lip(f)≤1, then fc(y)=inf⁡x [d(x,y)−f(x)]=−f(y)f^c(y)=\inf_x\,[d(x,y)-f(x)]=-f(y)fc(y)=infx​[d(x,y)−f(x)]=−f(y) for every yyy.

Companion: the discrete formula (6.2) (p. 473)

LD(a,b)=max⁡f∈RN{∑kfk(ak−bk):∀(k,ℓ), ∣fk−fℓ∣≤d(zk,zℓ)},L_D(a,b)=\max_{\mathbf f\in\mathbb R^N}\Bigl\{\sum_k \mathbf f_k(a_k-b_k) : \forall (k,\ell),\ |\mathbf f_k-\mathbf f_\ell|\le d(z_k,z_\ell)\Bigr\},LD​(a,b)=f∈RNmax​{k∑​fk​(ak​−bk​):∀(k,ℓ), ∣fk​−fℓ​∣≤d(zk​,zℓ​)},

with the minimum on the left and the maximum on the right both attained.

The mission also references the measure-theoretic Kantorovich–Rubinstein theorem already proved on the platform (WassersteinDRO.Duality.kantorovich_rubinstein). It is the book's (6.1) on a normed space.

Significance

The result. Proposition 6.1 identifies the ccc-concave functions for a metric cost with the 1-Lipschitz functions, and shows that the ccc-transform of such a function is −f-f−f. Starting from the dual problem in a single potential, the book then replaces (g,gc)(g,g^c)(g,gc) by (gc,−gc)(g^c,-g^c)(gc,−gc). This yields (6.1), W1(α,β)=max⁡Lip(f)≤1∫f d(α−β)\mathcal W_1(\alpha,\beta)=\max_{\mathrm{Lip}(f)\le1}\int f\,\mathrm d(\alpha-\beta)W1​(α,β)=maxLip(f)≤1​∫fd(α−β). Consequently W1\mathcal W_1W1​ is a norm on measures of zero total mass. In the discrete case the dual is the finite program (6.2), whose constraints only involve pairs of support points. The min-cost-flow formulations and the Lipschitz-critic methods built on W1\mathcal W_1W1​ all start from this characterization.

Formalizing it. The proposition and (6.2) are classical, with complete proofs in the book. The mission produces machine-checked versions in a form that later chapters of this series can reuse. (6.2) is the discrete, linear-programming form of Kantorovich–Rubinstein duality, and the referenced platform theorem does not imply it without further work. To the best of this mission's search of the platform, neither Proposition 6.1 nor (6.2) has been formalized there. Villani's double-conjugate theorem (ψc)c=ψ(\psi^c)^c=\psi(ψc)c=ψ for ccc-concave ψ\psiψ is published, but it is a different statement.

Difficulty

Proposition 6.1 is short; its content is the characterization, not a long argument. One point needs care: an infimum over an arbitrary metric space can be −∞-\infty−∞. The statement "f=gcf=g^cf=gc" therefore carries the information that the infimum is finite at every point. An encoding in which the infimum of an unbounded family silently becomes 000 would make the forward direction false, or decide it by a default value. The discrete companion (6.2) is a genuine duality theorem. It needs both the attainment of the transport minimum and a strong-duality argument specialised to a metric cost matrix. Ordinary LP duality yields two potentials, and the reduction to a single 1-Lipschitz potential is exactly Proposition 6.1 on the finite set {z1,…,zN}\{z_1,\dots,z_N\}{z1​,…,zN​}.

Formalization scope

  • X\mathcal XX is an arbitrary Lean MetricSpace; no compactness, completeness or separability is assumed, since the book's §6.1 assumes only that ddd is a distance.
  • The ccc-transform is the published MongeKantorovichYao.cConjugate, applied to the cost (x,y)↦d(x,y)(x,y)\mapsto d(x,y)(x,y)↦d(x,y). Its infimum is taken in EReal over all x∈Xx\in\mathcal Xx∈X, so it never takes a default value. "f=gcf=g^cf=gc" is an equality in EReal with fff real valued.
  • Lip(f)≤1\mathrm{Lip}(f)\le1Lip(f)≤1 is Mathlib's LipschitzWith 1 f, which is equivalent to the book's supremum formula.
  • In the goal, ggg ranges over continuous real functions (the book's C(X)\mathcal C(\mathcal X)C(X)). The book's f∈C(X)f\in\mathcal C(\mathcal X)f∈C(X) is not assumed: both sides of the equivalence force fff to be 1-Lipschitz, hence continuous. Milestone 1 allows any real ggg, which is more general than the book's statement.
  • No Nonempty assumption: for empty X\mathcal XX every claim holds trivially, and for nonempty X\mathcal XX the infimum ranges over a nonempty family.
  • In (6.2), indices are Fin N. The two measures are written on common points zkz_kzk​, which need not be distinct, and W1(α,β)\mathcal W_1(\alpha,\beta)W1​(α,β) is the discrete cost LD(a,b)L_D(a,b)LD​(a,b) of (2.11).
  • The statement is not trivialised by its encoding: a sorry-free check shows that fcf^cfc equals −∞-\infty−∞, not a junk value, on an unbounded-below example. The hypotheses of (6.2) are satisfiable, with ab⊤∈U(a,b)ab^\top\in U(a,b)ab⊤∈U(a,b).

Contributions welcome: proofs of the milestones and goal, and a proof of (6.2), via finite LP duality and the milestones or via the referenced measure-theoretic theorem.

Selected references

  • G. Peyré and M. Cuturi, Computational Optimal Transport, Foundations and Trends in Machine Learning 11(5–6):355–607, 2019. https://doi.org/10.1561/2200000073 (arXiv: https://arxiv.org/abs/1803.00567)
  • L. V. Kantorovich and G. S. Rubinstein, On a space of totally additive functions, Vestn. Leningrad Universitet 13:52–59, 1958 (Russian; no stable online link located, cited after the book's bibliography).
  • C. Villani, Optimal Transport: Old and New, Grundlehren der mathematischen Wissenschaften 338, Springer, 2009. https://doi.org/10.1007/978-3-540-71050-9
  • M. Arjovsky, S. Chintala and L. Bottou, Wasserstein Generative Adversarial Networks, ICML 2017. https://arxiv.org/abs/1701.07875
7 thms4 active usersReviewed
🏆Completed
Operations ResearchOptimization·Captain: mikedeng1

Computational Optimal Transport II: For a Distance Matrix D and p ≥ 1, W_p(a, b) = L_{D^p}(a, b)^{1/p} Is a Distance on the Probability SimplexTextbook

Motivation

Comparing histograms is a basic operation in statistics, computer vision and machine learning: a bag of image descriptors, a word-frequency vector, a discretized density. When the bins carry a geometry (colors that are close to one another, words with related meanings), a comparison that ignores the geometry, such as an ℓp\ell^pℓp norm between the histogram vectors, treats a small shift of mass to a neighboring bin as severely as a shift to a distant bin. Optimal transport compares two histograms by the cheapest way to move one onto the other, with costs read off a ground distance between bins. Rubner, Tomasi and Guibas introduced it to image retrieval as the earth mover's distance (Rubner et al. 2000), and it has since been used for document classification (Kusner et al. 2015) and as a training loss (Frogner et al. 2015).

These uses rely on the transport cost being a distance, so that nearest-neighbor search, clustering and the geometry of the space of histograms behave as expected. This mission formalizes the statement that it is one: Proposition 2.2 of Peyré and Cuturi, Computational Optimal Transport (2019), the discrete form of the classical fact that the ppp-Wasserstein distance is a metric (Villani 2003, Theorem 7.3).

Setting

Fix n≥1n\ge1n≥1 and write [ ⁣[n] ⁣]={1,…,n}[\![n]\!]=\{1,\dots,n\}[[n]]={1,…,n}. The probability simplex is

Σn={a∈R+n:∑i=1nai=1};\Sigma_n=\Big\{a\in\mathbb R^n_+ : \textstyle\sum_{i=1}^n a_i=1\Big\};Σn​={a∈R+n​:∑i=1n​ai​=1};

its elements are histograms. For a,b∈Σna,b\in\Sigma_na,b∈Σn​ the set of couplings (2.10) is

U(a,b)={P∈R+n×n:P1n=a, P⊤1n=b},U(a,b)=\{P\in\mathbb R^{n\times n}_+ : P\mathbb 1_n=a,\ P^{\top}\mathbb 1_n=b\},U(a,b)={P∈R+n×n​:P1n​=a, P⊤1n​=b},

the nonnegative matrices with row sums aaa and column sums bbb; Pi,jP_{i,j}Pi,j​ is the mass sent from bin iii to bin jjj. For a cost matrix CCC, the Kantorovich problem (2.11) is

LC(a,b)=min⁡P∈U(a,b)⟨C,P⟩,⟨C,P⟩=∑i,jCi,jPi,j.L_C(a,b)=\min_{P\in U(a,b)}\langle C,P\rangle,\qquad \langle C,P\rangle=\sum_{i,j}C_{i,j}P_{i,j}.LC​(a,b)=P∈U(a,b)min​⟨C,P⟩,⟨C,P⟩=i,j∑​Ci,j​Pi,j​.

A matrix D∈R+n×nD\in\mathbb R^{n\times n}_+D∈R+n×n​ is a distance on [ ⁣[n] ⁣][\![n]\!][[n]] if it is symmetric, Di,j=0D_{i,j}=0Di,j​=0 exactly when i=ji=ji=j, and Di,k≤Di,j+Dj,kD_{i,k}\le D_{i,j}+D_{j,k}Di,k​≤Di,j​+Dj,k​ for all i,j,ki,j,ki,j,k. For p≥1p\ge1p≥1, write Dp=(Di,jp)i,jD^p=(D_{i,j}^p)_{i,j}Dp=(Di,jp​)i,j​ for the entrywise power. The ppp-Wasserstein distance (2.17) is

Wp(a,b)=LDp(a,b)1/p.\mathrm W_p(a,b)=L_{D^p}(a,b)^{1/p}.Wp​(a,b)=LDp​(a,b)1/p.

In the Lean development these are couplings a b, frob C P, otCost C a b, powCost D p and W D p a b in the namespace CompOT.Metric.

Formalization targets

Goal: Proposition 2.2 (p. 377)

For a distance matrix DDD and p≥1p\ge1p≥1, for all a,b,c∈Σna,b,c\in\Sigma_na,b,c∈Σn​,

Wp(a,b)=Wp(b,a),Wp(a,b)≥0,Wp(a,b)=0  ⟺  a=b,Wp(a,c)≤Wp(a,b)+Wp(b,c).\mathrm W_p(a,b)=\mathrm W_p(b,a),\quad \mathrm W_p(a,b)\ge0,\quad \mathrm W_p(a,b)=0\iff a=b,\quad \mathrm W_p(a,c)\le\mathrm W_p(a,b)+\mathrm W_p(b,c).Wp​(a,b)=Wp​(b,a),Wp​(a,b)≥0,Wp​(a,b)=0⟺a=b,Wp​(a,c)≤Wp​(a,b)+Wp​(b,c).

Milestones, from the book's proof (pp. 377–379)

  1. diag(a)\mathrm{diag}(a)diag(a) is an optimal coupling in U(a,a)U(a,a)U(a,a) for DpD^pDp and Wp(a,a)=0\mathrm W_p(a,a)=0Wp​(a,a)=0.
  2. If a≠ba\ne ba=b, every P∈U(a,b)P\in U(a,b)P∈U(a,b) has Pi,j≠0P_{i,j}\ne0Pi,j​=0 for some i≠ji\ne ji=j.
  3. If a≠ba\ne ba=b, then Wp(a,b)>0\mathrm W_p(a,b)>0Wp​(a,b)>0.
  4. Wp(a,b)=Wp(b,a)\mathrm W_p(a,b)=\mathrm W_p(b,a)Wp​(a,b)=Wp​(b,a).
  5. Gluing. With b~j=bj\tilde b_j=b_jb~j​=bj​ if bj>0b_j>0bj​>0 and b~j=1\tilde b_j=1b~j​=1 otherwise, for P∈U(a,b)P\in U(a,b)P∈U(a,b) and Q∈U(b,c)Q\in U(b,c)Q∈U(b,c),
S=P diag(1/b~) Q∈U(a,c).S=P\,\mathrm{diag}(1/\tilde b)\,Q\in U(a,c).S=Pdiag(1/b~)Q∈U(a,c).
  1. Minkowski chain. For the same P,Q,SP,Q,SP,Q,S,
⟨S,Dp⟩1/p≤⟨P,Dp⟩1/p+⟨Q,Dp⟩1/p.\langle S,D^p\rangle^{1/p}\le\langle P,D^p\rangle^{1/p}+\langle Q,D^p\rangle^{1/p}.⟨S,Dp⟩1/p≤⟨P,Dp⟩1/p+⟨Q,Dp⟩1/p.

The case p=1p=1p=1 of the goal's attainment and triangle inequality is already proved on the platform, in another encoding (couplings as functions on V×VV\times VV×V for a finite metric space VVV): MarkovMixing.transport_metric, included here as a reference item. The goal for general p≥1p\ge1p≥1 is new.

Significance

The result. Proposition 2.2 makes (Σn,Wp)(\Sigma_n,\mathrm W_p)(Σn​,Wp​) a metric space whose metric depends on the ground distance DDD. This is what entitles later chapters of the book to speak of Wasserstein barycenters, geodesics and Lipschitz properties of the transport cost, and it underlies the use of Wp\mathrm W_pWp​ as a loss or a retrieval distance. Remark 2.15 of the same page records that for 0<p≤10<p\le10<p≤1 it is Wpp\mathrm W_p^pWpp​, not Wp\mathrm W_pWp​, that is a distance, so the restriction p≥1p\ge1p≥1 is substantive.

Formalizing it. The result is classical and fully proved in the book; it has not been machine-checked for general ppp in this discrete matrix form. The platform's p=1p=1p=1 result uses a different encoding of couplings, so this mission supplies the matrix-form transportation polytope U(a,b)U(a,b)U(a,b), the cost LCL_CLC​ and Wp\mathrm W_pWp​ shared with the other missions of this series, plus a discrete gluing lemma and a Minkowski step stated for arbitrary couplings, which are reusable in any finite transport argument.

Difficulty

Symmetry and definiteness are short once the minimum in LDpL_{D^p}LDp​ is known to be attained, which needs compactness of U(a,b)U(a,b)U(a,b); strict positivity for a≠ba\ne ba=b fails for an infimum that is not attained. The triangle inequality is the substantial part. The direct idea of composing the two transport plans as PQPQPQ does not give a coupling: the composition must be renormalized by the middle histogram bbb, and bbb may have zero entries, on which a naive 1/bj1/b_j1/bj​ is undefined. The renormalized matrix must then be shown to have the right marginals, which uses that Pi,j=0P_{i,j}=0Pi,j​=0 wherever bj=0b_j=0bj​=0. The final step needs Minkowski's inequality for weighted ℓp\ell^pℓp sums together with the triangle inequality of DDD and the monotonicity of t↦tpt\mapsto t^pt↦tp; for p<1p<1p<1 it fails.

Formalization scope

Indices [ ⁣[n] ⁣][\![n]\!][[n]] are Fin n (0-based). Histograms are Fin n → ℝ, matrices Matrix (Fin n) (Fin n) ℝ, and Σn\Sigma_nΣn​ is Mathlib's stdSimplex ℝ (Fin n); histograms may have zero entries. LC(a,b)L_C(a,b)LC​(a,b) is a real infimum over the subtype U(a,b)U(a,b)U(a,b), and every theorem assumes the histograms lie in Σn\Sigma_nΣn​, where U(a,b)U(a,b)U(a,b) is nonempty (it contains ab⊤ab^{\top}ab⊤) and compact. That attainment is part of what a solver proves; it is not a hypothesis. The exponent ppp is a real number with p≥1p\ge1p≥1, and all powers are real powers. The book's "positive" is read as Wp≥0\mathrm W_p\ge0Wp​≥0; strict positivity is the clause Wp(a,b)=0  ⟺  a=b\mathrm W_p(a,b)=0\iff a=bWp​(a,b)=0⟺a=b. The hypotheses of the goal are exactly those of the page: Di,j≥0D_{i,j}\ge0Di,j​≥0, (i)–(iii), and p≥1p\ge1p≥1. The milestones carry the same setting, and milestones 5 and 6 are stated for all couplings instead of only optimal ones, since the proof does not use optimality there.

A trivializing formalization is ruled out: without the simplex hypotheses U(a,b)U(a,b)U(a,b) can be empty and the real infimum would be 000, making "Wp(a,b)=0\mathrm W_p(a,b)=0Wp​(a,b)=0" true for unrelated histograms; and the four claims are stated about Wp\mathrm W_pWp​ itself, not about the glued coupling or about a minimum over a set assumed nonempty.

Needed infrastructure: compactness and nonemptiness of U(a,b)U(a,b)U(a,b) and attainment of LCL_CLC​; transposition of couplings; the gluing construction; Minkowski's inequality for finite weighted sums (Mathlib has Real.Lp_add_le and its weighted variants). Proofs of any milestone are welcome, as are reusable lemmas on U(a,b)U(a,b)U(a,b).

Selected references

  • G. Peyré and M. Cuturi, Computational Optimal Transport, Foundations and Trends in Machine Learning 11(5–6):355–607, 2019. https://doi.org/10.1561/2200000073 (Proposition 2.2, p. 377).
  • C. Villani, Topics in Optimal Transportation, Graduate Studies in Mathematics 58, AMS, 2003. https://doi.org/10.1090/gsm/058
  • Y. Rubner, C. Tomasi and L. J. Guibas, The Earth Mover's Distance as a Metric for Image Retrieval, International Journal of Computer Vision 40(2):99–121, 2000. https://doi.org/10.1023/A:1026543900054
  • M. Kusner, Y. Sun, N. Kolkin and K. Weinberger, From Word Embeddings to Document Distances, ICML 2015. https://proceedings.mlr.press/v37/kusnerb15.html
  • C. Frogner, C. Zhang, H. Mobahi, M. Araya-Polo and T. Poggio, Learning with a Wasserstein Loss, NeurIPS 2015. https://arxiv.org/abs/1506.05439
  • D. A. Levin, Y. Peres and E. L. Wilmer, Markov Chains and Mixing Times, AMS, 2009, Lemma 14.3 (the p=1p=1p=1 case on the platform). https://doi.org/10.1090/mbk/058
10 thms4 active usersReviewed
🏆Completed
Linear OptimizationOperations ResearchOptimization·Captain: mikedeng1

Computational Optimal Transport III: Discrete Kantorovich Duality — L_C(a, b) Is the Maximum of ⟨f, a⟩ + ⟨g, b⟩ over Potentials with f ⊕ g ≤ CTextbook

Why discrete Kantorovich duality

Optimal transport between two histograms is a linear program: move mass aia_iai​ out of each source bin iii and deliver mass bjb_jbj​ to each target bin jjj at unit cost Ci,jC_{i,j}Ci,j​, as cheaply as possible. Its dual replaces the transport plan by a pair of price vectors and is the basis of most of the computational methods in G. Peyré and M. Cuturi's Computational Optimal Transport (Foundations and Trends in Machine Learning, 2019, doi:10.1561/2200000073): the dual ascent and Hungarian methods, the auction algorithm, the semi-discrete solvers of Chapter 5, and the dual reading of Sinkhorn's algorithm in Chapter 4. The book states the duality as Proposition 2.4 and derives it from linear programming strong duality (Bertsimas and Tsitsiklis, Introduction to Linear Optimization, 1997, Theorem 4.4). Remark 2.21 gives it an economic reading: a vendor sets a collection price fif_ifi​ at each warehouse and a delivery price gjg_jgj​ at each factory, and the best price the vendor can charge while staying below every shipping cost equals the optimal transport cost.

This is the third mission in a series on the book. It covers §2.5 (Dual Problem, pp. 382–385) and §3.1–3.3 (Kantorovich Linear Programs, C-Transforms, Complementary Slackness, pp. 400–405).

Setting

Indices run over ⟦n⟧={1,…,n}\llbracket n\rrbracket=\{1,\dots,n\}[[n]]={1,…,n} and ⟦m⟧\llbracket m\rrbracket[[m]]. A histogram is a vector in the probability simplex Σn={a∈R+n:∑iai=1}\Sigma_n=\{a\in\mathbb R^n_+ : \sum_i a_i = 1\}Σn​={a∈R+n​:∑i​ai​=1}. Fix a∈Σna\in\Sigma_na∈Σn​, b∈Σmb\in\Sigma_mb∈Σm​ and a cost matrix C∈Rn×mC\in\mathbb R^{n\times m}C∈Rn×m; no sign or metric condition is imposed on CCC.

  • The couplings (2.10) are U(a,b)={P∈R+n×m:P1m=a, PT1n=b}\mathbf U(a,b)=\{P\in\mathbb R_+^{n\times m}: P\mathbb 1_m=a,\ P^{\mathsf T}\mathbb 1_n=b\}U(a,b)={P∈R+n×m​:P1m​=a, PT1n​=b}.
  • The Kantorovich problem (2.11) is LC(a,b)=min⁡P∈U(a,b)⟨C,P⟩L_C(a,b)=\min_{P\in\mathbf U(a,b)}\langle C,P\rangleLC​(a,b)=minP∈U(a,b)​⟨C,P⟩, with ⟨C,P⟩=∑i,jCi,jPi,j\langle C,P\rangle=\sum_{i,j}C_{i,j}P_{i,j}⟨C,P⟩=∑i,j​Ci,j​Pi,j​.
  • The admissible dual variables (2.21) are R(C)={(f,g)∈Rn×Rm:fi+gj≤Ci,j ∀i,j}\mathbf R(C)=\{(f,g)\in\mathbb R^n\times\mathbb R^m : f_i+g_j\le C_{i,j}\ \forall i,j\}R(C)={(f,g)∈Rn×Rm:fi​+gj​≤Ci,j​ ∀i,j}, written f⊕g≤Cf\oplus g\le Cf⊕g≤C.
  • The CCC-transform of f∈Rnf\in\mathbb R^nf∈Rn is (fC)j=min⁡iCi,j−fi(f^C)_j=\min_i C_{i,j}-f_i(fC)j​=mini​Ci,j​−fi​, and the Cˉ\bar CCˉ-transform of g∈Rmg\in\mathbb R^mg∈Rm is (gCˉ)i=min⁡jCi,j−gj(g^{\bar C})_i=\min_j C_{i,j}-g_j(gCˉ)i​=minj​Ci,j​−gj​ (§3.2).
  • PPP and (f,g)(f,g)(f,g) are complementary w.r.t. CCC (Definition 3.1) if Ci,j=fi+gjC_{i,j}=f_i+g_jCi,j​=fi​+gj​ whenever Pi,j>0P_{i,j}>0Pi,j​>0.

In Lean these are couplings, frob, IsOptimalCoupling, dualFeasible, dualObj, IsDualOptimal, cTransform, cbarTransform and Complementary in the namespace CompOT.Duality.

Formalization targets

Goal: Proposition 2.4 (p. 382)

LC(a,b)=max⁡(f,g)∈R(C) ⟨f,a⟩+⟨g,b⟩.L_C(a,b)=\max_{(f,g)\in\mathbf R(C)}\ \langle f,a\rangle+\langle g,b\rangle .LC​(a,b)=(f,g)∈R(C)max​ ⟨f,a⟩+⟨g,b⟩.

Stated with both extrema attained: there are an optimal coupling PPP and a dual optimal pair (f,g)(f,g)(f,g) with ⟨C,P⟩=⟨f,a⟩+⟨g,b⟩\langle C,P\rangle=\langle f,a\rangle+\langle g,b\rangle⟨C,P⟩=⟨f,a⟩+⟨g,b⟩.

Milestones

  1. Weak duality (Remark 2.21, p. 385): ⟨C,P⟩≥∑i,jPi,j(fi+gj)=⟨f,a⟩+⟨g,b⟩\langle C,P\rangle\ge\sum_{i,j}P_{i,j}(f_i+g_j)=\langle f,a\rangle+\langle g,b\rangle⟨C,P⟩≥∑i,j​Pi,j​(fi​+gj​)=⟨f,a⟩+⟨g,b⟩ for P∈U(a,b)P\in\mathbf U(a,b)P∈U(a,b) and (f,g)∈R(C)(f,g)\in\mathbf R(C)(f,g)∈R(C).
  2. The CCC-transform is the best second potential (§3.2, p. 403): (f,fC)∈R(C)(f,f^C)\in\mathbf R(C)(f,fC)∈R(C), and g≤fCg\le f^Cg≤fC whenever (f,g)∈R(C)(f,g)\in\mathbf R(C)(f,g)∈R(C).
  3. Semi-dual inequality (§3.2, p. 403): ⟨f,a⟩+⟨g,b⟩≤⟨f,a⟩+⟨fC,b⟩\langle f,a\rangle+\langle g,b\rangle\le\langle f,a\rangle+\langle f^C,b\rangle⟨f,a⟩+⟨g,b⟩≤⟨f,a⟩+⟨fC,b⟩ for (f,g)∈R(C)(f,g)\in\mathbf R(C)(f,g)∈R(C).
  4. Proposition 3.1 (pp. 403–404): f≤f′⇒fC≥f′Cf\le f'\Rightarrow f^C\ge f'^Cf≤f′⇒fC≥f′C; fCCˉ≥ff^{C\bar C}\ge ffCCˉ≥f and gCˉC≥gg^{\bar CC}\ge ggCˉC≥g; fCCˉC=fCf^{C\bar CC}=f^CfCCˉC=fC.
  5. Proposition 3.3 (p. 405): complementary feasible solutions are primal and dual optimal.
  6. Proposition 3.2 (p. 404): for optimal P⋆P^\starP⋆ and (f⋆,g⋆)(f^\star,g^\star)(f⋆,g⋆), Pi,j⋆(Ci,j−fi⋆−gj⋆)=0P^\star_{i,j}(C_{i,j}-f^\star_i-g^\star_j)=0Pi,j⋆​(Ci,j​−fi⋆​−gj⋆​)=0 for all (i,j)(i,j)(i,j).
  7. The semi-dual (3.5) (p. 403): LC(a,b)=max⁡f∈Rn⟨f,a⟩+⟨fC,b⟩L_C(a,b)=\max_{f\in\mathbb R^n}\langle f,a\rangle+\langle f^C,b\rangleLC​(a,b)=maxf∈Rn​⟨f,a⟩+⟨fC,b⟩.

Milestones 6 and 7 are consequences of the goal; milestones 1 and 5 do not need it.

Significance

Proposition 2.4 is the finite-dimensional form of Kantorovich duality. It turns the optimal cost into a maximum over price vectors, so that any admissible pair of prices certifies a lower bound on LC(a,b)L_C(a,b)LC​(a,b) and an optimal pair certifies optimality of a plan through complementary slackness (Propositions 3.2 and 3.3). The CCC-transform reduces the dual to a concave maximization in one vector (3.5), which is the form used for semi-discrete transport and for stochastic dual methods; Proposition 3.1 shows that alternating CCC- and Cˉ\bar CCˉ-transforms stalls after one round.

All of these results are classical and proved in the book or by direct reference to linear programming. General-form LP strong duality, weak duality and complementary slackness are already machine-checked on the platform (LinearOptimization.lp_strong_duality and its siblings, from the Bertsimas–Tsitsiklis series); measure-theoretic weak Kantorovich duality is also on the platform with integrability hypotheses. What this mission adds is the book's own discrete statements in the book's notation, as a base that later missions of the series (dual ascent, auction, entropic duality) can cite, with the CCC-transform calculus of §3.2 formalized for real-valued finite costs.

Difficulty

Weak duality, the CCC-transform facts and Proposition 3.3 are finite computations with sums and minima. The content of the mission is the equality in Proposition 2.4 together with attainment of both the minimum and the maximum. Attainment of the minimum needs compactness and nonemptiness of U(a,b)\mathbf U(a,b)U(a,b); attainment of the maximum is not a compactness argument, since R(C)\mathbf R(C)R(C) is unbounded (it is invariant under (f,g)↦(f+t,g−t)(f,g)\mapsto(f+t,g-t)(f,g)↦(f+t,g−t)). Reducing Proposition 2.4 to the general LP statement requires an explicit translation of U(a,b)\mathbf U(a,b)U(a,b) and R(C)\mathbf R(C)R(C) into the general-form primal–dual pair, including the sign conventions of equality-constrained primal variables and free dual variables. The Lagrangian argument on p. 382–383 exchanges a min and a max without justification beyond "always possible for linear programs", so it does not yield a proof by itself.

Formalization scope

Indices are 0-based (Fin n, Fin m); matrices are Matrix (Fin n) (Fin m) ℝ; all quantities are real. Histograms are encoded as a ∈ stdSimplex ℝ (Fin n), the book's standing convention for (a,b)(a,b)(a,b), and every statement involving aaa or bbb carries it; this also forces n,m≥1n,m\ge1n,m≥1. Zero entries in aaa and bbb are allowed. Optimality of a plan and of a dual pair are predicates quantifying over the whole feasible set, never real ⨅/⨆, so no junk value from an empty or unbounded set can enter. The CCC-transforms are real infima over a finite index set; statements that use them without histograms assume n≥1n\ge1n≥1 (and m≥1m\ge1m≥1 where the Cˉ\bar CCˉ-transform appears), because Lean's infimum over an empty index is 000.

The goal cannot be satisfied trivially: it asserts existence of a plan that is optimal against every coupling and a pair that is optimal against every admissible pair, with equal values; dropping either optimality clause, or the equal-mass hypotheses, changes the theorem.

Two printed slips are corrected and disclosed in the item notes: Proposition 3.2 prints Ci,j−fi⋆+gj⋆C_{i,j}-f^\star_i+g^\star_jCi,j​−fi⋆​+gj⋆​ where its proof uses Ci,j−fi⋆−gj⋆C_{i,j}-f^\star_i-g^\star_jCi,j​−fi⋆​−gj⋆​, and Propositions 3.2 and 3.3 refer to the primal and dual as "(2.24)" and "(2.11)", meaning the discrete primal (2.11) and dual (2.20).

Useful infrastructure: the platform's general-form LP strong duality (included as a reference item), Mathlib's stdSimplex and finite infima. Contributions welcome: proofs of each milestone, a direct proof of Proposition 2.4 by reduction to the LP theorem, and alternative proofs of the goal.

Selected references

  • G. Peyré and M. Cuturi, Computational Optimal Transport, Foundations and Trends in Machine Learning 11(5–6):355–607, 2019. https://doi.org/10.1561/2200000073
  • D. Bertsimas and J. N. Tsitsiklis, Introduction to Linear Optimization, Athena Scientific, 1997 (Theorem 4.4, strong duality).
  • L. Kantorovich, On the transfer of masses, Doklady Akademii Nauk SSSR 37:199–201, 1942 (English translation: J. Math. Sci. 133:1381–1382, 2006). https://doi.org/10.1007/s10958-006-0049-2
10 thms4 active usersReviewed
Machine LearningOperations ResearchOptimization·Captain: mikedeng1

Regularization via Mass Transportation II: Wasserstein-Robust Linear Regression Equals Empirical Loss plus a Dual-Norm PenaltyResearch Paper

Motivation

Ordinary least squares and its robust relatives (least absolute deviations, Huber, ϵ\epsilonϵ-insensitive and quantile regression) fit a linear predictor by minimizing an average loss over the training sample. That average estimates the out-of-sample error poorly when the sample is small, and the usual fix is to add a regularization penalty such as a norm of the weights. Choosing that penalty is often a heuristic. Distributionally robust optimization gives one principled derivation of it: hedge against every data-generating distribution that is close to the empirical one in a Wasserstein distance, and minimize the worst-case expected loss.

S. Shafieezadeh-Abadeh, D. Kuhn and P. Mohajerin Esfahani, Regularization via Mass Transportation (arXiv:1710.10016v3, 2019; JMLR 20, 2019), show that for linear regression with a convex Lipschitz loss this worst-case problem is exactly a regularized empirical risk problem, with an explicit dual-norm penalty. The same identity appears for the logistic loss in Shafieezadeh-Abadeh, Mohajerin Esfahani and Kuhn, Distributionally Robust Logistic Regression (NeurIPS 2015, arXiv:1509.09259). For a general convex loss it is Theorem 10 of the tutorial by Kuhn, Mohajerin Esfahani, Nguyen and Shafieezadeh-Abadeh (arXiv:1908.08729). Blanchet, Kang and Murthy (arXiv:1610.05627) obtain the square-root Lasso from a type-2 transport cost. This mission formalizes the regression theorem of the first paper, Theorem 3.1(ii) on p. 8. The source PDF is the arXiv preprint v3, and every page and label cited here refers to it.

Setting

Data. Inputs are x∈Rnx\in\mathbb R^nx∈Rn and outputs are y∈Ry\in\mathbb Ry∈R. A pair is written ξ=(x,y)∈Rn+1\xi=(x,y)\in\mathbb R^{n+1}ξ=(x,y)∈Rn+1. The training samples are (x^i,y^i)(\hat x_i,\hat y_i)(x^i​,y^​i​) for i=1,…,Ni=1,\dots,Ni=1,…,N, and P^N=1N∑i=1Nδ(x^i,y^i)\hat{\mathbb P}_N=\frac1N\sum_{i=1}^N\delta_{(\hat x_i,\hat y_i)}P^N​=N1​∑i=1N​δ(x^i​,y^​i​)​ is their empirical distribution (§2.1, p. 5).

Hypotheses and loss. A weight vector w∈Rnw\in\mathbb R^nw∈Rn defines the linear hypothesis h(x)=⟨w,x⟩h(x)=\langle w,x\rangleh(x)=⟨w,x⟩. A univariate convex loss L:R→RL:\mathbb R\to\mathbb RL:R→R defines the regression loss ℓ(⟨w,x⟩,y)=L(⟨w,x⟩−y)\ell(\langle w,x\rangle,y)=L(\langle w,x\rangle-y)ℓ(⟨w,x⟩,y)=L(⟨w,x⟩−y) (§3.1, p. 8). The residual ⟨w,x⟩−y\langle w,x\rangle-y⟨w,x⟩−y is the pairing of ξ\xiξ with the vector (w,−1)(w,-1)(w,−1).

Norms. Rn+1\mathbb R^{n+1}Rn+1 carries an arbitrary norm ∥⋅∥\|\cdot\|∥⋅∥ with dual norm ∥z∥∗=sup⁡{⟨z,ξ⟩:∥ξ∥≤1}\|z\|_*=\sup\{\langle z,\xi\rangle:\|\xi\|\le1\}∥z∥∗​=sup{⟨z,ξ⟩:∥ξ∥≤1} (§1.1, p. 4). The Lipschitz modulus of LLL is lip(L)=sup⁡z≠z′∣L(z)−L(z′)∣/∣z−z′∣\mathrm{lip}(L)=\sup_{z\ne z'}|L(z)-L(z')|/|z-z'|lip(L)=supz=z′​∣L(z)−L(z′)∣/∣z−z′∣, and the convex conjugate is L∗(θ)=sup⁡zθz−L(z)L^*(\theta)=\sup_z\theta z-L(z)L∗(θ)=supz​θz−L(z) (§1.1).

Wasserstein ball. With transport cost d(ξ,ξ′)=∥ξ−ξ′∥d(\xi,\xi')=\|\xi-\xi'\|d(ξ,ξ′)=∥ξ−ξ′∥, the Wasserstein distance (Definition 2.2, p. 7) is

W(Q,Q′)=inf⁡Π∫d(ξ,ξ′) Π(dξ,dξ′),W(\mathbb Q,\mathbb Q')=\inf_\Pi\int d(\xi,\xi')\,\Pi(\mathrm d\xi,\mathrm d\xi'),W(Q,Q′)=Πinf​∫d(ξ,ξ′)Π(dξ,dξ′),

where the infimum runs over couplings Π\PiΠ of Q\mathbb QQ and Q′\mathbb Q'Q′. The ball of radius ρ≥0\rho\ge0ρ≥0 is Bρ(P^N)={Q:Q(Ξ)=1, W(Q,P^N)≤ρ}\mathbb B_\rho(\hat{\mathbb P}_N)=\{\mathbb Q:\mathbb Q(\Xi)=1,\ W(\mathbb Q,\hat{\mathbb P}_N)\le\rho\}Bρ​(P^N​)={Q:Q(Ξ)=1, W(Q,P^N​)≤ρ} (3). The distributionally robust regression problem is

inf⁡w sup⁡Q∈Bρ(P^N)EQ[L(⟨w,x⟩−y)].(4)\inf_w\ \sup_{\mathbb Q\in\mathbb B_\rho(\hat{\mathbb P}_N)}\mathbb E^{\mathbb Q}\big[L(\langle w,x\rangle-y)\big].\qquad(4)winf​ Q∈Bρ​(P^N​)sup​EQ[L(⟨w,x⟩−y)].(4)

Formalization targets

Goal: Theorem 3.1(ii), p. 8

Let Ξ=Rn+1\Xi=\mathbb R^{n+1}Ξ=Rn+1, ρ≥0\rho\ge0ρ≥0, N≥1N\ge1N≥1, and let LLL be nonnegative, convex and Lipschitz continuous. Then for every www

sup⁡Q∈Bρ(P^N)EQ[L(⟨w,x⟩−y)]=1N∑i=1NL(⟨w,x^i⟩−y^i)+ρ lip(L) ∥(w,−1)∥∗,\sup_{\mathbb Q\in\mathbb B_\rho(\hat{\mathbb P}_N)}\mathbb E^{\mathbb Q}\big[L(\langle w,x\rangle-y)\big]=\frac1N\sum_{i=1}^NL(\langle w,\hat x_i\rangle-\hat y_i)+\rho\,\mathrm{lip}(L)\,\|(w,-1)\|_*,Q∈Bρ​(P^N​)sup​EQ[L(⟨w,x⟩−y)]=N1​i=1∑N​L(⟨w,x^i​⟩−y^​i​)+ρlip(L)∥(w,−1)∥∗​,

so (4) and the regularized problem (6) have the same optimal value.

Milestones

  1. Lemma A.1 (p. 28). The worst case over the ball equals inf⁡λ≥0λρ+1N∑isup⁡ξ[I(ξ)−λd(ξ,ξ^i)]\inf_{\lambda\ge0}\lambda\rho+\frac1N\sum_i\sup_\xi[I(\xi)-\lambda d(\xi,\hat\xi_i)]infλ≥0​λρ+N1​∑i​supξ​[I(ξ)−λd(ξ,ξ^​i​)]. This milestone is linked to the published, proved WassersteinDRO.Duality.strong_duality_worst_case_risk_v2, which covers it for ρ>0\rho>0ρ>0.
  2. Lemma A.3 (p. 29). For γ>0\gamma>0γ>0, sup⁡ζL(⟨β,ζ⟩)−γ∥ζ−ζ^∥\sup_\zeta L(\langle\beta,\zeta\rangle)-\gamma\|\zeta-\hat\zeta\|supζ​L(⟨β,ζ⟩)−γ∥ζ−ζ^​∥ equals L(⟨β,ζ^⟩)L(\langle\beta,\hat\zeta\rangle)L(⟨β,ζ^​⟩) if lip(L)∥β∥∗≤γ\mathrm{lip}(L)\|\beta\|_*\le\gammalip(L)∥β∥∗​≤γ, and +∞+\infty+∞ otherwise.
  3. End of the proof of Lemma A.3 (p. 30). lip(L)=sup⁡{∣θ∣:L∗(θ)<∞}\mathrm{lip}(L)=\sup\{|\theta|:L^*(\theta)<\infty\}lip(L)=sup{∣θ∣:L∗(θ)<∞}.
  4. The inf-over-λ\lambdaλ display in the proof of Theorem 3.1(ii) (pp. 30–31). The worst case equals inf⁡{λρ+1N∑iL(⟨w,x^i⟩−y^i):λ≥0, lip(L)∥(w,−1)∥∗≤λ}\inf\{\lambda\rho+\frac1N\sum_iL(\langle w,\hat x_i\rangle-\hat y_i):\lambda\ge0,\ \mathrm{lip}(L)\|(w,-1)\|_*\le\lambda\}inf{λρ+N1​∑i​L(⟨w,x^i​⟩−y^​i​):λ≥0, lip(L)∥(w,−1)∥∗​≤λ}.

Significance

The result. The theorem turns an infinite-dimensional min–max problem over distributions into a finite convex program over www: an empirical average plus a norm penalty. The penalty is not ∥w∥∗\|w\|_*∥w∥∗​ but ∥(w,−1)∥∗\|(w,-1)\|_*∥(w,−1)∥∗​, because the transport cost moves outputs as well as inputs. It scales with the radius ρ\rhoρ and with the Lipschitz modulus of the univariate loss. With the Huber, ϵ\epsilonϵ-insensitive and pinball losses it gives Corollaries 3.2–3.4 of the paper. It also gives a statistical reading of the regularization weight as a Wasserstein radius, which the paper's §4 turns into generalization bounds.

Formalizing it. The theorem is proved in the paper; none of its items is formalized yet except Lemma A.1. Lemma A.1 is available in a general form (any p≥1p\ge1p≥1, any closed support set, ρ>0\rho>0ρ>0) as a proved platform theorem from the mission Wasserstein Distributionally Robust Optimization. The per-www identity also follows from the proved WassersteinDRO.Duality.convex_loss_p1_v2 (Theorem 10 of the tutorial, also present as WassersteinDRO.Regularization.convex_loss_p1_v2; the public mission Wasserstein Distributionally Robust Optimization IV has it as goal) once one shows that lip(L∘⟨(w,−1),⋅⟩)=lip(L)∥(w,−1)∥∗\mathrm{lip}(L\circ\langle(w,-1),\cdot\rangle)=\mathrm{lip}(L)\|(w,-1)\|_*lip(L∘⟨(w,−1),⋅⟩)=lip(L)∥(w,−1)∥∗​. No platform item states that factorization. What this mission adds is the paper's explicit form of the penalty, Lemma A.3 (the inner supremum for an arbitrary convex Lipschitz loss and an arbitrary norm), and the conjugate description of the Lipschitz modulus. The last two are reusable in classification (mission I of this series states them again in its own namespace) and in every Wasserstein-regularization result with linear hypotheses.

Difficulty

The obvious argument is to write the worst case as a supremum over perturbations of the samples and bound each perturbed loss by its Lipschitz constant. That gives only the inequality "≤\le≤", and only for one Lipschitz constant. The identity needs two further steps that this bound does not supply. First, the bound must be attained: the supremum over distributions has to be shown to reach ρ lip(L)∥(w,−1)∥∗\rho\,\mathrm{lip}(L)\|(w,-1)\|_*ρlip(L)∥(w,−1)∥∗​, a matching lower bound that a Lipschitz estimate cannot give. Second, lip(L)\mathrm{lip}(L)lip(L) must be the modulus, not any constant: an upper Lipschitz constant K>lip(L)K>\mathrm{lip}(L)K>lip(L) makes the identity false. In Lemma A.3 the case lip(L)∥β∥∗=γ\mathrm{lip}(L)\|\beta\|_*=\gammalip(L)∥β∥∗​=γ sits exactly on the boundary between a finite and an infinite supremum. A further point is that the duality of Lemma A.1 needs ρ>0\rho>0ρ>0, while the theorem includes ρ=0\rho=0ρ=0.

Formalization scope

  • Space. Rn+1\mathbb R^{n+1}Rn+1 with an arbitrary norm is an abstract finite-dimensional real normed space E with its Borel σ-algebra. A continuous linear isomorphism e : E ≃L[ℝ] (Fin n → ℝ) × ℝ reads off inputs and outputs. The theorem therefore covers every norm on Rn+1\mathbb R^{n+1}Rn+1; fixing a concrete norm would prove it for that norm only. The functional (w,−1)(w,-1)(w,−1) is pairing e w, and ∥(w,−1)∥∗\|(w,-1)\|_*∥(w,−1)∥∗​ is its operator norm.
  • Published objects. The ball, the worst case, the empirical distribution and the Lipschitz modulus are the published definitions WassersteinDRO_Duality_ambiguitySet, _worstCaseRisk_v2, _empiricalDistribution and _lipschitzModulus. The worst case is taken in the extended reals, and expectations follow the convention of nominalRisk_v2 (no junk value for non-integrable losses). lip(L)\mathrm{lip}(L)lip(L) takes values in [0,∞][0,\infty][0,∞].
  • Standing assumptions. LLL is nonnegative, convex on R\mathbb RR and Lipschitz continuous; N≥1N\ge1N≥1; ρ≥0\rho\ge0ρ≥0; Ξ=Rn+1\Xi=\mathbb R^{n+1}Ξ=Rn+1. The paper's L≥0L\ge0L≥0 (§2.1) is imposed as the standing loss-function assumption.
  • Reading of "equivalent". The paper does not define the word. The goal states the per-www identity that the proof establishes plus equality of optimal values. Attainment of the infimum is not claimed.
  • Corrections. The printed display on p. 30 omits a factor 1N\frac1NN1​ and carries a stray ∣θ∣|\theta|∣θ∣ in the constraint; milestone 4 states the corrected identity. The printed Lemma A.1 omits ρ>0\rho>0ρ>0, which its proof uses; the linked platform theorem has it.
  • Ruled out. The goal is not a restatement of Theorem 10 with Lip(ℓw)\mathrm{Lip}(\ell_w)Lip(ℓw​) of the composite loss: its right-hand side is the explicit average of (6) with lip\mathrm{lip}lip of the univariate LLL and the dual norm of (w,−1)(w,-1)(w,−1).
  • Welcome contributions. The factorization lip(L∘β)=lip(L)∥β∥∗\mathrm{lip}(L\circ\beta)=\mathrm{lip}(L)\|\beta\|_*lip(L∘β)=lip(L)∥β∥∗​ for a linear functional β\betaβ on a finite-dimensional normed space, conjugate calculus for univariate convex functions, and the evaluation of the worst case at ρ=0\rho=0ρ=0.

Selected references

  • S. Shafieezadeh-Abadeh, D. Kuhn, P. Mohajerin Esfahani, Regularization via Mass Transportation, arXiv:1710.10016v3, 2019; J. Mach. Learn. Res. 20(103), 2019. https://arxiv.org/abs/1710.10016
  • D. Kuhn, P. Mohajerin Esfahani, V. A. Nguyen, S. Shafieezadeh-Abadeh, Wasserstein Distributionally Robust Optimization: Theory and Applications in Machine Learning, INFORMS TutORials, 2019. https://arxiv.org/abs/1908.08729
  • P. Mohajerin Esfahani, D. Kuhn, Data-driven distributionally robust optimization using the Wasserstein metric, Math. Program. 171, 2018. https://arxiv.org/abs/1505.05116
  • S. Shafieezadeh-Abadeh, P. Mohajerin Esfahani, D. Kuhn, Distributionally Robust Logistic Regression, NeurIPS, 2015. https://arxiv.org/abs/1509.09259
  • J. Blanchet, Y. Kang, K. Murthy, Robust Wasserstein Profile Inference and Applications to Machine Learning, J. Appl. Probab. 56(3), 2019. https://arxiv.org/abs/1610.05627
  • D. P. Bertsekas, Convex Optimization Theory, Athena Scientific, 2009 (cited as [9] in the paper for Propositions 5.3.1 and 5.5.4).
15 thms3 active usersReviewed
🏆Completed
Operations ResearchOptimizationProbability·Captain: mikedeng1

Quantifying Distributional Model Risk via Optimal Transport 1: Strong Duality — the Worst-Case Expectation over an Optimal-Transport Ball on a Polish Space Equals Its Dual over (λ, φ)Research Paper

Motivation

A probability model μ\muμ for a random element XXX is rarely known exactly. Distributionally robust performance analysis replaces the single expectation Eμ[f(X)]E_\mu[f(X)]Eμ​[f(X)] by its worst case over all models within a prescribed distance of μ\muμ. When the distance is an optimal-transport cost, the neighbourhood contains models whose support differs from that of μ\muμ. That matters in stochastic-process applications such as ruin probabilities for insurance reserves, where the natural alternatives (a compensated Poisson process against a Brownian motion) are mutually singular and likelihood-based divergences such as Kullback–Leibler are infinite.

Blanchet and Murthy (arXiv:1604.01446, Math. Oper. Res. 2019) prove that the worst-case expectation over an optimal-transport ball equals a one-dimensional dual problem. They assume only that the underlying space is Polish, the cost lower semicontinuous and the performance function upper semicontinuous and integrable.

Timeline. Esfahani and Kuhn (arXiv:1505.05116, 2015/2018) obtained a dual reformulation for Wasserstein balls around empirical measures on Rd\mathbb R^dRd. Gao and Kleywegt (arXiv:1604.02199, 2016) proved a general duality whose proof, as Blanchet and Murthy note, uses the local compactness of the space. Blanchet and Murthy (2016, v2 2017) removed local compactness and continuity of the cost. This covers path spaces such as C[0,T]C[0,T]C[0,T] and D[0,T]D[0,T]D[0,T].

Setting

Let SSS be a Polish space with Borel σ-algebra B(S)\mathcal B(S)B(S), and let μ\muμ be a probability measure on SSS (the baseline model).

  • Cost (A1). c:S×S→[0,∞)c : S\times S\to[0,\infty)c:S×S→[0,∞) is lower semicontinuous, and c(x,y)=0c(x,y)=0c(x,y)=0 if and only if x=yx=yx=y.
  • Performance function (A2). f:S→Rf : S\to\mathbb Rf:S→R is upper semicontinuous and μ\muμ-integrable.
  • Budget. δ>0\delta>0δ>0.

The primal feasible set Φμ,δ\Phi_{\mu,\delta}Φμ,δ​ consists of the probability measures π\piπ on S×SS\times SS×S whose first marginal is μ\muμ and whose transport cost satisfies ∫c dπ≤δ\int c\,d\pi\le\delta∫cdπ≤δ. The second marginal of π\piπ is the alternative model. The primal objective is I(π)=∫f(y) dπ(x,y)I(\pi)=\int f(y)\,d\pi(x,y)I(π)=∫f(y)dπ(x,y), and the primal value is

I=sup⁡{I(π):π∈Φμ,δ}.I=\sup\{I(\pi):\pi\in\Phi_{\mu,\delta}\}.I=sup{I(π):π∈Φμ,δ​}.

The universal σ-algebra U(S)\mathcal U(S)U(S) is the intersection of the completions of B(S)\mathcal B(S)B(S) under all probability measures. Write mU(S;Rˉ)m\mathcal U(S;\bar{\mathbb R})mU(S;Rˉ) for the U(S)\mathcal U(S)U(S)-measurable functions S→[−∞,∞]S\to[-\infty,\infty]S→[−∞,∞]. The dual feasible set Λc,f\Lambda_{c,f}Λc,f​ consists of the pairs (λ,φ)(\lambda,\varphi)(λ,φ) with λ≥0\lambda\ge0λ≥0, φ∈mU(S;Rˉ)\varphi\in m\mathcal U(S;\bar{\mathbb R})φ∈mU(S;Rˉ) and φ(x)+λc(x,y)≥f(y)\varphi(x)+\lambda c(x,y)\ge f(y)φ(x)+λc(x,y)≥f(y) for all x,yx,yx,y. The dual objective is J(λ,φ)=λδ+∫φ dμJ(\lambda,\varphi)=\lambda\delta+\int\varphi\,d\muJ(λ,φ)=λδ+∫φdμ, and the dual value is J=inf⁡{J(λ,φ):(λ,φ)∈Λc,f}J=\inf\{J(\lambda,\varphi):(\lambda,\varphi)\in\Lambda_{c,f}\}J=inf{J(λ,φ):(λ,φ)∈Λc,f​}. Finally,

φλ(x)=sup⁡y∈S{f(y)−λc(x,y)}∈R∪{∞}.\varphi_\lambda(x)=\sup_{y\in S}\{f(y)-\lambda c(x,y)\}\in\mathbb R\cup\{\infty\}.φλ​(x)=y∈Ssup​{f(y)−λc(x,y)}∈R∪{∞}.

Formalization targets

Goal: Theorem 1

Under (A1) and (A2):

  1. strong duality,
sup⁡{I(π):π∈Φμ,δ}=inf⁡{J(λ,φ):(λ,φ)∈Λc,f};\sup\{I(\pi):\pi\in\Phi_{\mu,\delta}\}=\inf\{J(\lambda,\varphi):(\lambda,\varphi)\in\Lambda_{c,f}\};sup{I(π):π∈Φμ,δ​}=inf{J(λ,φ):(λ,φ)∈Λc,f​};
  1. there is λ∗≥0\lambda^*\ge0λ∗≥0 such that (λ∗,φλ∗)(\lambda^*,\varphi_{\lambda^*})(λ∗,φλ∗​) is a dual optimizer;
  2. a feasible π∗\pi^*π∗ and a feasible (λ∗,φλ∗)(\lambda^*,\varphi_{\lambda^*})(λ∗,φλ∗​) with finite J(λ∗,φλ∗)J(\lambda^*,\varphi_{\lambda^*})J(λ∗,φλ∗​) are optimal with I(π∗)=J(λ∗,φλ∗)I(\pi^*)=J(\lambda^*,\varphi_{\lambda^*})I(π∗)=J(λ∗,φλ∗​) if and only if the complementary slackness conditions hold:
f(y)−λ∗c(x,y)=φλ∗(x)  π∗-a.s.,λ∗(∫c dπ∗−δ)=0.f(y)-\lambda^*c(x,y)=\varphi_{\lambda^*}(x)\ \ \pi^*\text{-a.s.},\qquad \lambda^*\Big(\int c\,d\pi^*-\delta\Big)=0.f(y)−λ∗c(x,y)=φλ∗​(x)  π∗-a.s.,λ∗(∫cdπ∗−δ)=0.

The "if" direction is stated without the finiteness assumption.

Milestones

Weak duality I≤JI\le JI≤J (5). Lemma 15. Strong duality with a primal optimizer on compact SSS, first for continuous costs (Proposition 5), then for lower semicontinuous ones (Proposition 6). Universal measurability of φλ\varphi_\lambdaφλ​ (§4.2). Lemma 16. The restricted dual bound of Proposition 7. Lemma 8. The univariate formula (9):

I=inf⁡λ≥0{λδ+Eμ[sup⁡y∈S{f(y)−λc(X,y)}]}.I=\inf_{\lambda\ge0}\Big\{\lambda\delta+E_\mu\Big[\sup_{y\in S}\{f(y)-\lambda c(X,y)\}\Big]\Big\}.I=λ≥0inf​{λδ+Eμ​[y∈Ssup​{f(y)−λc(X,y)}]}.

Significance

The result. Formula (9) turns an infinite-dimensional optimization over probability measures into a one-dimensional convex minimization that involves only the baseline μ\muμ. A modeller can therefore evaluate it by sampling from μ\muμ. Theorem 1 is the input for the worst-case probability formula for closed sets (Theorem 3 of the paper) and for the existence of worst-case transport plans (Corollary 1). Its complementary slackness conditions describe the structure of every worst-case plan: mass is moved from xxx to maximizers of f(z)−λ∗c(x,z)f(z)-\lambda^*c(x,z)f(z)−λ∗c(x,z), and the budget is exhausted whenever λ∗>0\lambda^*>0λ∗>0.

Formalizing it. The result is proved on paper. To our knowledge it has no machine-checked proof. The only related statement on Prove2Me is a special case (empirical baseline, bounded continuous loss, power-of-norm cost on Rm\mathbb R^mRm). A complete development would contain duality on compact spaces via Fenchel duality, the extension to σ-compact supports, and measurable-selection arguments for universally measurable functions. The measurable-selection part reuses Bertsekas–Shreve's analytic-set theory, which is already posed on the platform.

Difficulty

The obvious route copies Kantorovich duality. That route fails here because the feasible set Φμ,δ\Phi_{\mu,\delta}Φμ,δ​ fixes only one marginal, so it is not tight on a non-compact space. Prokhorov compactness is available only on compact pieces Sn×SnS_n\times S_nSn​×Sn​. The duality must then be transported to the whole space by a limiting argument that keeps control of the dual multipliers.

A second obstacle is measurability. For a merely lower semicontinuous cost on a non-locally-compact space, φλ\varphi_\lambdaφλ​ need not be Borel measurable, so the dual must range over universally measurable functions. Removing the restriction y∈Sπy\in S_\piy∈Sπ​ from the envelope (Lemma 8) needs a measurable selection theorem. Arguments that assume closed balls are compact do not apply in the target spaces C[0,T]C[0,T]C[0,T] and D[0,T]D[0,T]D[0,T].

Formalization scope

  • Space and costs. S carries [TopologicalSpace S] [PolishSpace S] [MeasurableSpace S] [BorelSpace S]. The cost is a real-valued curried function c : S → S → ℝ; (A1) is the structure AssumptionA1; (A2) is UpperSemicontinuous f together with Integrable f μ; and 0 < δ is assumed throughout.
  • Extended reals. III, JJJ, I(π)I(\pi)I(π), J(λ,φ)J(\lambda,\varphi)J(λ,φ) and φλ\varphi_\lambdaφλ​ live in EReal. The integral of an extended-real function is ∫φ+−∫φ−\int\varphi^+-\int\varphi^-∫φ+−∫φ− with lower Lebesgue integrals, and ∞−∞\infty-\infty∞−∞ evaluates to −∞-\infty−∞. A coupling with ∫f− dπ=∞\int f^-\,d\pi=\infty∫f−dπ=∞ therefore never raises III, which is the paper's reading in footnote 2.
  • Measurability and integrals. Universal measurability is the published BertsekasShreve.AnalyticSelection.IsUniversallyMeasurable. For such φ\varphiφ the lower integral equals the integral against the completion of μ\muμ.
  • Variants. The dual feasible set takes a set KKK: with K=SK=SK=S it is (6b), and with K=SπK=S_\piK=Sπ​ it is (29).
  • Hidden hypothesis. The "only if" part of Theorem 1(b) carries the hypothesis J(λ∗,φλ∗)<∞J(\lambda^*,\varphi_{\lambda^*})<\inftyJ(λ∗,φλ∗​)<∞. Without it the equivalence fails when I=J=∞I=J=\inftyI=J=∞.
  • Ruled-out trivializations. A primal that fixes both marginals (or neither), a dual over Borel-measurable φ\varphiφ, and a Bochner integral for ∫f dπ\int f\,d\pi∫fdπ (which is 000 off L1(π)L^1(\pi)L1(π)) all describe different problems and are ruled out by the definitions.
  • Infrastructure and contributions. Needed: Fenchel duality on Cb(S×S)C_b(S\times S)Cb​(S×S) and its dual M(S×S)M(S\times S)M(S×S) (Riesz–Markov–Kakutani), Prokhorov's theorem, Sion's minimax theorem, and Jankov–von Neumann selection. Several are on the platform or in Mathlib, and all are reusable beyond this mission. Proofs of the milestones in any order, and of the posed Bertsekas–Shreve tools, are welcome.

Selected references

  • J. Blanchet and K. Murthy, Quantifying Distributional Model Risk via Optimal Transport, Math. Oper. Res. 44(2):565–600, 2019. arXiv:1604.01446v2, doi:10.1287/moor.2018.0936
  • R. Gao and A. Kleywegt, Distributionally Robust Stochastic Optimization with Wasserstein Distance, 2016. arXiv:1604.02199
  • P. Mohajerin Esfahani and D. Kuhn, Data-driven distributionally robust optimization using the Wasserstein metric, Math. Program. 171:115–166, 2018. arXiv:1505.05116
  • D. Bertsekas and S. Shreve, Stochastic Optimal Control: The Discrete-Time Case, Academic Press, 1978, Chapter 7. MIT open copy
  • C. Villani, Optimal Transport: Old and New, Springer, 2008. doi:10.1007/978-3-540-71050-9
19 thms3 active usersReviewed
🏆Completed
Machine LearningOptimizationStatistics·Captain: mikedeng1

Robust Wasserstein Profile Inference and Applications to Machine Learning 1: Square-Root LASSO Is Wasserstein DRO — the Worst-Case Squared Loss over D_c(P, P_n) ≤ δ Equals (√MSE_n(β) + √δ‖β‖_p)²Research Paper

Motivation

Regularized least squares is the standard tool of high-dimensional linear regression. The square-root LASSO of Belloni, Chernozhukov and Wang (Biometrika, 2011) minimizes MSEn(β)+λ∥β∥1\sqrt{\mathrm{MSE}_n(\beta)} + \lambda\|\beta\|_1MSEn​(β)​+λ∥β∥1​. Unlike the LASSO, its optimal regularization parameter does not depend on the unknown noise level. Regularization is usually justified through sparsity or bias–variance arguments. Blanchet, Kang and Murthy (arXiv:1610.05627, J. Appl. Probab. 56(3), 2019) give a different justification. The square-root LASSO, and every ℓp\ell_pℓp​-penalized square-root least-squares estimator, is exactly a distributionally robust estimator. It minimizes the worst-case expected square loss over all data distributions within a given optimal-transport distance of the empirical distribution.

The rest of the paper builds on this representation: the radius of the transport ball is the regularization parameter, which the paper's Robust Wasserstein Profile function selects by a statistical criterion (mission 3 of this series). The duality theorem underneath, Proposition 1, is due to Blanchet and Murthy (Math. Oper. Res., 2019). Closely related representations for logistic regression appear in Shafieezadeh-Abadeh, Mohajerin Esfahani and Kuhn (NeurIPS 2015), where they are approximate. The cost function introduced in this paper makes them exact.

Setting

The training data are n≥1n \ge 1n≥1 pairs (X1,Y1),…,(Xn,Yn)(X_1, Y_1), \dots, (X_n, Y_n)(X1​,Y1​),…,(Xn​,Yn​) with predictors Xi∈RdX_i \in \mathbb R^dXi​∈Rd and responses Yi∈RY_i \in \mathbb RYi​∈R. No distributional assumption is made; the data are fixed vectors. The empirical distribution is Pn=1n∑i=1nδ(Xi,Yi)P_n = \frac1n \sum_{i=1}^n \delta_{(X_i, Y_i)}Pn​=n1​∑i=1n​δ(Xi​,Yi​)​. For β∈Rd\beta \in \mathbb R^dβ∈Rd the square loss is l(x,y;β)=(y−βTx)2l(x, y; \beta) = (y - \beta^T x)^2l(x,y;β)=(y−βTx)2 and the mean square error is MSEn(β)=1n∑i=1n(Yi−βTXi)2\mathrm{MSE}_n(\beta) = \frac1n\sum_{i=1}^n (Y_i - \beta^T X_i)^2MSEn​(β)=n1​∑i=1n​(Yi​−βTXi​)2.

A cost function ccc assigns to two points z,wz, wz,w of Rd×R\mathbb R^d \times \mathbb RRd×R a value c(z,w)∈[0,∞]c(z, w) \in [0, \infty]c(z,w)∈[0,∞], the cost of moving a unit of mass from zzz to www. The optimal transport cost between probability measures PPP and QQQ is

Dc(P,Q)=inf⁡{Eπ[c(U,W)]:π a probability measure on pairs (U,W), πU=P, πW=Q}.(7)D_c(P, Q) = \inf\Big\{ \mathbb E_\pi[c(U, W)] : \pi \text{ a probability measure on pairs } (U, W),\ \pi_U = P,\ \pi_W = Q \Big\}. \qquad (7)Dc​(P,Q)=inf{Eπ​[c(U,W)]:π a probability measure on pairs (U,W), πU​=P, πW​=Q}.(7)

The worst-case expected loss at radius δ≥0\delta \ge 0δ≥0 is sup⁡P:Dc(P,Pn)≤δEP[l(X,Y;β)]\sup_{P : D_c(P, P_n) \le \delta} \mathbb E_P[l(X, Y; \beta)]supP:Dc​(P,Pn​)≤δ​EP​[l(X,Y;β)], and the distributionally robust regression problem (8) minimizes it over β\betaβ.

Two costs are used. With q∈(1,∞]q \in (1, \infty]q∈(1,∞]:

  • the squared ℓq\ell_qℓq​ cost on Rd+1\mathbb R^{d+1}Rd+1, c((x,y),(u,v))=∥(x,y)−(u,v)∥q2c((x, y), (u, v)) = \|(x, y) - (u, v)\|_q^2c((x,y),(u,v))=∥(x,y)−(u,v)∥q2​ (Proposition 2);
  • the cost Nq2N_q^2Nq2​, where (14) Nq((x,y),(u,v))=∥x−u∥qN_q((x, y), (u, v)) = \|x - u\|_qNq​((x,y),(u,v))=∥x−u∥q​ if y=vy = vy=v and +∞+\infty+∞ otherwise. Under this cost the responses cannot be moved, and only the predictors are perturbed (Theorem 1).

The exponent ppp is the dual of qqq, 1/p+1/q=11/p + 1/q = 11/p+1/q=1, and βˉ=(−β,1)\bar\beta = (-\beta, 1)βˉ​=(−β,1).

Formalization targets

Goal: Theorem 1 (p. 11)

For the cost c=Nq2c = N_q^2c=Nq2​, every δ≥0\delta \ge 0δ≥0 and every β∈Rd\beta \in \mathbb R^dβ∈Rd,

sup⁡P: Dc(P,Pn)≤δEP[(Y−βTX)2]=(MSEn(β)+δ ∥β∥p)2,\sup_{P :\, D_c(P, P_n) \le \delta} \mathbb E_P\big[(Y - \beta^T X)^2\big] = \Big(\sqrt{\mathrm{MSE}_n(\beta)} + \sqrt\delta\,\|\beta\|_p\Big)^2 ,P:Dc​(P,Pn​)≤δsup​EP​[(Y−βTX)2]=(MSEn​(β)​+δ​∥β∥p​)2,

and consequently

inf⁡β∈Rdsup⁡P: Dc(P,Pn)≤δEP[(Y−βTX)2]=inf⁡β∈Rd(MSEn(β)+δ ∥β∥p)2.\inf_{\beta \in \mathbb R^d} \sup_{P :\, D_c(P, P_n) \le \delta} \mathbb E_P\big[(Y - \beta^T X)^2\big] = \inf_{\beta \in \mathbb R^d} \Big(\sqrt{\mathrm{MSE}_n(\beta)} + \sqrt\delta\,\|\beta\|_p\Big)^2 .β∈Rdinf​P:Dc​(P,Pn​)≤δsup​EP​[(Y−βTX)2]=β∈Rdinf​(MSEn​(β)​+δ​∥β∥p​)2.

The second identity is the printed theorem; the first is what its proof establishes for each β\betaβ. The goal states both.

Milestones

  1. Proposition 1 (p. 10): strong duality. For a lower semicontinuous cost vanishing on the diagonal, an upper semicontinuous loss and δ>0\delta > 0δ>0, the worst-case expected loss equals min⁡γ≥0{γδ+1n∑iφγ(Xi,Yi)}\min_{\gamma \ge 0} \{\gamma\delta + \frac1n \sum_i \varphi_\gamma(X_i, Y_i)\}minγ≥0​{γδ+n1​∑i​φγ​(Xi​,Yi​)}, with φγ(z)=sup⁡u{l(u)−γc(u,z)}\varphi_\gamma(z) = \sup_u \{l(u) - \gamma c(u, z)\}φγ​(z)=supu​{l(u)−γc(u,z)} (11).
  2. (28) (pp. 28–29): the closed form of φγ\varphi_\gammaφγ​ for the square loss and the squared ℓq\ell_qℓq​ cost.
  3. (29) and the display after it (p. 29): inf⁡γ>b2{γδ+γγ−b2M}=(M+bδ)2\inf_{\gamma > b^2} \{\gamma\delta + \frac{\gamma}{\gamma - b^2} M\} = (\sqrt M + b\sqrt\delta)^2infγ>b2​{γδ+γ−b2γ​M}=(M​+bδ​)2 for M,b,δ≥0M, b, \delta \ge 0M,b,δ≥0.
  4. Proposition 2 (p. 10): the analogue of the goal for the squared ℓq\ell_qℓq​ cost, with ∥βˉ∥p\|\bar\beta\|_p∥βˉ​∥p​ in place of ∥β∥p\|\beta\|_p∥β∥p​ (13).
  5. Outline of the proof of Theorem 1, last display (p. 29): the closed form of φγ\varphi_\gammaφγ​ for the cost Nq2N_q^2Nq2​.

Significance

The result. Theorem 1 identifies ℓp\ell_pℓp​-penalized square-root least squares with a min–max problem over data distributions. For q=∞q = \inftyq=∞, p=1p = 1p=1 the minimizers are those of the square-root LASSO with λ=δ\lambda = \sqrt\deltaλ=δ​. The regularization parameter therefore acquires a meaning: it is the square root of the transport budget an adversary may spend perturbing the predictors. This is the basis of the paper's choice of δ\deltaδ by the Robust Wasserstein Profile function (§4), and of the interpretation of regularized estimators as robust to covariate perturbations. Proposition 2 shows that letting the adversary also move the responses changes the penalty to ∥(−β,1)∥p\|(-\beta, 1)\|_p∥(−β,1)∥p​, which is why the label-preserving cost NqN_qNq​ is needed for an exact match.

Formalizing it. All results are proved on paper; none is formalized. A complete development gives a machine-checked strong-duality theorem for optimal-transport balls with possibly infinite costs (Proposition 1), two explicit worst-case computations, and corrected boundary cases of the closed forms (28) and the outline display, which print +∞+\infty+∞ for all γ≤∥βˉ∥p2\gamma \le \|\bar\beta\|_p^2γ≤∥βˉ​∥p2​ although the value can be finite at equality. The corrections do not affect the theorems.

Difficulty

The obvious argument fails in two places. The first is the duality step: the supremum ranges over all Borel probability measures on Rd+1\mathbb R^{d+1}Rd+1 within transport cost δ\deltaδ, an infinite-dimensional set that is not compact in any convenient topology, with a loss that is unbounded above. Exchanging the supremum with the Lagrange multiplier of the budget constraint is Proposition 1, a theorem in its own right (Blanchet–Murthy), and its attainment claim needs δ>0\delta > 0δ>0.

The second is the cost NqN_qNq​, which is +∞+\infty+∞ off {y=v}\{y = v\}{y=v}, so the standard Wasserstein duality theorems, which assume a finite metric cost, do not apply. The degenerate cases β=0\beta = 0β=0, MSEn(β)=0\mathrm{MSE}_n(\beta) = 0MSEn​(β)=0, δ=0\delta = 0δ=0, where the objective in γ\gammaγ does not blow up at both ends, must be covered separately.

Formalization scope

  • Spaces. A data point is a pair in (Fin d → ℝ) × ℝ with the product σ-algebra and topology. Proposition 2's cost uses the stacked vector in Fin (d+1) → ℝ (response last, built with Fin.snoc), and βˉ\bar\betaβˉ​ is the stacked vector of (−β,1)(-\beta, 1)(−β,1).
  • Norms. ∥⋅∥q\|\cdot\|_q∥⋅∥q​ and ∥⋅∥p\|\cdot\|_p∥⋅∥p​ are the norms of PiLp, with exponents in ℝ≥0∞, so q=∞q = \inftyq=∞ (the square-root LASSO case) is included. The exponents are linked by p.HolderConjugate q, and q∈(1,∞]q \in (1, \infty]q∈(1,∞] throughout. Theorem 1 does not print a range for qqq; the range is taken from Proposition 2, which the paper calls essentially the same result.
  • Transport cost and worst case. Costs are ℝ≥0∞-valued, and DcD_cDc​ is an infimum over probability couplings with both marginals fixed. Expectations of the nonnegative losses are lower Lebesgue integrals, and the worst case is a supremum in ℝ≥0∞ over all probability measures in the ball. No integrability side condition removes measures from the ball. Identities with a real right-hand side are stated after embedding it with ENNReal.ofReal.
  • The empirical distribution is the published definition WassersteinDRO.Regularization.empiricalDistribution, applied to i↦(Xi,Yi)i \mapsto (X_i, Y_i)i↦(Xi​,Yi​), with n>0n > 0n>0.
  • φγ\varphi_\gammaφγ​. A point at infinite cost contributes −∞-\infty−∞ for every γ≥0\gamma \ge 0γ≥0, including γ=0\gamma = 0γ=0, as in the paper's treatment of NqN_qNq​. With the convention 0⋅∞=00 \cdot \infty = 00⋅∞=0 instead, Proposition 1's minimum would not be attained for the cost Nq2N_q^2Nq2​ at β=0\beta = 0β=0.
  • Proposition 1 is stated for a nonnegative loss and δ>0\delta > 0δ>0; both are restrictions of the page, recorded in the item.
  • Corrections. (28) and the outline display are stated with their corrected boundary cases. The one-dimensional lemma behind (29) is stated as a greatest lower bound over γ>b2\gamma > b^2γ>b2, including b=0b = 0b=0, M=0M = 0M=0, δ=0\delta = 0δ=0.

A formalization in which the transport infimum did not fix both marginals, allowed sub-probability couplings, or used a Bochner integral would make the worst case trivially +∞+\infty+∞ or 000. The conventions above rule this out: at δ=0\delta = 0δ=0 the ball is {Pn}\{P_n\}{Pn​} and both sides of the goal equal MSEn(β)\mathrm{MSE}_n(\beta)MSEn​(β).

The work needs Kantorovich-type duality for lower semicontinuous costs on Rm\mathbb R^mRm (absent from Mathlib), Hölder's inequality with its equality case for PiLp, and elementary one-variable optimization. The duality theorem and the transport-cost definition are reusable beyond this mission: mission 2 of this series (classification) uses Proposition 1 with the cost NqN_qNq​, ρ=1\rho = 1ρ=1. Contributions that prove Proposition 1, or its weak-duality half, are particularly welcome.

Selected references

  • J. Blanchet, Y. Kang, K. Murthy, Robust Wasserstein Profile Inference and Applications to Machine Learning, J. Appl. Probab. 56(3), 2019; arXiv:1610.05627v4. https://arxiv.org/abs/1610.05627
  • J. Blanchet, K. Murthy, Quantifying distributional model risk via optimal transport, Math. Oper. Res. 44(2), 2019. https://doi.org/10.1287/moor.2018.0936
  • A. Belloni, V. Chernozhukov, L. Wang, Square-root lasso: pivotal recovery of sparse signals via conic programming, Biometrika 98(4), 2011. https://doi.org/10.1093/biomet/asr043
  • S. Shafieezadeh-Abadeh, P. Mohajerin Esfahani, D. Kuhn, Distributionally robust logistic regression, NeurIPS 2015. https://arxiv.org/abs/1509.09259
  • C. Villani, Optimal Transport: Old and New, Springer, 2009. https://doi.org/10.1007/978-3-540-71050-9
14 thms3 active usersReviewed
🏆Completed
Probability·Captain: Lucas

Monge–Kantorovich Duality (Yao 2023)Research Paper

Motivation

Optimal transport asks for the cheapest way to move one distribution of mass onto another. Monge posed the problem in 1781 for maps; Kantorovich (1942) relaxed it to transference plans (couplings), turning it into an infinite-dimensional linear program with a dual: maximize the total revenue ∫ψ dμ+∫φ dν\int\psi\,d\mu+\int\varphi\,d\nu∫ψdμ+∫φdν of pickup and delivery prices that never exceed the cost, ψ(x)+φ(y)≤c(x,y)\psi(x)+\varphi(y)\le c(x,y)ψ(x)+φ(y)≤c(x,y). The equality of the two values — Monge–Kantorovich duality — underlies much of modern optimal transport, with uses in economics (matching markets, principal–agent problems), probability, and PDE.

This mission formalizes the duality theorem and its proof as presented in Colin Yao, Monge–Kantorovich and Transportation Theory (paper dated September 10, 2023), whose proof follows Villani's Optimal Transport: Old and New and, for the weak inequality, Galichon's Optimal Transport Methods in Economics.

Setting

XXX and YYY are Polish spaces (separable, completely metrizable) with their Borel σ-algebras; μ\muμ and ν\nuν are Borel probability measures on XXX and YYY; c:X×Y→[0,∞)c : X\times Y\to[0,\infty)c:X×Y→[0,∞) is a continuous cost function.

  • A transference plan is a probability measure π\piπ on X×YX\times YX×Y with marginals μ\muμ and ν\nuν; Π(μ,ν)\Pi(\mu,\nu)Π(μ,ν) denotes the set of such plans.
  • The Kantorovich problem is min⁡π∈Π(μ,ν)∫c dπ\min_{\pi\in\Pi(\mu,\nu)}\int c\,d\piminπ∈Π(μ,ν)​∫cdπ.
  • The dual problem is sup⁡{∫ψ dμ+∫φ dν}\sup\{\int\psi\,d\mu+\int\varphi\,d\nu\}sup{∫ψdμ+∫φdν} over bounded continuous ψ,φ\psi,\varphiψ,φ with ψ(x)+φ(y)≤c(x,y)\psi(x)+\varphi(y)\le c(x,y)ψ(x)+φ(y)≤c(x,y) everywhere.
  • A set Γ⊆X×Y\Gamma\subseteq X\times YΓ⊆X×Y is ccc-cyclically monotone if ∑i=1Nc(xi,yi)≤∑i=1Nc(xi,yi+1)\sum_{i=1}^N c(x_i,y_i)\le\sum_{i=1}^N c(x_i,y_{i+1})∑i=1N​c(xi​,yi​)≤∑i=1N​c(xi​,yi+1​) (with yN+1=y1y_{N+1}=y_1yN+1​=y1​) for all finite families of points of Γ\GammaΓ; a plan is ccc-cyclically monotone if it is concentrated on such a set.
  • The ccc-conjugate of ψ\psiψ is ψc(y)=inf⁡x(c(x,y)−ψ(x))\psi^c(y)=\inf_x(c(x,y)-\psi(x))ψc(y)=infx​(c(x,y)−ψ(x)); ψ\psiψ is ccc-concave if ψ(x)=inf⁡y(c(x,y)−φ(y))\psi(x)=\inf_y(c(x,y)-\varphi(y))ψ(x)=infy​(c(x,y)−φ(y)) for some φ\varphiφ; its ccc-subdifferential is ∂cψ={(x,y):ψc(y)+ψ(x)=c(x,y)}\partial_c\psi=\{(x,y):\psi^c(y)+\psi(x)=c(x,y)\}∂c​ψ={(x,y):ψc(y)+ψ(x)=c(x,y)}.

Formalization targets

Goal (Theorem 4.1)

min⁡π∈Π(μ,ν)∫X×Yc dπ=sup⁡ψ∈Cb(X), φ∈Cb(Y)ψ(x)+φ(y)≤c(x,y)(∫Xψ dμ+∫Yφ dν),\min_{\pi\in\Pi(\mu,\nu)}\int_{X\times Y}c\,d\pi=\sup_{\substack{\psi\in C_b(X),\ \varphi\in C_b(Y)\\ \psi(x)+\varphi(y)\le c(x,y)}}\Big(\int_X\psi\,d\mu+\int_Y\varphi\,d\nu\Big),π∈Π(μ,ν)min​∫X×Y​cdπ=ψ∈Cb​(X), φ∈Cb​(Y)ψ(x)+φ(y)≤c(x,y)​sup​(∫X​ψdμ+∫Y​φdν),

including existence of a minimizing plan; the common value may be +∞+\infty+∞.

Milestones (in the order of the source)

  1. Weak duality, inequality (3.1): inf⁡≥sup⁡\inf\ge\supinf≥sup.
  2. Proposition 4.4: a ccc-cyclically monotone plan exists between uniform empirical measures.
  3. Lemma 4.16: plans with marginals in tight families form a tight family.
  4. Proposition 4.17: a ccc-cyclically monotone plan exists for general marginals.
  5. Proposition 4.22: the support of a ccc-cyclically monotone plan lies in ∂cψ\partial_c\psi∂c​ψ for a ccc-concave ψ\psiψ (bounded ccc).
  6. Theorem 4.25: (ψc)c=ψ(\psi^c)^c=\psi(ψc)c=ψ for ccc-concave ψ\psiψ.
  7. Proposition 4.31: duality for bounded continuous ccc.
  8. Theorem 4.32: ∫f dμ=∫f dπ\int f\,d\mu=\int f\,d\pi∫fdμ=∫fdπ for a plan with marginal μ\muμ.

Significance

Duality converts a minimization over measures into a maximization over functions; it characterizes optimal plans by the complementary-slackness condition that they are concentrated on {ψ(x)+φ(y)=c(x,y)}\{\psi(x)+\varphi(y)=c(x,y)\}{ψ(x)+φ(y)=c(x,y)}, and it is the entry point to Brenier's theorem, the Kantorovich–Rubinstein formula for the Wasserstein-1 distance, and the economic applications discussed in Section 5 of the source. The result is classical and proved in the literature; the work here is to formalize the known proof and to supply reusable infrastructure (couplings, ccc-cyclical monotonicity, ccc-transforms) on top of Mathlib's measure theory.

Difficulty

The weak inequality is a short integration argument; the reverse inequality is where the work lies. Finite-dimensional linear-programming duality does not pass to general measures directly: one must produce a cyclically monotone plan as a limit of discrete approximations (tightness and Prokhorov's theorem, closedness of the cyclic-monotonicity condition under weak convergence), build a potential ψ\psiψ from chains of cost differences, and control measurability and integrability of ψ\psiψ and ψc\psi^cψc. Passing from bounded to unbounded nonnegative costs requires an additional approximation argument, which the source only sketches (Section 4.5).

Formalization scope

Lean namespace MongeKantorovichYao; one definition file provides transference plans, ccc-cyclical monotonicity, ccc-conjugates, ccc-concavity and ccc-subdifferentials. Conventions: marginals are pushforwards along the projections; ccc-conjugates are extended-real infima (no default values); the transport cost in the goal is the [0,∞][0,\infty][0,∞]-valued integral of the nonnegative cost, and both sides of the goal are compared in the extended reals, so the infinite-cost case is included and no integrability hypothesis is added. The dual side ranges over bounded continuous functions with the constraint imposed at every point. Proposition 4.22 is stated for bounded ccc (as used in Proposition 4.31), since with unbounded costs a real-valued potential need not exist. Infrastructure that may be missing from Mathlib: Prokhorov-type compactness of tight families of probability measures, weak convergence of empirical measures, and lower semicontinuity of π↦∫c dπ\pi\mapsto\int c\,d\piπ↦∫cdπ.

Selected references

  • C. Villani, Optimal Transport: Old and New, Grundlehren der mathematischen Wissenschaften 338, Springer, 2009. https://doi.org/10.1007/978-3-540-71050-9
  • A. Galichon, Optimal Transport Methods in Economics, Princeton University Press, 2016.
  • L. V. Kantorovich, On the translocation of masses, Dokl. Akad. Nauk SSSR 37 (1942).
10 thms3 active usersReviewed
🏆Completed
Operations ResearchOptimization·Captain: mikedeng1

Scenario Reduction Algorithms in Stochastic Programming I: Fast Forward Selection Realizes the Forward Selection PrincipleResearch Paper

Why reduce scenarios

Multistage and two-stage stochastic programs are solved numerically on a discrete probability distribution: a finite set of scenarios ω1,…,ωN\omega_1,\dots,\omega_Nω1​,…,ωN​ with probabilities p1,…,pNp_1,\dots,p_Np1​,…,pN​. The size of the resulting optimization problem grows with NNN, and scenario sets produced by sampling or by historical data are often far too large to be solved directly. Scenario reduction replaces the original distribution by one supported on a small subset of the scenarios, chosen so that the optimal value and solutions of the stochastic program change as little as possible.

Stability theory for stochastic programs (Rachev and Römisch, 2002) shows that this change is controlled by a probability distance of Fortet–Mourier type, which for discrete measures is bounded by the value of a transportation problem. Dupačová, Gröwe-Kuska and Römisch (2003) turned this into a combinatorial problem and proposed greedy backward and forward heuristics. Heitsch and Römisch (2003) gave faster versions of both heuristics; the forward version, fast forward selection, is the subject of this mission. Implementations of these reduction heuristics are distributed with the GAMS modelling system (SCENRED) and are used in energy and finance applications of stochastic programming.

Setting

Let EEE be a finite-dimensional real vector space with a norm ∥⋅∥\|\cdot\|∥⋅∥, let ω0∈E\omega_0\in Eω0​∈E, and let h:[0,∞)→[0,∞)h:[0,\infty)\to[0,\infty)h:[0,∞)→[0,∞) be continuous and nondecreasing with h(0)=0h(0)=0h(0)=0. The cost between two points of EEE is

c(ω,ω~)=max⁡{1, h(∥ω−ω0∥), h(∥ω~−ω0∥)} ∥ω−ω~∥.c(\omega,\tilde\omega)=\max\bigl\{1,\,h(\|\omega-\omega_0\|),\,h(\|\tilde\omega-\omega_0\|)\bigr\}\,\|\omega-\tilde\omega\| .c(ω,ω~)=max{1,h(∥ω−ω0​∥),h(∥ω~−ω0​∥)}∥ω−ω~∥.

It is nonnegative, symmetric, and zero on the diagonal.

The original distribution is P=∑i=1NpiδωiP=\sum_{i=1}^N p_i\delta_{\omega_i}P=∑i=1N​pi​δωi​​ with pi>0p_i>0pi​>0 and ∑ipi=1\sum_i p_i=1∑i​pi​=1. Deleting the scenarios in a set J⊂{1,…,N}J\subset\{1,\dots,N\}J⊂{1,…,N} and assigning new weights qj≥0q_j\ge 0qj​≥0, ∑j∉Jqj=1\sum_{j\notin J}q_j=1∑j∈/J​qj​=1, to the kept ones gives Q=∑j∉JqjδωjQ=\sum_{j\notin J}q_j\delta_{\omega_j}Q=∑j∈/J​qj​δωj​​. The distance D(J;q)D(J;q)D(J;q) between PPP and QQQ is the optimal value of the transportation problem

D(J;q)=min⁡{∑i=1N∑j∉Jc(ωi,ωj)ηij: ηij≥0, ∑iηij=qj, ∑j∉Jηij=pi}.D(J;q)=\min\Bigl\{\sum_{i=1}^N\sum_{j\notin J}c(\omega_i,\omega_j)\eta_{ij}:\ \eta_{ij}\ge 0,\ \sum_{i}\eta_{ij}=q_j,\ \sum_{j\notin J}\eta_{ij}=p_i\Bigr\}.D(J;q)=min{i=1∑N​j∈/J∑​c(ωi​,ωj​)ηij​: ηij​≥0, i∑​ηij​=qj​, j∈/J∑​ηij​=pi​}.

The reduction cost of deleting JJJ is

DJ=∑i∈Jpimin⁡j∉Jc(ωi,ωj),D_J=\sum_{i\in J}p_i\min_{j\notin J}c(\omega_i,\omega_j),DJ​=i∈J∑​pi​j∈/Jmin​c(ωi​,ωj​),

and the optimal reduction problem (8) minimizes DJD_JDJ​ over all JJJ with #J=N−n\#J=N-n#J=N−n, where nnn is the number of scenarios to keep.

Forward selection builds the kept set greedily. With J[0]={1,…,N}J^{[0]}=\{1,\dots,N\}J[0]={1,…,N} and J[i]={1,…,N}∖{u1,…,ui}J^{[i]}=\{1,\dots,N\}\setminus\{u_1,\dots,u_i\}J[i]={1,…,N}∖{u1​,…,ui​}, it chooses

ui∈arg⁡min⁡u∈J[i−1]DJ[i−1]∖{u},i=1,…,n.(16)u_i\in\arg\min_{u\in J^{[i-1]}}D_{J^{[i-1]}\setminus\{u\}},\qquad i=1,\dots,n. \tag{16}ui​∈argu∈J[i−1]min​DJ[i−1]∖{u}​,i=1,…,n.(16)

Fast forward selection (Algorithm 2.4) computes the same choices through an updated cost matrix: cku[1]=c(ωk,ωu)c^{[1]}_{ku}=c(\omega_k,\omega_u)cku[1]​=c(ωk​,ωu​), cku[i]=min⁡{cku[i−1],ckui−1[i−1]}c^{[i]}_{ku}=\min\{c^{[i-1]}_{ku},c^{[i-1]}_{ku_{i-1}}\}cku[i]​=min{cku[i−1]​,ckui−1​[i−1]​}, zu[i]=∑k∈J[i−1]∖{u}pkcku[i]z^{[i]}_u=\sum_{k\in J^{[i-1]}\setminus\{u\}}p_kc^{[i]}_{ku}zu[i]​=∑k∈J[i−1]∖{u}​pk​cku[i]​, and ui∈arg⁡min⁡u∈J[i−1]zu[i]u_i\in\arg\min_{u\in J^{[i-1]}}z^{[i]}_uui​∈argminu∈J[i−1]​zu[i]​.

Formalization targets

Goal: Theorem 2.5

For 1≤n≤N1\le n\le N1≤n≤N and every run u1,…,unu_1,\dots,u_nu1​,…,un​ of Algorithm 2.4, with any tie-breaking in the arg min,

ui satisfies (16)andzui[i]=DJ[i](i=1,…,n).u_i\ \text{satisfies (16)}\quad\text{and}\quad z^{[i]}_{u_i}=D_{J^{[i]}}\qquad(i=1,\dots,n).ui​ satisfies (16)andzui​[i]​=DJ[i]​(i=1,…,n).

Milestones

  1. Theorem 2.1 (redistribution). For JJJ with at least one kept scenario, DJ=min⁡qD(J;q)D_J=\min_q D(J;q)DJ​=minq​D(J;q), and the minimum is attained at qˉj=pj+∑i∈J, j(i)=jpi\bar q_j=p_j+\sum_{i\in J,\,j(i)=j}p_iqˉ​j​=pj​+∑i∈J,j(i)=j​pi​ for every choice of nearest kept scenarios j(i)j(i)j(i).
  2. Eq. (10). D{1,…,N}∖{u}=∑i=1Npic(ωi,ωu)D_{\{1,\dots,N\}\setminus\{u\}}=\sum_{i=1}^Np_ic(\omega_i,\omega_u)D{1,…,N}∖{u}​=∑i=1N​pi​c(ωi​,ωu​), so (8) with #J=N−1\#J=N-1#J=N−1 is problem (10).
  3. Eq. (12). The sum lblblb of the N−nN-nN−n smallest single-deletion costs plmin⁡j≠lc(ωl,ωj)p_l\min_{j\neq l}c(\omega_l,\omega_j)pl​minj=l​c(ωl​,ωj​), taken in the greedy order (11), is at most DJD_JDJ​ for every JJJ with #J=N−n\#J=N-n#J=N−n.
  4. Optimality condition (p. 191). If each lil_ili​ has a nearest other scenario outside {l1,…,lN−n}∖{li}\{l_1,\dots,l_{N-n}\}\setminus\{l_i\}{l1​,…,lN−n​}∖{li​}, then {l1,…,lN−n}\{l_1,\dots,l_{N-n}\}{l1​,…,lN−n​} solves (8).
  5. Eq. (17), unrolled recursion. For any index sequence, cku[i]=min⁡j∉J[i−1]∖{u}c(ωk,ωj)c^{[i]}_{ku}=\min_{j\notin J^{[i-1]}\setminus\{u\}}c(\omega_k,\omega_j)cku[i]​=minj∈/J[i−1]∖{u}​c(ωk​,ωj​) for u∈J[i−1]u\in J^{[i-1]}u∈J[i−1].
  6. Eq. (17), conclusion. For any index sequence, zu[i]=DJ[i−1]∖{u}z^{[i]}_u=D_{J^{[i-1]}\setminus\{u\}}zu[i]​=DJ[i−1]∖{u}​ for u∈J[i−1]u\in J^{[i-1]}u∈J[i−1].

Significance

Theorem 2.5 certifies that the cheap update of Algorithm 2.4 (one pairwise minimum per matrix entry and step) produces exactly the greedy forward selection defined through the reduction costs, and that the running objective zui[i]z^{[i]}_{u_i}zui​[i]​ is the reduction cost of the scenarios deleted so far. Combined with Theorem 2.1, zui[i]z^{[i]}_{u_i}zui​[i]​ is the optimal transportation distance between PPP and the best measure on the kept scenarios, which is the quantity practitioners monitor to decide how many scenarios to keep. The lower bound (12) and the optimality condition give a posteriori quality certificates for any reduced set.

All results of this mission are proved in the paper or in the works it cites (Dupačová et al., 2003); none is open. To the best of a platform search, none has been machine-checked. The mission provides a verified specification of a widely deployed algorithm, a formal link between a combinatorial set-covering objective and a finite transportation problem, and definitions (reduction cost, transportation plans with a partially free target marginal, greedy runs with arbitrary tie-breaking) reusable by the regular-tree missions of this series and by later scenario-tree construction papers.

Difficulty

The mathematics is elementary; the difficulty is bookkeeping. The recursion for c[i]c^{[i]}c[i] refers to the previous step's column ui−1u_{i-1}ui−1​, which itself was updated, so unrolling it to a minimum over {u,u1,…,ui−1}\{u,u_1,\dots,u_{i-1}\}{u,u1​,…,ui−1​} is an induction on iii in which the index sets J[i]J^{[i]}J[i], the 1-based step counter and the complement structure all move together. The natural first attempt, identifying cku[i]c^{[i]}_{ku}cku[i]​ with the minimum over the complement of J[i]J^{[i]}J[i], is off by one step: the correct set is the complement of J[i−1]∖{u}J^{[i-1]}\setminus\{u\}J[i−1]∖{u}, which contains uuu itself. For Theorem 2.1 the lower bound requires using that c(ωi,ωi)=0c(\omega_i,\omega_i)=0c(ωi​,ωi​)=0 for kept scenarios and that every plan ships all of pip_ipi​ somewhere outside JJJ; the attainment part requires constructing the plan explicitly from the choice j(⋅)j(\cdot)j(⋅), including scenarios for which several kept scenarios are equally near.

Formalization scope

  • Scenarios are ω : Fin N → E with E a finite-dimensional real normed space; the paper's closed set Ω⊂Rs\Omega\subset\mathbb R^sΩ⊂Rs plays no role beyond containing the scenarios and is omitted. Scenarios need not be distinct.
  • hhh is a function ℝ → ℝ with the paper's assumptions imposed on [0,∞)[0,\infty)[0,∞) (IsGrowthFunction); every theorem carries them, together with pi>0p_i>0pi​>0 and ∑ipi=1\sum_ip_i=1∑i​pi​=1.
  • The functions f0f_0f0​, ggg and the stochastic program (1)–(2) that motivate ccc appear in no statement.
  • D(J;q)D(J;q)D(J;q) is the paper's finite transportation problem (p. 188), not the Kantorovich functional on measures. Weights qqq and plans η\etaη are indexed by all of {1,…,N}\{1,\dots,N\}{1,…,N} with entries at deleted indices fixed to 000.
  • DJD_JDJ​ requires a proof that the complement of JJJ is nonempty; minima are Finset.inf', never a real infimum with a default value.
  • Algorithm 2.4 is a relation on sequences u : ℕ → Fin N with 1-based steps. c[i]c^{[i]}c[i] is the printed recursion, extended to all indices; runs are any sequences satisfying the arg-min conditions, so every tie-breaking rule is covered.
  • The paper's standing restriction n<Nn<Nn<N is relaxed to n≤Nn\le Nn≤N in Theorem 2.5; the statement remains true at n=Nn=Nn=N.
  • A trivializing formalization is ruled out: defining c[i]c^{[i]}c[i] or z[i]z^{[i]}z[i] directly as the minimum over the selected set or as DJ[i−1]∖{u}D_{J^{[i-1]}\setminus\{u\}}DJ[i−1]∖{u}​ would make Theorem 2.5 hold by definition, and proving it for one fixed tie-breaking rule would prove less than the paper; neither is done.
  • Proofs of the milestones, alternative proofs of Theorem 2.1 via LP duality, and a verified executable implementation of Algorithm 2.4 are all welcome.

Selected references

  • H. Heitsch, W. Römisch, Scenario Reduction Algorithms in Stochastic Programming, Computational Optimization and Applications 24 (2003), 187–206. https://doi.org/10.1023/A:1021805924152
  • J. Dupačová, N. Gröwe-Kuska, W. Römisch, Scenario reduction in stochastic programming: an approach using probability metrics, Mathematical Programming 95 (2003), 493–511. https://doi.org/10.1007/s10107-002-0331-0
  • S. T. Rachev, W. Römisch, Quantitative stability in stochastic programming: the method of probability metrics, Mathematics of Operations Research 27 (2002), 792–818. https://doi.org/10.1287/moor.27.4.792.304
12 thms3 active usersReviewed
🏆Completed
Linear OptimizationOperations Research·Captain: mikedeng1

Scenario Reduction in Stochastic Programming: The Optimal Redistribution Rule and the Explicit Kantorovich Distance of a Reduced MeasureResearch Paper

Motivation

Stochastic programs are solved in practice on a finite set of scenarios: a discrete probability distribution P=∑i=1NpiδωiP=\sum_{i=1}^N p_i\delta_{\omega_i}P=∑i=1N​pi​δωi​​ that approximates the true distribution of the uncertain data. The size of the resulting deterministic problem grows with NNN, and for multistage models it grows very fast, so NNN is often reduced before solving. The question is which scenarios to delete and how to reweight the remaining ones so that the optimal value and solutions of the stochastic program change as little as possible.

Dupačová, Gröwe-Kuska and Römisch (Math. Program. Ser. A 95 (2003) 493–511) answered this with probability metrics. Stability results for stochastic programs bound the change of the optimal value by a Fortet–Mourier type distance, which is in turn bounded by a Kantorovich functional μ^c\hat\mu_cμ^​c​ (an optimal transport cost). Scenario reduction then becomes: find a measure QQQ supported on a subset of the scenarios with μ^c(P,Q)\hat\mu_c(P,Q)μ^​c​(P,Q) small. Section 3 of the paper solves the weight part of this problem in closed form. That result, together with the heuristics built on it (backward reduction and forward selection), became the standard scenario-reduction method, implemented for example in the GAMS tool SCENRED.

Setting

Let Ω\OmegaΩ be a set and c:Ω×Ω→R+c:\Omega\times\Omega\to\mathbb R_+c:Ω×Ω→R+​ a cost function with c(ω,ω~)=0c(\omega,\tilde\omega)=0c(ω,ω~)=0 if and only if ω=ω~\omega=\tilde\omegaω=ω~, and c(ω,ω~)=c(ω~,ω)c(\omega,\tilde\omega)=c(\tilde\omega,\omega)c(ω,ω~)=c(ω~,ω) (conditions (C1)–(C2), p. 498). The original distribution has scenarios ω1,…,ωN∈Ω\omega_1,\dots,\omega_N\in\Omegaω1​,…,ωN​∈Ω with weights pi>0p_i>0pi​>0 and ∑ipi=1\sum_i p_i=1∑i​pi​=1. Write cij=c(ωi,ωj)c_{ij}=c(\omega_i,\omega_j)cij​=c(ωi​,ωj​).

A set J⊂{1,…,N}J\subset\{1,\dots,N\}J⊂{1,…,N} of scenarios is deleted. The reduced measure is Q=∑j∉JqjδωjQ=\sum_{j\notin J}q_j\delta_{\omega_j}Q=∑j∈/J​qj​δωj​​ with reduced weights qj≥0q_j\ge0qj​≥0, ∑j∉Jqj=1\sum_{j\notin J}q_j=1∑j∈/J​qj​=1. A transport plan from PPP to QQQ is a nonnegative matrix (ηij)i≤N, j∉J(\eta_{ij})_{i\le N,\,j\notin J}(ηij​)i≤N,j∈/J​ with row sums ∑j∉Jηij=pi\sum_{j\notin J}\eta_{ij}=p_i∑j∈/J​ηij​=pi​ and column sums ∑iηij=qj\sum_i\eta_{ij}=q_j∑i​ηij​=qj​. The Kantorovich functional (10) is the value of this transportation problem,

D(J;q)=min⁡{∑i∑j∉Jcijηij: η a transport plan from P to Q},D(J;q)=\min\Big\{\sum_{i}\sum_{j\notin J}c_{ij}\eta_{ij}:\ \eta\ \text{a transport plan from }P\text{ to }Q\Big\},D(J;q)=min{i∑​j∈/J∑​cij​ηij​: η a transport plan from P to Q},

and DJ=min⁡{D(J;q):q reduced weights}D_J=\min\{D(J;q): q\ \text{reduced weights}\}DJ​=min{D(J;q):q reduced weights} is the best distance achievable once JJJ is fixed. The optimal deletion problem (13) asks for min⁡{DJ:#J=k}\min\{D_J:\#J=k\}min{DJ​:#J=k} for a given 1≤k<N1\le k<N1≤k<N.

In the Lean development these objects are IsReducedWeight, IsTransportPlan, transportCost, transportValue (D(J;q)D(J;q)D(J;q)), optWeightsValue (DJD_JDJ​) and optimalDeletionValue (the value of (13)), all in the namespace ScenarioReduction.Redistribution.

Formalization targets

Goal: Theorem 2 (optimal weights), p. 500

For every J≠{1,…,N}J\neq\{1,\dots,N\}J={1,…,N},

DJ=min⁡{D(J;q):qj≥0, ∑j∉Jqj=1}=∑i∈Jpimin⁡j∉Jc(ωi,ωj),D_J=\min\Big\{D(J;q): q_j\ge0,\ \sum_{j\notin J}q_j=1\Big\}=\sum_{i\in J}p_i\min_{j\notin J}c(\omega_i,\omega_j),DJ​=min{D(J;q):qj​≥0, j∈/J∑​qj​=1}=i∈J∑​pi​j∈/Jmin​c(ωi​,ωj​),

and the minimum is attained at the optimal redistribution rule qˉj=pj+∑i∈Jjpi\bar q_j=p_j+\sum_{i\in J_j}p_iqˉ​j​=pj​+∑i∈Jj​​pi​, where Jj={i∈J:j(i)=j}J_j=\{i\in J: j(i)=j\}Jj​={i∈J:j(i)=j} and j(i)∈arg⁡min⁡j∉Jc(ωi,ωj)j(i)\in\arg\min_{j\notin J}c(\omega_i,\omega_j)j(i)∈argminj∈/J​c(ωi​,ωj​), for every such choice of j(⋅)j(\cdot)j(⋅).

Milestones

  1. Primal–dual representation of D(J;q)D(J;q)D(J;q) (first display of the proof, p. 501): the transportation problem and its linear-programming dual both attain D(J;q)D(J;q)D(J;q).
  2. Lower bound (p. 501): ∑i∈Jpimin⁡k∉Jcik≤D(J;q)\sum_{i\in J}p_i\min_{k\notin J}c_{ik}\le D(J;q)∑i∈J​pi​mink∈/J​cik​≤D(J;q) for every feasible qqq.
  3. Upper bound at qˉ\bar qqˉ​ (p. 501): qˉ\bar qqˉ​ is feasible and D(J;qˉ)≤∑i∈Jpimin⁡j∉JcijD(J;\bar q)\le\sum_{i\in J}p_i\min_{j\notin J}c_{ij}D(J;qˉ​)≤∑i∈J​pi​minj∈/J​cij​.
  4. Theorem 3 (p. 501): for weights prescribed by qj=pj+λjpJq_j=p_j+\lambda_jp_Jqj​=pj​+λj​pJ​, D(J;q)≤∑i∈Jpi∑j∉Jλjc(ωi,ωj)D(J;q)\le\sum_{i\in J}p_i\sum_{j\notin J}\lambda_jc(\omega_i,\omega_j)D(J;q)≤∑i∈J​pi​∑j∈/J​λj​c(ωi​,ωj​), with equality if #J=1\#J=1#J=1 and ccc satisfies the triangle inequality.
  5. Theorem 4 (p. 503): the greedy recursions (16) and (17) give a lower and an upper bound for min⁡{DJ:#J=k}\min\{D_J:\#J=k\}min{DJ​:#J=k}, and the backward set {l1,…,lk}\{l_1,\dots,l_k\}{l1​,…,lk​} is optimal under a nonemptiness condition.

Significance

Theorem 2 reduces the continuous part of scenario reduction to a formula: once the set of kept scenarios is chosen, the best reweighting is to move the mass of every deleted scenario to a nearest kept scenario, and the resulting distance is an explicit sum. This leaves only the combinatorial choice of JJJ, which Theorem 4 brackets by two greedy procedures; these are the backward-reduction and forward-selection algorithms of the paper and of later work by Heitsch and Römisch. Theorem 3 covers the case in which the reduced weights are fixed by the modeller, for instance to keep a uniform distribution uniform.

The results are proved in the paper by elementary linear-programming arguments. As far as is known, none of them has a machine-checked proof. Formalizing them produces a verified finite transportation-problem layer with a general (not necessarily metric) cost and a deleted index set, and verified correctness certificates for the two standard scenario-reduction heuristics.

Difficulty

The upper bound of Theorem 2 is a direct construction. The content lies in the lower bound, which must hold for every reweighting qqq simultaneously; this needs the dual side of the transportation problem, and the full primal–dual representation (Milestone 1) requires strong duality for a transportation problem with only the kept columns, which Mathlib does not provide in this form. A naive argument that bounds each plan row by row gives the lower bound directly for plans, but relating it to D(J;q)D(J;q)D(J;q) as an infimum also requires that plans exist and that the infimum is attained. In Theorem 4, the recursions (16) and (17) are greedy and do not in general produce optimal sets; the lower bound works only because its inner minimum ranges over all j≠lj\neq lj=l, not over the kept scenarios.

Formalization scope

Scenarios are indexed by Fin N (0-based), scenarios are a function ω : Fin N → Ω into an arbitrary type Ω, the cost is c : Ω → Ω → ℝ, and weights, plans and dual variables are real-valued functions on Fin N and Fin N × Fin N. Only the entries at kept indices j∉Jj\notin Jj∈/J enter any constraint, cost or objective. No measure theory is used: the index-level transportation problem is the paper's own representation of μ^c\hat\mu_cμ^​c​ for discrete measures (p. 495). Every theorem carries the standing assumptions of Section 3: c≥0c\ge0c≥0, (C1), (C2), pi>0p_i>0pi​>0 and ∑ipi=1\sum_ip_i=1∑i​pi​=1. Measurability of ccc and conditions (C3) and (C4) concern Ω⊂Rs\Omega\subset\mathbb R^sΩ⊂Rs and play no role for finitely supported measures; they are dropped, so the statements are more general than the page. The hypothesis J≠{1,…,N}J\neq\{1,\dots,N\}J={1,…,N}, implicit in Theorem 2, is stated explicitly; in Theorem 4, 1≤k<N1\le k<N1≤k<N plays this role.

D(J;q)D(J;q)D(J;q) and DJD_JDJ​ are real infima (sInf) of transport costs and are only asserted about where the underlying sets are nonempty and bounded below; "min" is stated as attainment (IsLeast), not as an equality of infima. D(J;q)D(J;q)D(J;q) is defined as the transportation problem and is not defined by the closed form ∑i∈Jpimin⁡j∉Jcij\sum_{i\in J}p_i\min_{j\notin J}c_{ij}∑i∈J​pi​minj∈/J​cij​; under that definition Theorem 2 would be trivial, and it is ruled out here. Likewise the reduced-weight constraint does not force q=qˉq=\bar qq=qˉ​.

Needed infrastructure: finite transportation problems with nonnegativity and marginal constraints, existence of optimal plans (compactness of the feasible polytope), and LP duality for transportation problems. The transportation-problem layer is reusable beyond this mission. Contributions welcome: proofs of the milestones, a general strong-duality result for finite transportation problems, and the examples of p. 502 (single scenario deletion, keeping one scenario).

Selected references

  • J. Dupačová, N. Gröwe-Kuska, W. Römisch, Scenario reduction in stochastic programming: An approach using probability metrics, Math. Program. Ser. A 95 (2003) 493–511. https://doi.org/10.1007/s10107-002-0331-0
  • S. T. Rachev, Probability Metrics and the Stability of Stochastic Models, Wiley, 1991.
  • H. Heitsch, W. Römisch, Scenario reduction algorithms in stochastic programming, Comput. Optim. Appl. 24 (2003) 187–206. https://doi.org/10.1023/A:1021805924152
  • W. Römisch, R. Schultz, Stability analysis for stochastic programs, Ann. Oper. Res. 30 (1991) 241–266. https://doi.org/10.1007/BF02204819
7 thms3 active usersReviewed
🏆Completed
Operations ResearchOptimization·Captain: mikedeng1

Robustifying Conditional Portfolio Decisions via Optimal Transport 1: With a Singleton Fiber and Only Positive Fiber Mass Required, the Worst-Case Conditional Expected Loss Collapses to sup_y ℓ(y)Research Paper

Conditioning on a covariate under distributional ambiguity

A portfolio manager who observes side information (a covariate XXX, such as a market indicator) before choosing a portfolio wants to control the loss of the asset returns YYY conditional on the observed covariate value x0x_0x0​. The conditional law of YYY given X=x0X=x_0X=x0​ is unknown and must be learned from NNN historical pairs (x^i,y^i)(\widehat x_i,\widehat y_i)(xi​,y​i​). When x0x_0x0​ itself was never observed, the empirical conditional law is undefined, and kernel or nearest-neighbour estimates are fragile. Nguyen, Zhang, Wang, Blanchet, Delage and Ye (arXiv:2103.16451v3, Operations Research, 2025) robustify the conditional decision with an optimal transport ambiguity set: the decision maker hedges against every joint law Q\mathbb QQ of (X,Y)(X,Y)(X,Y) within transport distance ρ\rhoρ of the empirical law. The resulting objective is a ratio of two linear functionals of Q\mathbb QQ, so the standard Wasserstein distributionally robust duality (Blanchet and Murthy, 2019; Gao and Kleywegt, 2023) does not apply directly.

The paper settles every regime of the three parameters (ball radius ρ\rhoρ, fiber radius γ\gammaγ, minimum fiber mass ε\varepsilonε). This mission formalizes the simplest regime, γ=ε=0\gamma=\varepsilon=0γ=ε=0, where the answer is negative: the worst case does not depend on the data at all.

Setting

The covariate space X\mathcal XX and the return space Y\mathcal YY are Polish spaces with their Borel σ\sigmaσ-algebras. Two ground costs DX\mathbb D_{\mathcal X}DX​ and DY\mathbb D_{\mathcal Y}DY​ combine into the separable cost D((x,y),(x′,y′))=DX(x,x′)+DY(y,y′)\mathbb D((x,y),(x',y'))=\mathbb D_{\mathcal X}(x,x')+\mathbb D_{\mathcal Y}(y,y')D((x,y),(x′,y′))=DX​(x,x′)+DY​(y,y′). The data define the empirical measure P^=1N∑i∈[N]δ(x^i,y^i)\widehat{\mathbb P}=\frac1N\sum_{i\in[N]}\delta_{(\widehat x_i,\widehat y_i)}P=N1​∑i∈[N]​δ(xi​,y​i​)​.

The optimal transport cost between two probability measures Q1,Q2\mathbb Q_1,\mathbb Q_2Q1​,Q2​ on X×Y\mathcal X\times\mathcal YX×Y is

W(Q1,Q2)=inf⁡{Eπ[D(ξ1,ξ2)]:π∈Π(Q1,Q2)},W(\mathbb Q_1,\mathbb Q_2)=\inf\{\mathbb E_\pi[\mathbb D(\xi_1,\xi_2)]:\pi\in\Pi(\mathbb Q_1,\mathbb Q_2)\},W(Q1​,Q2​)=inf{Eπ​[D(ξ1​,ξ2​)]:π∈Π(Q1​,Q2​)},

the infimum over couplings π\piπ with marginals Q1\mathbb Q_1Q1​ and Q2\mathbb Q_2Q2​. The ambiguity set is the ball Bρ={Q:W(Q,P^)≤ρ}\mathbb B_\rho=\{\mathbb Q:W(\mathbb Q,\widehat{\mathbb P})\le\rho\}Bρ​={Q:W(Q,P)≤ρ}.

Given a covariate value x0x_0x0​ and a radius γ≥0\gamma\ge0γ≥0, the neighbourhood is Nγ(x0)={x:DX(x,x0)≤γ}\mathcal N_\gamma(x_0)=\{x:\mathbb D_{\mathcal X}(x,x_0)\le\gamma\}Nγ​(x0​)={x:DX​(x,x0​)≤γ}, and Nγ(x0)×Y\mathcal N_\gamma(x_0)\times\mathcal YNγ​(x0​)×Y is the fiber set. For a loss ℓ(y)=ℓ(y,α,β)\ell(y)=\ell(y,\alpha,\beta)ℓ(y)=ℓ(y,α,β) at a fixed decision (α,β)(\alpha,\beta)(α,β) and a law Q\mathbb QQ with positive fiber mass, the conditional expected loss is

EQ[ℓ(Y)∣X∈Nγ(x0)]=EQ[ℓ(Y)1Nγ(x0)(X)]Q(X∈Nγ(x0)).\mathbb E_{\mathbb Q}[\ell(Y)\mid X\in\mathcal N_\gamma(x_0)]=\frac{\mathbb E_{\mathbb Q}[\ell(Y)\mathbb 1_{\mathcal N_\gamma(x_0)}(X)]}{\mathbb Q(X\in\mathcal N_\gamma(x_0))}.EQ​[ℓ(Y)∣X∈Nγ​(x0​)]=Q(X∈Nγ​(x0​))EQ​[ℓ(Y)1Nγ​(x0​)​(X)]​.

The paper's standing Assumption 2.4 requires: (i) DX\mathbb D_{\mathcal X}DX​ and DY\mathbb D_{\mathcal Y}DY​ are symmetric, non-negative and continuous, and D\mathbb DD vanishes exactly on the diagonal; (ii) every x^i\widehat x_ixi​ has a unique projection onto Nγ(x0)\mathcal N_\gamma(x_0)Nγ​(x0​); (iii) every boundary point of Nγ(x0)\mathcal N_\gamma(x_0)Nγ​(x0​) has points outside Nγ(x0)\mathcal N_\gamma(x_0)Nγ​(x0​) at arbitrarily small cost.

With γ=0\gamma=0γ=0 the fiber is {x0}×Y\{x_0\}\times\mathcal Y{x0​}×Y. With ε=0\varepsilon=0ε=0 the fiber-mass constraint is taken as the strict inequality Q(X=x0)>0\mathbb Q(X=x_0)>0Q(X=x0​)>0, so that the conditioning event is never null.

Formalization targets

Goal: Proposition 3.1 (p. 14)

For every x0∈Xx_0\in\mathcal Xx0​∈X, every ρ>0\rho>0ρ>0 and every loss ℓ:Y→R\ell:\mathcal Y\to\mathbb Rℓ:Y→R,

sup⁡Q∈Bρ, Q(X=x0)>0EQ[ℓ(Y)∣X=x0]=sup⁡y∈Yℓ(y),\sup_{\mathbb Q\in\mathbb B_\rho,\ \mathbb Q(X=x_0)>0}\mathbb E_{\mathbb Q}[\ell(Y)\mid X=x_0]=\sup_{y\in\mathcal Y}\ell(y),Q∈Bρ​, Q(X=x0​)>0sup​EQ​[ℓ(Y)∣X=x0​]=y∈Ysup​ℓ(y),

both sides in [−∞,+∞][-\infty,+\infty][−∞,+∞].

Milestones (in the order of the proof, pp. 40–41)

  1. Representation of the ball (p. 40, the same set as display (24), p. 47): Q∈Bρ\mathbb Q\in\mathbb B_\rhoQ∈Bρ​ if and only if Q=1N∑iπi\mathbb Q=\frac1N\sum_i\pi_iQ=N1​∑i​πi​ for probability measures πi\pi_iπi​ with 1N∑iEπi[D(⋅,(x^i,y^i))]≤ρ\frac1N\sum_i\mathbb E_{\pi_i}[\mathbb D(\cdot,(\widehat x_i,\widehat y_i))]\le\rhoN1​∑i​Eπi​​[D(⋅,(xi​,y​i​))]≤ρ.
  2. Lower bound (pp. 40–41): for every y0∈Yy_0\in\mathcal Yy0​∈Y some Q′∈Bρ\mathbb Q'\in\mathbb B_\rhoQ′∈Bρ​ has Q′(X=x0)>0\mathbb Q'(X=x_0)>0Q′(X=x0​)>0 and EQ′[ℓ(Y)∣X=x0]=ℓ(y0)\mathbb E_{\mathbb Q'}[\ell(Y)\mid X=x_0]=\ell(y_0)EQ′​[ℓ(Y)∣X=x0​]=ℓ(y0​).
  3. Upper bound (p. 41): EQ[ℓ(Y)∣(X,Y)∈S]≤sup⁡yℓ(y)\mathbb E_{\mathbb Q}[\ell(Y)\mid (X,Y)\in S]\le\sup_y\ell(y)EQ​[ℓ(Y)∣(X,Y)∈S]≤supy​ℓ(y) whenever Q(S)>0\mathbb Q(S)>0Q(S)>0.

Significance

The proposition shows that conditioning on a single covariate value with an optimal transport ball is uninformative: the worst-case conditional loss equals the robust optimization value sup⁡y∈Yℓ(y,α,β)\sup_{y\in\mathcal Y}\ell(y,\alpha,\beta)supy∈Y​ℓ(y,α,β) for every data set. This is what motivates the rest of the paper: either a minimum fiber mass ε>0\varepsilon>0ε>0 (Theorem 3.2) or a fiber of positive radius γ>0\gamma>0γ>0 (Section 4) is needed for the data to matter. The paper contrasts this with the type-∞\infty∞ Wasserstein ball, for which it points to existing results to compute the worst case.

For the platform, the mission sets up the shared model of the series: the separable ground cost, the empirical measure, the fiber, the conditional expectation as an extended-real ratio, and the paper's Assumption 2.4. The ball representation (milestone 1) is used by every other mission of the series; it rests on the existence of optimal couplings on Polish spaces, which Mathlib does not yet have. The result is proved in the paper; no machine-checked proof is known to exist.

Difficulty

The statement is an equality of two suprema over very different index sets, and neither inequality reduces to the other. The natural first idea, that the worst case is attained by a small perturbation of the empirical measure, fails: the empirical measure may put no mass on the fiber {x0}×Y\{x_0\}\times\mathcal Y{x0​}×Y, or put its mass there at returns far from where ℓ\ellℓ is large, and the value must be reached for every data set. Points of the data sitting exactly at x0x_0x0​ are the delicate case, since the transport budget charges for every displacement of mass. The ball representation (milestone 1) is the hard infrastructure step in its "only if" direction: it needs an optimal coupling, i.e. attainment of the transport infimum on Polish spaces, which is absent from Mathlib.

Formalization scope

Samples are indexed by Fin N with N≥1N\ge1N≥1. The ground cost is max⁡(DX+DY,0)\max(\mathbb D_{\mathcal X}+\mathbb D_{\mathcal Y},0)max(DX​+DY​,0) as a [0,∞][0,\infty][0,∞]-valued function. The transport cost reuses the published RWPI.SqrtLasso.transportCost, an infimum over couplings whose first marginal is Q\mathbb QQ and second marginal is P^\widehat{\mathbb P}P; the paper's "min" is not built into the definition. The radius enters as ENNReal.ofReal ρ, and the goal assumes ρ>0\rho>0ρ>0 as on the page (ρ∈R++\rho\in\mathbb R_{++}ρ∈R++​). Expectations use the published ModelRiskOT.Duality.extIntegral, ∫ℓ+−∫ℓ−\int\ell^+-\int\ell^-∫ℓ+−∫ℓ− in [−∞,+∞][-\infty,+\infty][−∞,+∞], so the loss ℓ:Y→R\ell:\mathcal Y\to\mathbb Rℓ:Y→R is arbitrary: no measurability, boundedness or integrability. The loss stands for ℓ(⋅,α,β)\ell(\cdot,\alpha,\beta)ℓ(⋅,α,β) at an arbitrary fixed decision, which is how "for any feasible (α,β)(\alpha,\beta)(α,β)" is read. The fiber at γ=0\gamma=0γ=0 is {x:DX(x,x0)≤0}×Y\{x:\mathbb D_{\mathcal X}(x,x_0)\le0\}\times\mathcal Y{x:DX​(x,x0​)≤0}×Y; that it equals {x0}×Y\{x_0\}\times\mathcal Y{x0​}×Y follows from Assumption 2.4(i). The boundary in Assumption 2.4(iii) is the topological frontier in X\mathcal XX.

One hypothesis is added to the paper and disclosed: x0x_0x0​ is not isolated for DX\mathbb D_{\mathcal X}DX​ (for every r>0r>0r>0 some x≠x0x\neq x_0x=x0​ has DX(x,x0)≤r\mathbb D_{\mathcal X}(x,x_0)\le rDX​(x,x0​)≤r). This is Assumption 2.4(iii) at γ=0\gamma=0γ=0 when the boundary of {x0}\{x_0\}{x0​} is read in an ambient Euclidean space, as the paper's remark on p. 11 does; the proof uses it, and without it the statement fails at an isolated x0x_0x0​ that is also a sample point.

Trivializing encodings are excluded: the supremum ranges only over probability measures in the ball with strictly positive fiber mass, so the conditional expectation is never evaluated at a null fiber; no Bochner integral (which is 000 for a non-integrable loss) is used; ρ<0\rho<0ρ<0 cannot enter through ofReal; and the feasible set is exactly Bρ\mathbb B_\rhoBρ​ intersected with the positive-mass constraint.

Contributions welcome: the existence of optimal couplings for lower semicontinuous costs on Polish spaces (reusable far beyond this mission), the decomposition of couplings with a finitely supported marginal, and the two halves of the goal.

Selected references

  • V. A. Nguyen, F. Zhang, S. Wang, J. Blanchet, E. Delage, Y. Ye, Robustifying conditional portfolio decisions via optimal transport, arXiv:2103.16451v3, 2024; Operations Research, 2025. https://arxiv.org/abs/2103.16451
  • C. Villani, Optimal Transport: Old and New, Grundlehren 338, Springer, 2009 (Theorem 4.1, existence of optimal couplings). https://doi.org/10.1007/978-3-540-71050-9
  • J. Blanchet, K. Murthy, Quantifying distributional model risk via optimal transport, Mathematics of Operations Research 44(2), 2019. https://doi.org/10.1287/moor.2018.0936
  • R. Gao, A. Kleywegt, Distributionally robust stochastic optimization with Wasserstein distance, Mathematics of Operations Research 48(2), 2023. https://doi.org/10.1287/moor.2022.1275
7 thms2 active usersReviewed
ProbabilityStatistics·Captain: mikedeng1

Finite-Sample Guarantees for Wasserstein Distributionally Robust Optimization: Breaking the Curse of Dimensionality 1: Under T_p(τ), True Loss ≤ Empirical Loss + R(√(τt/n); −f) w.p. ≥ 1 − e^(−t)Research Paper

Motivation

Wasserstein distributionally robust optimization (Wasserstein DRO) replaces the expected loss under an empirical distribution by the worst-case expected loss over all distributions within a Wasserstein distance ρ\rhoρ of it. It is used in operations research, statistics and machine learning to guard decisions and predictors against the gap between the sample and the population. The statistical question it raises is how large ρ\rhoρ must be for the robust loss to bound the true loss with high probability. Classical answers go through the concentration of the empirical measure in Wasserstein distance, which forces ρ≍n−1/d\rho\asymp n^{-1/d}ρ≍n−1/d in dimension ddd: the curse of dimensionality.

Gao (arXiv:2009.04382; Operations Research, 2023) shows that a radius of order n−1/2n^{-1/2}n−1/2 suffices, independently of the dimension. The first ingredient, and the subject of this mission, is a new concentration inequality for the empirical mean of a single loss function, whose rate is governed by the Wasserstein regularizer itself.

Setting

Let Z\mathcal ZZ be a separable Banach space with norm ∥⋅∥\|\cdot\|∥⋅∥ and let p∈[1,2]p\in[1,2]p∈[1,2]. Pp(Z)\mathcal P_p(\mathcal Z)Pp​(Z) is the set of Borel probability measures with E[∥z∥p]<∞\mathbb E[\|z\|^p]<\inftyE[∥z∥p]<∞, and the Wasserstein distance of order ppp is

Wp(P,Q)p=inf⁡π E(z~,z)∼π[∥z~−z∥p],\mathcal W_p(\mathbb P,\mathbb Q)^p=\inf_\pi\ \mathbb E_{(\tilde z,z)\sim\pi}\big[\|\tilde z-z\|^p\big],Wp​(P,Q)p=πinf​ E(z~,z)∼π​[∥z~−z∥p],

the infimum over couplings π\piπ of P\mathbb PP and Q\mathbb QQ. For a loss f:Z→Rf:\mathcal Z\to\mathbb Rf:Z→R, a nominal distribution Q\mathbb QQ and a radius ρ≥0\rho\ge0ρ≥0, the Wasserstein regularizer is the excess of the robust loss over the nominal loss,

RQ,p(ρ;f)=sup⁡P∈Pp(Z){EP[f]:Wp(P,Q)≤ρ}−EQ[f].\mathcal R_{\mathbb Q,p}(\rho;f)=\sup_{\mathbb P\in\mathcal P_p(\mathcal Z)}\big\{\mathbb E_{\mathbb P}[f]:\mathcal W_p(\mathbb P,\mathbb Q)\le\rho\big\}-\mathbb E_{\mathbb Q}[f].RQ,p​(ρ;f)=P∈Pp​(Z)sup​{EP​[f]:Wp​(P,Q)≤ρ}−EQ​[f].

The data are nnn i.i.d. samples z1,…,znz_1,\dots,z_nz1​,…,zn​ from an unknown Ptrue\mathbb P_{\rm true}Ptrue​; P⊗\mathbb P_\otimesP⊗​ is their joint law and EPn[f]=1n∑if(zi)\mathbb E_{\mathbb P_n}[f]=\frac1n\sum_i f(z_i)EPn​​[f]=n1​∑i​f(zi​) is the empirical loss. A distribution P\mathbb PP satisfies the transportation-information inequality Tp(τ)T_p(\tau)Tp​(τ) if

Wp(Q,P)≤τ H(Q∥P)∀ Q∈Pp(Z),\mathcal W_p(\mathbb Q,\mathbb P)\le\sqrt{\tau\,H(\mathbb Q\|\mathbb P)}\qquad\forall\,\mathbb Q\in\mathcal P_p(\mathcal Z),Wp​(Q,P)≤τH(Q∥P)​∀Q∈Pp​(Z),

with HHH the relative entropy. T1T_1T1​ holds for every distribution with a Gaussian moment E[ea∥z∥2]<∞\mathbb E[e^{a\|z\|^2}]<\inftyE[ea∥z∥2]<∞, and T2T_2T2​ (Talagrand's inequality) is implied by a log-Sobolev inequality.

The rate function is built from

Φg(t)=Ez∼Ptrue[sup⁡z~∈Z{t(g(z~)−g(z))−∥z~−z∥p}],Ip(ε;g)p=sup⁡t>0{εt−Φg(t)}.\Phi_g(t)=\mathbb E_{z\sim\mathbb P_{\rm true}}\Big[\sup_{\tilde z\in\mathcal Z}\big\{t(g(\tilde z)-g(z))-\|\tilde z-z\|^p\big\}\Big],\qquad \mathcal I_p(\varepsilon;g)^p=\sup_{t>0}\{\varepsilon t-\Phi_g(t)\}.Φg​(t)=Ez∼Ptrue​​[z~∈Zsup​{t(g(z~)−g(z))−∥z~−z∥p}],Ip​(ε;g)p=t>0sup​{εt−Φg​(t)}.

Formalization targets

Goal: Theorem 1 (variation-based concentration, p. 7)

If f≤M+L∥z∥pf\le M+L\|z\|^pf≤M+L∥z∥p with M,L>0M,L>0M,L>0 and Ptrue\mathbb P_{\rm true}Ptrue​ satisfies Tp(τ)T_p(\tau)Tp​(τ), then for every ε>0\varepsilon>0ε>0

P⊗{EPn[f]−EPtrue[f]<−ε}≤exp⁡(−n Ip(ε;−f)2/τ),\mathbb P_\otimes\big\{\mathbb E_{\mathbb P_n}[f]-\mathbb E_{\mathbb P_{\rm true}}[f]<-\varepsilon\big\}\le\exp\big(-n\,\mathcal I_p(\varepsilon;-f)^2/\tau\big),P⊗​{EPn​​[f]−EPtrue​​[f]<−ε}≤exp(−nIp​(ε;−f)2/τ),

and for every t>0t>0t>0, with probability at least 1−e−t1-e^{-t}1−e−t,

EPtrue[f]≤EPn[f]+RPtrue,p(τtn;−f).\mathbb E_{\mathbb P_{\rm true}}[f]\le\mathbb E_{\mathbb P_n}[f]+\mathcal R_{\mathbb P_{\rm true},p}\Big(\sqrt{\tfrac{\tau t}{n}};-f\Big).EPtrue​​[f]≤EPn​​[f]+RPtrue​,p​(nτt​​;−f).

Milestones

  1. Lemma 4 (p. 21): if P\mathbb PP satisfies Tp(τ)T_p(\tau)Tp​(τ), the product P⊗n\mathbb P^{\otimes n}P⊗n satisfies Tp(τn2/p−1)T_p(\tau n^{2/p-1})Tp​(τn2/p−1) for the ℓp\ell_pℓp​ product distance dp(z,z~)p=∑i∥zi−z~i∥p\mathsf d_p(z,\tilde z)^p=\sum_i\|z_i-\tilde z_i\|^pdp​(z,z~)p=∑i​∥zi​−z~i​∥p.
  2. Identity (5) (p. 21): the relative entropy of an exponential tilt, H(ν(g)∥ν)=Eν(g)[g]−ln⁡Eν[eg]H(\nu^{(g)}\|\nu)=\mathbb E_{\nu^{(g)}}[g]-\ln\mathbb E_\nu[e^g]H(ν(g)∥ν)=Eν(g)​[g]−lnEν​[eg]. Already proved on the platform and referenced.
  3. Proposition 1 (p. 6): Ip(⋅;f)\mathcal I_p(\cdot;f)Ip​(⋅;f) inverts the regularizer, Ip(RPtrue,p(ρ;f);f)=ρ\mathcal I_p(\mathcal R_{\mathbb P_{\rm true},p}(\rho;f);f)=\rhoIp​(RPtrue​,p​(ρ;f);f)=ρ when the dual minimizer λo\lambda_oλo​ of the strong-duality problem (1) exceeds the growth rate λ‾\underline\lambdaλ​ of fff, and ≥ρ\ge\rho≥ρ when they coincide.
  4. Lemma 5 (p. 21): the same two bounds for a general F:Zn→RF:\mathcal Z^n\to\mathbb RF:Zn→R with E⊗[F]=0\mathbb E_\otimes[F]=0E⊗​[F]=0 and ppp-growth, with rate J(ε;F)\mathcal J(\varepsilon;F)J(ε;F) and bound R(τt/n;F)\mathcal R(\sqrt{\tau t/n};F)R(τt/n​;F).
  5. Corollary 1 (p. 7), two items: for p=1p=1p=1 under a uniform Lipschitz bound, EPtrue[f]≤EPn[f]+τt/n ∥f∥Lip\mathbb E_{\mathbb P_{\rm true}}[f]\le\mathbb E_{\mathbb P_n}[f]+\sqrt{\tau t/n}\,\|f\|_{\rm Lip}EPtrue​​[f]≤EPn​​[f]+τt/n​∥f∥Lip​; for p=2p=2p=2 under a Lipschitz gradient, the bound τt/n ∥∥∇f∥∗∥Ptrue,2+ℏτt/n\sqrt{\tau t/n}\,\|\|\nabla f\|_*\|_{\mathbb P_{\rm true},2}+\hbar\tau t/nτt/n​∥∥∇f∥∗​∥Ptrue​,2​+ℏτt/n.

Significance

Theorem 1 says that the large-deviation rate of the empirical loss is the inverse of the Wasserstein regularizer, and that the regularizer at radius τt/n\sqrt{\tau t/n}τt/n​ is a valid high-probability correction of the empirical loss. Neither involves the dimension of Z\mathcal ZZ or the complexity of a covering of it. The paper builds its covering-number and local-Rademacher guarantees for Wasserstein DRO (Sections 4.1–4.2, the subject of two companion missions) on this single-function result, and Corollary 1 recovers, for p=1p=1p=1, the Lipschitz-norm bound known from transportation inequalities while sharpening it for p=2p=2p=2.

The results are proved in the paper; none is formalized. A complete development would give a machine-checked tensorization of transportation-information inequalities on Banach spaces and a Marton–Herbst-type concentration argument, both of which are used well beyond DRO.

Difficulty

The proof combines three ingredients that Mathlib does not yet connect. Tensorization (Lemma 4) needs disintegration of a measure on Zn\mathcal Z^nZn and the chain rule for relative entropy, together with a gluing of couplings and Hölder's inequality for the dimension constant. Lemma 5 combines TpT_pTp​ with Kantorovich duality for the cost 1ndpp\frac1n\mathsf d_p^pn1​dpp​ and the entropy of an exponential tilt, then optimizes a Young-inequality split over two parameters for p<2p<2p<2, and extends from bounded FFF to ppp-growth by monotone truncation. Proposition 1 rests on the strong duality (1) of Gao and Kleywegt, an external result, and on the first-order optimality condition of a convex perspective function. A naive approach that bounds the deviation by Wp(Pn,Ptrue)\mathcal W_p(\mathbb P_n,\mathbb P_{\rm true})Wp​(Pn​,Ptrue​) fails: that distance decays like n−1/dn^{-1/d}n−1/d, which is exactly the curse the theorem avoids.

Formalization scope

The source is arXiv:2009.04382; its printed page numbers equal the PDF's. The Lean development lives in the namespace WassFSG.Conc and uses these conventions:

  • Z\mathcal ZZ is a real Banach space with its Borel σ\sigmaσ-algebra and is second countable (separable), as the cited duality results require; Wpp\mathcal W_p^pWpp​ is the published optimal transport cost with cost ∥u−w∥p\|u-w\|^p∥u−w∥p, and HHH is Mathlib's klDiv.
  • Expectations of a loss inside the robust supremum are extended integrals ∫f+−∫f−\int f^+-\int f^-∫f+−∫f− in [−∞,∞][-\infty,\infty][−∞,∞]; the regularizer is valued in [−∞,∞][-\infty,\infty][−∞,∞].
  • Ipp\mathcal I_p^pIpp​ and Jp\mathcal J^pJp are read as max⁡(0,sup⁡t>0{⋯ })∈[0,∞]\max(0,\sup_{t>0}\{\cdots\})\in[0,\infty]max(0,supt>0​{⋯})∈[0,∞], since the paper's declared codomain R+∪{+∞}\mathbb R_+\cup\{+\infty\}R+​∪{+∞} fails without it; an infinite rate gives the bound 000, never 111.
  • Lemma 5's printed "min" is an infimum, and Proposition 1's printed limit λ‾\underline\lambdaλ​ is a lim sup⁡\limsuplimsup.
  • The product space carries the ℓp\ell_pℓp​-sum cost, not the sup metric.
  • "With probability at least 1−δ1-\delta1−δ" bounds the outer measure of the bad set by δ\deltaδ; the sample size satisfies n≥1n\ge1n≥1.
  • Added hypotheses: measurability and Ptrue\mathbb P_{\rm true}Ptrue​-integrability of fff in Theorem 1 and Proposition 1, measurability of FFF in Lemma 5, and a nontrivial Z\mathcal ZZ and Ptrue∈Pp(Z)\mathbb P_{\rm true}\in\mathcal P_p(\mathcal Z)Ptrue​∈Pp​(Z) (presupposed by the dual problem (1)) in Proposition 1.
  • Theorem 1's growth hypothesis is kept as printed, an upper bound on fff. When −f-f−f has no ppp-growth bound, both conclusions hold trivially (the rate is 000 and the regularizer is +∞+\infty+∞).

A formalization that reads an infinite Ip\mathcal I_pIp​ through a real coercion would turn the tail bound into the trivial bound 111; the conventions above rule this out. Likewise a regularizer whose supremum ranged only over measures supported on the sample, or a TpT_pTp​ condition over a restricted class of Q\mathbb QQ, would be a different statement.

Contributions welcome: Lemma 4 and Corollary 1 are independent entry points; a proof of the duality (1) under the paper's growth condition would be reusable by every Wasserstein DRO mission.

Selected references

  • R. Gao, Finite-Sample Guarantees for Wasserstein Distributionally Robust Optimization: Breaking the Curse of Dimensionality, Operations Research, 2023; preprint arXiv:2009.04382.
  • R. Gao and A. Kleywegt, Distributionally Robust Stochastic Optimization with Wasserstein Distance, Mathematics of Operations Research, 2023; arXiv:1604.02199.
  • C. Villani, Optimal Transport: Old and New, Springer, 2009; doi:10.1007/978-3-540-71050-9.
  • N. Gozlan and C. Léonard, Transport Inequalities. A Survey, Markov Processes and Related Fields, 2010; arXiv:1003.3852.
  • F. Bolley and C. Villani, Weighted Csiszár–Kullback–Pinsker inequalities and applications to transportation inequalities, Annales de la Faculté des Sciences de Toulouse, 2005; doi:10.5802/afst.1095.
10 thms2 active usersReviewed
Convex OptimizationOperations ResearchOptimization·Captain: mikedeng1

Conic Programming Reformulations of Two-Stage Distributionally Robust Linear Programs over Wasserstein Balls 1: Copositive Programs (28) Are Exact under Complete Recourse and Converge to (1) as δ ↓ 0Research Paper

Motivation

Two-stage decision problems split decisions into a here-and-now decision xxx, taken before an uncertain parameter ξ\xiξ is observed, and a wait-and-see (recourse) decision yyy, taken after. Stochastic programming minimizes the expected total cost under a known distribution of ξ\xiξ; robust optimization minimizes the worst-case cost over a support set. Distributionally robust optimization sits between the two: it minimizes the worst-case expected cost over an ambiguity set of distributions consistent with the available data. When the data are III samples ξ^1,…,ξ^I\hat\xi_1,\dots,\hat\xi_Iξ^​1​,…,ξ^​I​, a natural ambiguity set is the ball of radius ϵ\epsilonϵ around the empirical distribution in the Wasserstein distance, which contains the two-stage stochastic program with a discrete distribution (ϵ=0\epsilon = 0ϵ=0) and, for a bounded support, the two-stage robust program (large ϵ\epsilonϵ) as special cases.

Single-stage Wasserstein problems with piecewise-linear losses admit finite convex reformulations (Mohajerin Esfahani and Kuhn; Gao and Kleywegt). Two-stage problems are generically NP-hard, and the existing approaches were exponential-size reformulations or decision-rule restrictions. Hanasusanto and Kuhn (arXiv:1609.07505v3) show that two-stage distributionally robust linear programs over a 2-Wasserstein ball are equivalent to, or approximated arbitrarily well by, copositive programs of polynomial size: all the difficulty is moved into the cone. This mission formalizes that result, Theorem 5 of the paper, and the chain of lemmas behind it (§3, pp. 7–19).

Setting

The first-stage decision xxx ranges over a set X⊆RN1\mathcal X\subseteq\mathbb R^{N_1}X⊆RN1​ with cost c⊤xc^\top xc⊤x. The recourse function is the optimal value of a linear program,

Z(x,ξ)=inf⁡{(Qξ+q)⊤y:y∈RN2, T(x)ξ+h(x)≤Wy},Z(x,\xi) = \inf\{(Q\xi+q)^\top y : y\in\mathbb R^{N_2},\ T(x)\xi + h(x) \le Wy\},Z(x,ξ)=inf{(Qξ+q)⊤y:y∈RN2​, T(x)ξ+h(x)≤Wy},

where T(x)∈RM×KT(x)\in\mathbb R^{M\times K}T(x)∈RM×K and h(x)∈RMh(x)\in\mathbb R^Mh(x)∈RM are affine in xxx and W∈RM×N2W\in\mathbb R^{M\times N_2}W∈RM×N2​; its value lies in [−∞,+∞][-\infty,+\infty][−∞,+∞]. The uncertain parameter takes values in the polyhedron Ξ={ξ∈R+K:Sξ≤t}\Xi=\{\xi\in\mathbb R^K_+ : S\xi\le t\}Ξ={ξ∈R+K​:Sξ≤t}, assumed non-empty. The problem has complete recourse if Wy+>0Wy^+>0Wy+>0 for some y+y^+y+, and sufficiently expensive recourse if for every ξ∈Ξ\xi\in\Xiξ∈Ξ there is p≥0p\ge0p≥0 with Qξ+q=W⊤pQ\xi+q = W^\top pQξ+q=W⊤p (the dual recourse problem is feasible); the latter is a standing assumption.

The worst-case expectation is

Z(x)=sup⁡{EP[Z(x,ξ~)]:P(Ξ)=1, W2(P,P^I)≤ϵ},P^I=1I∑i∈[I]δξ^i,\mathcal Z(x) = \sup\Big\{\mathbb E_{\mathbb P}[Z(x,\tilde\xi)] : \mathbb P(\Xi)=1,\ W_2(\mathbb P,\hat{\mathbb P}_I)\le\epsilon\Big\},\qquad \hat{\mathbb P}_I = \frac1I\sum_{i\in[I]}\delta_{\hat\xi_i},Z(x)=sup{EP​[Z(x,ξ~​)]:P(Ξ)=1, W2​(P,P^I​)≤ϵ},P^I​=I1​i∈[I]∑​δξ^​i​​,

with W2W_2W2​ the 2-Wasserstein distance for the Euclidean cost. Problem (1) is: minimize c⊤x+Z(x)c^\top x + \mathcal Z(x)c⊤x+Z(x) over x∈Xx\in\mathcal Xx∈X.

A symmetric matrix MMM is copositive (M⪰C0M\succeq_{\mathcal C}0M⪰C​0) if v⊤Mv≥0v^\top Mv\ge0v⊤Mv≥0 for all v≥0v\ge0v≥0, strictly copositive (M≻C0M\succ_{\mathcal C}0M≻C​0) if v⊤Mv>0v^\top Mv>0v⊤Mv>0 for all nonzero v≥0v\ge0v≥0, and completely positive (M⪰C∗0M\succeq_{\mathcal C^*}0M⪰C∗​0) if M=BB⊤M=BB^\topM=BB⊤ for an entrywise nonnegative BBB. The extended data stack the support constraints under the recourse data: Q=[Q;S]\mathcal Q=[Q;S]Q=[Q;S], q=[q;−t]\boldsymbol q=[q;-t]q=[q;−t], T(x)=[T(x);0]\mathcal T(x)=[T(x);0]T(x)=[T(x);0], h(x)=[h(x);0]\boldsymbol h(x)=[h(x);0]h(x)=[h(x);0], W=[[W,0],[0,−I]]\mathcal W=[[W,0],[0,-\mathbb I]]W=[[W,0],[0,−I]] (in the paper, q\boldsymbol qq and h\boldsymbol hh are script letters).

For δ≥0\delta\ge0δ≥0, Z‾δ(x)\overline{\mathcal Z}_\delta(x)Zδ​(x) is the value of the copositive program (24): minimize ϵ2λ+1I∑i[si+q⊤ψi−λ∥ξ^i∥22+∑jϕijqj2]\epsilon^2\lambda + \frac1I\sum_i[s_i+\boldsymbol q^\top\psi_i-\lambda\|\hat\xi_i\|_2^2+\sum_j\phi_{ij}\boldsymbol q_j^2]ϵ2λ+I1​∑i​[si​+q⊤ψi​−λ∥ξ^​i​∥22​+∑j​ϕij​qj2​] over λ≥0\lambda\ge0λ≥0, sis_isi​, ψi\psi_iψi​, ϕi\phi_iϕi​, subject to a 3×33\times33×3 block matrix built from λ\lambdaλ, ϕi\phi_iϕi​, ψi\psi_iψi​, sis_isi​, ξ^i\hat\xi_iξ^​i​ and the extended data being copositive for every iii; δ\deltaδ enters only as δI\delta\mathbb IδI in the middle diagonal block. Z‾δ(x)\underline{\mathcal Z}_\delta(x)Z​δ​(x) is the value of the completely positive program (25), with objective 1I∑i[tr(T(x)Yi)+h(x)⊤γi−δ tr(Γi)]\frac1I\sum_i[\mathrm{tr}(\mathcal T(x)Y_i)+\boldsymbol h(x)^\top\gamma_i-\delta\,\mathrm{tr}(\Gamma_i)]I1​∑i​[tr(T(x)Yi​)+h(x)⊤γi​−δtr(Γi​)]. At δ=0\delta=0δ=0 these are (10) and (14), with values Z‾(x)\overline{\mathcal Z}(x)Z(x) and Z‾(x)\underline{\mathcal Z}(x)Z​(x). Problem (28) replaces Z(x)\mathcal Z(x)Z(x) in (1) by Z‾δ(x)\overline{\mathcal Z}_\delta(x)Zδ​(x).

Formalization targets

Goal: Theorem 5 (pp. 18–19)

Under the standing assumptions,

  1. if δ=0\delta=0δ=0 and (1) has complete recourse, (28) is equivalent to (1): inf⁡(28)=inf⁡(1)\inf(28)=\inf(1)inf(28)=inf(1), with the same minimizers;
  2. inf⁡(1)≤inf⁡(28)\inf(1)\le\inf(28)inf(1)≤inf(28) at δ=0\delta=0δ=0;
  3. inf⁡(28)≤inf⁡(1)\inf(28)\le\inf(1)inf(28)≤inf(1) for every δ>0\delta>0δ>0;
  4. if X\mathcal XX is compact, inf⁡(28)→inf⁡(1)\inf(28)\to\inf(1)inf(28)→inf(1) as δ↓0\delta\downarrow0δ↓0, and every cluster point of minimizers of (28) along δn↓0\delta_n\downarrow0δn​↓0 minimizes (1).

Milestones, in the order the proof uses them

  • Theorem 1 (p. 7): Z(x)\mathcal Z(x)Z(x) equals a generalized moment problem (5) and, for ϵ>0\epsilon>0ϵ>0, the dual (6).
  • Lemma 1 (p. 8): copositivity can be tested on vectors with last entry 111.
  • Theorem 2 (p. 8): Z(x)≤Z‾(x)\mathcal Z(x)\le\overline{\mathcal Z}(x)Z(x)≤Z(x).
  • Proposition 1 (p. 10): (10) and (14) are dual; formalized as weak duality Z‾δ(x)≤Z‾δ(x)\underline{\mathcal Z}_\delta(x)\le\overline{\mathcal Z}_\delta(x)Z​δ​(x)≤Zδ​(x).
  • Lemma 2 (pp. 13–14): completely positive decompositions of feasible points of (14) give points of Ξ\XiΞ and recession directions with feasible dual recourse solutions.
  • Theorem 3 (p. 10): Z(x)=Z‾(x)\mathcal Z(x)=\underline{\mathcal Z}(x)Z(x)=Z​(x).
  • Lemma 3 (p. 15): complete recourse implies WW⊤≻C0WW^\top\succ_{\mathcal C}0WW⊤≻C​0.
  • Lemma 4 (p. 16): a copositive Schur complement criterion.
  • Theorem 4 (p. 16): under complete recourse, Z(x)=Z‾(x)=Z‾(x)\mathcal Z(x)=\underline{\mathcal Z}(x)=\overline{\mathcal Z}(x)Z(x)=Z​(x)=Z(x).
  • Proposition 2 (p. 17): for δ>0\delta>0δ>0, Z‾δ(x)=Z‾δ(x)\overline{\mathcal Z}_\delta(x)=\underline{\mathcal Z}_\delta(x)Zδ​(x)=Z​δ​(x) is finite, and Z‾δ(x)→Z(x)\overline{\mathcal Z}_\delta(x)\to\mathcal Z(x)Zδ​(x)→Z(x) as δ↓0\delta\downarrow0δ↓0.

Significance

The result. Theorem 5 turns an infinite-dimensional min–sup–min problem into a single finite conic program whose size is polynomial in K,J,M,N1,N2,IK, J, M, N_1, N_2, IK,J,M,N1​,N2​,I. Replacing the copositive cone by any of the known inner approximation hierarchies then yields a sequence of tractable conservative approximations, which is how the paper obtains its numerical method. Item 4 states that without complete recourse nothing is lost asymptotically: the perturbed programs approximate (1) from below to arbitrary accuracy. The same statements cover classical two-stage robust optimization with bounded polyhedral uncertainty (Corollary 1).

Formalizing it. The result is proved in the paper; no machine-checked proof of it is known. A complete development would give the first formal treatment of copositive and completely positive duality, of the moment/dual reformulation of Wasserstein balls around an empirical distribution for extended-real losses, and of an epi-convergence argument for parametrized optimal values. The paper omits the proof of Proposition 1 ("Details are omitted for brevity"), so a formal proof also fills a gap in the written argument.

Difficulty

Lagrangian duality between (10) and (14) gives only Z‾≤Z‾\underline{\mathcal Z}\le\overline{\mathcal Z}Z​≤Z, and Example 1 of the paper (p. 15) shows that this gap can be infinite: the obvious "dualize and invoke strong duality" argument fails without a constraint qualification, and the copositive cone has no tractable description from which one could be read off. The equality Z=Z‾\mathcal Z=\underline{\mathcal Z}Z=Z​ is not a duality statement at all: it compares a supremum over probability measures with a supremum over completely positive moment matrices, and feasible moment matrices need not come from any distribution on Ξ\XiΞ when Ξ\XiΞ is unbounded. Theorem 1 already requires the moment and duality theory of Wasserstein balls for an extended-real, possibly discontinuous loss. Item 4 of the goal is an exchange of a limit in δ\deltaδ with an infimum over xxx, which fails without compactness and without lower semicontinuity of Z‾δ\overline{\mathcal Z}_\deltaZδ​ in xxx, a property not visible from the definition of Z‾δ\overline{\mathcal Z}_\deltaZδ​ as an infimum.

Formalization scope

The Lean development uses the namespace WassTwoStage.Copositive. Uncertain parameters live in EuclideanSpace ℝ (Fin K); matrices act on coordinate vectors, and stacked blocks are indexed by sum types (Fin N₂ ⊕ Fin J, Fin M ⊕ Fin J, and Fin K ⊕ ((Fin M ⊕ Fin J) ⊕ Unit) for the 3×33\times33×3 block matrices). TTT and hhh are affine maps. Every optimal value, including Z(x,ξ)Z(x,\xi)Z(x,ξ), Z(x)\mathcal Z(x)Z(x), Z‾δ(x)\overline{\mathcal Z}_\delta(x)Zδ​(x), Z‾δ(x)\underline{\mathcal Z}_\delta(x)Z​δ​(x) and the values of (1) and (28), is an infimum or supremum in EReal, so an infeasible copositive program has value +∞+\infty+∞. Limits are taken in the order topology of [−∞,+∞][-\infty,+\infty][−∞,+∞], from the right. The expectation of the extended-real recourse value is +∞+\infty+∞ when its positive part has infinite integral. The Wasserstein ball, empirical distribution, expectation and copositivity are reused from published platform definitions.

The following hypotheses, implicit in the paper, are explicit binders: I≥1I\ge1I≥1; ξ^i∈Ξ\hat\xi_i\in\Xiξ^​i​∈Ξ for every iii; Ξ≠∅\Xi\neq\emptysetΞ=∅; sufficiently expensive recourse; ϵ≥0\epsilon\ge0ϵ≥0 (and ϵ>0\epsilon>0ϵ>0 only for the dual (6)). "For any fixed x∈Xx\in\mathcal Xx∈X" is stated for every x∈RN1x\in\mathbb R^{N_1}x∈RN1​. A minimizer for (28) is the first-stage part xxx of a solution, minimizing c⊤x+Z‾δ(x)c^\top x+\overline{\mathcal Z}_\delta(x)c⊤x+Zδ​(x); the inner infimum need not be attained. The completely positive cone allows any finite number of columns. Item 2 of the goal drops the paper's assumption "(1) fails to have complete recourse", which the bound does not use.

The statement cannot be trivialized: Z(x)\mathcal Z(x)Z(x) is defined as the supremum over the Wasserstein ball, not by (5) or (6); no Bochner integral (which returns 000 for non-integrable integrands) and no real-valued sSup/sInf occur; copositivity quantifies over the whole nonnegative orthant, not over all of Rn\mathbb R^nRn; and item 1 asserts equality of values and of minimizer sets, not an inequality.

A complete proof needs conic duality for the copositive/completely positive pair, the Wasserstein moment duality of Theorem 1, measurable selections, and lower semicontinuity and epi-convergence arguments. The cone and Schur-complement lemmas (Lemmas 1, 3, 4) and Theorem 1 are reusable beyond this mission. Proofs of individual milestones, alternative arguments, and supporting lemmas are welcome.

Selected references

  • G. A. Hanasusanto and D. Kuhn, Conic Programming Reformulations of Two-Stage Distributionally Robust Linear Programs over Wasserstein Balls, Operations Research 66(3), 2018; arXiv:1609.07505v3, 2020. https://arxiv.org/abs/1609.07505
  • P. Mohajerin Esfahani and D. Kuhn, Data-driven distributionally robust optimization using the Wasserstein metric: performance guarantees and tractable reformulations, Mathematical Programming 171, 2018. https://arxiv.org/abs/1505.05116
  • R. Gao and A. J. Kleywegt, Distributionally robust stochastic optimization with Wasserstein distance, 2016. https://arxiv.org/abs/1604.02199
  • S. Burer, On the copositive representation of binary and continuous nonconvex quadratic programs, Mathematical Programming 120(2):479–495, 2009. https://doi.org/10.1007/s10107-008-0223-z
19 thms2 active usersReviewed
Linear OptimizationOperations ResearchOptimization·Captain: mikedeng1

Conic Programming Reformulations of Two-Stage Distributionally Robust Linear Programs over Wasserstein Balls 2: With Q = 0 and Ξ = ℝ^K, the 1-Wasserstein Problem Is the Linear Program (32)Research Paper

Two-stage decisions under an ambiguous distribution

Two-stage stochastic linear programs model decisions taken in two steps: a first-stage decision xxx is fixed before an uncertain parameter ξ\xiξ is observed, and a second-stage (recourse) decision yyy adapts to ξ\xiξ afterwards. They underlie capacity planning, inventory and network design. In practice the distribution of ξ\xiξ is known only through samples ξ^1,…,ξ^I\hat\xi_1,\dots,\hat\xi_Iξ^​1​,…,ξ^​I​. Distributionally robust optimization replaces the unknown distribution by the worst case over an ambiguity set; a popular choice is a Wasserstein ball around the empirical distribution, because it contains the true distribution with high probability and yields out-of-sample guarantees (Mohajerin Esfahani and Kuhn, 2018).

Hanasusanto and Kuhn (arXiv:1609.07505, Operations Research 66(3), 2018) study when the resulting two-stage problem can be solved exactly. Section 3 of their paper gives a copositive reformulation for the 2-Wasserstein ball (the subject of a companion mission). Section 4, the subject of this mission, shows that when the uncertainty enters only the constraints of the recourse problem and the ball is a 1-Wasserstein ball with a polyhedral reference distance, the whole problem is a linear program.

Setting

Let c∈RN1c\in\mathbb R^{N_1}c∈RN1​ and X⊆RN1\mathcal X\subseteq\mathbb R^{N_1}X⊆RN1​ be the first-stage cost and feasible set, q∈RN2q\in\mathbb R^{N_2}q∈RN2​ the second-stage cost, W∈RM×N2W\in\mathbb R^{M\times N_2}W∈RM×N2​ the recourse matrix, and T(x)∈RM×KT(x)\in\mathbb R^{M\times K}T(x)∈RM×K, h(x)∈RMh(x)\in\mathbb R^Mh(x)∈RM affine functions of xxx. The recourse value at ξ∈RK\xi\in\mathbb R^Kξ∈RK is

Z(x,ξ)=inf⁡{ q⊤y:y∈RN2, T(x)ξ+h(x)≤Wy }∈[−∞,+∞].Z(x,\xi)=\inf\{\,q^\top y : y\in\mathbb R^{N_2},\ T(x)\xi+h(x)\le Wy\,\}\in[-\infty,+\infty].Z(x,ξ)=inf{q⊤y:y∈RN2​, T(x)ξ+h(x)≤Wy}∈[−∞,+∞].

The uncertainty affects only the constraints (in the paper's notation, Q=0Q=0Q=0), and there is no support constraint: Ξ=RK\Xi=\mathbb R^KΞ=RK. The problem has sufficiently expensive recourse if some p≥0p\ge 0p≥0 satisfies W⊤p=qW^\top p=qW⊤p=q.

For scaling parameters w+,w−>0w_+,w_->0w+​,w−​>0 the reference distance is d(ξ,ξ′)=∥ξ−ξ′∥d(\xi,\xi')=\|\xi-\xi'\|d(ξ,ξ′)=∥ξ−ξ′∥ with

∥ξ∥=∑k∈[K]max⁡{w+ξk, −w−ξk}.(31)\|\xi\|=\sum_{k\in[K]}\max\{w_+\xi_k,\,-w_-\xi_k\}. \qquad (31)∥ξ∥=k∈[K]∑​max{w+​ξk​,−w−​ξk​}.(31)

Moving a unit of mass in the positive direction of coordinate kkk costs w+w_+w+​, in the negative direction w−w_-w−​. The 1-Wasserstein ball Bϵ1(P^I)\mathcal B^1_\epsilon(\hat{\mathbb P}_I)Bϵ1​(P^I​) consists of the probability measures P\mathbb PP on RK\mathbb R^KRK whose optimal transport cost to P^I=1I∑iδξ^i\hat{\mathbb P}_I=\frac1I\sum_i\delta_{\hat\xi_i}P^I​=I1​∑i​δξ^​i​​ under ddd is at most ϵ\epsilonϵ. The worst-case expectation and the two-stage problem (1) are

Z(x)=sup⁡P∈Bϵ1(P^I)EP[Z(x,ξ~)],inf⁡x∈X c⊤x+Z(x).\mathcal Z(x)=\sup_{\mathbb P\in\mathcal B^1_\epsilon(\hat{\mathbb P}_I)}\mathbb E_{\mathbb P}[Z(x,\tilde\xi)],\qquad \inf_{x\in\mathcal X}\ c^\top x+\mathcal Z(x).Z(x)=P∈Bϵ1​(P^I​)sup​EP​[Z(x,ξ~​)],x∈Xinf​ c⊤x+Z(x).

The dual norm of (31) is ∥z∥∗=sup⁡{z⊤ξ:∥ξ∥≤1}\|z\|_*=\sup\{z^\top\xi:\|\xi\|\le 1\}∥z∥∗​=sup{z⊤ξ:∥ξ∥≤1}.

Formalization targets

Goal: Theorem 6

For ϵ>0\epsilon>0ϵ>0 and every x∈Xx\in\mathcal Xx∈X, Z(x)\mathcal Z(x)Z(x) equals the optimal value of the linear program

min⁡  ϵλ+1I∑i∈[I]q⊤yis.t.  λ≥0,T(x)ξ^i+h(x)≤Wyi  ∀i∈[I],q⊤ϕk≤λ, q⊤ψk≤λ, T(x)ek/w+≤Wϕk, −T(x)ek/w−≤Wψk  ∀k∈[K],(32)\begin{aligned}\min\ \ &\epsilon\lambda+\frac1I\sum_{i\in[I]}q^\top y_i\\ \text{s.t.}\ \ &\lambda\ge 0,\quad T(x)\hat\xi_i+h(x)\le Wy_i\ \ \forall i\in[I],\\ &q^\top\phi_k\le\lambda,\ q^\top\psi_k\le\lambda,\ T(x)e_k/w_+\le W\phi_k,\ -T(x)e_k/w_-\le W\psi_k\ \ \forall k\in[K],\end{aligned}\qquad(32)min  s.t.  ​ϵλ+I1​i∈[I]∑​q⊤yi​λ≥0,T(x)ξ^​i​+h(x)≤Wyi​  ∀i∈[I],q⊤ϕk​≤λ, q⊤ψk​≤λ, T(x)ek​/w+​≤Wϕk​, −T(x)ek​/w−​≤Wψk​  ∀k∈[K],​(32)

and consequently problem (1) has the optimal value of (32) minimized jointly over x∈Xx\in\mathcal Xx∈X and the other variables with c⊤xc^\top xc⊤x added to the objective.

Milestones, in the order of the paper's proof

  1. Theorem 1 in this instance (r=1r=1r=1, gauge cost, Ξ=RK\Xi=\mathbb R^KΞ=RK): Z(x)\mathcal Z(x)Z(x) equals the moment problem (5) and, for ϵ>0\epsilon>0ϵ>0, the dual
Z(x)=inf⁡λ≥0 ϵλ+1I∑isup⁡ξ∈RK[Z(x,ξ)−λ∥ξ−ξ^i∥].\mathcal Z(x)=\inf_{\lambda\ge 0}\ \epsilon\lambda+\frac1I\sum_{i}\sup_{\xi\in\mathbb R^K}\big[Z(x,\xi)-\lambda\|\xi-\hat\xi_i\|\big].Z(x)=λ≥0inf​ ϵλ+I1​i∑​ξ∈RKsup​[Z(x,ξ)−λ∥ξ−ξ^​i​∥].
  1. Display (33): Z(x)=inf⁡{ϵλ+1I∑isup⁡p≥0, W⊤p=q h(x)⊤p+(T(x)⊤p)⊤ξ^i : λ≥0, ∥T(x)⊤p∥∗≤λ ∀p≥0, W⊤p=q}\mathcal Z(x)=\inf\{\epsilon\lambda+\frac1I\sum_i\sup_{p\ge0,\,W^\top p=q}\,h(x)^\top p+(T(x)^\top p)^\top\hat\xi_i\ :\ \lambda\ge0,\ \|T(x)^\top p\|_*\le\lambda\ \forall p\ge0,\,W^\top p=q\}Z(x)=inf{ϵλ+I1​∑i​supp≥0,W⊤p=q​h(x)⊤p+(T(x)⊤p)⊤ξ^​i​ : λ≥0, ∥T(x)⊤p∥∗​≤λ ∀p≥0,W⊤p=q}.
  2. The dual norm of (31): ∥z∥∗=max⁡kmax⁡{zk/w+, −zk/w−}\|z\|_*=\max_{k}\max\{z_k/w_+,\,-z_k/w_-\}∥z∥∗​=maxk​max{zk​/w+​,−zk​/w−​}.
  3. The constraint decomposition: the semi-infinite constraint of (33) holds if and only if, for each kkk, there are ϕk,ψk\phi_k,\psi_kϕk​,ψk​ satisfying the four linear inequalities of (32).

Significance

Theorem 6 shows that the two-stage distributionally robust linear program over a 1-Wasserstein ball, which is a priori an optimization over infinitely many distributions, has a linear-programming reformulation with O(I+K)O(I+K)O(I+K) blocks of variables and constraints. It covers distributionally robust least-absolute-deviation regression (Example 2 of the paper), where the reformulation becomes the empirical loss plus a dual-norm regularizer, and it contrasts with the paper's Theorem 7, which shows that for ppp-norm reference distances with p>1p>1p>1 the same problem is NP-hard.

The result is proved in the paper; there is no machine-checked proof. A formalization adds a verified chain from the measure-theoretic worst-case expectation to a finite linear program, including the conventions the paper leaves implicit: the extended-real values (Z(x)\mathcal Z(x)Z(x) may be +∞+\infty+∞, and (32) may then be infeasible), the restriction ϵ>0\epsilon>0ϵ>0, and the first-stage cost in the objective.

Difficulty

Each step of the proof is classical, but the chain crosses several regimes. Theorem 1 is a Wasserstein strong duality result, and here it is applied to a loss Z(x,⋅)Z(x,\cdot)Z(x,⋅) that is convex, possibly +∞+\infty+∞ on part of RK\mathbb R^KRK, and not upper semicontinuous, with a cost that is not symmetric; the standard published duality theorems assume an upper semicontinuous real-valued loss or a metric. The passage to (33) interchanges a supremum over ξ\xiξ with an infimum over the dual-norm ball and must handle the case where the dual recourse polyhedron is unbounded. Finally, every equivalence must hold in the extended reals: an argument that tacitly assumes finiteness proves a statement that fails exactly when the dual polyhedron has a recession direction.

Formalization scope

Vectors are Fin n → ℝ, samples are ξhat : Fin I → (Fin K → ℝ) with I≥1I\ge1I≥1, and RK\mathbb R^KRK carries its product (Borel) σ-algebra. TTT and hhh are affine maps. The transport cost is the platform definition RWPI.SqrtLasso.transportCost (couplings with first marginal P\mathbb PP, second P^I\hat{\mathbb P}_IP^I​), the empirical distribution is WassersteinDRO.Duality.empiricalDistribution, and expectations of the extended-real recourse value use WassersteinDRO.Duality.erealExpectation (value +∞+\infty+∞ whenever the positive part has infinite integral). Every optimal value is an extended-real infimum or supremum over its feasible set; no Bochner integral and no real-valued sInf/sSup is used.

Conventions made explicit, with reasons:

  • ϵ>0\epsilon>0ϵ>0. The paper does not restrict ϵ\epsilonϵ in Theorem 6, but its proof starts from the dual (6), stated only for ϵ>0\epsilon>0ϵ>0, and the identity is false at ϵ=0\epsilon=0ϵ=0 when the dual recourse polyhedron has a recession direction rrr with T(x)⊤r≠0T(x)^\top r\ne0T(x)⊤r=0: then (32) is infeasible while Z(x)\mathcal Z(x)Z(x) is the finite sample average.
  • c⊤xc^\top xc⊤x in (32). The printed objective of (32) omits the first-stage cost. The proof establishes the pointwise identity Z(x)=\mathcal Z(x)=Z(x)= value of (32) at xxx, which is the goal's first part; the problem-level equivalence restores c⊤xc^\top xc⊤x.
  • Asymmetric gauge. For w+≠w−w_+\ne w_-w+​=w−​, (31) is not a norm, and Theorem 1 of the paper is stated for a metric. The paper applies it to (31) anyway; the milestone states that application, with the gauge cost in the orientation d(ξ,ξ^i)=∥ξ−ξ^i∥d(\xi,\hat\xi_i)=\|\xi-\hat\xi_i\|d(ξ,ξ^​i​)=∥ξ−ξ^​i​∥. The case w+=w−w_+=w_-w+​=w−​ is not imposed.
  • Finite first moment. Membership in M1(RK)\mathcal M^1(\mathbb R^K)M1(RK) is implied by finite transport cost to P^I\hat{\mathbb P}_IP^I​ and is not repeated.
  • The two "1/N1/N1/N" factors in the paper's proof are misprints for 1/I1/I1/I.

A formalization in which Z\mathcal ZZ is defined by (6), (33) or (32), in which the gauge is secretly symmetric, or in which expectations are Bochner integrals (zero for non-integrable functions) would make the goal trivial or different; the definitions here exclude each of these.

A complete development needs Wasserstein strong duality for a lower semicontinuous loss and cost (with a disintegration of couplings to pass to the moment problem (5)), LP strong duality and Farkas' lemma in the extended-real form, and a minimax interchange over a compact dual-norm ball. Wasserstein duality for general costs and extended-real LP duality are reusable well beyond this mission; contributions of either are welcome.

Selected references

  • G. A. Hanasusanto, D. Kuhn, Conic Programming Reformulations of Two-Stage Distributionally Robust Linear Programs over Wasserstein Balls, Operations Research 66(3), 2018. Pinned version: arXiv:1609.07505v3. DOI 10.1287/opre.2017.1698.
  • P. Mohajerin Esfahani, D. Kuhn, Data-driven distributionally robust optimization using the Wasserstein metric: performance guarantees and tractable reformulations, Mathematical Programming 171, 2018. doi:10.1007/s10107-017-1172-1
  • J. Blanchet, K. Murthy, Quantifying distributional model risk via optimal transport, Mathematics of Operations Research 44(2), 2019. doi:10.1287/moor.2018.0936
  • R. Gao, A. Kleywegt, Distributionally robust stochastic optimization with Wasserstein distance, Mathematics of Operations Research 48(2), 2023. doi:10.1287/moor.2022.1275
  • D. P. Bertsekas, Convex Optimization Theory, Athena Scientific, 2009 (Proposition 5.5.4, the minimax theorem used in the proof).
11 thms2 active usersReviewed
Machine LearningOperations ResearchOptimization·Captain: mikedeng1

Wasserstein Distributionally Robust Optimization and Variation Regularization II: The ∞-Wasserstein Regularizer Equals ρ Times the Mean Local Slope up to ρ²‖H‖ Plus a Boundary TermResearch Paper

Motivation

In distributionally robust optimization, a decision is judged against probability laws near a nominal law rather than against the nominal law alone. The nominal law is often the empirical distribution of observed data. For a loss function, this produces a worst-case expected loss that depends on the size and geometry of the permitted changes to the data. The infinity-Wasserstein model restricts how far any observation can be moved, apart from null events in a coupling. It is a mathematical form of the bounded perturbations used in adversarial learning. Gao, Chen and Kleywegt study when this robust loss behaves like a regularizer based on variation or local slope.

For a finite data set, the nominal law has finite support. This makes the infinity-Wasserstein case especially concrete: each atom of the empirical law has a radius-limited set of possible destinations. Yet the objective still ranges over all probability measures, and the loss need not be bounded on a metric ball. The paper's finite-support duality result and its local-slope estimate together identify the regularization term that this distributional model produces.

Setting

Let (Z,d)(Z,d)(Z,d) be a metric space and let P,QP,QP,Q be probability laws on its Borel sets. A coupling π\piπ of PPP and QQQ is a joint law on Z×ZZ\times ZZ×Z with those two marginals. The infinity-Wasserstein distance is

W∞(P,Q)=inf⁡π∈Γ(P,Q)ess sup⁡(z~,z)∼πd(z~,z).W_\infty(P,Q)=\inf_{\pi\in\Gamma(P,Q)} \operatorname*{ess\,sup}_{(\tilde z,z)\sim\pi}d(\tilde z,z).W∞​(P,Q)=π∈Γ(P,Q)inf​(z~,z)∼πesssup​d(z~,z).

Given a real loss fff and a radius ρ≥0\rho\ge0ρ≥0, the robust value is the supremum of EP[f]\mathbb E_P[f]EP​[f] over all PPP satisfying W∞(P,Q)≤ρW_\infty(P,Q)\le\rhoW∞​(P,Q)≤ρ. The regularizer RQ,∞(ρ;f)R_{Q,\infty}(\rho;f)RQ,∞​(ρ;f) is this robust value minus EQ[f]\mathbb E_Q[f]EQ​[f]. For observations z1,…,znz_1,\ldots,z_nz1​,…,zn​, the empirical law is Pn=n−1∑i=1nδziP_n=n^{-1}\sum_{i=1}^n\delta_{z_i}Pn​=n−1∑i=1n​δzi​​.

The one-sided local slope ∣∂f∣(z)|\partial f|(z)∣∂f∣(z) records the greatest limiting rate at which fff can increase under a perturbation that tends to zzz. The local growth Gf(δ,z)G_f(\delta,z)Gf​(δ,z) is the largest increase f(z~)−f(z)f(\tilde z)-f(z)f(z~)−f(z) among destinations with d(z~,z)≤δd(\tilde z,z)\le\deltad(z~,z)≤δ. A set DfD_fDf​ marks the interfaces between pieces of a piecewise loss. Its boundary contribution at zzz is (δ−d(z,Df))+(\delta-d(z,D_f))_+(δ−d(z,Df​))+​, where the distance to an empty set is infinite. These objects appear in Definition 2 and Assumption 5(I).

Formalization targets

Finite-support transport duality

For a nominal law Q=∑jqjδzjQ=\sum_j q_j\delta_{z_j}Q=∑j​qj​δzj​​, the first targets assert that an optimal coupling exists when W∞(P,Q)W_\infty(P,Q)W∞​(P,Q) is finite and that

sup⁡P:W∞(P,Q)≤ρEP[f]=∑jqjsup⁡d(z~,zj)≤ρf(z~).\sup_{P:W_\infty(P,Q)\le\rho}\mathbb E_P[f] =\sum_j q_j\sup_{d(\tilde z,z_j)\le\rho}f(\tilde z).P:W∞​(P,Q)≤ρsup​EP​[f]=j∑​qj​d(z~,zj​)≤ρsup​f(z~).

This is Lemma EC.2 in the appendix. The values are allowed to be infinite when a local loss supremum is infinite; the printed assertion of unconditional finiteness is not included.

Consistency

For an upper semicontinuous loss, the Proposition 1 case p=∞p=\inftyp=∞ asserts

lim⁡ρ↓0RPn,∞(ρ;f)=0=RPn,∞(0;f).\lim_{\rho\downarrow0}R_{P_n,\infty}(\rho;f)=0=R_{P_n,\infty}(0;f).ρ↓0lim​RPn​,∞​(ρ;f)=0=RPn​,∞​(0;f).

It is a companion statement: it says that the regularizer vanishes, while the main target says at which rate.

Local-slope regularization

The main target is Theorem 1(I), in its general-metric form from Appendix B under Assumption 5(I). If δ0>0\delta_0>0δ0​>0, M≥0M\ge0M≥0, and the local growth obeys

∣Gf(δ,z)−δ∣∂f∣(z)∣≤H(z)δ2+M(δ−d(z,Df))+(0≤δ<δ0),|G_f(\delta,z)-\delta|\partial f|(z)| \le H(z)\delta^2+M(\delta-d(z,D_f))_+ \quad(0\le\delta<\delta_0),∣Gf​(δ,z)−δ∣∂f∣(z)∣≤H(z)δ2+M(δ−d(z,Df​))+​(0≤δ<δ0​),

then, for a sufficiently small radius, every nonempty empirical sample and every loss in the class satisfy

∣RPn,∞(ρ;f)−ρ1n∑i=1n∣∂f∣(zi)∣≤ρ21n∑i=1n∣H(zi)∣+M1n∑i=1n(ρ−d(zi,Df))+.\left|R_{P_n,\infty}(\rho;f) -\rho\frac1n\sum_{i=1}^n|\partial f|(z_i)\right| \le\rho^2\frac1n\sum_{i=1}^n|H(z_i)| +M\frac1n\sum_{i=1}^n(\rho-d(z_i,D_f))_+.​RPn​,∞​(ρ;f)−ρn1​i=1∑n​∣∂f∣(zi​)​≤ρ2n1​i=1∑n​∣H(zi​)∣+Mn1​i=1∑n​(ρ−d(zi​,Df​))+​.

The finite-support duality and the identity between the empirical regularizer and the average of Gf(ρ,zi)G_f(\rho,z_i)Gf​(ρ,zi​) are the mission's intermediate targets. The printed ρn2\rho_n^2ρn2​ in Lemma EC.9 is read as ρ2\rho^2ρ2, as in Theorem 1(I).

Significance

The estimate gives a precise first-order description of infinity-Wasserstein robustness: the mean local slope is its leading regularization term. The quadratic term measures local curvature or growth, while the boundary term records the effect of sample points close to interfaces between loss pieces. Setting M=0M=0M=0 gives the smooth-loss regime, where that interface correction vanishes. The result makes it possible to compare bounded data perturbations with explicit variation penalties using the same loss class and sample.

The paper proves the result. The formalization work here is to express its objects and quantified conditions in Lean, establish finite-support duality for the extended-real robust value, and then formalize the known local estimate. No machine-checked proof of these mission targets is claimed here. The transport and duality definitions can support other finite-support distributionally robust models; the local-slope definitions can be reused for other metric-space perturbation bounds.

Difficulty

The robust value is a supremum over probability laws, whereas the target bound is a finite average of pointwise quantities. Relating the two requires control of the infinity-Wasserstein constraint at every nominal atom, including cases where an infimum over couplings must be attained. A direct substitution of a pointwise supremum into an expectation does not establish the reverse inequality, and extended-real values need care when a loss is unbounded. At the local level, a slope is only a limit near a point; the inequality needed here holds uniformly for all losses, all points, and all sufficiently small radii, with a correction near DfD_fDf​.

Formalization scope

The Lean metric space uses its Borel measurable structure and is second countable, so the distance on the product is measurable. It has no isolated points, matching §3.4. Losses in the class are measurable. Sample indices are Fin n with n>0n>0n>0, and PnP_nPn​ is the published empirical probability law. Infinity-Wasserstein distance takes values in [0,+∞][0,+\infty][0,+∞]; robust values and local growth use extended reals. The theorem explicitly requires finite local slopes and finite growth values in the range where Assumption 5(I)'s real inequality is used. The regularizer is built from the supremum over all probability laws in the Wasserstein ball, and its finite-sample result states finiteness before converting its value to a real number. This rules out replacing the regularizer by the easier average of local growth.

The paper defines DfD_fDf​ from intersections of closures of pieces and assumes it is null under a true law. The deterministic estimate uses only distances to DfD_fDf​, so this mission treats DfD_fDf​ as supplied data and does not require nullity. Likewise, H∈L1(Ptrue)H\in L^1(P_{\rm true})H∈L1(Ptrue​) is needed for the paper's statistical setting but the target evaluates HHH only at finite sample points, so no true law appears in this statement. The radius bound is placed before the sample because Assumption 5(I) supplies one common δ0\delta_0δ0​. These generalizations and the positive-radius reading of Assumption 5(I) are explicit in the item statements. Contributions toward the optimal-coupling lemma, extended-real finite-support duality, and the local estimate all advance the target.

Selected references

  • R. Gao and A. J. Kleywegt, Distributionally Robust Stochastic Optimization with Wasserstein Distance, Mathematics of Operations Research, 2023; arXiv:1604.02199. Source of the duality theory for finite ppp that Lemma EC.1 quotes.
  • R. Gao, X. Chen and A. J. Kleywegt, Wasserstein Distributionally Robust Optimization and Variation Regularization, Operations Research, 2024; arXiv:1712.06050, source preprint dated 2020-10-30, especially Theorem 1(I), Assumption 5(I), Lemmas EC.2 and EC.9.
10 thms2 active usersReviewed
Markov ChainProbability·Captain: mikedeng1

Coupling and Convergence for Hamiltonian Monte Carlo 2: Lyapunov Bounds and Local Contractivity Give W_ρ(νπⁿ, ηπⁿ) ≤ e^{−cn}W_ρ(ν, η) + βⁿλⁿ⁻¹(∫ψdν + ∫ψdη)δ(C)Research Paper

Motivation

Markov chain Monte Carlo methods approximate a target probability measure by the law after nnn steps of a Markov chain. A quantitative guarantee for such a method is a bound on the distance between the law after nnn steps and the target, or between the laws of two copies of the chain started from different initial distributions. A standard route to such bounds is contractivity in a Kantorovich (Wasserstein) distance: if one step of the chain contracts the distance between any two initial laws by a factor e−c<1e^{-c}<1e−c<1, the laws converge geometrically.

For many chains of practical interest, including Hamiltonian Monte Carlo with a numerical integrator, contractivity can only be proved on a bounded region of the state space. Outside it, the integrator may be unstable, or the coupling used to prove contraction may fail. Bou-Rabee, Eberle and Zimmer (arXiv:1805.00452, Ann. Appl. Probab. 30(3), 2020) isolate a general principle that turns such local contractivity into a global distance bound. It requires two Lyapunov functions: one controls how quickly the chain can leave the region of contraction, and one controls the distance once it has left. The principle is their Theorem 2.11. It is stated for an arbitrary Markov kernel on a complete separable metric space, and they apply it to adjusted numerical HMC (their Theorem 2.12).

Setting

Let (S,ρ)(S,\rho)(S,ρ) be a complete separable metric space with Borel σ\sigmaσ-algebra B(S)\mathcal B(S)B(S), and let π(x,dy)\pi(x,dy)π(x,dy) be a Markov transition kernel on SSS. For a probability measure ν\nuν, the law after nnn steps is νπn\nu\pi^nνπn, where π0(x,⋅)=δx\pi^0(x,\cdot)=\delta_xπ0(x,⋅)=δx​ and πn+1=ππn\pi^{n+1}=\pi\pi^nπn+1=ππn. For a non-negative function fff, (πf)(x)=∫f(y) π(x,dy)(\pi f)(x)=\int f(y)\,\pi(x,dy)(πf)(x)=∫f(y)π(x,dy).

A coupling of probability measures ν,η\nu,\etaν,η on SSS is a probability measure on S×SS\times SS×S with marginals ν\nuν and η\etaη; C(ν,η)C(\nu,\eta)C(ν,η) is the set of couplings. The Kantorovich distance is

Wρ(ν,η)=inf⁡γ∈C(ν,η)∫ρ(x,y) γ(dx dy)∈[0,∞].\mathcal W_\rho(\nu,\eta)=\inf_{\gamma\in C(\nu,\eta)}\int\rho(x,y)\,\gamma(dx\,dy)\in[0,\infty].Wρ​(ν,η)=γ∈C(ν,η)inf​∫ρ(x,y)γ(dxdy)∈[0,∞].

Assumption 2.3 asks for a constant C∈(0,∞)C\in(0,\infty)C∈(0,∞) and measurable functions ψ,φ:S→(0,∞)\psi,\varphi:S\to(0,\infty)ψ,φ:S→(0,∞) such that:

  • (C1) main Lyapunov condition: for some λ∈[1,∞)\lambda\in[1,\infty)λ∈[1,∞), (πψ)(x)≤λψ(x)(\pi\psi)(x)\le\lambda\psi(x)(πψ)(x)≤λψ(x) whenever ψ(x)≤C\psi(x)\le Cψ(x)≤C;
  • (C2) global Lyapunov condition: for some β∈[1,∞)\beta\in[1,\infty)β∈[1,∞), (πφ)(x)≤βφ(x)(\pi\varphi)(x)\le\beta\varphi(x)(πφ)(x)≤βφ(x) and ρ(x,y)≤φ(x)+φ(y)\rho(x,y)\le\varphi(x)+\varphi(y)ρ(x,y)≤φ(x)+φ(y) for all x,yx,yx,y;
  • (C3) local contractivity: there are a probability space (Ω,A,P)(\Omega,\mathcal A,P)(Ω,A,P), a constant c∈(0,∞)c\in(0,\infty)c∈(0,∞) and a measurable map (X′,Y′):S×S×Ω→S×S(X',Y'):S\times S\times\Omega\to S\times S(X′,Y′):S×S×Ω→S×S. For every x,yx,yx,y, the pair (X′(x,y,⋅),Y′(x,y,⋅))(X'(x,y,\cdot),Y'(x,y,\cdot))(X′(x,y,⋅),Y′(x,y,⋅)) is a coupling of π(x,⋅)\pi(x,\cdot)π(x,⋅) and π(y,⋅)\pi(y,\cdot)π(y,⋅), and E[ρ(X′(x,y,⋅),Y′(x,y,⋅))]≤e−cρ(x,y)E[\rho(X'(x,y,\cdot),Y'(x,y,\cdot))]\le e^{-c}\rho(x,y)E[ρ(X′(x,y,⋅),Y′(x,y,⋅))]≤e−cρ(x,y) whenever ψ(x)≤C\psi(x)\le Cψ(x)≤C and ψ(y)≤C\psi(y)\le Cψ(y)≤C.

Finally,

δ(C)=sup⁡{φ(x)+φ(y)ψ(x)+ψ(y):x,y∈S, ψ(x)>C or ψ(y)>C}∈[0,∞].\delta(C)=\sup\Big\{\frac{\varphi(x)+\varphi(y)}{\psi(x)+\psi(y)}:x,y\in S,\ \psi(x)>C\text{ or }\psi(y)>C\Big\}\in[0,\infty].δ(C)=sup{ψ(x)+ψ(y)φ(x)+φ(y)​:x,y∈S, ψ(x)>C or ψ(y)>C}∈[0,∞].

Formalization targets

Goal: Theorem 2.11

Under Assumption 2.3, for every n∈Nn\in\mathbb Nn∈N and all probability measures ν,η\nu,\etaν,η on (S,B(S))(S,\mathcal B(S))(S,B(S)),

Wρ(νπn,ηπn)≤e−cnWρ(ν,η)+βnλn−1(∫ψ dν+∫ψ dη)δ(C).(42)\mathcal W_\rho(\nu\pi^n,\eta\pi^n)\le e^{-cn}\mathcal W_\rho(\nu,\eta)+\beta^n\lambda^{n-1}\Big(\int\psi\,d\nu+\int\psi\,d\eta\Big)\delta(C).\tag{42}Wρ​(νπn,ηπn)≤e−cnWρ​(ν,η)+βnλn−1(∫ψdν+∫ψdη)δ(C).(42)

The constants are those of the paper and are not weakened. Each quantity may be infinite, and the bound is read in [0,∞][0,\infty][0,∞].

Milestones

  1. Lemma 6.1. If a measurable coupling contracts ρ\rhoρ by e−ce^{-c}e−c in one step from every pair in A×AA\times AA×A, then for every initial coupling γ\gammaγ there is a coupled Markov chain (Xn,Yn)(X_n,Y_n)(Xn​,Yn​) with (X0,Y0)∼γ(X_0,Y_0)\sim\gamma(X0​,Y0​)∼γ and both marginals Markov with kernel π\piπ. Along this chain, Mn=ec(n∧T)ρ(Xn∧T,Yn∧T)M_n=e^{c(n\wedge T)}\rho(X_{n\wedge T},Y_{n\wedge T})Mn​=ec(n∧T)ρ(Xn∧T​,Yn∧T​) is a non-negative supermartingale, where TTT is the exit time from A×AA\times AA×A.
  2. (134). ecnE[ρ(Xn,Yn);n≤T]≤E[Mn]≤∫ρ dγe^{cn}E[\rho(X_n,Y_n);n\le T]\le E[M_n]\le\int\rho\,d\gammaecnE[ρ(Xn​,Yn​);n≤T]≤E[Mn​]≤∫ρdγ.
  3. (135). E[ρ(Xn,Yn);n>T]≤βnE[ψ(XT)+ψ(YT);n>T] δ(C)E[\rho(X_n,Y_n);n>T]\le\beta^nE[\psi(X_T)+\psi(Y_T);n>T]\,\delta(C)E[ρ(Xn​,Yn​);n>T]≤βnE[ψ(XT​)+ψ(YT​);n>T]δ(C), through the intermediate bounds by φ\varphiφ.
  4. (136). E[ψ(XT)+ψ(YT);n>T]≤λn−1(∫ψ dν+∫ψ dη)E[\psi(X_T)+\psi(Y_T);n>T]\le\lambda^{n-1}\big(\int\psi\,d\nu+\int\psi\,d\eta\big)E[ψ(XT​)+ψ(YT​);n>T]≤λn−1(∫ψdν+∫ψdη).

Significance

The result. Theorem 2.11 separates two tasks that are usually entangled in convergence proofs for Markov chains on unbounded spaces. One is a contraction estimate that only has to hold on a sublevel set {ψ≤C}\{\psi\le C\}{ψ≤C}. The other is a pair of drift conditions that control excursions out of that set. The second term of (42) is made small by choosing CCC large, and the first by choosing nnn large. In the paper this gives W1\mathcal W^1W1 bounds to the invariant measure for adjusted numerical HMC (Theorem 2.12), whose contraction (Theorems 2.4 and 2.7) is only established on a ball. The theorem uses nothing about HMC and applies to any chain with a locally contractive coupling and the two Lyapunov conditions. Examples are other discretized diffusions and Metropolis-adjusted samplers.

Formalizing it. The result is proved in the paper. As far as is known, it has no machine-checked proof. A formalization requires constructing a Markovian coupling on a general measurable space and working with a generalized, [0,∞][0,\infty][0,∞]-valued supermartingale stopped at an exit time. It also needs the Markov property with respect to the joint filtration of a coupled pair. Both pieces are reusable in coupling arguments for Markov chains in general.

Difficulty

Contraction on {ψ≤C}2\{\psi\le C\}^2{ψ≤C}2 gives no control once either copy leaves that set, and the exit time TTT is random and may be infinite. The bound therefore has to be split at TTT. On {n≤T}\{n\le T\}{n≤T} the contraction accumulates, which requires optional stopping for a supermartingale that need not be integrable, because ∫ρ dγ\int\rho\,d\gamma∫ρdγ may be +∞+\infty+∞. On {n>T}\{n>T\}{n>T} the distance at time nnn has to be bounded by quantities at the random time TTT. This requires the Markov property of each copy with respect to the filtration of the pair: the event {T=k}\{T=k\}{T=k} depends on both copies. A Markov property of each copy in its own filtration does not suffice. Finally, ψ\psiψ at the exit time has to be controlled by its initial integral, which is a second stopped supermartingale built from (C1).

Formalization scope

  • (S,ρ)(S,\rho)(S,ρ) is a Lean MetricSpace with its Borel σ\sigmaσ-algebra, complete and separable; ρ\rhoρ is dist. π\piπ is a Markov kernel (Kernel S S with IsMarkovKernel), and νπn\nu\pi^nνπn is the bind of ν\nuν with the nnn-fold composition of π\piπ.
  • Every expectation of a non-negative quantity, every ∫ψ dν\int\psi\,d\nu∫ψdν, δ(C)\delta(C)δ(C) and Wρ\mathcal W_\rhoWρ​ is valued in [0,∞][0,\infty][0,∞] (lower Lebesgue integrals, ℝ≥0∞). No Bochner integral appears, so a non-integrable quantity can never be replaced by a junk 000. In particular, ∫ψ dν=∞\int\psi\,d\nu=\infty∫ψdν=∞ is allowed, as on the page.
  • Couplings are the published definition MongeKantorovichYao.transferencePlans.
  • (C3)'s probability space and coupling map are parameters of the theorem, which then holds for every such realization.
  • λn−1\lambda^{n-1}λn−1 is an integer power, so n=0n=0n=0 is included (and (42) is then trivially true).
  • Lemma 6.1's chain is the coordinate process on the path space (S×S)N(S\times S)^{\mathbb N}(S×S)N, which is determined up to its law. The supermartingale property is the generalized one, E[Mn+1;F]≤E[Mn;F]E[M_{n+1};F]\le E[M_n;F]E[Mn+1​;F]≤E[Mn​;F] for F∈FnF\in\mathcal F_nF∈Fn​. Mathlib's Supermartingale requires integrability, which the page does not assume. The exit time is N∪{∞}\mathbb N\cup\{\infty\}N∪{∞}-valued, and n∧T=nn\wedge T=nn∧T=n when the chain never leaves.
  • The marginal Markov property is stated with respect to the filtration of the pair. This is what the proof of (135) and (136) uses, and it implies the marginal Markov property in each copy's own filtration.
  • The proof on p. 43 applies Lemma 6.1 "with A={ψ>C}A=\{\psi>C\}A={ψ>C}". The set on which (C3) contracts and whose exit time is TTT is {ψ≤C}\{\psi\le C\}{ψ≤C}, and that set is used. The text before (135) says "{n<T}\{n<T\}{n<T}" where its displays use {n>T}\{n>T\}{n>T}, and the displays are formalized.
  • A formalization in which Wρ\mathcal W_\rhoWρ​ or δ(C)\delta(C)δ(C) is a real number obtained by truncating +∞+\infty+∞, or in which the measures need not be probability measures (so that the coupling set is empty and Wρ=∞\mathcal W_\rho=\inftyWρ​=∞), would make (42) vacuous and is excluded.

A complete development needs Ionescu-Tulcea's construction of a Markov chain on a general measurable space (ProbabilityTheory.Kernel.traj in Mathlib), the measurability of the coupling kernel (x,y)↦P∘(X′,Y′)(x,y,⋅)−1(x,y)\mapsto P\circ(X',Y')(x,y,\cdot)^{-1}(x,y)↦P∘(X′,Y′)(x,y,⋅)−1, and optional stopping for [0,∞][0,\infty][0,∞]-valued supermartingales stopped at an exit time. Contributions are welcome on the milestones individually. The optional-stopping and joint-Markov-property lemmas are reusable beyond this mission.

Selected references

  • N. Bou-Rabee, A. Eberle, R. Zimmer, Coupling and convergence for Hamiltonian Monte Carlo, Ann. Appl. Probab. 30(3), 2020. arXiv:1805.00452 (v2 is the version cited here).
  • A. Joulin, Y. Ollivier, Curvature, concentration and error estimates for Markov chain Monte Carlo, Ann. Probab. 38(6), 2010. doi:10.1214/10-AOP541
  • C. Villani, Optimal Transport: Old and New, Springer, 2009. doi:10.1007/978-3-540-71050-9
7 thms2 active usersReviewed
Markov ChainNumerical AnalysisProbability·Captain: mikedeng1

Coupling and Convergence for Hamiltonian Monte Carlo 1: Exact HMC Contracts the Concave Kantorovich Distance W_ρ at Rate c = (1/10)·min(1, ½KT²(1+ℛ/T)e^{−ℛ/(2T)})·e^{−2ℛ/T}Research Paper

Why convergence bounds for Hamiltonian Monte Carlo matter

Hamiltonian Monte Carlo (HMC) is one of the most widely used Markov chain Monte Carlo methods for sampling from a probability density μ(dx)∝e−U(x) dx\mu(dx)\propto e^{-U(x)}\,dxμ(dx)∝e−U(x)dx on Rd\mathbb R^dRd. It is the default sampler of probabilistic programming systems such as Stan, and it is used throughout Bayesian statistics, molecular dynamics and machine learning. In practice the chain is run for a finite number of steps, and a user needs to know how many steps make its law close to μ\muμ. That requires a quantitative, dimension-explicit convergence bound.

Before the paper of Bou-Rabee, Eberle and Zimmer, such bounds were known essentially only when UUU is strongly convex everywhere: then two copies of the chain driven by the same random velocity contract deterministically (Mangoubi and Smith, arXiv:1708.07114). Bou-Rabee, Eberle and Zimmer (arXiv:1805.00452, Ann. Appl. Probab. 30(3), 2020) remove global convexity. They require UUU to be strongly convex only outside a ball, and they introduce a coupling of two HMC transitions under which a suitably concave distance contracts on average for every pair of starting points. This mission formalizes that contraction theorem for exact HMC, together with its consequence, exponential convergence in the L1L^1L1 Wasserstein distance.

Setting

Let U:Rd→RU:\mathbb R^d\to\mathbb RU:Rd→R be four times continuously differentiable with ∫e−U<∞\int e^{-U}<\infty∫e−U<∞. The Hamiltonian is H(x,v)=U(x)+12∣v∣2H(x,v)=U(x)+\tfrac12|v|^2H(x,v)=U(x)+21​∣v∣2, and the exact Hamiltonian flow (qt,pt)(q_t,p_t)(qt​,pt​) solves

ddtqt=pt,ddtpt=−∇U(qt),(q0(x,v),p0(x,v))=(x,v).\tfrac{d}{dt}q_t=p_t,\qquad \tfrac{d}{dt}p_t=-\nabla U(q_t),\qquad (q_0(x,v),p_0(x,v))=(x,v).dtd​qt​=pt​,dtd​pt​=−∇U(qt​),(q0​(x,v),p0​(x,v))=(x,v).

Fix a duration T>0T>0T>0. One step of exact HMC from xxx draws a fresh velocity ξ∼N(0,Id)\xi\sim N(0,I_d)ξ∼N(0,Id​) and moves to X′(x)=qT(x,ξ)X'(x)=q_T(x,\xi)X′(x)=qT​(x,ξ); its transition kernel is π(x,⋅)=law(qT(x,ξ))\pi(x,\cdot)=\mathrm{law}(q_T(x,\xi))π(x,⋅)=law(qT​(x,ξ)), and μ\muμ is invariant for π\piπ.

Assumption 2.1 asks that (A1) UUU has a local minimum at 000 with U(0)=0U(0)=0U(0)=0; (A2) the second, third and fourth derivatives of UUU are bounded, with L=sup⁡∥∇2U∥L=\sup\|\nabla^2U\|L=sup∥∇2U∥, M=sup⁡∥∇3U∥M=\sup\|\nabla^3U\|M=sup∥∇3U∥ and N=sup⁡∥∇4U∥N=\sup\|\nabla^4U\|N=sup∥∇4U∥; and (A3) there are R≥0\mathcal R\ge0R≥0 and K>0K>0K>0 such that

(x−y)⋅(∇U(x)−∇U(y))≥K∣x−y∣2whenever ∣x−y∣≥R.(x-y)\cdot(\nabla U(x)-\nabla U(y))\ge K|x-y|^2\quad\text{whenever }|x-y|\ge\mathcal R.(x−y)⋅(∇U(x)−∇U(y))≥K∣x−y∣2whenever ∣x−y∣≥R.

The coupling. For two starting points x,yx,yx,y with z=x−yz=x-yz=x−y, e=z/∣z∣e=z/|z|e=z/∣z∣, both copies use the same ξ\xiξ. If ∣x−y∣≥2R|x-y|\ge2\mathcal R∣x−y∣≥2R the second copy also uses ξ\xiξ (synchronous coupling). If ∣x−y∣<2R|x-y|<2\mathcal R∣x−y∣<2R it uses

η={ξ+γzif U~≤φ0,1(e⋅ξ+γ∣z∣)/φ0,1(e⋅ξ),ξ−2(e⋅ξ)eotherwise,\eta=\begin{cases}\xi+\gamma z&\text{if }\tilde{\mathcal U}\le\varphi_{0,1}(e\cdot\xi+\gamma|z|)/\varphi_{0,1}(e\cdot\xi),\\ \xi-2(e\cdot\xi)e&\text{otherwise,}\end{cases}η={ξ+γzξ−2(e⋅ξ)e​if U~≤φ0,1​(e⋅ξ+γ∣z∣)/φ0,1​(e⋅ξ),otherwise,​

with U~∼Unif(0,1)\tilde{\mathcal U}\sim\mathrm{Unif}(0,1)U~∼Unif(0,1) independent of ξ\xiξ and φ0,1\varphi_{0,1}φ0,1​ the standard normal density. This is a maximal coupling of N(0,Id)N(0,I_d)N(0,Id​) with its shift by γz\gamma zγz, completed by a reflection. The coupled positions are X′=qT(x,ξ)X'=q_T(x,\xi)X′=qT​(x,ξ) and Y′=qT(y,η)Y'=q_T(y,\eta)Y′=qT​(y,η), with R′(x,y)=∣X′−Y′∣R'(x,y)=|X'-Y'|R′(x,y)=∣X′−Y′∣.

The distance and the parameters. With γ=min⁡(T−1,R−1/4)\gamma=\min(T^{-1},\mathcal R^{-1}/4)γ=min(T−1,R−1/4), a=T−1a=T^{-1}a=T−1 and R1=52(R+T)R_1=\tfrac52(\mathcal R+T)R1​=25​(R+T), set

f(r)=∫0re−amin⁡(s,R1) ds,ρ(x,y)=f(∣x−y∣),f(r)=\int_0^r e^{-a\min(s,R_1)}\,ds,\qquad \rho(x,y)=f(|x-y|),f(r)=∫0r​e−amin(s,R1​)ds,ρ(x,y)=f(∣x−y∣),

and let Wρ(ν,η)=inf⁡γ∈C(ν,η)∫ρ dγ\mathcal W_\rho(\nu,\eta)=\inf_{\gamma\in C(\nu,\eta)}\int\rho\,d\gammaWρ​(ν,η)=infγ∈C(ν,η)​∫ρdγ be the Kantorovich distance over couplings C(ν,η)C(\nu,\eta)C(ν,η).

Formalization targets

Goal: Theorem 2.3

Under Assumption 2.1 and LT2≤min⁡(K/L,14,116Λ)LT^2\le\min(K/L,\tfrac14,\tfrac1{16\Lambda})LT2≤min(K/L,41​,16Λ1​) with Λ=16LR2\Lambda=16L\mathcal R^2Λ=16LR2, for all x,y∈Rdx,y\in\mathbb R^dx,y∈Rd,

E[f(R′(x,y))]≤(1−c) f(∣x−y∣),c=110min⁡(1,12KT2(1+RT)e−R/(2T))e−2R/T.E\bigl[f(R'(x,y))\bigr]\le(1-c)\,f(|x-y|),\qquad c=\frac1{10}\min\Bigl(1,\frac12KT^2\Bigl(1+\frac{\mathcal R}{T}\Bigr)e^{-\mathcal R/(2T)}\Bigr)e^{-2\mathcal R/T}.E[f(R′(x,y))]≤(1−c)f(∣x−y∣),c=101​min(1,21​KT2(1+TR​)e−R/(2T))e−2R/T.

This is the paper's main result for exact HMC, stated with its own constants.

Milestones (in the order of the proof)

  1. (112)–(116): the parameter inequalities γT≤1\gamma T\le1γT≤1, LT≤γ/4LT\le\gamma/4LT≤γ/4, γR≤14\gamma\mathcal R\le\tfrac14γR≤41​, aT≥1aT\ge1aT≥1, R1≥52(1+γT)RR_1\ge\tfrac52(1+\gamma T)\mathcal RR1​≥25​(1+γT)R.
  2. Lemma 3.4 (h=0h=0h=0): ∣qt(x,v)−qt(y,v)∣2≤(1−Kt2/2)∣x−y∣2|q_t(x,v)-q_t(y,v)|^2\le(1-Kt^2/2)|x-y|^2∣qt​(x,v)−qt​(y,v)∣2≤(1−Kt2/2)∣x−y∣2 for ∣x−y∣≥2R|x-y|\ge2\mathcal R∣x−y∣≥2R.
  3. Theorem 2.1: the synchronous coupling contracts far-apart points, R′2≤(1−12KT2)r2R'^2\le(1-\tfrac12KT^2)r^2R′2≤(1−21​KT2)r2.
  4. (119)–(120): inf⁡r>0rf′(r)/f(r)≥max⁡(1,aR1)e−aR1\inf_{r>0}rf'(r)/f(r)\ge\max(1,aR_1)e^{-aR_1}infr>0​rf′(r)/f(r)≥max(1,aR1​)e−aR1​, and the resulting bound on c1c_1c1​.
  5. Lemma 3.2 (h=0h=0h=0): first-variation bounds for the flow.
  6. Term I: on {η=ξ+γz}\{\eta=\xi+\gamma z\}{η=ξ+γz}, R′≤(1−34γT)rR'\le(1-\tfrac34\gamma T)rR′≤(1−43​γT)r.
  7. Lemma 3.7 (62): P[ξ−η≠−γz]≤∣γz∣/2πP[\xi-\eta\ne-\gamma z]\le|\gamma z|/\sqrt{2\pi}P[ξ−η=−γz]≤∣γz∣/2π​.
  8. (123): the truncated loss on the reflection event is at most (γT/2π) rf′(r)(\gamma T/\sqrt{2\pi})\,rf'(r)(γT/2π​)rf′(r).
  9. Term III: E[(R′−R1)+; ξ−η≠−γz]≤54γrTE[(R'-R_1)^+;\,\xi-\eta\ne-\gamma z]\le\tfrac54\gamma rTE[(R′−R1​)+;ξ−η=−γz]≤45​γrT.
  10. (127): 15γTmax⁡(1,2aR)e−2aR≥110e−2R/T\tfrac15\gamma T\max(1,2a\mathcal R)e^{-2a\mathcal R}\ge\tfrac1{10}e^{-2\mathcal R/T}51​γTmax(1,2aR)e−2aR≥101​e−2R/T.

Companions

The coupling property (η∼N(0,Id)\eta\sim N(0,I_d)η∼N(0,Id​), p. 9), Corollary 2.8 (Wρ(νπn,ηπn)≤e−cnWρ(ν,η)\mathcal W_\rho(\nu\pi^n,\eta\pi^n)\le e^{-cn}\mathcal W_\rho(\nu,\eta)Wρ​(νπn,ηπn)≤e−cnWρ​(ν,η), the W1\mathcal W^1W1 bound with factor M=e52(1+R/T)M=e^{\frac52(1+\mathcal R/T)}M=e25​(1+R/T), and the step count (41)), and the comparison (133), e−aR1∣x−y∣≤ρ(x,y)≤∣x−y∣e^{-aR_1}|x-y|\le\rho(x,y)\le|x-y|e−aR1​∣x−y∣≤ρ(x,y)≤∣x−y∣.

Significance

Theorem 2.3 gives a contraction rate for exact HMC that depends on ddd only through the constants LLL, KKK and R\mathcal RR of the potential, and that holds without global convexity. Through the coupling characterization of Wρ\mathcal W_\rhoWρ​ it yields Corollary 2.8, an explicit number of steps after which the law of the chain is within ϵ\epsilonϵ of μ\muμ in W1\mathcal W^1W1. The same coupling and concave-distance technique underlies the paper's results for numerical (velocity Verlet) HMC and later work on Langevin and HMC couplings.

The theorems are proved in the paper; none of them is machine-checked. Formalizing them requires the Hamiltonian ODE flow and its first-variation estimates, a Gaussian maximal/reflection coupling, and the transfer from one-step contraction to Kantorovich contraction of Markov kernels. Each of these is reusable well beyond HMC. A formal development also settles the constants. Three printed displays of the proof are not delivered by the printed argument, and Theorem 2.1 as printed is false, while the goal itself survives: see Formalization scope.

Difficulty

The obvious argument fails for nearby points. When ∣x−y∣<2R|x-y|<2\mathcal R∣x−y∣<2R, UUU may be non-convex between them, and the synchronous coupling can push the two trajectories apart. The coupling must therefore change the velocity of one copy, and doing so makes the contraction only hold on average, on the event η=ξ+γz\eta=\xi+\gamma zη=ξ+γz. On the complementary reflection event the distance can grow, and the growth must be paid for by the concavity of fff, through the truncation at R1R_1R1​ and the tail term. Balancing these terms, uniformly in xxx, yyy and ddd, is the heart of the proof. For far-apart points the difficulty is different: the contraction of Lemma 3.4 needs the trajectories to stay outside the non-convex region over the whole time interval, which is where the condition LT2<K/LLT^2<K/LLT2<K/L enters.

Formalization scope

  • Space and objects. Rd\mathbb R^dRd is EuclideanSpace ℝ (Fin d); ∇U\nabla U∇U is Mathlib's gradient, and ∇kU\nabla^kU∇kU is iteratedFDeriv. L,M,NL,M,NL,M,N are upper bounds on the derivative norms, which is equivalent for every statement here. The flow is pinned by a predicate on (q,p)(q,p)(q,p) (initial values and the ODE for all t∈Rt\in\mathbb Rt∈R); it is never a free function. Assumption 2.1 includes the standing hypotheses of §2.1: U∈C4U\in C^4U∈C4, ∫e−U<∞\int e^{-U}<\infty∫e−U<∞, and TTT deterministic.
  • Probability. The randomness of one step is (ξ,U~)(\xi,\tilde{\mathcal U})(ξ,U~) with law N(0,Id)⊗Unif(0,1)N(0,I_d)\otimes\mathrm{Unif}(0,1)N(0,Id​)⊗Unif(0,1). Expectations of nonnegative quantities are Lebesgue integrals in [0,∞][0,\infty][0,∞]. The signed expectation in (123) uses a Bochner integral together with an explicit integrability conclusion, so no bound can hold because a non-integrable integral is read as 000. Kantorovich distances take values in [0,∞][0,\infty][0,∞] over the published set of couplings MongeKantorovichYao.transferencePlans. The nnn-step kernel is the iterated composition πn+1=π∘πn\pi^{n+1}=\pi\circ\pi^nπn+1=π∘πn.
  • Conventions at R=0\mathcal R=0R=0. γ\gammaγ is T−1T^{-1}T−1 and LT2≤1/(16Λ)LT^2\le1/(16\Lambda)LT2≤1/(16Λ) is written 256L2R2T2≤1256L^2\mathcal R^2T^2\le1256L2R2T2≤1, so that no division by zero decides a constant.
  • Corrections. The strict condition (56) in Lemma 3.4 is written L2t2<KL^2t^2<KL2t2<K, which preserves its meaning at L=0L=0L=0. Theorem 2.1 is stated as its proof delivers it, R′2≤(1−12KT2)r2R'^2\le(1-\tfrac12KT^2)r^2R′2≤(1−21​KT2)r2. The printed R′≤(1−12KT2)rR'\le(1-\tfrac12KT^2)rR′≤(1−21​KT2)r fails for U(x)=12∣x∣2U(x)=\tfrac12|x|^2U(x)=21​∣x∣2, where R′=∣cos⁡T∣ rR'=|\cos T|\,rR′=∣cosT∣r. The displays (117), (122), the last inequality of (124), and (126) are not posed, because the printed argument does not deliver their constants. The goal's rate ccc of (32) is nevertheless unaffected: under the step condition and d≥1d\ge1d≥1, c=120KT2(1+R/T)e−5R/(2T)c=\tfrac1{20}KT^2(1+\mathcal R/T)e^{-5\mathcal R/(2T)}c=201​KT2(1+R/T)e−5R/(2T), which lies below both corrected rates c1c_1c1​ and c2c_2c2​.
  • Ruled out. The goal is not trivialized by a vacuous hypothesis: the hypotheses are met by U(x)=12∣x∣2U(x)=\tfrac12|x|^2U(x)=21​∣x∣2, L=K=1L=K=1L=K=1, R=0\mathcal R=0R=0, T=12T=\tfrac12T=21​. Nor is it trivialized by a junk value: fff, R′R'R′ and the integral are genuine, and the flow is the unique solution of the ODE.
  • Contributions welcome. Gronwall-type first-variation bounds for Lipschitz Hamiltonian flows, the Gaussian maximal/reflection coupling (Lemma 3.7 and the coupling property), and the general passage from a one-step average contraction to Wρ\mathcal W_\rhoWρ​ contraction of a Markov kernel.

Selected references

  • N. Bou-Rabee, A. Eberle, R. Zimmer, Coupling and convergence for Hamiltonian Monte Carlo, Ann. Appl. Probab. 30(3), 2020. arXiv:1805.00452, doi:10.1214/19-AAP1528
  • O. Mangoubi, A. Smith, Rapid mixing of Hamiltonian Monte Carlo on strongly log-concave distributions, 2017. arXiv:1708.07114
  • A. Eberle, Reflection couplings and contraction rates for diffusions, Probab. Theory Related Fields 166, 2016. arXiv:1305.1233
  • A. Eberle, A. Guillin, R. Zimmer, Couplings and quantitative contraction rates for Langevin dynamics, Ann. Probab. 47(4), 2019. arXiv:1703.01617
13 thms2 active usersReviewed
🏆Completed
Information TheoryMachine LearningOptimization·Captain: mikedeng1

Computational Optimal Transport VII: The Entropic Optimal Coupling P_ε Tends to the Maximum-Entropy Optimal Plan as ε → 0 and to a ⊗ b as ε → ∞Textbook

Motivation

The discrete optimal transport problem of Kantorovich asks for the cheapest way to move a probability histogram a\mathbf aa onto a histogram b\mathbf bb when moving a unit of mass from iii to jjj costs Ci,j\mathbf C_{i,j}Ci,j​. Its optimal couplings are vertices of a polytope and are typically sparse: they rely on a few routes. Two communities have reasons to blur them. In transportation planning, observed traffic is more diffuse than linear-programming predictions, which led to the "gravity" model of Wilson (1969) and Erlander (1980), as recounted in Peyré and Cuturi, §4.1. In machine learning and statistics, adding an entropy term to the objective turns the linear program into a strictly convex problem that Sinkhorn's matrix-scaling algorithm solves at scale (Cuturi, 2013).

Every use of the entropic problem raises the same question: what does the regularized solution approximate? Chapter 4 of Peyré and Cuturi's Computational Optimal Transport answers it in Proposition 4.1 for the two extreme regimes of the regularization strength ε\varepsilonε.

Timeline. Cominetti and San Martín (1994) studied the convergence of entropic penalties for linear programs, including first-order expansions near ε=0\varepsilon = 0ε=0 and ε=+∞\varepsilon = +\inftyε=+∞. Peyré and Cuturi (2019) record the transport case as Proposition 4.1, with a short compactness proof.

Setting

Fix sizes n,m≥1n, m \ge 1n,m≥1. A histogram is a vector of the probability simplex Σn={a∈R+n:∑iai=1}\Sigma_n = \{\mathbf a \in \mathbb R^n_+ : \sum_i \mathbf a_i = 1\}Σn​={a∈R+n​:∑i​ai​=1}. Given a∈Σn\mathbf a \in \Sigma_na∈Σn​, b∈Σm\mathbf b \in \Sigma_mb∈Σm​, the set of couplings is

U(a,b)={P∈R+n×m:P1m=a, P⊤1n=b},\mathbf U(\mathbf a,\mathbf b) = \{\mathbf P \in \mathbb R_+^{n\times m} : \mathbf P\mathbb 1_m = \mathbf a,\ \mathbf P^\top\mathbb 1_n = \mathbf b\},U(a,b)={P∈R+n×m​:P1m​=a, P⊤1n​=b},

nonnegative matrices with row sums a\mathbf aa and column sums b\mathbf bb. For a cost matrix C∈Rn×m\mathbf C \in \mathbb R^{n\times m}C∈Rn×m write ⟨C,P⟩=∑i,jCi,jPi,j\langle \mathbf C, \mathbf P\rangle = \sum_{i,j}\mathbf C_{i,j}\mathbf P_{i,j}⟨C,P⟩=∑i,j​Ci,j​Pi,j​. The Kantorovich problem is LC(a,b)=min⁡P∈U(a,b)⟨C,P⟩\mathrm L_{\mathbf C}(\mathbf a,\mathbf b) = \min_{\mathbf P \in \mathbf U(\mathbf a,\mathbf b)}\langle \mathbf C,\mathbf P\rangleLC​(a,b)=minP∈U(a,b)​⟨C,P⟩.

The discrete entropy of a coupling is

H(P)=−∑i,jPi,j(log⁡Pi,j−1),\mathbf H(\mathbf P) = -\sum_{i,j}\mathbf P_{i,j}(\log \mathbf P_{i,j} - 1),H(P)=−i,j∑​Pi,j​(logPi,j​−1),

with 0log⁡0=00\log 0 = 00log0=0. For ε>0\varepsilon > 0ε>0 the entropic problem is

LCε(a,b)=min⁡P∈U(a,b)⟨P,C⟩−εH(P),\mathrm L^\varepsilon_{\mathbf C}(\mathbf a,\mathbf b) = \min_{\mathbf P\in\mathbf U(\mathbf a,\mathbf b)}\langle \mathbf P,\mathbf C\rangle - \varepsilon\mathbf H(\mathbf P),LCε​(a,b)=P∈U(a,b)min​⟨P,C⟩−εH(P),

whose unique minimizer is Pε\mathbf P_\varepsilonPε​. The maximum-entropy optimal coupling P0⋆\mathbf P^\star_0P0⋆​ is the optimal coupling of the Kantorovich problem with the largest entropy. The Gibbs kernel is Ki,j=e−Ci,j/ε\mathbf K_{i,j} = e^{-\mathbf C_{i,j}/\varepsilon}Ki,j​=e−Ci,j​/ε and the Kullback–Leibler divergence between matrices is KL(P∣K)=∑i,jPi,jlog⁡(Pi,j/Ki,j)−Pi,j+Ki,j\mathrm{KL}(\mathbf P|\mathbf K) = \sum_{i,j}\mathbf P_{i,j}\log(\mathbf P_{i,j}/\mathbf K_{i,j}) - \mathbf P_{i,j} + \mathbf K_{i,j}KL(P∣K)=∑i,j​Pi,j​log(Pi,j​/Ki,j​)−Pi,j​+Ki,j​.

In Lean these are couplings, frob and IsOptimalCoupling in CompOT.Assignment, and entropy, entObjective, IsEntropicOptimal, IsMaxEntropyOptimal, gibbs and klMat in CompOT.EntropicLimit.

Formalization targets

Goal: Proposition 4.1

For a∈Σn\mathbf a\in\Sigma_na∈Σn​, b∈Σm\mathbf b \in \Sigma_mb∈Σm​ and any cost matrix C\mathbf CC,

Pε→ε→0+P0⋆,LCε(a,b)→ε→0+LC(a,b),Pε→ε→+∞a⊗b=(aibj)i,j.\mathbf P_\varepsilon \xrightarrow{\varepsilon\to 0^+} \mathbf P^\star_0,\qquad \mathrm L^\varepsilon_{\mathbf C}(\mathbf a,\mathbf b)\xrightarrow{\varepsilon\to 0^+}\mathrm L_{\mathbf C}(\mathbf a,\mathbf b),\qquad \mathbf P_\varepsilon\xrightarrow{\varepsilon\to+\infty}\mathbf a\otimes\mathbf b = (\mathbf a_i\mathbf b_j)_{i,j}.Pε​ε→0+​P0⋆​,LCε​(a,b)ε→0+​LC​(a,b),Pε​ε→+∞​a⊗b=(ai​bj​)i,j​.

Milestones

  1. For ε>0\varepsilon > 0ε>0, problem (4.2) has a unique optimal solution (§4.1, p. 425).
  2. The maximum-entropy optimal coupling (4.3) exists and is unique (proof of Proposition 4.1, p. 426).
  3. The sandwich (4.5): for an optimal P\mathbf PP and ε>0\varepsilon>0ε>0, 0≤⟨C,Pε⟩−⟨C,P⟩≤ε(H(Pε)−H(P))0 \le \langle\mathbf C,\mathbf P_\varepsilon\rangle - \langle \mathbf C,\mathbf P\rangle \le \varepsilon(\mathbf H(\mathbf P_\varepsilon) - \mathbf H(\mathbf P))0≤⟨C,Pε​⟩−⟨C,P⟩≤ε(H(Pε​)−H(P)).
  4. a⊗b\mathbf a \otimes \mathbf ba⊗b is the unique maximizer of H\mathbf HH on U(a,b)\mathbf U(\mathbf a,\mathbf b)U(a,b) (p. 426).
  5. (4.7): Pε\mathbf P_\varepsilonPε​ is the KL projection of the Gibbs kernel onto U(a,b)\mathbf U(\mathbf a,\mathbf b)U(a,b) (p. 428).

Significance

The result. Proposition 4.1 justifies the entropic regularization as an approximation scheme: for small ε\varepsilonε the regularized plan converges to an exact optimal plan, and specifically to a canonical one, the most diffuse among all optimal couplings, so the limit does not depend on any tie-breaking. The value LCε\mathrm L^\varepsilon_{\mathbf C}LCε​ converges to the transport cost, which is what makes Sinkhorn-based estimates of transport distances meaningful. For large ε\varepsilonε the plan becomes the independent coupling a⊗b\mathbf a\otimes\mathbf ba⊗b, which explains the interpolation between optimal transport and maximum mean discrepancy studied later in the book. The KL projection identity (4.7) is the starting point of Sinkhorn's algorithm, so this mission also supplies the bridge to the next missions of the series.

Formalizing it. The proposition is a known result with a complete proof in the source; the work is formalizing it in Lean 4 with Mathlib. To our knowledge none of these statements, nor the discrete entropic transport problem itself, has a machine-checked proof in Mathlib or on the platform. A formal proof also pins down the convention for zero entries, on which the statement silently depends.

Difficulty

The obvious argument passes to the limit in the optimality of Pε\mathbf P_\varepsilonPε​, but this only shows that limit points are optimal for the Kantorovich problem; it does not identify which optimal coupling is the limit when the optimal set is a face of the polytope rather than a vertex. Identifying it requires a second-order argument at the level of the entropy, and the convergence of the whole family (not just a subsequence) rests on the uniqueness of the maximum-entropy optimal coupling, which in turn needs strict concavity of H\mathbf HH on a set that may contain matrices with zero entries, where the logarithm is singular. Existence and uniqueness of Pε\mathbf P_\varepsilonPε​ face the same boundary issue: the minimizer may a priori sit on the boundary of the polytope.

Formalization scope

Indices are 0-based (Fin n, Fin m); histograms are functions Fin n → ℝ in Mathlib's stdSimplex; matrices are Matrix (Fin n) (Fin m) ℝ with the product topology, so convergence is entrywise. Entropy uses 0log⁡0=00\log 0 = 00log0=0 (Real.negMulLog); the book's remark that H=−∞\mathbf H = -\inftyH=−∞ at a zero entry is not used, since it would contradict the continuity of H\mathbf HH invoked in the book's proof and make (4.3) degenerate. Optimality is expressed by predicates (a minimizer over U(a,b)\mathbf U(\mathbf a,\mathbf b)U(a,b)), never by a real infimum, so no junk value of an empty infimum appears. The limit ε→0\varepsilon \to 0ε→0 is taken from the right. The values LCε\mathrm L^\varepsilon_{\mathbf C}LCε​ and LC\mathrm L_{\mathbf C}LC​ appear as the objectives at Pε\mathbf P_\varepsilonPε​ and P0⋆\mathbf P^\star_0P0⋆​.

In the goal, Pε\mathbf P_\varepsilonPε​ and P0⋆\mathbf P^\star_0P0⋆​ are given by hypotheses (any family solving (4.2) for every ε>0\varepsilon > 0ε>0, any solution of (4.3)). This is not a vacuous formalization: milestones 1 and 2 assert that such objects exist and are unique, so the hypotheses are satisfiable and determine them. Standing assumptions are exactly those of the book: a∈Σn\mathbf a \in \Sigma_na∈Σn​, b∈Σm\mathbf b \in \Sigma_mb∈Σm​, ε>0\varepsilon > 0ε>0; no positivity of a\mathbf aa, b\mathbf bb or C\mathbf CC is assumed.

A complete development needs: compactness of the transport polytope, continuity and strict concavity of x↦−xlog⁡xx \mapsto -x\log xx↦−xlogx on [0,∞)[0,\infty)[0,∞), and the Gibbs inequality on finite sums. These are reusable for the Sinkhorn and entropic-duality missions of this series. Proofs of any milestone are welcome independently.

Selected references

  • G. Peyré and M. Cuturi, Computational Optimal Transport, Foundations and Trends in Machine Learning 11(5–6):355–607, 2019. https://doi.org/10.1561/2200000073 (§4.1, pp. 425–430)
  • R. Cominetti and J. San Martín, Asymptotic analysis of the exponential penalty trajectory in linear programming, Mathematical Programming 67(1–3):169–187, 1994. https://doi.org/10.1007/BF01582220
  • M. Cuturi, Sinkhorn Distances: Lightspeed Computation of Optimal Transport, NeurIPS 2013. https://arxiv.org/abs/1306.0895
  • A. G. Wilson, The use of entropy maximizing models, in the theory of trip distribution, mode split and route split, Journal of Transport Economics and Policy, 108–126, 1969 (bibliography of Peyré and Cuturi). https://doi.org/10.1561/2200000073
  • S. Erlander, Optimal Spatial Interaction and the Gravity Model, Vol. 173, Springer-Verlag, 1980 (bibliography of Peyré and Cuturi). https://doi.org/10.1561/2200000073
7 thms2 active usersReviewed
🏆Completed
CombinatoricsLinear OptimizationOptimization·Captain: mikedeng1

Computational Optimal Transport I: For Uniform Marginals 1/n Some Permutation Matrix Solves the Kantorovich Problem, so the Relaxation of Optimal Assignment Is TightTextbook

Motivation

An assignment problem pairs each of nnn sources with exactly one of nnn destinations while minimizing a specified cost. A permutation records those pairings. The number of permutations grows as n!n!n!, so a direct search quickly becomes impractical. In discrete optimal transport, the same data can be placed in a linear optimization problem over nonnegative matrices: a matrix entry records how much mass moves from one source to one destination. That formulation permits a source's mass to be split, which gives it many more feasible solutions than the assignment problem. The question for this mission is whether the added flexibility can improve the optimum when every source and destination carries the same mass. The setting and answer are given in Peyré and Cuturi, Computational Optimal Transport, §2.2–2.3.

This capstone is the first in a series based on the textbook. It links a finite combinatorial optimization problem to the matrix model used throughout later chapters. The general transport model is needed again when marginals are unequal, when cost matrices come from distances, and when entropy is added to the objective. The uniform matching case isolates a useful boundary: relaxing an assignment to allow fractional flows expands the feasible set, yet it does not change the best objective value.

Setting

Fix an integer n>0n>0n>0 and a real n×nn\times nn×n cost matrix CCC. The entry CijC_{ij}Cij​ is the cost of sending a unit of mass from source iii to destination jjj. No sign or metric assumption is imposed on CCC. A permutation σ\sigmaσ assigns source iii to destination σ(i)\sigma(i)σ(i), with every destination used once. The assignment objective of equation (2.2) is

AC(σ)=1n∑i=1nCi,σ(i).A_C(\sigma)=\frac1n\sum_{i=1}^{n}C_{i,\sigma(i)}.AC​(σ)=n1​i=1∑n​Ci,σ(i)​.

The factor 1/n1/n1/n matters: it treats each source as having mass 1/n1/n1/n, so the assignment and transport objectives use the same total mass.

A histogram is a vector of masses. The uniform histogram uuu has ui=1/nu_i=1/nui​=1/n at each of the nnn indices. A coupling of histograms aaa and bbb is a nonnegative matrix PPP with row sums aaa and column sums bbb. The set of such matrices is

U(a,b)={P∈R+n×m:∑jPij=ai for each i,∑iPij=bj for each j}.U(a,b)=\left\{P\in\mathbb R_+^{n\times m}:\sum_jP_{ij}=a_i\ \text{for each }i,\quad\sum_iP_{ij}=b_j\ \text{for each }j\right\}.U(a,b)={P∈R+n×m​:j∑​Pij​=ai​ for each i,i∑​Pij​=bj​ for each j}.

Its linear cost is ⟨C,P⟩=∑i,jCijPij\langle C,P\rangle=\sum_{i,j}C_{ij}P_{ij}⟨C,P⟩=∑i,j​Cij​Pij​, and LC(a,b)L_C(a,b)LC​(a,b) denotes the minimum cost over P∈U(a,b)P\in U(a,b)P∈U(a,b), as in equations (2.10)–(2.11). For a permutation σ\sigmaσ, the scaled permutation matrix PσP_\sigmaPσ​ has entry 1/n1/n1/n in column σ(i)\sigma(i)σ(i) of row iii and zero elsewhere. Consequently PσP_\sigmaPσ​ is a coupling of uuu with itself, and its transport cost equals AC(σ)A_C(\sigma)AC​(σ). A general member of U(u,u)U(u,u)U(u,u) may distribute a row's mass across several columns.

Formalization targets

Relaxation bound

Because every scaled permutation matrix is feasible for the transport problem, the unrestricted minimum cannot exceed the assignment minimum:

LC(u,u)≤min⁡σ∈Perm⁡(n)AC(σ).L_C(u,u)\le \min_{\sigma\in\operatorname{Perm}(n)}A_C(\sigma).LC​(u,u)≤σ∈Perm(n)min​AC​(σ).

This is the weaker claim in the milestone list. The symmetry of couplings under transposition and the identity ⟨C,Pσ⟩=AC(σ)\langle C,P_\sigma\rangle=A_C(\sigma)⟨C,Pσ​⟩=AC​(σ) supply reusable statements about the model. The list also states the book's scaled form of Birkhoff's extreme point characterization.

Proposition 2.1: tightness for uniform marginals

The goal is the stronger statement: there is an assignment that also minimizes over the full coupling polytope,

∃σ⋆∈Perm⁡(n):Pσ⋆∈U(u,u),⟨C,Pσ⋆⟩=LC(u,u),AC(σ⋆)=min⁡τ∈Perm⁡(n)AC(τ).\exists\sigma^\star\in\operatorname{Perm}(n):\quad P_{\sigma^\star}\in U(u,u),\quad \langle C,P_{\sigma^\star}\rangle=L_C(u,u),\quad A_C(\sigma^\star)=\min_{\tau\in\operatorname{Perm}(n)}A_C(\tau).∃σ⋆∈Perm(n):Pσ⋆​∈U(u,u),⟨C,Pσ⋆​⟩=LC​(u,u),AC​(σ⋆)=τ∈Perm(n)min​AC​(τ).

This is Proposition 2.1, pp. 372–373. It quantifies over every real cost matrix of the given size. The equality of optimal values follows from the stated common optimizer; the proposition does not claim that every optimal transport plan is a permutation matrix.

Significance

The result gives an exact linear relaxation for uniform assignment. One can optimize over a convex set of matrices without paying an optimal value penalty for allowing fractional mass. The conclusion has a precise limit: it guarantees at least one integral, scaled permutation optimizer, while other optimal couplings can coexist when the cost matrix has ties. When source and destination weights are unequal, the assignment formulation may not even be feasible; the broader coupling model then carries information that a permutation cannot represent.

For formalization, the result fixes a finite transport interface that later missions can compare with their own conventions: nonnegative matrix entries, prescribed row and column sums, and a cost that is linear in the matrix. Mathlib already contains Birkhoff's theorem for doubly stochastic matrices with row sums equal to 111. This mission's formal target uses the probability normalization 1/n1/n1/n, so the scaling is part of the mathematical statement. The textbook result is known; the goal here is a machine checked Lean proof of this precise version and its cited supporting claims. The listed Lean declarations are currently open statements with sorry placeholders.

Difficulty

The evident inequality points in the easy direction: enlarging a feasible set can only reduce a minimum. It gives no reason why a minimizer over the larger set should happen to be a permutation matrix. A generic feasible coupling can split mass between several destinations, and even a unique assignment need not be the only point under consideration in the relaxed problem. The central issue is the geometry of the uniform coupling polytope and its relation to permutation matrices. Its normalization differs from the usual doubly stochastic convention, so a proof using a standard library theorem must retain the factor 1/n1/n1/n at every point where a matrix or objective is converted.

Formalization scope

The Lean index types are Fin n and Fin m; they have nnn and mmm elements but are numbered from zero. Histograms are real valued functions on those types, and couplings are real matrices constrained to be nonnegative with exact finite row and column sums. The pairing is a finite double sum. The goal assumes n>0n>0n>0 so that the displayed 1/n1/n1/n is meaningful and the assignment problem has an index to assign. There is no additional positivity requirement on CCC. The minimum values are represented by real infima only in statements where the uniform coupling polytope and permutation set are nonempty and their finite dimensional objectives are bounded below.

An optimal coupling in the goal is compared with all matrices in U(u,u)U(u,u)U(u,u), including fractional ones. Restricting that comparison to permutation matrices would erase the proposition's content. The definitions of coupling feasibility, scaled permutation matrices, and the assignment cost are reusable beyond this chapter. Contributions that establish the scaling relation to Mathlib's doubly stochastic matrices, the extreme point characterization in this normalization, or the goal from these components fit the mission. The optional strict inclusion claim on p. 372 is excluded from the milestones because its printed formulation fails at n=1n=1n=1; it would require a separate n≥2n\ge2n≥2 statement. The page also prints row and column sums of PσP_\sigmaPσ​ as 1n\mathbf1_n1n​ despite defining entries 1/n1/n1/n; the Lean statement uses 1n/n\mathbf1_n/n1n​/n.

Selected references

  • G. Peyré and M. Cuturi, Computational Optimal Transport, Foundations and Trends in Machine Learning 11(5–6):355–607, 2019, DOI: 10.1561/2200000073.
  • D. Bertsimas and J. N. Tsitsiklis, Introduction to Linear Optimization, Athena Scientific, 1997, Theorem 2.7, publisher record. Cited in the proof of Proposition 2.1.
7 thms2 active usersReviewed
🏆Completed
CombinatoricsOperations ResearchOptimization·Captain: mikedeng1

Computational Optimal Transport VI: On Termination the Auction Algorithm Returns an Assignment Whose Cost Is Within nε of the OptimumTextbook

Motivation

The optimal assignment problem asks for a one-to-one matching of nnn points to nnn objects of least total cost. It is the discrete optimal transport problem between two uniform measures with the same number of atoms, and by the Birkhoff–von Neumann theorem it coincides with the Kantorovich linear program on that instance (Peyré and Cuturi, Computational Optimal Transport, Proposition 2.1). Assignment solvers are therefore the inner routine of exact discrete optimal transport, of matching-based estimators in statistics and of many combinatorial optimization pipelines.

The auction algorithm was introduced by Bertsekas in 1981 (Bertsekas 1981) and refined with ε-scaling by Bertsekas and Eckstein in 1988 (Bertsekas & Eckstein 1988). It is a dual coordinate method with an economic reading: unassigned points bid for objects, prices of contested objects move, and an object changes hands when outbid. Its practical appeal is that each iteration is local and cheap, and that it parallelizes well. Peyré and Cuturi present it in §3.7 of their monograph (pp. 417–422) as an alternative use of the machinery of C-transforms, and as a precursor to the Sinkhorn algorithm of Chapter 4.

Setting

Fix n≥2n\ge 2n≥2, write [ ⁣[n] ⁣]={1,…,n}[\![n]\!]=\{1,\dots,n\}[[n]]={1,…,n}, and let C∈Rn×n\mathbf C\in\mathbb R^{n\times n}C∈Rn×n be a cost matrix: Ci,j\mathbf C_{i,j}Ci,j​ is the cost of assigning point iii to object jjj. A permutation σ\sigmaσ of [ ⁣[n] ⁣][\![n]\!][[n]] is an assignment, of cost ∑iCi,σi\sum_i \mathbf C_{i,\sigma_i}∑i​Ci,σi​​.

A dual vector (price vector) g∈Rn\mathbf g\in\mathbb R^ng∈Rn is indexed by the objects. Its Cˉ\bar{\mathbf C}Cˉ-transform is (gCˉ)i=min⁡jCi,j−gj(\mathbf g^{\bar{\mathbf C}})_i=\min_j \mathbf C_{i,j}-\mathbf g_j(gCˉ)i​=minj​Ci,j​−gj​, the best adjusted cost available to point iii; a pair (f,g)(\mathbf f,\mathbf g)(f,g) is dual feasible if fi+gj≤Ci,j\mathbf f_i+\mathbf g_j\le \mathbf C_{i,j}fi​+gj​≤Ci,j​ for all i,ji,ji,j.

The algorithm maintains a triplet (S,ξ,g)(S,\xi,\mathbf g)(S,ξ,g): a set S⊆[ ⁣[n] ⁣]S\subseteq[\![n]\!]S⊆[[n]] of assigned points, a partial assignment vector ξ\xiξ (an injective map from SSS to [ ⁣[n] ⁣][\![n]\!][[n]]) and a dual vector g\mathbf gg. The state satisfies ε-complementary slackness (ε-CS) if

∀i∈S,Ci,ξi−gξi≤ε+min⁡j(Ci,j−gj).\forall i\in S,\qquad \mathbf C_{i,\xi_i}-\mathbf g_{\xi_i}\le \varepsilon+\min_j\big(\mathbf C_{i,j}-\mathbf g_j\big).∀i∈S,Ci,ξi​​−gξi​​≤ε+jmin​(Ci,j​−gj​).

One iteration picks a point i∉Si\notin Si∈/S, a lowest adjusted cost index ji1∈argmin⁡jCi,j−gjj^1_i\in\operatorname{argmin}_j \mathbf C_{i,j}-\mathbf g_jji1​∈argminj​Ci,j​−gj​ and a second lowest ji2∈argmin⁡j≠ji1Ci,j−gjj^2_i\in\operatorname{argmin}_{j\neq j^1_i}\mathbf C_{i,j}-\mathbf g_jji2​∈argminj=ji1​​Ci,j​−gj​, and performs

gji1←Ci,ji1−(Ci,ji2−gji2)−ε,(3.9)\mathbf g_{j^1_i}\leftarrow \mathbf C_{i,j^1_i}-\big(\mathbf C_{i,j^2_i}-\mathbf g_{j^2_i}\big)-\varepsilon, \tag{3.9}gji1​​←Ci,ji1​​−(Ci,ji2​​−gji2​​)−ε,(3.9)

removes from SSS the point i′i'i′ with ξi′=ji1\xi_{i'}=j^1_iξi′​=ji1​ (if there is one), sets ξi=ji1\xi_i=j^1_iξi​=ji1​ and adds iii to SSS. The algorithm starts from S=∅S=\emptysetS=∅, g=0n\mathbf g=0_ng=0n​, and terminates when S=[ ⁣[n] ⁣]S=[\![n]\!]S=[[n]].

Formalization targets

Goal: Proposition 3.9 (p. 422)

For every ε>0\varepsilon>0ε>0 and every run of the algorithm that terminates, the final ξ\xiξ is a permutation and

∑iCi,ξi  ≤  ∑iCi,σi+nεfor every permutation σ.\sum_i \mathbf C_{i,\xi_i}\;\le\;\sum_i \mathbf C_{i,\sigma_i}+n\varepsilon\qquad\text{for every permutation }\sigma.i∑​Ci,ξi​​≤i∑​Ci,σi​​+nεfor every permutation σ.

The goal fixes no particular tie-breaking rule and no order in which unassigned points bid: it holds for all of them.

Milestones

  1. (3.8), p. 419. If Ci,σi−gσi=min⁡jCi,j−gj\mathbf C_{i,\sigma_i}-\mathbf g_{\sigma_i}=\min_j \mathbf C_{i,j}-\mathbf g_jCi,σi​​−gσi​​=minj​Ci,j​−gj​ for every iii, then σ\sigmaσ is an optimal assignment and (gCˉ,g)(\mathbf g^{\bar{\mathbf C}},\mathbf g)(gCˉ,g) is an optimal dual pair.
  2. Properties (b)–(c), pp. 419–420. At each iteration the size of SSS does not decrease, some price decreases by at least ε\varepsilonε, and no price increases.
  3. Proposition 3.7, p. 420. Every state of every run satisfies ε-CS.

Companion: Proposition 3.8 (p. 421), corrected

For C≥0\mathbf C\ge 0C≥0, every run has at most n(⌊∥C∥∞/ε⌋+1)n\big(\lfloor\|\mathbf C\|_\infty/\varepsilon\rfloor+1\big)n(⌊∥C∥∞​/ε⌋+1) iterations. This is the termination statement; the goal does not depend on it.

Significance

Proposition 3.9 is the accuracy guarantee of the auction algorithm. With integer costs and ε<1/n\varepsilon<1/nε<1/n it yields an exactly optimal assignment, which is how the algorithm is used as an exact solver; combined with ε-scaling it gives the complexity bounds quoted in Remark 3.3. The argument is also the template for every ε-relaxed primal–dual method: an approximate optimality certificate maintained by local moves, turned into a global suboptimality bound by weak duality.

The results are classical and proved in the book and in Bertsekas's monographs; they are not open. What this mission adds is a machine-checked account of the algorithm with all of its nondeterminism (ties in the argmins, the order of bidders) quantified explicitly, together with the corrected iteration bound. To the best of the mission's prior-art search, no Lean formalization of the auction algorithm exists on the platform or in Mathlib, which has the assignment problem only implicitly (through permutations and doubly stochastic matrices).

Difficulty

The obvious argument for the goal sums the ε-CS inequality over iii and compares with an arbitrary permutation σ\sigmaσ. The sum telescopes only if the final ξ\xiξ is a bijection, so the proof must carry, through every iteration, the invariant that ξ\xiξ is injective on SSS, and this invariant interacts with the removal of the displaced point in step 2: the set update has to remove exactly the point holding ji1j^1_iji1​, which needs injectivity at the previous step.

Preserving ε-CS for the points that are not bidding relies on prices only ever decreasing, which in turn needs ε≥0\varepsilon\ge 0ε≥0 and the specific form of (3.9); preserving it for the bidder needs the second-best index ji2j^2_iji2​ to realize the minimum over j≠ji1j\neq j^1_ij=ji1​, including in the presence of ties. The printed termination bound is false (see below), so the companion requires reconstructing the counting argument: an object that is still unassigned has never been bid on and keeps price 000, which caps the number of bids on any other object.

Formalization scope

  • [ ⁣[n] ⁣][\![n]\!][[n]] is Fin n; C\mathbf CC is a Matrix (Fin n) (Fin n) ℝ; prices are Fin n → ℝ; min⁡j\min_jminj​ is the infimum over the finite nonempty index set.
  • A state is a structure with fields S : Finset (Fin n), ξ : Fin n → Fin n and g : Fin n → ℝ. Only the values of ξ on S are meaningful; injectivity on S is a property to be proved, not a field.
  • An iteration is a relation between consecutive states (AuctionStep), with the choice of bidder, of ji1j^1_iji1​ and of ji2j^2_iji2​ existential. A run of TTT iterations is a sequence of states starting from S=∅S=\emptysetS=∅, g=0\mathbf g=0g=0; it is terminated when S=[ ⁣[n] ⁣]S=[\![n]\!]S=[[n]] at step TTT. The results hold for every run, whatever the tie-breaking.
  • Costs are the unnormalized sums ∑iCi,σi\sum_i \mathbf C_{i,\sigma_i}∑i​Ci,σi​​, as in the book's proof of Proposition 3.9. Under the 1n\frac1nn1​ normalization of (2.2) the gap nεn\varepsilonnε becomes ε\varepsilonε.
  • Added hypotheses: n≥2n\ge2n≥2 in the goal (the second-best index requires it); ε>0\varepsilon>0ε>0 throughout; C≥0\mathbf C\ge0C≥0 in the corrected Proposition 3.8, which its proof uses.
  • Printed slips. Proposition 3.8 as printed (N=n∥C∥∞/εN=n\|\mathbf C\|_\infty/\varepsilonN=n∥C∥∞​/ε) fails for C=0\mathbf C=0C=0; the companion states the bound the proof gives. Property (b) "can only increase" is stated as non-decrease; property (c) refers to an object index jjj.
  • Trivialization ruled out. The run predicate forces the initial state, the exact update (3.9) and the set update of step 2 at every iteration, and the goal requires S=[ ⁣[n] ⁣]S=[\![n]\!]S=[[n]] at the end; a terminated run exists already for n=2n=2n=2, so the goal is not vacuous.

Contributions welcome: the injectivity invariant of ξ on S as a reusable lemma; the milestones in any order; a proof of termination (the companion) and of the existence of a terminated run for every n≥2n\ge2n≥2.

Selected references

  • G. Peyré and M. Cuturi, Computational Optimal Transport, Foundations and Trends in Machine Learning 11(5–6):355–607, 2019, §3.7. https://doi.org/10.1561/2200000073
  • D. P. Bertsekas, A new algorithm for the assignment problem, Mathematical Programming 21:152–171, 1981. https://doi.org/10.1007/BF01584237
  • D. P. Bertsekas and J. Eckstein, Dual coordinate step methods for linear network flow problems, Mathematical Programming 42:203–243, 1988. https://doi.org/10.1007/BF01589417
  • D. P. Bertsekas, Auction algorithms for network flow problems: A tutorial introduction, Computational Optimization and Applications 1:7–66, 1992. https://doi.org/10.1007/BF00247653
5 thms2 active usersReviewed
Operations ResearchOptimizationProbability·Captain: mikedeng1

Optimal Transport-Based Distributionally Robust Optimization: Structural Properties and Iterative Schemes 4: A Worst-Case Distribution Is the Law of X + √δ G A(X)⁻¹β, Spending the Whole Budget δResearch Paper

Why the worst case matters

Distributionally robust optimization (DRO) replaces the expected loss EP0[ℓ(βTX)]E_{P_0}[\ell(\beta^{\mathsf T}X)]EP0​​[ℓ(βTX)] of a linear decision rule β\betaβ by its worst case over all data laws PPP within transport distance δ\deltaδ of the baseline P0P_0P0​. When P0P_0P0​ is an empirical distribution this covers regularized regression and classification (Blanchet, Kang, Murthy 2019; Esfahani, Kuhn 2018). The optimal value is one number; a practitioner also wants to know which distribution realizes it, the adversary's best response. It shows which data points the robust model guards against, it gives stress-test scenarios, and its structure is what the paper's comparative statics (Theorem 7) and iterative schemes build on.

J. Blanchet, K. Murthy and F. Zhang, Optimal Transport-Based Distributionally Robust Optimization: Structural Properties and Iterative Schemes (arXiv:1810.02403v3; Math. Oper. Res. 47(2), 2022), answer this for a state-dependent Mahalanobis cost. Theorem 6 of that paper describes the worst-case distribution through the solution of the one-dimensional dual problem. This mission formalizes Theorem 6.

Setting

The data XXX take values in Rd\mathbb R^dRd with law P0P_0P0​, a Borel probability measure. The decision β\betaβ ranges over a convex set B⊆RdB\subseteq\mathbb R^dB⊆Rd (a standing assumption of the paper). Moving mass from xxx to x′x'x′ costs

c(x,x′)=(x−x′)TA(x)(x−x′),c(x,x')=(x-x')^{\mathsf T}A(x)(x-x'),c(x,x′)=(x−x′)TA(x)(x−x′),

where A(x)A(x)A(x) is positive definite. Assumption 1 asks that ccc be lower semicontinuous and that ρmin⁡∥v∥2≤vTA(x)v≤ρmax⁡∥v∥2\rho_{\min}\|v\|^2\le v^{\mathsf T}A(x)v\le\rho_{\max}\|v\|^2ρmin​∥v∥2≤vTA(x)v≤ρmax​∥v∥2 for P0P_0P0​-almost every xxx, with ρmin⁡>0\rho_{\min}>0ρmin​>0. The optimal transport cost Dc(P0,P)D_c(P_0,P)Dc​(P0​,P) is the least value of Eπ[c(X,X′)]E_\pi[c(X,X')]Eπ​[c(X,X′)] over couplings π\piπ of P0P_0P0​ and PPP. For δ>0\delta>0δ>0 the worst-case objective is

sup⁡P: Dc(P0,P)≤δEP[ℓ(βTX)].(6)\sup_{P:\,D_c(P_0,P)\le\delta}E_P\bigl[\ell(\beta^{\mathsf T}X)\bigr].\tag{6}P:Dc​(P0​,P)≤δsup​EP​[ℓ(βTX)].(6)

Assumption 2 asks that the loss ℓ:R→R\ell:\mathbb R\to\mathbb Rℓ:R→R be convex, that the growth exponent κ=inf⁡{s≥0:sup⁡u(ℓ(u)−su2)<∞}\kappa=\inf\{s\ge0:\sup_u(\ell(u)-su^2)<\infty\}κ=inf{s≥0:supu​(ℓ(u)−su2)<∞} be finite, and that EP0∥X∥4<∞E_{P_0}\|X\|^4<\inftyEP0​​∥X∥4<∞.

The dual side is built from

F(γ,β,λ;x)=ℓ(βTx+γδ βTA(x)−1β)−λδ(γ2βTA(x)−1β−1),F(\gamma,\beta,\lambda;x)=\ell\bigl(\beta^{\mathsf T}x+\gamma\sqrt\delta\,\beta^{\mathsf T}A(x)^{-1}\beta\bigr)-\lambda\sqrt\delta\bigl(\gamma^2\beta^{\mathsf T}A(x)^{-1}\beta-1\bigr),F(γ,β,λ;x)=ℓ(βTx+γδ​βTA(x)−1β)−λδ​(γ2βTA(x)−1β−1),

the robust loss ℓrob(β,λ;x)=sup⁡γF\ell_{\rm rob}(\beta,\lambda;x)=\sup_{\gamma}Fℓrob​(β,λ;x)=supγ​F, the dual objective fδ(β,λ)=EP0[ℓrob(β,λ;X)]∈R∪{∞}f_\delta(\beta,\lambda)=E_{P_0}[\ell_{\rm rob}(\beta,\lambda;X)]\in\mathbb R\cup\{\infty\}fδ​(β,λ)=EP0​​[ℓrob​(β,λ;X)]∈R∪{∞} and the maximizer set Γ∗(β,λ;x)=arg⁡max⁡γF(γ,β,λ;x)\Gamma^*(\beta,\lambda;x)=\arg\max_\gamma F(\gamma,\beta,\lambda;x)Γ∗(β,λ;x)=argmaxγ​F(γ,β,λ;x). By the paper's Theorem 1, (6) equals inf⁡λ≥0fδ(β,λ)\inf_{\lambda\ge0}f_\delta(\beta,\lambda)infλ≥0​fδ​(β,λ), and a minimizer λ∗(β)\lambda_*(\beta)λ∗​(β), the dual optimizer, exists. The threshold is λthr(β)=κδ ess supP0 βTA(X)−1β\lambda_{thr}(\beta)=\kappa\sqrt\delta\,\mathrm{ess\,sup}_{P_0}\,\beta^{\mathsf T}A(X)^{-1}\betaλthr​(β)=κδ​esssupP0​​βTA(X)−1β; below it fδ=∞f_\delta=\inftyfδ​=∞.

Formalization targets

Goal: Theorem 6(c)

Let β≠0\beta\ne0β=0 and λ∗(β)>λthr(β)\lambda_*(\beta)>\lambda_{thr}(\beta)λ∗​(β)>λthr​(β). Let G±(x)∈Γ∗(β,λ∗(β);x)G_\pm(x)\in\Gamma^*(\beta,\lambda_*(\beta);x)G±​(x)∈Γ∗(β,λ∗​(β);x) be measurable selections with the largest and smallest square, cˉ=E[G+2βTA(X)−1β]\bar c=E[G_+^2\beta^{\mathsf T}A(X)^{-1}\beta]cˉ=E[G+2​βTA(X)−1β], c‾=E[G−2βTA(X)−1β]\underline c=E[G_-^2\beta^{\mathsf T}A(X)^{-1}\beta]c​=E[G−2​βTA(X)−1β], and let Z∼Bernoulli(q)Z\sim\mathrm{Bernoulli}(q)Z∼Bernoulli(q) be independent of XXX with q=(cˉ−1)/(cˉ−c‾)∈[0,1]q=(\bar c-1)/(\bar c-\underline c)\in[0,1]q=(cˉ−1)/(cˉ−c​)∈[0,1]. Then

X∗=X+δ (ZG−+(1−Z)G+)A(X)−1β,E[c(X,X∗)]=δ,X^*=X+\sqrt\delta\,\bigl(ZG_-+(1-Z)G_+\bigr)A(X)^{-1}\beta,\qquad E[c(X,X^*)]=\delta,X∗=X+δ​(ZG−​+(1−Z)G+​)A(X)−1β,E[c(X,X∗)]=δ,

and the law of X∗X^*X∗ attains the supremum in (6).

Milestones

  • Lemma 1: Γ∗≠∅\Gamma^*\ne\emptysetΓ∗=∅ and ℓrob<∞\ell_{\rm rob}<\inftyℓrob​<∞ when λ>κδ βTA(x)−1β\lambda>\kappa\sqrt\delta\,\beta^{\mathsf T}A(x)^{-1}\betaλ>κδ​βTA(x)−1β, and ℓrob=∞\ell_{\rm rob}=\inftyℓrob​=∞ below that; hence {λ>λthr}⊆{fδ<∞}⊆{λ≥λthr}\{\lambda>\lambda_{thr}\}\subseteq\{f_\delta<\infty\}\subseteq\{\lambda\ge\lambda_{thr}\}{λ>λthr​}⊆{fδ​<∞}⊆{λ≥λthr​}.
  • Lemma 3(a): δ∣g∣βTA(x)−1β≤1+C1ε−1(1+∣βTx∣)\sqrt\delta|g|\beta^{\mathsf T}A(x)^{-1}\beta\le1+C_1\varepsilon^{-1}(1+|\beta^{\mathsf T}x|)δ​∣g∣βTA(x)−1β≤1+C1​ε−1(1+∣βTx∣) for g∈Γ∗g\in\Gamma^*g∈Γ∗ once λ≥(κ+ε)δβTA(x)−1β\lambda\ge(\kappa+\varepsilon)\sqrt\delta\beta^{\mathsf T}A(x)^{-1}\betaλ≥(κ+ε)δ​βTA(x)−1β.
  • Proposition 2 (a) and its λ\lambdaλ-part: the one-sided λ\lambdaλ-derivatives of ℓrob\ell_{\rm rob}ℓrob​ are the minimum and the maximum of −δ(γ2βTA(x)−1β−1)-\sqrt\delta(\gamma^2\beta^{\mathsf T}A(x)^{-1}\beta-1)−δ​(γ2βTA(x)−1β−1) over Γ∗\Gamma^*Γ∗.
  • The one-sided λ\lambdaλ-derivatives of fδf_\deltafδ​ on {λ>λthr}\{\lambda>\lambda_{thr}\}{λ>λthr​}:
∂±fδ/∂λ=δ(1−E[βTA(X)−1β inf⁡/sup⁡g∈Γ∗g2]).\partial_\pm f_\delta/\partial\lambda=\sqrt\delta\bigl(1-E[\beta^{\mathsf T}A(X)^{-1}\beta\,\inf/\sup_{g\in\Gamma^*}g^2]\bigr).∂±​fδ​/∂λ=δ​(1−E[βTA(X)−1βinf/g∈Γ∗sup​g2]).
  • [Blanchet–Murthy 2019, Theorem 1]: strong duality and complementary slackness (already proved on the platform).

Companion statements

Theorem 6(a): λ∗>0\lambda_*>0λ∗​>0 unless ℓ\ellℓ is constant. Theorem 6(b): λ∗≥λthr\lambda_*\ge\lambda_{thr}λ∗​≥λthr​. Theorem 6(d), as the paper's example: for ℓ(u)=u2−∣u∣(1−e−∣u∣)\ell(u)=u^2-|u|(1-e^{-|u|})ℓ(u)=u2−∣u∣(1−e−∣u∣), P0=δ0P_0=\delta_0P0​=δ0​, A=IA=IA=I and ∥β∥=1\|\beta\|=1∥β∥=1, λ∗=λthr=δ\lambda_*=\lambda_{thr}=\sqrt\deltaλ∗​=λthr​=δ​ and no distribution attains the value δ\deltaδ. Theorem 6(e), with Lemma 8: if ℓ′′≤M\ell''\le Mℓ′′≤M and λ∗>12Mδ ess sup βTA(X)−1β\lambda_*>\tfrac12M\sqrt\delta\,\mathrm{ess\,sup}\,\beta^{\mathsf T}A(X)^{-1}\betaλ∗​>21​Mδ​esssupβTA(X)−1β, then Γ∗\Gamma^*Γ∗ is a singleton {G(x)}\{G(x)\}{G(x)} almost surely and the law of X+δG(X)A(X)−1βX+\sqrt\delta G(X)A(X)^{-1}\betaX+δ​G(X)A(X)−1β is the unique worst case.

Significance

The result reduces a search over all probability measures to a scalar problem per data point. Each point is pushed along the single direction A(x)−1βA(x)^{-1}\betaA(x)−1β, by an amount read off the maximizers of FFF, and the budget δ\deltaδ is always spent completely. When the maximizer is not unique, randomization between two extreme maximizers is needed and suffices. Part (d) shows that the threshold condition cannot be removed, and part (e) gives a deterministic transport map (a Monge solution) under smoothness. Theorem 7 of the paper, the monotone growth of worst-case displacements in δ\deltaδ, is a statement about the random variable GGG produced here.

None of these statements has been machine-checked before. The general strong duality with complementary slackness of Blanchet–Murthy (arXiv:1604.01446) is proved on the platform, so this mission connects that abstract theorem to an explicit worst-case law. A formal proof also has to settle one point the printed text leaves loose: which extreme maximizers enter the mixture (see Formalization scope).

Difficulty

The first idea is to take the pointwise maximizers of FFF at λ∗\lambda_*λ∗​ and push P0P_0P0​ forward. That works only when the maximizer is unique and the budget constraint happens to be tight. In general the maximizer set is not a singleton, and the derivative of fδf_\deltafδ​ at λ∗\lambda_*λ∗​ only lies between a left and a right derivative. Turning the first-order condition ∂+fδ≥0≥∂−fδ\partial_+f_\delta\ge0\ge\partial_-f_\delta∂+​fδ​≥0≥∂−​fδ​ into an exact cost δ\deltaδ needs three things. The one-sided derivatives must be identified as expectations over Γ∗\Gamma^*Γ∗, an envelope theorem under an integral with a non-compact parameter set. The extreme maximizers must be compact and measurably selectable. Finally the resulting coupling must be certified optimal through complementary slackness. Each step needs a hypothesis that is easy to lose: the growth control of Lemma 3, the essential supremum in λthr\lambda_{thr}λthr​, measurability of selections.

Formalization scope

Points of Rd\mathbb R^dRd are EuclideanSpace ℝ (Fin d), βTx\beta^{\mathsf T}xβTx is the inner product, and βTA(x)−1β\beta^{\mathsf T}A(x)^{-1}\betaβTA(x)−1β is quadInv A β x. ℓrob\ell_{\rm rob}ℓrob​ and fδf_\deltafδ​ are extended-real valued; fδf_\deltafδ​ uses the published extended integral ModelRiskOT.Duality.extIntegral. The worst-case objective (6) is the published primal problem primalValue: a supremum over couplings π\piπ with first marginal P0P_0P0​ and ∫c dπ≤δ\int c\,d\pi\le\delta∫cdπ≤δ (primalFeasible). A distribution attains (6) when a coupling with that second marginal has value primalValue. The random worst case X∗X^*X∗ is encoded by the joint law of (X,X∗)(X,X^*)(X,X∗), a mixture of two graph couplings, because E[c(X,X∗)]E[c(X,X^*)]E[c(X,X∗)] depends on the pair. A dual optimizer is a real λ∗≥0\lambda_*\ge0λ∗​≥0 minimizing fδ(β,⋅)f_\delta(\beta,\cdot)fδ​(β,⋅) on [0,∞)[0,\infty)[0,∞).

Standing hypotheses on every statement: P0P_0P0​ a probability measure, Assumptions 1 and 2, δ>0\delta>0δ>0, BBB convex. The following departures from the printed text are disclosed in each item:

  • In (c), G±G_\pmG±​ are the selections of extreme square used in the proof (p. 40), not inf⁡Γ∗\inf\Gamma^*infΓ∗ and sup⁡Γ∗\sup\Gamma^*supΓ∗ as printed; a two-point example shows the printed choice can fail.
  • In (e), "for every xxx" is read as "for P0P_0P0​-almost every xxx", which is what the proof gives.
  • Lemma 8 is stated for β≠0\beta\ne0β=0.
  • Proposition 2 is formalized for part (a) and the λ\lambdaλ-derivatives only.

Every expectation used in the goal (cˉ\bar ccˉ, c‾\underline cc​) carries an integrability conjunct. The cost identity and optimality are asserted for the measure itself, so no junk value of a non-integrable integral can make the goal hold vacuously. A statement asserting only first-order conditions for λ∗\lambda_*λ∗​ would not be Theorem 6. The goal asserts primal attainment and the exact cost.

Needed infrastructure, reusable beyond this mission: envelope (Danskin) theorems for one-sided derivatives of suprema, differentiation of convex integral functionals, measurable selection of argmax sets, and complementary slackness through the published Blanchet–Murthy theorem. Contributions of any of these as standalone lemmas are welcome.

Selected references

  • J. Blanchet, K. Murthy, F. Zhang, Optimal Transport-Based Distributionally Robust Optimization: Structural Properties and Iterative Schemes, Math. Oper. Res. 47(2), 2022. arXiv:1810.02403v3, doi:10.1287/moor.2021.1178
  • J. Blanchet, K. Murthy, Quantifying Distributional Model Risk via Optimal Transport, Math. Oper. Res. 44(2), 2019. arXiv:1604.01446
  • J. Blanchet, Y. Kang, K. Murthy, Robust Wasserstein Profile Inference and Applications to Machine Learning, J. Appl. Probab. 56(3), 2019. doi:10.1017/jpr.2019.49
  • P. Mohajerin Esfahani, D. Kuhn, Data-driven distributionally robust optimization using the Wasserstein metric, Math. Program. 171, 2018. doi:10.1007/s10107-017-1172-1
  • D. P. Bertsekas, S. E. Shreve, Stochastic Optimal Control: The Discrete-Time Case, Academic Press, 1978 (Proposition 7.50, measurable selection).
13 thms2 active usersReviewed
Operations ResearchOptimizationProbability·Captain: mikedeng1

Optimal Transport-Based Distributionally Robust Optimization: Structural Properties and Iterative Schemes 1: Mahalanobis-Transport Worst-Case Loss Equals inf over λ ≥ 0 of E_P0[ℓ_rob(β, λ; X)]Research Paper

Motivation

Distributionally robust optimization chooses a decision against a range of plausible probability laws instead of a single fitted law. Here the decision is a linear rule evaluated through a loss function. The range of laws is specified by how much probability mass may be transported away from a baseline law. A conventional transport cost depends only on the displacement. Blanchet, Murthy and Zhang allow the cost of moving a point to depend on its starting location, so the uncertainty model can reflect local information. Their introduction gives a portfolio example: uncertainty about returns may differ across market conditions, and a state dependent cost can encode that difference. The paper develops a dual reformulation as the basis for its later convexity, optimizer, and algorithmic results.

The theorem in this mission is the first structural result of that development. It says that evaluating the worst-case loss does not require optimizing directly over all probability distributions. A dual objective built from the baseline law gives the same value, and its nonnegative scalar multiplier attains the best value. The earlier general transport duality theorem of Blanchet and Murthy is already formalized and proved on Prove2Me; the remaining target here is the state dependent Mahalanobis specialization and its explicit scalar form.

Setting

Let X∈RdX\in\mathbb R^dX∈Rd have a baseline law P0P_0P0​, and let B⊆RdB\subseteq\mathbb R^dB⊆Rd be a convex set of decisions. A decision β∈B\beta\in Bβ∈B incurs loss ℓ(βTX)\ell(\beta^{\mathsf T}X)ℓ(βTX), where ℓ:R→R\ell:\mathbb R\to\mathbb Rℓ:R→R. The transport cost of moving xxx to x′x'x′ is

c(x,x′)=(x−x′)TA(x)(x−x′),c(x,x')=(x-x')^{\mathsf T}A(x)(x-x'),c(x,x′)=(x−x′)TA(x)(x−x′),

where A(x)A(x)A(x) is positive definite at every xxx. Under Assumption 1, ccc is lower semicontinuous, and the eigenvalues of A(x)A(x)A(x) lie between fixed positive bounds ρmin⁡\rho_{\min}ρmin​ and ρmax⁡\rho_{\max}ρmax​ for P0P_0P0​-almost every xxx. Since AAA depends on the starting point, ccc need not be symmetric. For two laws P0P_0P0​ and PPP, Dc(P0,P)D_c(P_0,P)Dc​(P0​,P) is the least expected cost among couplings whose first and second marginals are P0P_0P0​ and PPP. The ambiguity set at radius δ>0\delta>0δ>0 consists of laws satisfying Dc(P0,P)≤δD_c(P_0,P)\le\deltaDc​(P0​,P)≤δ. The paper writes the worst-case loss as an equivalent supremum over couplings with first marginal P0P_0P0​ and cost at most δ\deltaδ (§2.1, p. 9).

For x,β∈Rdx,\beta\in\mathbb R^dx,β∈Rd, write qA(β,x)=βTA(x)−1βq_A(\beta,x)=\beta^{\mathsf T}A(x)^{-1}\betaqA​(β,x)=βTA(x)−1β. The paper introduces a pointwise robust loss from

F(γ,β,λ;x)=ℓ(βTx+γδ qA(β,x))−λδ(γ2qA(β,x)−1),F(\gamma,\beta,\lambda;x)=\ell\bigl(\beta^{\mathsf T}x+\gamma\sqrt\delta\,q_A(\beta,x)\bigr)-\lambda\sqrt\delta\bigl(\gamma^2q_A(\beta,x)-1\bigr),F(γ,β,λ;x)=ℓ(βTx+γδ​qA​(β,x))−λδ​(γ2qA​(β,x)−1),

by setting ℓrob(β,λ;x)=sup⁡γ∈RF(γ,β,λ;x)\ell_{\rm rob}(\beta,\lambda;x)=\sup_{\gamma\in\mathbb R}F(\gamma,\beta,\lambda;x)ℓrob​(β,λ;x)=supγ∈R​F(γ,β,λ;x) and fδ(β,λ)=EP0[ℓrob(β,λ;X)]f_\delta(\beta,\lambda)=E_{P_0}[\ell_{\rm rob}(\beta,\lambda;X)]fδ​(β,λ)=EP0​​[ℓrob​(β,λ;X)]. This expectation may be extended real. These are the objects of display (7) and Theorem 1 on p. 10.

Formalization targets

The goal is Theorem 1 of the paper. If ℓ\ellℓ is upper semicontinuous and the baseline loss is integrable, then for each β∈B\beta\in Bβ∈B,

sup⁡P: Dc(P0,P)≤δEP[ℓ(βTX)]=inf⁡λ≥0fδ(β,λ),\sup_{P:\,D_c(P_0,P)\le\delta}E_P[\ell(\beta^{\mathsf T}X)]=\inf_{\lambda\ge0}f_\delta(\beta,\lambda),P:Dc​(P0​,P)≤δsup​EP​[ℓ(βTX)]=λ≥0inf​fδ​(β,λ),

and a multiplier λ∗(β)≥0\lambda^*(\beta)\ge0λ∗(β)≥0 attains the infimum. The target retains the state dependence of AAA, the full range of β\betaβ in BBB, and the possible extended value of the worst-case loss. It asserts both the value identity and attainment; the latter is part of the printed theorem.

The milestone list follows the paper's proof on p. 32: the previously proved general strong duality theorem, the quadratic minimum under a linear constraint, and pointwise equality (25) between the transport envelope and ℓrob\ell_{\rm rob}ℓrob​. The quadratic minimum is stated with attainment. The pointwise equality includes β=0\beta=0β=0 and records the change from the original transport multiplier to the scaled multiplier used in FFF.

Significance

The formula replaces a search over probability laws with a scalar outer optimization and an expectation under P0P_0P0​. That representation is the paper's starting point for examining the shape of fδf_\deltafδ​, locating dual optimizers, describing worst-case laws, and designing iterative schemes. Without a faithful dual identity, those later claims would concern a function whose connection to the original distributional problem had not been established (Theorems 2–7).

The general Blanchet–Murthy strong duality theorem has a machine-checked proof on Prove2Me. This mission supplies the specialized model, the quadratic reduction, and the equality with the paper's fδf_\deltafδ​. Those declarations can then serve as a stable interface for the remaining missions in this series. The current goal and its new milestones are open Lean statements; the paper result itself is proved in the cited work.

Difficulty

The general duality theorem returns a dual problem whose envelope is a supremum over destination points in Rd\mathbb R^dRd. The paper's formula instead uses one scalar γ\gammaγ, and its multiplier is scaled by δ\sqrt\deltaδ​. Showing that these describe the same value requires controlling a positive definite quadratic cost with a state dependent matrix at every starting point. At β=0\beta=0β=0, the hyperplane formula used in the nonzero case has a zero denominator, while equation (25) remains meaningful. Extended values also matter: the pointwise supremum can be infinite, and replacing it with a real-valued approximation could alter the theorem.

Formalization scope

Vectors are EuclideanSpace ℝ (Fin d), laws are Borel probability measures, and matrices are real positive definite matrices. The local Setting definition fixes ccc, qAq_AqA​, FFF, ℓrob\ell_{\rm rob}ℓrob​, and fδf_\deltafδ​ using the paper's notation. The worst-case objective reuses the published coupling form ModelRiskOT.Duality.primalValue; its feasible plans already enforce the first marginal and cost budget. EReal carries the primal value, pointwise supremum, integral, and outer infimum. The extended integral is the published ModelRiskOT.Duality.extIntegral, with its documented convention for a difference of two infinite parts. The multiplier ranges over λ≥0\lambda\ge0λ≥0, and δ>0\delta>0δ>0 is explicit so its square root can be used in the rescaling.

The goal retains the paper's standing convexity of BBB, Assumption 1, and β∈B\beta\in Bβ∈B. It adds integrability of x↦ℓ(βTx)x\mapsto\ell(\beta^{\mathsf T}x)x↦ℓ(βTx), required by the cited general duality theorem but omitted from the printed Theorem 1. This addition is disclosed so the statement's scope is clear. The goal equates the primal worst-case loss with the explicit infimum of fδf_\deltafδ​ and asserts attainment; an identity between two dual notations would leave the main claim unaddressed. Contributions to the positive definite quadratic minimization, the pointwise envelope equality, and their connection to the general duality theorem are in scope. The shared Setting layer is intended for reuse in the later convexity and worst-case-law missions.

Selected references

  • J. Blanchet, K. Murthy and F. Zhang, Optimal Transport-Based Distributionally Robust Optimization: Structural Properties and Iterative Schemes, Mathematics of Operations Research 47(2), 2022. arXiv:1810.02403v3
  • J. Blanchet and K. Murthy, Quantifying Distributional Model Risk via Optimal Transport, Mathematics of Operations Research 44(2), 2019. arXiv:1604.01446v2
12 thms2 active usersReviewed
🏆Completed
Operations ResearchProbabilityStatistics·Captain: mikedeng1

Data-Driven Distributionally Robust Optimization Using the Wasserstein Metric: Performance Guarantees and Tractable Reformulations III: Asymptotic Consistency of Wasserstein Robust SolutionsResearch Paper

Motivation

Many decisions in operations research and machine learning minimize an expected cost EP[h(x,ξ)]\mathbb E^{P}[h(x,\xi)]EP[h(x,ξ)] whose distribution PPP is unknown and is seen only through NNN independent samples. The sample-average approximation replaces PPP by the empirical distribution and is known to produce decisions with poor out-of-sample performance when NNN is small. Distributionally robust optimization instead minimizes the worst-case expected cost over a set of distributions that are plausible given the data. Mohajerin Esfahani and Kuhn (arXiv:1505.05116v3, published in Mathematical Programming 171, 2018) take this set to be a ball in the Wasserstein metric around the empirical distribution, and show that such balls deliver both finite-sample certificates and asymptotic consistency. This mission formalizes the statistical half of that paper: Section 3 and Appendix A.

A data-driven method should, at a minimum, be consistent: as the sample grows, its optimal value and decisions should approach those of the true problem. For Wasserstein balls this requires a measure concentration inequality for empirical distributions in the Wasserstein metric, which was supplied by Fournier and Guillin (PTRF 2015). The paper combines that inequality with the Kantorovich–Rubinstein duality and the Borel–Cantelli lemma.

Setting

Let EEE be Rm\mathbb R^mRm with an arbitrary norm ∥⋅∥\|\cdot\|∥⋅∥ and its Borel σ\sigmaσ-algebra. A decision xxx ranges over a feasible set X⊆RnX\subseteq\mathbb R^nX⊆Rn; the random vector ξ\xiξ has distribution PPP, supported on the uncertainty set Ξ⊆E\Xi\subseteq EΞ⊆E; the loss is h:Rn×E→Rh:\mathbb R^n\times E\to\mathbb Rh:Rn×E→R. The true problem (1) has optimal value

J⋆=inf⁡x∈XEP[h(x,ξ)].J^\star=\inf_{x\in X}\mathbb E^P[h(x,\xi)].J⋆=x∈Xinf​EP[h(x,ξ)].

The Wasserstein distance between distributions Q1,Q2Q_1,Q_2Q1​,Q2​ with finite first moment is

dW(Q1,Q2)=inf⁡{∫∥ξ1−ξ2∥ Π(dξ1,dξ2): Π a coupling of Q1 and Q2}.d_W(Q_1,Q_2)=\inf\Big\{\int\|\xi_1-\xi_2\|\,\Pi(d\xi_1,d\xi_2):\ \Pi\text{ a coupling of }Q_1\text{ and }Q_2\Big\}.dW​(Q1​,Q2​)=inf{∫∥ξ1​−ξ2​∥Π(dξ1​,dξ2​): Π a coupling of Q1​ and Q2​}.

Given samples ξ^1,…,ξ^N\hat\xi_1,\dots,\hat\xi_Nξ^​1​,…,ξ^​N​ drawn independently from PPP (joint law PNP^NPN, and P∞P^\inftyP∞ for the infinite sequence), the empirical distribution is P^N=1N∑i=1Nδξ^i\widehat P_N=\frac1N\sum_{i=1}^N\delta_{\hat\xi_i}PN​=N1​∑i=1N​δξ^​i​​, and the Wasserstein ball Bε(P^N)\mathbb B_\varepsilon(\widehat P_N)Bε​(PN​) is the set of distributions QQQ on Ξ\XiΞ with dW(P^N,Q)≤εd_W(\widehat P_N,Q)\le\varepsilondW​(PN​,Q)≤ε. The distributionally robust program (5) has optimal value

J^N=inf⁡x∈X sup⁡Q∈Bε(P^N)EQ[h(x,ξ)],\widehat J_N=\inf_{x\in X}\ \sup_{Q\in\mathbb B_\varepsilon(\widehat P_N)}\mathbb E^Q[h(x,\xi)],JN​=x∈Xinf​ Q∈Bε​(PN​)sup​EQ[h(x,ξ)],

and an optimizer of it is written x^N\widehat x_NxN​.

The light-tail condition (Assumption 3.3) asks for an exponent a>1a>1a>1 with A=EP[exp⁡(∥ξ∥a)]<∞A=\mathbb E^P[\exp(\|\xi\|^a)]<\inftyA=EP[exp(∥ξ∥a)]<∞. Under it, and for m≠2m\ne2m=2, Theorem 3.4 (Fournier–Guillin) gives constants c1,c2>0c_1,c_2>0c1​,c2​>0 with

PN{dW(P,P^N)≥ε}≤{c1e−c2Nεmax⁡{m,2},ε≤1,c1e−c2Nεa,ε>1,(7)P^N\{d_W(P,\widehat P_N)\ge\varepsilon\}\le\begin{cases}c_1e^{-c_2N\varepsilon^{\max\{m,2\}}},&\varepsilon\le1,\\ c_1e^{-c_2N\varepsilon^{a}},&\varepsilon>1,\end{cases}\tag{7}PN{dW​(P,PN​)≥ε}≤{c1​e−c2​Nεmax{m,2},c1​e−c2​Nεa,​ε≤1,ε>1,​(7)

for all N≥1N\ge1N≥1, ε>0\varepsilon>0ε>0. Solving the right-hand side =β=\beta=β for ε\varepsilonε gives the radius

εN(β)=(log⁡(c1β−1)c2N)1/max⁡{m,2} if N≥log⁡(c1β−1)c2,(log⁡(c1β−1)c2N)1/a otherwise.(8)\varepsilon_N(\beta)=\Big(\frac{\log(c_1\beta^{-1})}{c_2N}\Big)^{1/\max\{m,2\}}\text{ if }N\ge\frac{\log(c_1\beta^{-1})}{c_2},\qquad\Big(\frac{\log(c_1\beta^{-1})}{c_2N}\Big)^{1/a}\text{ otherwise}.\tag{8}εN​(β)=(c2​Nlog(c1​β−1)​)1/max{m,2} if N≥c2​log(c1​β−1)​,(c2​Nlog(c1​β−1)​)1/a otherwise.(8)

Formalization targets

Goal: Theorem 3.6 (asymptotic consistency)

Let βN∈(0,1)\beta_N\in(0,1)βN​∈(0,1) with ∑NβN<∞\sum_N\beta_N<\infty∑N​βN​<∞ and εN(βN)→0\varepsilon_N(\beta_N)\to0εN​(βN​)→0, and use the radius εN(βN)\varepsilon_N(\beta_N)εN​(βN​) in (5).

(i) If h(x,⋅)h(x,\cdot)h(x,⋅) is upper semicontinuous on Ξ\XiΞ and ∣h(x,ξ)∣≤L(1+∥ξ∥)|h(x,\xi)|\le L(1+\|\xi\|)∣h(x,ξ)∣≤L(1+∥ξ∥) on X×ΞX\times\XiX×Ξ, then P∞P^\inftyP∞-almost surely

J^N≥J⋆ for all large NandJ^N→J⋆.\widehat J_N\ge J^\star\ \text{for all large }N\quad\text{and}\quad\widehat J_N\to J^\star.JN​≥J⋆ for all large NandJN​→J⋆.

(ii) If moreover XXX is closed and h(⋅,ξ)h(\cdot,\xi)h(⋅,ξ) is lower semicontinuous on XXX, then P∞P^\inftyP∞-almost surely every accumulation point of (x^N)(\widehat x_N)(xN​) is an optimal solution of (1).

Milestones

  1. Theorem 3.5 (finite sample guarantee). For fixed N≥1N\ge1N≥1 and β∈(0,1)\beta\in(0,1)β∈(0,1), with radius εN(β)\varepsilon_N(\beta)εN​(β),
PN{EP[h(x^N,ξ)]>J^N}≤β.P^N\big\{\mathbb E^P[h(\widehat x_N,\xi)]>\widehat J_N\big\}\le\beta.PN{EP[h(xN​,ξ)]>JN​}≤β.
  1. Lemma A.1. An upper semicontinuous hhh on Ξ\XiΞ with h(ξ)≤L(1+∥ξ∥)h(\xi)\le L(1+\|\xi\|)h(ξ)≤L(1+∥ξ∥) is the pointwise limit on Ξ\XiΞ of a non-increasing sequence of Lipschitz functions.
  2. Lemma 3.7 (convergence of distributions). Any data-dependent Q^N∈BεN(βN)(P^N)\widehat Q_N\in\mathbb B_{\varepsilon_N(\beta_N)}(\widehat P_N)Q​N​∈BεN​(βN​)​(PN​) satisfies
P∞{lim⁡N→∞dW(P,Q^N)=0}=1.P^\infty\Big\{\lim_{N\to\infty}d_W(P,\widehat Q_N)=0\Big\}=1.P∞{N→∞lim​dW​(P,Q​N​)=0}=1.

Theorem 3.2 (Kantorovich–Rubinstein duality, dW(Q1,Q2)=sup⁡{∫f dQ1−∫f dQ2: f 1-Lipschitz}d_W(Q_1,Q_2)=\sup\{\int f\,dQ_1-\int f\,dQ_2:\ f\ 1\text{-Lipschitz}\}dW​(Q1​,Q2​)=sup{∫fdQ1​−∫fdQ2​: f 1-Lipschitz}), which the proof of (i) uses, enters as a reference item: the open platform theorem WassersteinDRO.Duality.kantorovich_rubinstein, stated on the whole space for all Borel probability measures. It is not a milestone, because that statement is more general than the paper's version on M(Ξ)\mathcal M(\Xi)M(Ξ) (the two agree for distributions in M(Ξ)\mathcal M(\Xi)M(Ξ) by extending Lipschitz functions from Ξ\XiΞ to the whole space).

A companion item, Example 1 (1), records that upper semicontinuity cannot be dropped in (i): for Ξ=[0,1]\Xi=[0,1]Ξ=[0,1], P=δ0P=\delta_0P=δ0​ and h=1(0,1](ξ)h=\mathbb 1_{(0,1]}(\xi)h=1(0,1]​(ξ) one has J⋆=0J^\star=0J⋆=0 but J^N≥1\widehat J_N\ge1JN​≥1 for every radius ε>0\varepsilon>0ε>0.

Significance

Theorem 3.5 makes the robust optimal value an upper confidence bound on the out-of-sample cost of the robust decision. Theorem 3.6 shows that this protection does not cost consistency: with radii shrinking at a rate governed by summable confidence levels, such as βN=e−N\beta_N=e^{-\sqrt N}βN​=e−N​, both the certificate and the decisions converge to their true counterparts. Together they are the statistical justification for the Wasserstein ambiguity sets that the rest of the paper reformulates as finite convex programs, and they are cited as the reference consistency results for Wasserstein distributionally robust optimization.

All results here are proved in the paper. None of them, nor the Fournier–Guillin inequality, is formalized on Prove2Me or in Mathlib to our knowledge. The mission adds machine-checked versions of the finite-sample and consistency statements, a monotone Lipschitz approximation lemma for semicontinuous functions with linear growth (useful wherever Lipschitz duality has to be extended to semicontinuous integrands), and a convergence lemma for measures in shrinking Wasserstein balls.

Difficulty

The obvious argument for (i) bounds the worst-case expectation by the true expectation plus a Lipschitz constant times the radius. That fails, because hhh is only upper semicontinuous in ξ\xiξ, not Lipschitz, and has no Lipschitz constant to multiply. The expectations of a merely semicontinuous loss must be controlled uniformly over every distribution in the ball, including data-dependent worst-case distributions, and the almost-sure convergence of the empirical distribution alone does not give this. Example 1 of the paper shows that each regularity hypothesis is needed. On the formal side, the Wasserstein distance is an infimum over couplings on a Polish space; even its triangle inequality (gluing of couplings) and the Kantorovich–Rubinstein duality are substantial.

Formalization scope

EEE is a finite-dimensional real normed space with its Borel σ\sigmaσ-algebra (BorelSpace), and mmm is its dimension; decisions live in EuclideanSpace ℝ (Fin n). The definitions dWd_WdW​ (type p=1p=1p=1), P^N\widehat P_NPN​, Bε(P^N)\mathbb B_\varepsilon(\widehat P_N)Bε​(PN​), EQ\mathbb E^QEQ and the worst-case expectation are the published WassersteinDRO.Duality definitions. The optimal values J⋆J^\starJ⋆ and J^N\widehat J_NJN​ are extended reals. Standing conventions and pinned hypotheses:

  • "Supported on Ξ\XiΞ" is P(Ξc)=0P(\Xi^c)=0P(Ξc)=0; Ξ\XiΞ is neither closed nor convex in general. The samples lie in Ξ\XiΞ almost surely, and optimizers and ball selections are required only for samples in Ξ\XiΞ.
  • The constants c1,c2>0c_1,c_2>0c1​,c2​>0 enter as any constants for which (7) holds, which is how (8) is defined from Theorem 3.4. The theorem of Fournier and Guillin is not part of this mission, and m≠2m\ne2m=2 is assumed because (7) and (8) are printed only for m≠2m\ne2m=2.
  • The loss is real-valued. In Theorem 3.5 it is assumed PPP-integrable on XXX, because the worst-case expectation counts only distributions under which the loss is integrable. In Theorem 3.6 the linear growth bound makes this automatic.
  • Probabilities "at least 1−β1-\beta1−β" are stated as bounds on the outer measure of the failure event, and "P∞P^\inftyP∞-almost surely" as an almost-everywhere statement for the product measure on sequences.
  • The paper's "J^N↓J⋆\widehat J_N\downarrow J^\starJN​↓J⋆" is stated as eventual domination J^N≥J⋆\widehat J_N\ge J^\starJN​≥J⋆ plus convergence, which is what its proof establishes; monotonicity in NNN is not claimed.

A statement in which (7) could not hold for any constants would make the goal vacuous. The concentration inequality is satisfiable (for instance by a Dirac distribution with any constants), and εN(β)\varepsilon_N(\beta)εN​(β) is defined by the paper's formula, not chosen freely.

Welcome contributions: the triangle inequality and Kantorovich–Rubinstein duality for dWd_WdW​, the Borel–Cantelli step for product measures, Lemma A.1, and the Fatou argument of (ii).

Selected references

  • P. Mohajerin Esfahani and D. Kuhn, Data-driven distributionally robust optimization using the Wasserstein metric: performance guarantees and tractable reformulations, Mathematical Programming 171 (2018); source version arXiv:1505.05116v3. https://arxiv.org/abs/1505.05116v3
  • N. Fournier and A. Guillin, On the rate of convergence in Wasserstein distance of the empirical measure, Probability Theory and Related Fields 162 (2015). https://doi.org/10.1007/s00440-014-0583-7
  • L. V. Kantorovich and G. S. Rubinstein, On a space of totally additive functions, Vestnik Leningrad. Univ. 13 (1958).
  • C. Villani, Optimal Transport: Old and New, Springer, 2009. https://doi.org/10.1007/978-3-540-71050-9
  • D. Bertsimas, V. Gupta and N. Kallus, Robust sample average approximation, Mathematical Programming 171 (2018). https://arxiv.org/abs/1408.4445
12 thms2 active usersReviewed
🏆Completed
Convex OptimizationOperations ResearchOptimization·Captain: mikedeng1

Data-Driven Distributionally Robust Optimization Using the Wasserstein Metric: Performance Guarantees and Tractable Reformulations II: Worst-Case Distributions from a Finite Convex ProgramResearch Paper

Motivation

In data-driven stochastic optimization a decision maker knows the distribution of an uncertain parameter ξ\xiξ only through NNN samples ξ^1,…,ξ^N\hat\xi_1,\dots,\hat\xi_Nξ^​1​,…,ξ^​N​. Wasserstein distributionally robust optimization hedges against this ignorance by evaluating a loss ℓ\ellℓ under the worst distribution in a ball, measured in the Wasserstein metric, around the empirical distribution of the samples. Mohajerin Esfahani and Kuhn (arXiv:1505.05116v3, published in Mathematical Programming 171, 2018) showed that for piecewise concave losses the worst-case expectation is the optimal value of a finite convex program (their Theorem 4.2), which made the approach computationally practical.

Knowing the worst-case value is often not enough. Stress tests of a candidate decision require the extremal distributions themselves: the distributions inside the ball that (nearly) achieve the worst case. Section 4.2 of the paper answers this question. Its Theorem 4.4 shows that the worst case is approached by discrete distributions with at most NKNKNK atoms, read off from near-optimal solutions of a second finite convex program, and its Example 2 shows that a worst-case distribution need not exist at all. This mission formalizes that section. The source is the arXiv preprint version 3 (13 June 2017); all numbering below refers to it.

Setting

Let EEE be a finite-dimensional real vector space with an arbitrary norm ∥⋅∥\|\cdot\|∥⋅∥ (the paper's Rm\mathbb R^mRm), equipped with its Borel σ\sigmaσ-algebra. Linear functionals zzz on EEE act by ⟨z,ξ⟩\langle z,\xi\rangle⟨z,ξ⟩, and the dual norm is ∥z∥∗=sup⁡∥ξ∥≤1⟨z,ξ⟩\|z\|_* = \sup_{\|\xi\|\le 1}\langle z,\xi\rangle∥z∥∗​=sup∥ξ∥≤1​⟨z,ξ⟩. Extended reals R‾=[−∞,+∞]\overline{\mathbb R} = [-\infty,+\infty]R=[−∞,+∞] follow the paper's conventions 0⋅∞=0/0=00\cdot\infty = 0/0 = 00⋅∞=0/0=0 and ∞−∞=∞\infty - \infty = \infty∞−∞=∞.

  • Samples and empirical distribution. ξ^1,…,ξ^N\hat\xi_1,\dots,\hat\xi_Nξ^​1​,…,ξ^​N​ lie in a set Ξ⊆E\Xi\subseteq EΞ⊆E, and P^N=1N∑iδξ^i\widehat{\mathbb P}_N = \frac1N\sum_i\delta_{\hat\xi_i}PN​=N1​∑i​δξ^​i​​.
  • Wasserstein ball. dW(Q1,Q2)d_W(\mathbb Q_1,\mathbb Q_2)dW​(Q1​,Q2​) is the infimum of ∫∥ξ1−ξ2∥ Π(dξ1,dξ2)\int\|\xi_1-\xi_2\|\,\Pi(d\xi_1,d\xi_2)∫∥ξ1​−ξ2​∥Π(dξ1​,dξ2​) over couplings Π\PiΠ of Q1\mathbb Q_1Q1​ and Q2\mathbb Q_2Q2​, and Bε(P^N)\mathbb B_\varepsilon(\widehat{\mathbb P}_N)Bε​(PN​) is the set of probability distributions supported on Ξ\XiΞ within distance ε\varepsilonε of P^N\widehat{\mathbb P}_NPN​.
  • Loss. ℓ(ξ)=max⁡k≤Kℓk(ξ)\ell(\xi) = \max_{k\le K}\ell_k(\xi)ℓ(ξ)=maxk≤K​ℓk​(ξ) for measurable pieces ℓk:E→R‾\ell_k : E\to\overline{\mathbb R}ℓk​:E→R, and EQ[ℓ(ξ)]=EQ[max⁡{ℓ,0}]+EQ[min⁡{ℓ,0}]\mathbb E^{\mathbb Q}[\ell(\xi)] = \mathbb E^{\mathbb Q}[\max\{\ell,0\}] + \mathbb E^{\mathbb Q}[\min\{\ell,0\}]EQ[ℓ(ξ)]=EQ[max{ℓ,0}]+EQ[min{ℓ,0}].
  • Worst-case expectation (10). sup⁡Q∈Bε(P^N)EQ[ℓ(ξ)]\sup_{\mathbb Q\in\mathbb B_\varepsilon(\widehat{\mathbb P}_N)}\mathbb E^{\mathbb Q}[\ell(\xi)]supQ∈Bε​(PN​)​EQ[ℓ(ξ)].
  • Assumption 4.1. Ξ\XiΞ is convex and closed; every −ℓk-\ell_k−ℓk​ is proper, convex and lower semicontinuous; and no ℓk\ell_kℓk​ is identically −∞-\infty−∞ on Ξ\XiΞ.
  • Program (13). Over weights αik≥0\alpha_{ik}\ge 0αik​≥0 and displacements qik∈Eq_{ik}\in Eqik​∈E,
sup⁡αik,qik 1N∑i=1N∑k=1Kαik ℓk(ξ^i−qikαik)s.t.1N∑i,k∥qik∥≤ε,  ∑kαik=1,  ξ^i−qikαik∈Ξ.\sup_{\alpha_{ik},q_{ik}}\ \frac1N\sum_{i=1}^N\sum_{k=1}^K\alpha_{ik}\,\ell_k\Big(\hat\xi_i-\frac{q_{ik}}{\alpha_{ik}}\Big)\quad\text{s.t.}\quad\frac1N\sum_{i,k}\|q_{ik}\|\le\varepsilon,\ \ \sum_k\alpha_{ik}=1,\ \ \hat\xi_i-\frac{q_{ik}}{\alpha_{ik}}\in\Xi .αik​,qik​sup​ N1​i=1∑N​k=1∑K​αik​ℓk​(ξ^​i​−αik​qik​​)s.t.N1​i,k∑​∥qik​∥≤ε,  k∑​αik​=1,  ξ^​i​−αik​qik​​∈Ξ.

When αik=0\alpha_{ik}=0αik​=0 the last constraint forces qik=0q_{ik}=0qik​=0 and the ikikik-th objective term is 000.

  • Candidate distributions. Q=1N∑i,kαik δξik\mathbb Q = \frac1N\sum_{i,k}\alpha_{ik}\,\delta_{\xi_{ik}}Q=N1​∑i,k​αik​δξik​​ with ξik=ξ^i−qik/αik\xi_{ik} = \hat\xi_i - q_{ik}/\alpha_{ik}ξik​=ξ^​i​−qik​/αik​.

Formalization targets

Goal: Theorem 4.4 (worst-case distributions)

Under Assumption 4.1 and for every ε≥0\varepsilon\ge 0ε≥0,

sup⁡Q∈Bε(P^N)EQ[ℓ(ξ)]=optimal value of (13),\sup_{\mathbb Q\in\mathbb B_\varepsilon(\widehat{\mathbb P}_N)}\mathbb E^{\mathbb Q}[\ell(\xi)] = \text{optimal value of (13)},Q∈Bε​(PN​)sup​EQ[ℓ(ξ)]=optimal value of (13),

and for every feasible sequence (αik(r),qik(r))r(\alpha_{ik}(r),q_{ik}(r))_r(αik​(r),qik​(r))r​ of (13) whose objective values converge to that optimal value, the distributions Qr\mathbb Q_rQr​ lie in Bε(P^N)\mathbb B_\varepsilon(\widehat{\mathbb P}_N)Bε​(PN​) and

sup⁡Q∈Bε(P^N)EQ[ℓ(ξ)]=lim⁡r→∞EQr[ℓ(ξ)]=lim⁡r→∞1N∑i,kαik(r) ℓ(ξik(r)).\sup_{\mathbb Q\in\mathbb B_\varepsilon(\widehat{\mathbb P}_N)}\mathbb E^{\mathbb Q}[\ell(\xi)] = \lim_{r\to\infty}\mathbb E^{\mathbb Q_r}[\ell(\xi)] = \lim_{r\to\infty}\frac1N\sum_{i,k}\alpha_{ik}(r)\,\ell(\xi_{ik}(r)).Q∈Bε​(PN​)sup​EQ[ℓ(ξ)]=r→∞lim​EQr​[ℓ(ξ)]=r→∞lim​N1​i,k∑​αik​(r)ℓ(ξik​(r)).

The limits may be +∞+\infty+∞; no finiteness is assumed.

Milestones, in the order of the proof

The proof starts from (10) = (12f) (proof of Theorem 4.2, p. 13), which is posed in mission I of this series, Wasserstein Worst-Case Expectations as Finite Convex Programs, and is not restated here; it will be linked as a milestone once that mission is live.

  1. Lemma 4.5: inf⁡z⟨z,q−αξ^⟩+αf∗(z)\inf_z\langle z,q-\alpha\hat\xi\rangle+\alpha f^*(z)infz​⟨z,q−αξ^​⟩+αf∗(z) is the extended perspective of q↦−f(ξ^−q)q\mapsto -f(\hat\xi-q)q↦−f(ξ^​−q) for proper, convex, lower semicontinuous fff.
  2. (14d)–(14f): the ikikik-th dual term equals αℓk(ξ^−q/α)−χΞ(ξ^−q/α)\alpha\ell_k(\hat\xi-q/\alpha)-\chi_\Xi(\hat\xi-q/\alpha)αℓk​(ξ^​−q/α)−χΞ​(ξ^​−q/α) under the extended-arithmetic conventions.
  3. (12f) = (13), the first part of the proof of Theorem 4.4.
  4. Qr∈Bε(P^N)\mathbb Q_r\in\mathbb B_\varepsilon(\widehat{\mathbb P}_N)Qr​∈Bε​(PN​) for every feasible point of (13).
  5. EQr[ℓ(ξ)]\mathbb E^{\mathbb Q_r}[\ell(\xi)]EQr​[ℓ(ξ)] equals 1N∑i,kαikℓ(ξik)\frac1N\sum_{i,k}\alpha_{ik}\ell(\xi_{ik})N1​∑i,k​αik​ℓ(ξik​) and is at least the objective of (13) for every feasible point.

Companion results

Corollary 4.6: if Ξ\XiΞ is compact or K=1K=1K=1, the sequence has an accumulation point that defines a worst-case distribution. Example 2: for Ξ=R\Xi=\mathbb RΞ=R, N=1N=1N=1, ξ^1=0\hat\xi_1=0ξ^​1​=0, ℓ=max⁡{0,ξ−1}\ell=\max\{0,\xi-1\}ℓ=max{0,ξ−1}, the worst-case expectation is ε\varepsilonε and, for ε>0\varepsilon>0ε>0, is attained by no distribution in the ball.

Significance

Theorem 4.4 turns the abstract supremum over an infinite-dimensional ball of distributions into a finite-dimensional convex program whose near-optimal solutions are near-worst-case distributions. The atoms ξik\xi_{ik}ξik​ sit within total weighted distance ∑i,kαik∥ξik−ξ^i∥≤Nε\sum_{i,k}\alpha_{ik}\|\xi_{ik}-\hat\xi_i\|\le N\varepsilon∑i,k​αik​∥ξik​−ξ^​i​∥≤Nε of the data, and they may lie off the data, which distinguishes Wasserstein balls from ambiguity sets based on the total variation distance or the Kullback–Leibler divergence. Example 2 marks the boundary: the theorem cannot be upgraded to the existence of a maximizer in general, while Corollary 4.6 names two cases where it can.

The results are proved in the paper; to our knowledge none of them has a machine-checked proof. The formalization adds a precise account of the extended-arithmetic conventions the paper relies on (0⋅∞=00\cdot\infty=00⋅∞=0, q/0∉Eq/0\notin Eq/0∈/E, ∞−∞=∞\infty-\infty=\infty∞−∞=∞), each of which is made explicit in the definitions, and a reusable Lean treatment of extended-valued conjugates and perspective functions on a normed space with an arbitrary norm.

Difficulty

The first claim goes through Lagrangian duality for program (12f), whose constraints involve conjugates that may take the value +∞+\infty+∞; the strong duality and the minimax interchange (14c) must be justified for extended-valued convex functions, not just finite ones. Lemma 4.5 needs the Fenchel–Moreau theorem f∗∗=ff^{**}=ff∗∗=f for proper, convex, lower semicontinuous R‾\overline{\mathbb R}R-valued functions on a finite-dimensional normed space, together with its degenerate case α=0\alpha=0α=0. The second claim is a squeeze argument, but it rests on computing an extended expectation of an R‾\overline{\mathbb R}R-valued function under a discrete measure and on an explicit coupling for the Wasserstein distance. A tempting shortcut, attaining the supremum by a limit distribution, fails: Example 2 shows the maximizing atoms can escape to infinity.

Formalization scope

  • The space is a finite-dimensional real normed space E with [BorelSpace E]; the dual space is StrongDual ℝ E, and the dual norm is the operator norm. All values are in EReal.
  • The Wasserstein distance, the ball (6) and P^N\widehat{\mathbb P}_NPN​ are the published WassersteinDRO.Duality.wassersteinDistance, ambiguitySet (with p=1p=1p=1) and empiricalDistribution.
  • The extended expectation is the published DupacovaWets.Consistency.expect; it integrates the positive and negative parts separately and returns +∞+\infty+∞ when the positive part is infinite; there is no integrability guard, so a distribution with infinite expected loss pushes (10) to +∞+\infty+∞ as in the paper.
  • Program values are infima or suprema over feasibility predicates, so an empty feasible set gives ±∞\pm\infty±∞, never a junk 000. Program (13) encodes αik=0\alpha_{ik}=0αik​=0 by the clauses "qik=0q_{ik}=0qik​=0" and "objective term =0=0=0" (p. 14).
  • Standing assumptions carried as hypotheses: N≥1N\ge1N≥1, K≥1K\ge1K≥1, ξ^i∈Ξ\hat\xi_i\in\Xiξ^​i​∈Ξ (§2), measurability of each ℓk\ell_kℓk​ (p. 11).
  • A trivializing formalization is ruled out: dropping the clause αik=0⇒qik=0\alpha_{ik}=0\Rightarrow q_{ik}=0αik​=0⇒qik​=0 or the hypothesis ξ^i∈Ξ\hat\xi_i\in\Xiξ^​i​∈Ξ would change program (13) or make the ball empty, and both are kept explicitly.
  • The objects shared with mission I (extended expectation, worst-case expectation, conjugate, Assumption 4.1, program (12f)) are restated verbatim in this mission's namespace; they will be merged with mission I's copies. Contributions to the convex-analysis groundwork (extended-valued Fenchel–Moreau, perspective functions) are welcome and reusable beyond this mission.

Selected references

  • P. Mohajerin Esfahani and D. Kuhn, Data-Driven Distributionally Robust Optimization Using the Wasserstein Metric: Performance Guarantees and Tractable Reformulations, Mathematical Programming 171, 2018. Version formalized: arXiv:1505.05116v3.
  • D. P. Bertsekas, Convex Optimization Theory, Athena Scientific, 2009 (Propositions 1.6.1 and 5.5.4, used in the proofs).
  • R. T. Rockafellar and R. J.-B. Wets, Variational Analysis, Springer, 1998. https://doi.org/10.1007/978-3-642-02431-3
  • C. Villani, Optimal Transport: Old and New, Springer, 2009. https://doi.org/10.1007/978-3-540-71050-9
11 thms2 active usersReviewed
PreviousPage 1 of 4Next

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me