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
🏆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
🏆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
🏆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
🏆Completed
Convex OptimizationOperations ResearchOptimization·Captain: mikedeng1

Data-Driven Distributionally Robust Optimization Using the Wasserstein Metric: Performance Guarantees and Tractable Reformulations I: Wasserstein Worst-Case Expectations as Finite Convex ProgramsResearch Paper

Motivation

A decision maker who must minimize an expected cost EP[h(x,ξ)]\mathbb E^{\mathbb P}[h(x,\xi)]EP[h(x,ξ)] rarely knows the distribution P\mathbb PP of the uncertain parameter ξ\xiξ; usually only NNN samples ξ^1,…,ξ^N\hat\xi_1,\dots,\hat\xi_Nξ^​1​,…,ξ^​N​ are available. Replacing P\mathbb PP by the empirical distribution (sample average approximation) tends to produce decisions that perform poorly out of sample when NNN is small. Distributionally robust optimization instead minimizes the worst 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 that set to be a ball in the Wasserstein metric around the empirical distribution. Such balls give finite-sample and asymptotic guarantees, but each evaluation of the robust objective is an optimization over infinitely many probability distributions. Section 4.1 of the paper shows that, for a large class of losses, this inner problem is a finite convex program. That result, Theorem 4.2, is the subject of this mission.

Timeline. Wasserstein ambiguity sets for portfolio selection were proposed by Pflug and Wozabal (2007); before this paper, robust problems over such sets were solved with global optimization algorithms (Pflug and Pichler 2014). Strong duality for conic linear and moment problems (Shapiro 2001) underlies the reduction. Mohajerin Esfahani and Kuhn (preprint 2015, journal 2018) proved the convex reduction for piecewise concave losses; Gao and Kleywegt (arXiv:1604.02199) and Blanchet and Murthy (arXiv:1604.01446) proved strong duality for general transport costs in 2016.

Setting

Let EEE be a finite-dimensional real vector space with an arbitrary norm ∥⋅∥\|\cdot\|∥⋅∥ (the paper's Rm\mathbb R^mRm) and its Borel σ-algebra. Its dual norm is ∥z∥∗=sup⁡∥ξ∥≤1⟨z,ξ⟩\|z\|_* = \sup_{\|\xi\|\le 1}\langle z,\xi\rangle∥z∥∗​=sup∥ξ∥≤1​⟨z,ξ⟩, where ⟨z,ξ⟩\langle z,\xi\rangle⟨z,ξ⟩ is the value of the linear functional zzz at ξ\xiξ. Let Ξ⊆E\Xi\subseteq EΞ⊆E be the support set and ξ^1,…,ξ^N∈Ξ\hat\xi_1,\dots,\hat\xi_N\in\Xiξ^​1​,…,ξ^​N​∈Ξ the samples, with empirical distribution P^N=1N∑i=1Nδξ^i\widehat{\mathbb P}_N=\frac1N\sum_{i=1}^N\delta_{\hat\xi_i}PN​=N1​∑i=1N​δξ^​i​​.

The 1-Wasserstein distance between two distributions is the least transport cost ∫∥ξ−ξ′∥ Π(dξ,dξ′)\int\|\xi-\xi'\|\,\Pi(d\xi,d\xi')∫∥ξ−ξ′∥Π(dξ,dξ′) over all couplings Π\PiΠ with the given marginals. The Wasserstein ball Bε(P^N)\mathbb B_\varepsilon(\widehat{\mathbb P}_N)Bε​(PN​) is the set of probability distributions on Ξ\XiΞ within distance ε≥0\varepsilon\ge 0ε≥0 of P^N\widehat{\mathbb P}_NPN​.

The loss is a pointwise maximum ℓ(ξ)=max⁡k≤Kℓk(ξ)\ell(\xi)=\max_{k\le K}\ell_k(\xi)ℓ(ξ)=maxk≤K​ℓk​(ξ) of measurable functions ℓk:E→R‾=R∪{±∞}\ell_k:E\to\overline{\mathbb R}=\mathbb R\cup\{\pm\infty\}ℓk​:E→R=R∪{±∞}. Its expectation is EQ[ℓ]=EQ[max⁡{ℓ,0}]+EQ[min⁡{ℓ,0}]\mathbb E^{\mathbb Q}[\ell]=\mathbb E^{\mathbb Q}[\max\{\ell,0\}]+\mathbb E^{\mathbb Q}[\min\{\ell,0\}]EQ[ℓ]=EQ[max{ℓ,0}]+EQ[min{ℓ,0}] with ∞−∞=∞\infty-\infty=\infty∞−∞=∞. The worst-case expectation is

sup⁡Q∈Bε(P^N)EQ[ℓ(ξ)].(10)\sup_{\mathbb Q\in\mathbb B_\varepsilon(\widehat{\mathbb P}_N)}\mathbb E^{\mathbb Q}[\ell(\xi)].\tag{10}Q∈Bε​(PN​)sup​EQ[ℓ(ξ)].(10)

The conjugate of f:E→R‾f:E\to\overline{\mathbb R}f:E→R is f∗(z)=sup⁡ξ⟨z,ξ⟩−f(ξ)f^*(z)=\sup_\xi\langle z,\xi\rangle-f(\xi)f∗(z)=supξ​⟨z,ξ⟩−f(ξ), the characteristic function χΞ\chi_\XiχΞ​ is 000 on Ξ\XiΞ and +∞+\infty+∞ off it, and the support function is σΞ(z)=sup⁡ξ∈Ξ⟨z,ξ⟩\sigma_\Xi(z)=\sup_{\xi\in\Xi}\langle z,\xi\rangleσΞ​(z)=supξ∈Ξ​⟨z,ξ⟩. Assumption 4.1 requires Ξ\XiΞ to be convex and closed, each −ℓk-\ell_k−ℓk​ to be proper, convex and lower semicontinuous, and no ℓk\ell_kℓk​ to be identically −∞-\infty−∞ on Ξ\XiΞ.

Formalization targets

Goal: Theorem 4.2 (convex reduction)

Under Assumption 4.1, for every ε≥0\varepsilon\ge0ε≥0, (10) equals

inf⁡λ,si,zik,νik λε+1N∑i=1Nsis.t.[−ℓk]∗(zik−νik)+σΞ(νik)−⟨zik,ξ^i⟩≤si,  ∥zik∥∗≤λ∀i,k.(11)\inf_{\lambda,s_i,z_{ik},\nu_{ik}}\ \lambda\varepsilon+\frac1N\sum_{i=1}^N s_i\quad\text{s.t.}\quad [-\ell_k]^*(z_{ik}-\nu_{ik})+\sigma_\Xi(\nu_{ik})-\langle z_{ik},\hat\xi_i\rangle\le s_i,\ \ \|z_{ik}\|_*\le\lambda\quad\forall i,k.\tag{11}λ,si​,zik​,νik​inf​ λε+N1​i=1∑N​si​s.t.[−ℓk​]∗(zik​−νik​)+σΞ​(νik​)−⟨zik​,ξ^​i​⟩≤si​,  ∥zik​∥∗​≤λ∀i,k.(11)

Milestones, in the order of the paper's proof

  1. (12a)–(12c). Without any convexity, (10) is at most the value of (12c): inf⁡{λε+1N∑isi: sup⁡ξ∈Ξ(ℓ(ξ)−λ∥ξ−ξ^i∥)≤si, λ≥0}\inf\{\lambda\varepsilon+\frac1N\sum_i s_i:\ \sup_{\xi\in\Xi}(\ell(\xi)-\lambda\|\xi-\hat\xi_i\|)\le s_i,\ \lambda\ge0\}inf{λε+N1​∑i​si​: supξ∈Ξ​(ℓ(ξ)−λ∥ξ−ξ^​i​∥)≤si​, λ≥0}.
  2. Corollary 4.3. Without Assumption 4.1, (10) is at most the value of (12f), the program with constraints [−ℓk+χΞ]∗(zik)−⟨zik,ξ^i⟩≤si[-\ell_k+\chi_\Xi]^*(z_{ik})-\langle z_{ik},\hat\xi_i\rangle\le s_i[−ℓk​+χΞ​]∗(zik​)−⟨zik​,ξ^​i​⟩≤si​ and ∥zik∥∗≤λ\|z_{ik}\|_*\le\lambda∥zik​∥∗​≤λ.
  3. (12a) is an equality for ε>0\varepsilon>0ε>0 under Assumption 4.1.
  4. The case ε=0\varepsilon=0ε=0. (10) is the sample average 1N∑iℓ(ξ^i)\frac1N\sum_i\ell(\hat\xi_i)N1​∑i​ℓ(ξ^​i​), the objective of (12b) converges to it as λ→∞\lambda\to\inftyλ→∞, and (12a) is again an equality.
  5. (12e) is an equality. For each constraint, sup⁡ξ∈Ξ(ℓk(ξ)−λ∥ξ−ξ^i∥)=min⁡∥z∥∗≤λsup⁡ξ∈Ξ(ℓk(ξ)−⟨z,ξ−ξ^i⟩)\sup_{\xi\in\Xi}(\ell_k(\xi)-\lambda\|\xi-\hat\xi_i\|)=\min_{\|z\|_*\le\lambda}\sup_{\xi\in\Xi}(\ell_k(\xi)-\langle z,\xi-\hat\xi_i\rangle)supξ∈Ξ​(ℓk​(ξ)−λ∥ξ−ξ^​i​∥)=min∥z∥∗​≤λ​supξ∈Ξ​(ℓk​(ξ)−⟨z,ξ−ξ^​i​⟩).
  6. (10) equals (12f) under Assumption 4.1.
  7. (12f) equals (11) under Assumption 4.1, as optimal values.

Significance

Theorem 4.2 is what makes Wasserstein distributionally robust optimization computable. Once the worst-case expectation is a convex program in (λ,s,z,ν)(\lambda,s,z,\nu)(λ,s,z,ν), minimizing over the decision xxx becomes one larger convex program. Section 5 of the paper derives linear and conic programs from it for piecewise affine losses, uncertainty quantification and two-stage problems. Theorem 4.4 of the same paper (mission II of this series) builds worst-case distributions from the same program. Corollary 4.3 gives a conservative convex bound for losses that are not piecewise concave.

The result is proved on paper; no machine-checked proof of it is known. A formal development needs a working theory of extended-valued conjugates, support functions and inf-convolution in a normed space, Kantorovich-type couplings of an empirical measure, and a minimax theorem over a compact dual ball. Each of these is reusable well beyond this paper.

Difficulty

The weak inequality, (10) ≤\le≤ (12f), is the elementary direction: integrate a pointwise bound against a near-optimal coupling. The difficulty lies in the two equalities. Equality in (12a) is strong duality for an infinite-dimensional moment problem whose loss may take the values ±∞\pm\infty±∞ and may be unbounded on an unbounded Ξ\XiΞ. A Slater point exists only for ε>0\varepsilon>0ε>0, so ε=0\varepsilon=0ε=0 needs a separate limit argument. The equality (12f) === (11) is subtle as well. The conjugate of −ℓk+χΞ-\ell_k+\chi_\Xi−ℓk​+χΞ​ is only the closure of the inf-convolution of [−ℓk]∗[-\ell_k]^*[−ℓk​]∗ and σΞ\sigma_\XiσΞ​, so the two constraint sets differ and only the optimal values agree. The paper's sentence "cl[f]≤0[f]\le 0[f]≤0 iff f≤0f\le0f≤0" is false pointwise and cannot be formalized as written.

Formalization scope

  • Space. EEE is a finite-dimensional real normed space with its Borel σ-algebra. The pairing ⟨z,ξ⟩\langle z,\xi\rangle⟨z,ξ⟩ is application of a continuous linear functional zzz, and ∥z∥∗\|z\|_*∥z∥∗​ is the operator norm. These choices keep the paper's arbitrary norm; §5 of the paper uses the 1- and ∞-norms.
  • Extended reals. Values are in EReal. Mathlib's EReal has ⊤+⊥=⊥\top+\bot=\bot⊤+⊥=⊥, whereas the paper has ∞−∞=∞\infty-\infty=\infty∞−∞=∞, so the expectation treats an infinite positive part separately, and [−ℓk+χΞ]∗(z)[-\ell_k+\chi_\Xi]^*(z)[−ℓk​+χΞ​]∗(z) is written as sup⁡ξ∈Ξ(⟨z,ξ⟩+ℓk(ξ))\sup_{\xi\in\Xi}(\langle z,\xi\rangle+\ell_k(\xi))supξ∈Ξ​(⟨z,ξ⟩+ℓk​(ξ)), with no addition at all. The one EReal sum, [−ℓk]∗+σΞ[-\ell_k]^*+\sigma_\Xi[−ℓk​]∗+σΞ​ in (11), never meets ⊤+⊥\top+\bot⊤+⊥ under Assumption 4.1.
  • Programs. Each optimal value is an infimum over a feasibility predicate with real epigraph variables, so an infeasible program has value +∞+\infty+∞.
  • Ball. The ball is the published WassersteinDRO.Duality.ambiguitySet with p=1p=1p=1 around empiricalDistribution. Its condition Q(Ξc)=0\mathbb Q(\Xi^{\mathrm c})=0Q(Ξc)=0 encodes Q∈M(Ξ)\mathbb Q\in\mathcal M(\Xi)Q∈M(Ξ). The finite first moment is automatic at finite distance from P^N\widehat{\mathbb P}_NPN​.
  • Standing assumptions. Every statement carries N≥1N\ge1N≥1, K≥1K\ge1K≥1, ξ^i∈Ξ\hat\xi_i\in\Xiξ^​i​∈Ξ (§2, p. 5) and measurability of each ℓk\ell_kℓk​ (p. 11). The radius condition is ε≥0\varepsilon\ge0ε≥0, or ε>0\varepsilon>0ε>0 in milestone 3.
  • Assumption 4.1. Convexity of −ℓk-\ell_k−ℓk​ is stated through its real epigraph, because ConvexOn cannot take an EReal codomain.
  • Not trivializable. The statements cannot be made vacuous by an empty ball, because the samples lie in Ξ\XiΞ. They cannot be trivialized by a junk expectation either: the expectation is not guarded by integrability, so a distribution with infinite expected loss makes (10) infinite, exactly as in the paper.

Welcome contributions are reusable lemmas on EReal-valued conjugates and support functions, the decomposition of a coupling with an empirical marginal into conditional distributions, the dual-norm identity max⁡∥z∥∗≤λ⟨z,v⟩=λ∥v∥\max_{\|z\|_*\le\lambda}\langle z,v\rangle=\lambda\|v\|max∥z∥∗​≤λ​⟨z,v⟩=λ∥v∥, and a Sion-type minimax theorem.

Selected references

  • P. Mohajerin Esfahani, D. Kuhn, Data-driven distributionally robust optimization using the Wasserstein metric: performance guarantees and tractable reformulations, arXiv:1505.05116v3, 2017; Math. Program. 171 (2018) 115–166. https://arxiv.org/abs/1505.05116v3
  • A. Shapiro, On duality theory of conic linear problems, in M. A. Goberna, M. A. López (eds.), Semi-Infinite Programming, Kluwer, 2001.
  • R. T. Rockafellar, R. J.-B. Wets, Variational Analysis, Springer, 2010 (Theorem 11.23(a), p. 493).
  • D. P. Bertsekas, Convex Optimization Theory, Athena Scientific, 2009 (Proposition 5.5.4).
  • G. Ch. Pflug, A. Pichler, Multistage Stochastic Optimization, Springer, 2014.
  • G. Ch. Pflug, D. Wozabal, Ambiguity in portfolio selection, Quantitative Finance 7 (2007) 435–442.
  • R. Gao, A. J. Kleywegt, Distributionally robust stochastic optimization with Wasserstein distance, arXiv:1604.02199, 2016. https://arxiv.org/abs/1604.02199
  • J. Blanchet, K. Murthy, Quantifying distributional model risk via optimal transport, arXiv:1604.01446, 2016. https://arxiv.org/abs/1604.01446
13 thms2 active usersReviewed
🏆Completed
Operations ResearchOptimizationProbability·Captain: mikedeng1

Quantifying Distributional Model Risk via Optimal Transport 3: A Worst-Case Transport Plan Exists in a Locally Compact Normed Space under Growth Conditions on c and fResearch Paper

Motivation

In distributionally robust modelling, a baseline probability model μ\muμ on a space SSS is distrusted, and the analyst reports the largest expected loss over every model within a budget of μ\muμ. Blanchet and Murthy (arXiv:1604.01446; Math. Oper. Res. 44(2), 2019, doi:10.1287/moor.2018.0936) measure the budget with an optimal transport cost and prove strong duality for the resulting worst-case expectation on an arbitrary Polish space, with a lower semicontinuous cost and an upper semicontinuous performance function. Duality computes the worst-case value. A risk manager also wants the worst-case model: a distribution that attains the value, whose structure explains which perturbation of μ\muμ is most harmful.

Such a model need not exist. Unlike the Kantorovich problem, where the set of couplings with two fixed marginals is weakly compact, the feasible set here fixes only one marginal and is not compact in general. Section 5 of the paper gives an example on R\mathbb RR where the supremum is not attained, then gives abstract conditions under which it is (Proposition 9), and growth conditions on a locally compact normed space that imply them (Corollary 1). Related existence results in Rd\mathbb R^dRd were obtained by Gao and Kleywegt (arXiv:1604.02199, 2016) and, for empirical baselines and norm costs, by Mohajerin Esfahani and Kuhn (arXiv:1505.05116, 2018).

Setting

Let SSS be a Polish space with its Borel σ\sigmaσ-algebra, μ\muμ a probability measure on SSS, δ>0\delta>0δ>0 a budget, c:S×S→[0,∞)c:S\times S\to[0,\infty)c:S×S→[0,∞) a cost and f:S→Rf:S\to\mathbb Rf:S→R a performance function. The standing assumptions are:

  • (A1) ccc is lower semicontinuous and c(x,y)=0c(x,y)=0c(x,y)=0 iff x=yx=yx=y;
  • (A2) fff is upper semicontinuous and μ\muμ-integrable.

The primal feasible set Φμ,δ\Phi_{\mu,\delta}Φμ,δ​ consists of the probability measures π\piπ on S×SS\times SS×S with first marginal μ\muμ and ∫c dπ≤δ\int c\,d\pi\le\delta∫cdπ≤δ (transport plans out of μ\muμ of cost at most δ\deltaδ). 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 dual feasible set Λc,f\Lambda_{c,f}Λc,f​ consists of pairs (λ,φ)(\lambda,\varphi)(λ,φ) with λ≥0\lambda\ge0λ≥0, φ:S→[−∞,∞]\varphi:S\to[-\infty,\infty]φ:S→[−∞,∞] universally measurable 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(λ,φ)J=\inf J(\lambda,\varphi)J=infJ(λ,φ). For λ≥0\lambda\ge0λ≥0 put φλ(x)=sup⁡y{f(y)−λc(x,y)}\varphi_\lambda(x)=\sup_y\{f(y)-\lambda c(x,y)\}φλ​(x)=supy​{f(y)−λc(x,y)}.

Section 5 assumes throughout that (λ∗,φλ∗)∈Λc,f(\lambda^*,\varphi_{\lambda^*})\in\Lambda_{c,f}(λ∗,φλ∗​)∈Λc,f​ is a dual optimal pair with I=J=J(λ∗,φλ∗)<∞I=J=J(\lambda^*,\varphi_{\lambda^*})<\inftyI=J=J(λ∗,φλ∗​)<∞. Write Φμ,δ′\Phi'_{\mu,\delta}Φμ,δ′​ for the plans in Φμ,δ\Phi_{\mu,\delta}Φμ,δ​ concentrated on {f(x)≤f(y)}\{f(x)\le f(y)\}{f(x)≤f(y)}.

(P-Compactness): for every ε>0\varepsilon>0ε>0 there are a compact KεK_\varepsilonKε​ with μ(Kε)>1−ε\mu(K_\varepsilon)>1-\varepsilonμ(Kε​)>1−ε and γ>0\gamma>0γ>0 such that {(x,y)∈Kε×S:f(y)−λ∗c(x,y)≥φλ∗(x)−γ}\{(x,y)\in K_\varepsilon\times S: f(y)-\lambda^*c(x,y)\ge\varphi_{\lambda^*}(x)-\gamma\}{(x,y)∈Kε​×S:f(y)−λ∗c(x,y)≥φλ∗​(x)−γ} has compact closure. (P-USC): lim sup⁡nI(πn)≤I(π∗)\limsup_n I(\pi_n)\le I(\pi^*)limsupn​I(πn​)≤I(π∗) whenever πn∈Φμ,δ′\pi_n\in\Phi'_{\mu,\delta}πn​∈Φμ,δ′​ converge weakly to π∗∈Φμ,δ\pi^*\in\Phi_{\mu,\delta}π∗∈Φμ,δ​.

On a normed space EEE: (A3) c(x,y)≥g(∥x−y∥)c(x,y)\ge g(\|x-y\|)c(x,y)≥g(∥x−y∥) for ∥x−y∥>C\|x-y\|>C∥x−y∥>C, with ggg nondecreasing and g(t)↑∞g(t)\uparrow\inftyg(t)↑∞. (A4) (f(y)−f(x))/(1+h(∥x−y∥))≤K(f(y)-f(x))/(1+h(\|x-y\|))\le K(f(y)−f(x))/(1+h(∥x−y∥))≤K for an increasing hhh with h(t)↑∞h(t)\uparrow\inftyh(t)↑∞; and for every ε>0\varepsilon>0ε>0, f(y)−f(x)≤ε(1+c(x,y))f(y)-f(x)\le\varepsilon(1+c(x,y))f(y)−f(x)≤ε(1+c(x,y)) once ∥x−y∥>Cε\|x-y\|>C_\varepsilon∥x−y∥>Cε​.

Formalization targets

Goal: Corollary 1 (p. 27)

Let EEE be a real normed space that is locally compact, and let c,fc,fc,f satisfy (A1)–(A4). Under the standing assumption, if λ∗>0\lambda^*>0λ∗>0 there is π∗∈Φμ,δ\pi^*\in\Phi_{\mu,\delta}π∗∈Φμ,δ​ with

I(π∗)=I=J=J(λ∗,φλ∗).I(\pi^*)=I=J=J(\lambda^*,\varphi_{\lambda^*}).I(π∗)=I=J=J(λ∗,φλ∗​).

Milestones

  1. Remark 4, (10)–(11) (p. 8): for π∈Φμ,δ\pi\in\Phi_{\mu,\delta}π∈Φμ,δ​, I−I(π)I-I(\pi)I−I(π) is the sum of two nonnegative gaps, ∫(φλ∗(x)−f(y)+λ∗c(x,y)) dπ\int(\varphi_{\lambda^*}(x)-f(y)+\lambda^*c(x,y))\,d\pi∫(φλ∗​(x)−f(y)+λ∗c(x,y))dπ and λ∗(δ−∫c dπ)\lambda^*(\delta-\int c\,d\pi)λ∗(δ−∫cdπ); so an ε\varepsilonε-optimal plan has both gaps at most ε\varepsilonε.
  2. Lemma 17 (p. 43): every plan in Φμ,δ\Phi_{\mu,\delta}Φμ,δ​ can be replaced by one in Φμ,δ′\Phi'_{\mu,\delta}Φμ,δ′​ with at least the same value.
  3. §5 display (p. 26): I=sup⁡{I(π):π∈Φμ,δ′}I=\sup\{I(\pi):\pi\in\Phi'_{\mu,\delta}\}I=sup{I(π):π∈Φμ,δ′​}.
  4. Proposition 9 (p. 26): on a Polish space, (P-Compactness) and (P-USC) give a primal optimizer.
  5. Corollary 1, Step 1 (p. 28): (A1)–(A4) and λ∗>0\lambda^*>0λ∗>0 give (P-Compactness).
  6. Corollary 1, Step 2 (pp. 28–29): (A1), (A2), (A4) and I<∞I<\inftyI<∞ give (P-USC):
lim sup⁡n∫f(y) dπn≤∫f(y) dπ∗.\limsup_n\int f(y)\,d\pi_n\le\int f(y)\,d\pi^*.nlimsup​∫f(y)dπn​≤∫f(y)dπ∗.

Significance

The result. An attained worst case turns duality into a structural statement. By Theorem 1(b) of the paper, an optimizer moves mass from xxx only to maximizers of f(y)−λ∗c(x,y)f(y)-\lambda^*c(x,y)f(y)−λ∗c(x,y) and, when λ∗>0\lambda^*>0λ∗>0, uses the full budget. When those maximizers are unique (Remark 8: ccc convex in yyy, fff concave) the worst-case model is unique and is the image of μ\muμ under a transport map. That map is what stress tests and robust estimators are built from. Without existence, these statements describe an object that may not be there.

Formalizing it. The paper's proofs are complete; nothing here is open. No machine-checked version of this result is known: the worst-case optimal transport literature, including the strong duality of this paper, is unformalized. The mission produces the transport objects of §2 in a form that keeps the paper's generality (Polish space, lower semicontinuous real cost, universally measurable dual variables, the ∞−∞\infty-\infty∞−∞ convention), a tightness argument for nearly optimal one-marginal plans, and an upper semicontinuity argument for unbounded upper semicontinuous integrands under uniform integrability.

Difficulty

The obvious argument takes a maximizing sequence and extracts a weak limit. Both steps fail without more structure. First, Φμ,δ\Phi_{\mu,\delta}Φμ,δ​ is not tight: only the first marginal is fixed, and a sequence may push mass to infinity at bounded cost. That is exactly what happens in Example 2 (p. 26), where λ∗=0\lambda^*=0λ∗=0 and the value 111 is approached but never reached. Tightness has to come from the dual: nearly optimal plans concentrate near maximizers of f(y)−λ∗c(x,y)f(y)-\lambda^*c(x,y)f(y)−λ∗c(x,y), and (A3)–(A4) with λ∗>0\lambda^*>0λ∗>0 confine those maximizers. Second, fff is only upper semicontinuous and unbounded, so weak convergence alone does not give lim sup⁡∫f dπn≤∫f dπ∗\limsup\int f\,d\pi_n\le\int f\,d\pi^*limsup∫fdπn​≤∫fdπ∗. A uniform integrability bound is needed, and it uses the restriction to Φμ,δ′\Phi'_{\mu,\delta}Φμ,δ′​ in an essential way. A third, Lean-specific difficulty is measure-theoretic: φλ∗\varphi_{\lambda^*}φλ∗​ is only universally measurable, and the gaps of Remark 4 are integrals against completions.

Formalization scope

All declarations sit in the namespace ModelRiskOT.PrimalOpt. Values of I(π)I(\pi)I(π), III, J(λ,φ)J(\lambda,\varphi)J(λ,φ), JJJ and φλ\varphi_\lambdaφλ​ are in EReal. I(π)I(\pi)I(π) is ∫f+(y) dπ−∫f−(y) dπ\int f^+(y)\,d\pi-\int f^-(y)\,d\pi∫f+(y)dπ−∫f−(y)dπ with lower integrals, and Mathlib's ⊤−⊤=⊥\top-\top=\bot⊤−⊤=⊥ realises the paper's reading of the supremum (footnote 2, p. 5). Integrals of nonnegative or extended-real functions are lower integrals (lintegral), never Bochner integrals. Universal measurability is the published BertsekasShreve.AnalyticSelection.IsUniversallyMeasurable. Weak convergence is the topology of ProbabilityMeasure (S × S). Measures on S×SS\times SS×S use the product σ\sigmaσ-algebra.

The following readings are fixed:

  • The standing assumption of §5 ((λ∗,φλ∗)∈Λc,f(\lambda^*,\varphi_{\lambda^*})\in\Lambda_{c,f}(λ∗,φλ∗​)∈Λc,f​, I=JI=JI=J, J=J(λ∗,φλ∗)J=J(\lambda^*,\varphi_{\lambda^*})J=J(λ∗,φλ∗​), finiteness) consists of hypotheses of Proposition 9 and Corollary 1. I=JI=JI=J is Theorem 1(a), the goal of the companion mission on strong duality, and is not assumed proved here.
  • In (P-Compactness) the constant γ\gammaγ may depend on ε\varepsilonε.
  • "Increasing" in (A4) is strict.
  • Remark 4's second conclusion in (11) is also stated as λ∗(δ−∫c dπ)≤ε\lambda^*(\delta-\int c\,d\pi)\le\varepsilonλ∗(δ−∫cdπ)≤ε, which covers λ∗=0\lambda^*=0λ∗=0.
  • Lemma 17's last inequality is stated for every plan, which is equivalent under the EReal convention.
  • Corollary 1's space is a real normed space with LocallyCompactSpace. It also carries PolishSpace, which is redundant, since a locally compact real normed space is finite-dimensional.

The goal cannot be satisfied by a junk value: III and JJJ are EReal suprema and infima, not real sSup, and the hypothesis λ∗>0\lambda^*>0λ∗>0 is kept because Example 2 shows the conclusion fails without it. A sorry-free check that c(x,y)=(x−y)2c(x,y)=(x-y)^2c(x,y)=(x−y)2, f(y)=yf(y)=yf(y)=y on R\mathbb RR satisfy (A1), (A3) and (A4) accompanies the drafts.

A complete development needs Prokhorov's theorem (in Mathlib), a Fatou lemma for weakly converging measures with a lower semicontinuous integrand, an upper semicontinuity theorem for uniformly integrable upper semicontinuous integrands, and the change of variables ∫φ(x) dπ=∫φ dμ\int\varphi(x)\,d\pi=\int\varphi\,d\mu∫φ(x)dπ=∫φdμ for universally measurable φ\varphiφ. The last three are reusable well beyond this mission. Proofs of any milestone, and these general lemmas as separate contributions, 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
  • A. M. Zapała, Unbounded mappings and weak convergence of measures, Statist. Probab. Lett. 78(6):698–706, 2008. doi:10.1016/j.spl.2007.09.033
  • C. Villani, Optimal Transport: Old and New, Springer, 2009. doi:10.1007/978-3-540-71050-9
18 thms2 active usersReviewed
🏆Completed
Operations ResearchOptimizationProbability·Captain: mikedeng1

Quantifying Distributional Model Risk via Optimal Transport 2: The Worst-Case Probability of a Closed Set A Equals the Baseline Probability of Its Inflation {x : c(x, A) ≤ 1/λ*}Research Paper

Motivation

A probability model μ\muμ for a risk quantity, such as the reserve process of an insurer or the path of a queue, is usually chosen for tractability or fitted to limited data, and the true law of the system is unknown. Distributional model risk asks how large a probability of interest could be if the true law were any model "close" to μ\muμ. When closeness is measured by an optimal transport cost rather than a likelihood ratio, the competing models may put mass where μ\muμ puts none, which is the situation for rare events such as ruin or buffer overflow: the event of interest often lies outside the support of the baseline.

Blanchet and Murthy (arXiv:1604.01446, Mathematics of Operations Research 44(2), 2019) prove strong duality for worst-case expectations over an optimal-transport ball on a general Polish space, with a lower semicontinuous cost. Their §2.4 specializes the duality to worst-case probabilities of a closed set and obtains a closed-form answer: the worst-case probability of AAA is the baseline probability of an inflated version of AAA. This mission formalizes that result, Theorem 3 of the paper, together with the numbered statements its proof uses.

Setting

Let SSS be a Polish space with its Borel σ\sigmaσ-algebra, P(S)P(S)P(S) its probability measures, and μ∈P(S)\mu \in P(S)μ∈P(S) the baseline. A cost c:S×S→R+c : S \times S \to \mathbb R_+c:S×S→R+​ satisfies Assumption (A1): it is nonnegative, lower semicontinuous, and c(x,y)=0c(x,y) = 0c(x,y)=0 if and only if x=yx = yx=y.

For μ1,μ2∈P(S)\mu_1, \mu_2 \in P(S)μ1​,μ2​∈P(S), a coupling of μ1\mu_1μ1​ and μ2\mu_2μ2​ is a probability measure π\piπ on S×SS \times SS×S with marginals μ1\mu_1μ1​ and μ2\mu_2μ2​; Π(μ1,μ2)\Pi(\mu_1,\mu_2)Π(μ1​,μ2​) is the set of couplings, and the optimal transport cost is

dc(μ1,μ2)=inf⁡{∫c dπ:π∈Π(μ1,μ2)}.d_c(\mu_1,\mu_2) = \inf\Big\{\int c\,d\pi : \pi \in \Pi(\mu_1,\mu_2)\Big\}.dc​(μ1​,μ2​)=inf{∫cdπ:π∈Π(μ1​,μ2​)}.

For a budget δ>0\delta > 0δ>0, the primal feasible set Φμ,δ\Phi_{\mu,\delta}Φμ,δ​ consists of the probability measures π\piπ on S×SS \times SS×S with first marginal μ\muμ and ∫c dπ≤δ\int c\,d\pi \le \delta∫cdπ≤δ.

Fix a nonempty closed set A⊆SA \subseteq SA⊆S and let c(x,A)=inf⁡{c(x,y):y∈A}c(x,A) = \inf\{c(x,y) : y \in A\}c(x,A)=inf{c(x,y):y∈A} be the cheapest cost of moving unit mass from xxx into AAA. The worst-case probability is

I=sup⁡{P(A):dc(μ,P)≤δ}.(12)I = \sup\{P(A) : d_c(\mu,P) \le \delta\}. \tag{12}I=sup{P(A):dc​(μ,P)≤δ}.(12)

Its dual is the univariate problem

inf⁡λ≥0{λδ+Eμ[(1−λc(X,A))+]},(13)\inf_{\lambda \ge 0}\Big\{\lambda\delta + E_\mu\big[(1 - \lambda c(X,A))^+\big]\Big\}, \tag{13}λ≥0inf​{λδ+Eμ​[(1−λc(X,A))+]},(13)

and for a minimizer λ∗∈[0,∞)\lambda^* \in [0,\infty)λ∗∈[0,∞) of (13) the paper defines

c‾=∫{c(x,A)<1/λ∗}c(x,A) dμ(x),c‾=∫{c(x,A)≤1/λ∗}c(x,A) dμ(x).(14)\underline c = \int_{\{c(x,A) < 1/\lambda^*\}} c(x,A)\,d\mu(x), \qquad \overline c = \int_{\{c(x,A) \le 1/\lambda^*\}} c(x,A)\,d\mu(x). \tag{14}c​=∫{c(x,A)<1/λ∗}​c(x,A)dμ(x),c=∫{c(x,A)≤1/λ∗}​c(x,A)dμ(x).(14)

Formalization targets

Goal: Theorem 3 (p. 10)

If λ∗∈[0,∞)\lambda^* \in [0,\infty)λ∗∈[0,∞) attains the infimum in (13) and c‾=c‾\underline c = \overline cc​=c, then

sup⁡{P(A):dc(μ,P)≤δ}=μ{x:c(x,A)≤1/λ∗}.(15)\sup\{P(A) : d_c(\mu,P) \le \delta\} = \mu\{x : c(x,A) \le 1/\lambda^*\}. \tag{15}sup{P(A):dc​(μ,P)≤δ}=μ{x:c(x,A)≤1/λ∗}.(15)

Milestones, in the order the proof uses them

  1. Coupling form (§2.2, p. 5, for f=1Af = 1_Af=1A​): I=sup⁡{π(S×A):π∈Φμ,δ}I = \sup\{\pi(S \times A) : \pi \in \Phi_{\mu,\delta}\}I=sup{π(S×A):π∈Φμ,δ​}.
  2. Indicator supremum (pp. 8–9): sup⁡y{1A(y)−λc(x,y)}=(1−λc(x,A))+\sup_{y}\{1_A(y) - \lambda c(x,y)\} = (1 - \lambda c(x,A))^+supy​{1A​(y)−λc(x,y)}=(1−λc(x,A))+ for λ≥0\lambda \ge 0λ≥0.
  3. (13) (p. 9): III equals the infimum in (13).
  4. Remark 4, (11) for f=1Af = 1_Af=1A​ (p. 8): an ε\varepsilonε-optimal plan πε\pi_\varepsilonπε​ satisfies ∫(φλ∗(x)−(1A(y)−λ∗c(x,y))) dπε≤ε\int(\varphi_{\lambda^*}(x) - (1_A(y) - \lambda^* c(x,y)))\,d\pi_\varepsilon \le \varepsilon∫(φλ∗​(x)−(1A​(y)−λ∗c(x,y)))dπε​≤ε and, for λ∗>0\lambda^* > 0λ∗>0, (δ−ε/λ∗)+≤∫c dπε≤δ(\delta - \varepsilon/\lambda^*)^+ \le \int c\,d\pi_\varepsilon \le \delta(δ−ε/λ∗)+≤∫cdπε​≤δ.
  5. Lemma 4 (p. 11): plans πn∈Φμ,δ\pi_n \in \Phi_{\mu,\delta}πn​∈Φμ,δ​, n>1n > 1n>1, with πn(Cn)≥1−1/n\pi_n(C_n) \ge 1 - 1/nπn​(Cn​)≥1−1/n, no cost outside the set CnC_nCn​ of §2.4.1, and πn(S×A)≥I−2/n\pi_n(S \times A) \ge I - 2/nπn​(S×A)≥I−2/n.
  6. Lemma 2 (p. 10): c‾≤δ≤c‾\underline c \le \delta \le \overline cc​≤δ≤c if λ∗>0\lambda^* > 0λ∗>0 attains (13); δ≥c‾=c‾\delta \ge \overline c = \underline cδ≥c=c​ if λ∗=0\lambda^* = 0λ∗=0 does.

Significance

Theorem 3 converts a supremum over an infinite-dimensional ball of probability measures into a single probability under the baseline: μ\muμ of the set of points that can reach AAA at cost at most 1/λ∗1/\lambda^*1/λ∗, where 1/λ∗1/\lambda^*1/λ∗ is determined by δ\deltaδ through the one-dimensional function u↦∫{c(x,A)≤u}c(x,A) dμu \mapsto \int_{\{c(x,A) \le u\}} c(x,A)\,d\muu↦∫{c(x,A)≤u}​c(x,A)dμ. For the cost c=dc = dc=d of a metric this is the baseline probability of the 1/λ∗1/\lambda^*1/λ∗-neighbourhood of AAA. The paper uses it to compute worst-case ruin probabilities for the Cramér–Lundberg model around a Brownian approximation (§3, §6.1), where SSS is a path space; the result applies there because nothing in it uses local compactness of SSS.

The result is proved in the paper. As far as the platform's corpus shows, neither it nor the strong duality behind it has been formalized. A formal development produces, beyond Theorem 3: a reusable definition of optimal transport costs with lower semicontinuous costs on Polish spaces; the coupling reformulation of the transport ball, which rests on the existence of optimal transport plans (Villani, Optimal Transport, Theorem 4.1), not in Mathlib; and an ε\varepsilonε-optimal-plan argument that avoids assuming a primal optimizer exists.

Difficulty

The heuristic derivation on pp. 9–10 constructs an optimal transport plan that moves each xxx with c(x,A)≤1/λ∗c(x,A) \le 1/\lambda^*c(x,A)≤1/λ∗ to a nearest point of AAA and leaves the others in place. It needs a nearest point to exist and to be selectable measurably, which fails for general closed AAA in a non-locally-compact space, and it needs a primal optimizer, which need not exist. Theorem 3 assumes neither, so the construction is not a proof. A second point is the boundary level c(x,A)=1/λ∗c(x,A) = 1/\lambda^*c(x,A)=1/λ∗: when μ\muμ charges it, as for atomic baselines, the identity (15) can fail (for μ\muμ a point mass at distance 111 from AAA and δ<1\delta < 1δ<1, the worst case is δ\deltaδ, not 111), and the hypothesis c‾=c‾\underline c = \overline cc​=c is exactly what excludes this. Measurability is a second obstacle: x↦c(x,A)x \mapsto c(x,A)x↦c(x,A) is an infimum of a lower semicontinuous function over AAA and in general only universally measurable, so integrals of it are taken against the completion of μ\muμ.

Formalization scope

All objects live in the namespace ModelRiskOT.WorstProb. SSS carries [TopologicalSpace S] [PolishSpace S] [MeasurableSpace S] [BorelSpace S]; μ\muμ is a Measure S with IsProbabilityMeasure; the cost is a real-valued c : S → S → ℝ with (A1) bundled as a structure (nonnegativity, lower semicontinuity on S×SS \times SS×S, and c(x,y)=0  ⟺  x=yc(x,y) = 0 \iff x = yc(x,y)=0⟺x=y). Committed conventions:

  • Values in [0,∞][0,\infty][0,∞]. dcd_cdc​, III, the objective of (13), c‾\underline cc​ and c‾\overline cc are ℝ≥0∞; integrals are lower Lebesgue integrals and the positive part (⋅)+(\cdot)^+(⋅)+ is ENNReal.ofReal. For the universally measurable functions and sets that occur, lower integrals and outer measures agree with the completion of μ\muμ, which is the paper's reading (p. 4). No Bochner integral is used.
  • The threshold 1/λ∗1/\lambda^*1/λ∗ is written in multiplied form: c(x,A)≤1/λ∗c(x,A) \le 1/\lambda^*c(x,A)≤1/λ∗ is λ∗c(x,A)≤1\lambda^* c(x,A) \le 1λ∗c(x,A)≤1, and likewise for the strict inequality and for the sets CnC_nCn​. For λ∗>0\lambda^* > 0λ∗>0 this is the printed condition; at λ∗=0\lambda^* = 0λ∗=0 it is the whole space, the paper's convention 1/0=∞1/0 = \infty1/0=∞.
  • dcd_cdc​ fixes both marginals; Φμ,δ\Phi_{\mu,\delta}Φμ,δ​ fixes only the first.
  • c(x,A)c(x,A)c(x,A) is a real infimum over the subtype AAA; every statement assumes AAA nonempty.
  • "λ∗\lambda^*λ∗ attains the infimum in (13)" is λ∗≥0\lambda^* \ge 0λ∗≥0 and g(λ∗)≤g(λ)g(\lambda^*) \le g(\lambda)g(λ∗)≤g(λ) for all λ≥0\lambda \ge 0λ≥0.
  • Inequalities X≥I−tX \ge I - tX≥I−t are written I≤X+tI \le X + tI≤X+t in [0,∞][0,\infty][0,∞]; sequences "n>1n > 1n>1" are indexed by n∈Nn \in \mathbb Nn∈N with 1<n1 < n1<n.

A formalization in which the transport ball fixes only the first marginal would contain every probability measure and give I=1I = 1I=1 for every nonempty AAA; the definitions here fix both marginals of the couplings in dcd_cdc​, and the hypothesis c‾=c‾\underline c = \overline cc​=c is kept as stated rather than replaced by continuity of u↦∫{c(x,A)≤u}c(x,A) dμu \mapsto \int_{\{c(x,A) \le u\}} c(x,A)\,d\muu↦∫{c(x,A)≤u}​c(x,A)dμ.

A complete development needs the existence of optimal couplings for lower semicontinuous costs (tightness and Prokhorov's theorem, available in Mathlib), the strong duality of the paper's Theorem 1 specialized to indicators (milestone 3; a separate mission in this series formalizes Theorem 1 in general), and universal measurability of c(⋅,A)c(\cdot,A)c(⋅,A) through projections of Borel sets. The transport-cost definitions and the coupling reformulation are reusable beyond this mission. Proofs of any milestone are welcome, as are proofs that derive (13) from the general strong duality once that is published.

Selected references

  • J. Blanchet, K. Murthy, Quantifying Distributional Model Risk via Optimal Transport, arXiv:1604.01446v2, 2017; Mathematics of Operations Research 44(2):565–600, 2019. https://arxiv.org/abs/1604.01446, https://doi.org/10.1287/moor.2018.0936
  • C. Villani, Optimal Transport: Old and New, Grundlehren der mathematischen Wissenschaften 338, Springer, 2009. https://doi.org/10.1007/978-3-540-71050-9
  • R. Gao, A. Kleywegt, Distributionally Robust Stochastic Optimization with Wasserstein Distance, arXiv:1604.02199, 2016. https://arxiv.org/abs/1604.02199
  • P. Mohajerin Esfahani, D. Kuhn, Data-driven distributionally robust optimization using the Wasserstein metric, Mathematical Programming 171:115–166, 2018. https://doi.org/10.1007/s10107-017-1172-1
  • D. P. Bertsekas, S. E. Shreve, Stochastic Optimal Control: The Discrete-Time Case, Academic Press, 1978 (universal measurability, Ch. 7).
11 thms2 active usersReviewed
🏆Completed
Machine LearningOptimizationStatistics·Captain: mikedeng1

Robust Wasserstein Profile Inference and Applications to Machine Learning 2: ℓp-Regularized Logistic Regression and the Hinge-Loss SVM Are Wasserstein DRO under a Label-Preserving Transport CostResearch Paper

Motivation

Regularized logistic regression and the support vector machine (SVM) are two of the most widely used linear classifiers. Both are usually introduced as empirical risk minimization plus a norm penalty ∥β∥p\|\beta\|_p∥β∥p​ whose size is tuned by cross-validation, with the penalty justified heuristically as a guard against overfitting. Distributionally robust optimization (DRO) offers a different reading: instead of minimizing the average loss on the training sample, minimize the worst average loss over all distributions close to the empirical one. Blanchet, Kang and Murthy (arXiv:1610.05627v4; J. Appl. Probab. 56(3), 2019) show that, for a suitable notion of closeness based on optimal transport, the robust problem and the penalized problem coincide exactly. The penalty is then the price of robustness against perturbations of the predictors, and the regularization parameter becomes the radius of an uncertainty set, which the same paper later chooses by a statistical criterion (the robust Wasserstein profile).

Related earlier work: Shafieezadeh-Abadeh, Mohajerin Esfahani and Kuhn (NIPS 2015) studied Wasserstein-robust logistic regression with a metric that charges a finite price κ\kappaκ for flipping a label, and obtained regularized logistic regression only in the limit κ→∞\kappa \to \inftyκ→∞. The result formalized here is the exact statement at κ=∞\kappa = \inftyκ=∞, together with the analogous statement for the hinge loss.

Setting

Training data are 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 labels Yi∈{−1,+1}Y_i \in \{-1,+1\}Yi​∈{−1,+1}, n≥1n \ge 1n≥1. Their 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​)​, a probability measure on Z=Rd×RZ = \mathbb R^d \times \mathbb RZ=Rd×R.

For a cost c:Z×Z→[0,∞]c : Z \times Z \to [0,\infty]c:Z×Z→[0,∞], the optimal transport cost between probability measures PPP and QQQ on ZZZ is

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

The cost used here is the label-preserving cost: for q∈[1,∞]q \in [1,\infty]q∈[1,∞],

Nq((x,y),(u,v))=∥x−u∥q if y=v,+∞ otherwise.N_q\big((x,y),(u,v)\big) = \|x - u\|_q \text{ if } y = v, \qquad +\infty \text{ otherwise}.Nq​((x,y),(u,v))=∥x−u∥q​ if y=v,+∞ otherwise.

Every distribution PPP with DNq(P,Pn)<∞D_{N_q}(P,P_n) < \inftyDNq​​(P,Pn​)<∞ has the same label distribution as PnP_nPn​; only the predictors are perturbed. The exponent ppp is the conjugate of qqq, 1/p+1/q=11/p + 1/q = 11/p+1/q=1.

The losses are the log-exponential loss log⁡(1+e−yβTx)\log(1 + e^{-y\beta^T x})log(1+e−yβTx) and the hinge loss (1−yβTx)+(1 - y\beta^T x)^+(1−yβTx)+, for a coefficient vector β∈Rd\beta \in \mathbb R^dβ∈Rd. The worst-case expected loss at radius δ≥0\delta \ge 0δ≥0 is sup⁡{EP[l]:DNq(P,Pn)≤δ}\sup\{\mathbb E_P[l] : D_{N_q}(P,P_n) \le \delta\}sup{EP​[l]:DNq​​(P,Pn​)≤δ}, the supremum over probability measures PPP on ZZZ.

Formalization targets

Goal: Theorem 2 (p. 11)

For every δ≥0\delta \ge 0δ≥0 and every β∈Rd\beta \in \mathbb R^dβ∈Rd,

sup⁡P: DNq(P,Pn)≤δEP[log⁡(1+e−YβTX)]=1n∑i=1nlog⁡(1+e−YiβTXi)+δ∥β∥p,\sup_{P:\ D_{N_q}(P,P_n)\le\delta} \mathbb E_P\big[\log(1 + e^{-Y\beta^T X})\big] = \frac1n\sum_{i=1}^n \log(1 + e^{-Y_i\beta^T X_i}) + \delta\|\beta\|_p,P: DNq​​(P,Pn​)≤δsup​EP​[log(1+e−YβTX)]=n1​i=1∑n​log(1+e−Yi​βTXi​)+δ∥β∥p​, sup⁡P: DNq(P,Pn)≤δEP[(1−YβTX)+]=1n∑i=1n(1−YiβTXi)++δ∥β∥p,\sup_{P:\ D_{N_q}(P,P_n)\le\delta} \mathbb E_P\big[(1 - Y\beta^T X)^+\big] = \frac1n\sum_{i=1}^n (1 - Y_i\beta^T X_i)^+ + \delta\|\beta\|_p,P: DNq​​(P,Pn​)≤δsup​EP​[(1−YβTX)+]=n1​i=1∑n​(1−Yi​βTXi​)++δ∥β∥p​,

and consequently the two identities obtained by taking inf⁡β\inf_{\beta}infβ​ on both sides, which is how the paper prints the theorem.

Milestones

  1. Proposition 1 (p. 10): strong duality, sup⁡P:Dc(P,Pn)≤δEP[l]=min⁡γ≥0{γδ+1n∑iφγ(Xi,Yi)}\sup_{P: D_c(P,P_n)\le\delta}\mathbb E_P[l] = \min_{\gamma\ge0}\{\gamma\delta + \frac1n\sum_i\varphi_\gamma(X_i,Y_i)\}supP:Dc​(P,Pn​)≤δ​EP​[l]=minγ≥0​{γδ+n1​∑i​φγ​(Xi​,Yi​)} with φγ(z0)=sup⁡z{l(z)−γc(z,z0)}\varphi_\gamma(z_0) = \sup_z\{l(z) - \gamma c(z,z_0)\}φγ​(z0​)=supz​{l(z)−γc(z,z0​)}, for a lower semicontinuous cost vanishing on the diagonal, an upper semicontinuous loss and δ>0\delta > 0δ>0.
  2. Logistic inner supremum (proof of Theorem 2, p. 30): sup⁡x{log⁡(1+e−y0βTx)−λ∥x−x0∥q}\sup_x\{\log(1+e^{-y_0\beta^T x}) - \lambda\|x - x_0\|_q\}supx​{log(1+e−y0​βTx)−λ∥x−x0​∥q​} equals the loss at x0x_0x0​ if ∥β∥p≤λ\|\beta\|_p \le \lambda∥β∥p​≤λ and +∞+\infty+∞ otherwise.
  3. Logistic outer minimisation (p. 30): the infimum over λ≥0\lambda \ge 0λ≥0 of δλ\delta\lambdaδλ plus the average of these suprema equals the regularized empirical loss.
  4. Hinge inner supremum (pp. 30–31) and 5. hinge outer minimisation (p. 31): the same two steps for the hinge loss.

Significance

The theorem identifies two standard estimators as exact solutions of a robust decision problem. Consequences: the penalty δ∥β∥p\delta\|\beta\|_pδ∥β∥p​ has a quantitative meaning (the adversary's transport budget), the regularization parameter can be chosen by the paper's robust Wasserstein profile instead of cross-validation, and the norm of the penalty is tied to the geometry of the perturbations (perturbations measured in ℓ∞\ell_\inftyℓ∞​ give an ℓ1\ell_1ℓ1​ penalty). The same identity is the input of the paper's coverage bound (Proposition 6) for ρ=1\rho = 1ρ=1.

The result is proved on paper; no machine-checked version is known. The formalization adds a precise statement of the objects involved (couplings with both marginals fixed, an infinite cost across labels, expectations of nonnegative losses with values in [0,∞][0,\infty][0,∞]), a checked version of the duality step specialised to this cost, and the treatment of boundary cases (δ=0\delta = 0δ=0, β=0\beta = 0β=0, q∈{1,∞}q \in \{1,\infty\}q∈{1,∞}) that the paper does not discuss.

Difficulty

The identities are short once Proposition 1 is available, so the weight of the mission lies in two places. First, Proposition 1 itself is a strong duality theorem for optimal transport over all probability measures on Rd+1\mathbb R^{d+1}Rd+1, with a cost that takes the value +∞+\infty+∞ and an unbounded loss, and with attainment of the dual minimum; it is quoted from Blanchet and Murthy (Math. Oper. Res. 2019) and not proved in this paper. The weak-duality inequality is routine; the reverse inequality requires constructing near-optimal distributions from the dual, which needs measurable selection of near-maximizers and does not follow from finite-dimensional convex duality. Second, the inner suprema require an exact Hölder-attainment argument for the pair of conjugate norms ℓp\ell_pℓp​ and ℓq\ell_qℓq​, including q=1q = 1q=1 and q=∞q = \inftyq=∞, and for the hinge loss a minimax exchange over α∈[0,1]\alpha \in [0,1]α∈[0,1]. Bypassing duality by a direct construction of the worst distribution is possible for the upper value but not obviously for the lower bound at the boundary λ=∥β∥p\lambda = \|\beta\|_pλ=∥β∥p​.

Formalization scope

  • Predictors are Fin d → ℝ, a data point is (Fin d → ℝ) × ℝ with the product Borel σ-algebra, and samples are indexed by Fin n with 0 < n. Labels are real numbers with the hypothesis Yi∈{−1,+1}Y_i \in \{-1,+1\}Yi​∈{−1,+1}, which Theorem 2 inherits from Example 2; the cost NqN_qNq​ is defined on all of Rd×R\mathbb R^d\times\mathbb RRd×R.
  • The ℓq\ell_qℓq​ norm is the norm of PiLp q, with q p : ℝ≥0∞ and p.HolderConjugate q; q=1q = 1q=1 and q=∞q = \inftyq=∞ are included, and no further restriction on qqq is imposed.
  • The transport cost is an infimum in [0,∞][0,\infty][0,∞] over probability measures on Z×ZZ\times ZZ×Z with both marginals fixed. Expectations are lower Lebesgue integrals of the nonnegative losses, and the worst case is a supremum in [0,∞][0,\infty][0,∞] over probability measures. The empirical distribution is the published platform definition WassersteinDRO.Regularization.empiricalDistribution.
  • Readings. The paper prints the SVM identity without inf⁡β\inf_\betainfβ​ on the right; the goal states the per-β\betaβ identities (what the proof establishes) and the identities of infima with inf⁡β\inf_\betainfβ​ on both sides. The proof's displays write the transport norm as ∥⋅∥p\|\cdot\|_p∥⋅∥p​ and the penalty as ∥β∥q\|\beta\|_q∥β∥q​, the reverse of the theorem; milestones use the theorem's convention. The logistic chain's printed indicators 1{λ>∥β∥}\mathbf 1_{\{\lambda>\|\beta\|\}}1{λ>∥β∥}​, ∞1{λ≤∥β∥}\infty\mathbf 1_{\{\lambda\le\|\beta\|\}}∞1{λ≤∥β∥}​ should read ≥\ge≥ and <<<; the stated end-to-end identity is unaffected. Proposition 1 is stated with a fixed nonnegative loss and δ>0\delta > 0δ>0.
  • A trivializing formalization is ruled out: a cost infimum over sub-probability couplings or with one marginal free, or a Bochner expectation that vanishes on non-integrable laws, would make the worst case +∞+\infty+∞ or 000; the definitions here fix both marginals, use probability measures only and integrate in [0,∞][0,\infty][0,∞]. At δ=0\delta = 0δ=0 the ball is {Pn}\{P_n\}{Pn​} and both sides reduce to the empirical loss.
  • Infrastructure needed: optimal-transport duality with extended-valued lower semicontinuous costs (reusable well beyond this mission), Hölder equality cases for PiLp, and calculus for the logistic function. Contributions to any of these are welcome, as are proofs of the inner suprema, which are independent of Proposition 1.

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
  • S. Shafieezadeh-Abadeh, P. Mohajerin Esfahani, D. Kuhn, Distributionally Robust Logistic Regression, NIPS 2015. https://arxiv.org/abs/1509.09259
12 thms2 active usersReviewed
🏆Completed
Linear OptimizationMachine LearningOperations Research+2·Captain: mikedeng1

Distributionally Robust Logistic Regression II: Worst- and Best-Case Misclassification Risks over a Wasserstein Ball Are Linear ProgramsResearch Paper

Motivation

A logistic regression model is fitted on finitely many samples, and the quantity a practitioner cares about is the misclassification risk of the fitted classifier on new data. Its empirical counterpart, the training error, is biased downwards, and classical generalization bounds give it an additive margin that depends on a complexity measure of the model class rather than on the data at hand.

Shafieezadeh-Abadeh, Mohajerin Esfahani and Kuhn (NIPS 2015) take a distributionally robust route. They surround the empirical distribution of the training data by a ball of distributions in the Wasserstein metric and, for a given weight vector, compute the largest and the smallest misclassification probability over that ball. Their Theorem 3 shows that both extremes are optimal values of explicit linear programs. Combined with a measure-concentration result for the empirical distribution in the Wasserstein metric (Fournier and Guillin, PTRF 2015), the two values bracket the true risk with a prescribed confidence. The same Wasserstein-ball construction underlies the data-driven optimization framework of Mohajerin Esfahani and Kuhn (Math. Program. 2018).

Setting

Let VVV be the feature space Rn\mathbb R^nRn with an arbitrary norm ∥⋅∥\|\cdot\|∥⋅∥, and let labels take the values y∈{−1,+1}y\in\{-1,+1\}y∈{−1,+1}. The feature-label space is Ξ=V×{−1,+1}\Xi = V\times\{-1,+1\}Ξ=V×{−1,+1} with points ξ=(x,y)\xi=(x,y)ξ=(x,y). A weight vector β\betaβ acts on features by x↦⟨β,x⟩x\mapsto\langle\beta,x\ranglex↦⟨β,x⟩; its dual norm is ∥β∥∗=sup⁡∥x∥≤1⟨β,x⟩\|\beta\|_* = \sup_{\|x\|\le1}\langle\beta,x\rangle∥β∥∗​=sup∥x∥≤1​⟨β,x⟩.

Metric (Definition 2). For a weight κ>0\kappa>0κ>0,

d((x,y),(x′,y′))=∥x−x′∥+κ ∣y−y′∣/2.d\big((x,y),(x',y')\big) = \|x-x'\| + \kappa\,|y-y'|/2 .d((x,y),(x′,y′))=∥x−x′∥+κ∣y−y′∣/2.

Changing a label costs κ\kappaκ; moving a feature costs its norm distance.

Wasserstein distance (Definition 1). For distributions Q,P\mathbb Q,\mathbb PQ,P on Ξ\XiΞ, W(Q,P)W(\mathbb Q,\mathbb P)W(Q,P) is the infimum of ∫d(ξ,ξ′) Π(dξ,dξ′)\int d(\xi,\xi')\,\Pi(d\xi,d\xi')∫d(ξ,ξ′)Π(dξ,dξ′) over all couplings Π\PiΠ of Q\mathbb QQ and P\mathbb PP. The Wasserstein ball of radius ε≥0\varepsilon\ge0ε≥0 is Bε(P)={Q:W(Q,P)≤ε}\mathbb B_\varepsilon(\mathbb P) = \{\mathbb Q : W(\mathbb Q,\mathbb P)\le\varepsilon\}Bε​(P)={Q:W(Q,P)≤ε}.

Data. Training samples (x^i,y^i)(\hat x_i,\hat y_i)(x^i​,y^​i​), i=1,…,Ni=1,\dots,Ni=1,…,N, define the empirical distribution 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​)​.

Classifier and risk. Logistic regression models Prob⁡(y∣x)=[1+exp⁡(−y⟨β,x⟩)]−1\operatorname{Prob}(y\mid x) = [1+\exp(-y\langle\beta,x\rangle)]^{-1}Prob(y∣x)=[1+exp(−y⟨β,x⟩)]−1 (eq. (1)). The classifier is fβ(x)=+1f_\beta(x)=+1fβ​(x)=+1 if Prob⁡(+1∣x)>0.5\operatorname{Prob}(+1\mid x)>0.5Prob(+1∣x)>0.5 and −1-1−1 otherwise, and its risk under the data-generating distribution P\mathbb PP is R(β)=P[y≠fβ(x)]\mathfrak R(\beta) = \mathbb P[y\ne f_\beta(x)]R(β)=P[y=fβ​(x)].

Worst- and best-case risks.

Rmax⁡(β)=sup⁡Q∈Bε(P^N)EQ[1{y⟨β,x⟩≤0}],Rmin⁡(β)=inf⁡Q∈Bε(P^N)EQ[1{y⟨β,x⟩<0}].\mathfrak R_{\max}(\beta) = \sup_{\mathbb Q\in\mathbb B_\varepsilon(\hat{\mathbb P}_N)}\mathbb E^{\mathbb Q}\big[\mathbb 1_{\{y\langle\beta,x\rangle\le0\}}\big],\qquad \mathfrak R_{\min}(\beta) = \inf_{\mathbb Q\in\mathbb B_\varepsilon(\hat{\mathbb P}_N)}\mathbb E^{\mathbb Q}\big[\mathbb 1_{\{y\langle\beta,x\rangle<0\}}\big].Rmax​(β)=Q∈Bε​(P^N​)sup​EQ[1{y⟨β,x⟩≤0}​],Rmin​(β)=Q∈Bε​(P^N​)inf​EQ[1{y⟨β,x⟩<0}​].

The worst case counts a nonpositive margin, the best case a strictly negative one.

The linear programs. For data (x^i,y^i)(\hat x_i,\hat y_i)(x^i​,y^​i​), a weight vector β^\hat\betaβ^​ and variables λ∈R\lambda\in\mathbb Rλ∈R, s,r,t∈RNs,r,t\in\mathbb R^Ns,r,t∈RN, program (10a) minimizes λε+1N∑isi\lambda\varepsilon + \frac1N\sum_i s_iλε+N1​∑i​si​ subject to, for every iii,

1−riy^i⟨β^,x^i⟩≤si,1+tiy^i⟨β^,x^i⟩−λκ≤si,ri∥β^∥∗≤λ,ti∥β^∥∗≤λ,ri,ti,si≥0.1 - r_i\hat y_i\langle\hat\beta,\hat x_i\rangle\le s_i,\quad 1 + t_i\hat y_i\langle\hat\beta,\hat x_i\rangle - \lambda\kappa\le s_i,\quad r_i\|\hat\beta\|_*\le\lambda,\quad t_i\|\hat\beta\|_*\le\lambda,\quad r_i,t_i,s_i\ge0 .1−ri​y^​i​⟨β^​,x^i​⟩≤si​,1+ti​y^​i​⟨β^​,x^i​⟩−λκ≤si​,ri​∥β^​∥∗​≤λ,ti​∥β^​∥∗​≤λ,ri​,ti​,si​≥0.

Program (10b) has the same objective and bounds, with the signs of the two margin terms exchanged.

Formalization targets

Goal: Theorem 3 (i)–(ii)

For every κ>0\kappa>0κ>0, ε≥0\varepsilon\ge0ε≥0, N≥1N\ge1N≥1, all samples and every weight vector β^\hat\betaβ^​, both programs attain their minima vvv and www, and

Rmax⁡(β^)=v,Rmin⁡(β^)=1−w.\mathfrak R_{\max}(\hat\beta) = v,\qquad \mathfrak R_{\min}(\hat\beta) = 1-w .Rmax​(β^​)=v,Rmin​(β^​)=1−w.

The identities hold for each fixed β^\hat\betaβ^​, so they apply to any β^\hat\betaβ^​ computed from the data.

Milestone: Theorem 3(i) alone

Rmax⁡(β^)\mathfrak R_{\max}(\hat\beta)Rmax​(β^​) equals the minimum of (10a).

Milestones: the confidence clauses

If the training samples are i.i.d. from P\mathbb PP and the radius is such that PN{P∈Bε(P^N)}≥1−η\mathbb P^N\{\mathbb P\in\mathbb B_\varepsilon(\hat{\mathbb P}_N)\}\ge1-\etaPN{P∈Bε​(P^N​)}≥1−η, then for any sample-dependent β^\hat\betaβ^​

PN{R(β^)≤Rmax⁡(β^)}≥1−η,PN{Rmin⁡(β^)≤R(β^)}≥1−η,\mathbb P^N\{\mathfrak R(\hat\beta)\le\mathfrak R_{\max}(\hat\beta)\}\ge1-\eta,\qquad \mathbb P^N\{\mathfrak R_{\min}(\hat\beta)\le\mathfrak R(\hat\beta)\}\ge1-\eta,PN{R(β^​)≤Rmax​(β^​)}≥1−η,PN{Rmin​(β^​)≤R(β^​)}≥1−η, PN{Rmin⁡(β^)≤R(β^)≤Rmax⁡(β^)}≥1−2η.\mathbb P^N\{\mathfrak R_{\min}(\hat\beta)\le\mathfrak R(\hat\beta)\le\mathfrak R_{\max}(\hat\beta)\}\ge1-2\eta .PN{Rmin​(β^​)≤R(β^​)≤Rmax​(β^​)}≥1−2η.

Significance

The result. Theorem 3 replaces an optimization over an infinite-dimensional set of distributions by a linear program with 3N+13N+13N+1 variables and 4N4N4N constraints plus sign constraints. That makes the worst- and best-case misclassification probabilities computable at the scale of the training set, for any norm on the features whose dual norm can be evaluated. With the confidence clauses, the two values are data-driven upper and lower confidence bounds on the out-of-sample risk of the classifier actually deployed, including one fitted on the same data.

Formalizing it. The paper states Theorem 3 without proof in the main text; the argument is deferred to a technical appendix. No part of it is machine-checked. A formal proof needs the evaluation of a worst-case probability of a closed set over a type-1 Wasserstein ball around a discrete distribution, and the analogous best-case probability of an open set. Both are reusable in any Wasserstein-robust treatment of chance constraints or classification error.

Difficulty

The objective 1{y⟨β,x⟩≤0}\mathbf 1_{\{y\langle\beta,x\rangle\le0\}}1{y⟨β,x⟩≤0}​ is neither continuous nor concave, so the duality theorems for Wasserstein balls stated for continuous or Lipschitz losses do not apply directly. Upper semicontinuity of the indicator of a closed set is what matters, and the strict inequality in Rmin⁡\mathfrak R_{\min}Rmin​ has to be handled as the complement of a closed set. The transport cost couples a norm on the features with a discrete label-flip cost, so a sample can reach the misclassification region either by moving its feature to the hyperplane ⟨β^,x⟩=0\langle\hat\beta,x\rangle=0⟨β^​,x⟩=0 or by flipping its label, and the two options interact through the shared budget ε\varepsilonε. Distances to the hyperplane are measured in the given norm and produce the dual norm ∥β^∥∗\|\hat\beta\|_*∥β^​∥∗​. The degenerate weight β^=0\hat\beta=0β^​=0 (every point on the hyperplane) must come out correctly without any division by ∥β^∥∗\|\hat\beta\|_*∥β^​∥∗​.

Formalization scope

The feature space is a finite-dimensional real normed space V with an arbitrary norm, standing for (Rn,∥⋅∥)(\mathbb R^n,\|\cdot\|)(Rn,∥⋅∥); the Euclidean norm is not assumed. A weight vector is a continuous linear functional V →L[ℝ] ℝ, and ∥β^∥∗\|\hat\beta\|_*∥β^​∥∗​ is its operator norm, which is exactly the dual norm. Labels are Bool with an explicit embedding true↦+1\text{true}\mapsto+1true↦+1, false↦−1\text{false}\mapsto-1false↦−1; the metric of Definition 2 is written literally. The Wasserstein distance is ℝ≥0∞-valued, probabilities and expectations of indicators are measure values in [0,∞][0,\infty][0,∞], and suprema and infima range exactly over the probability measures in the ball. "min" in (10a)/(10b) is formalized as attainment (IsLeast) of the objective over the feasible set. Samples are indexed by Fin N with N≥1N\ge1N≥1.

The following choices differ from a literal reading of the page:

  • The paper says the risk "can be expressed as" EP[1{y⟨β,x⟩≤0}]\mathbb E^{\mathbb P}[\mathbb 1_{\{y\langle\beta,x\rangle\le0\}}]EP[1{y⟨β,x⟩≤0}​]. This fails on the hyperplane ⟨β,x⟩=0\langle\beta,x\rangle=0⟨β,x⟩=0, where fβ(x)=−1f_\beta(x)=-1fβ​(x)=−1 is correct for y=−1y=-1y=−1. The mission defines R(β)=P[y≠fβ(x)]\mathfrak R(\beta)=\mathbb P[y\ne f_\beta(x)]R(β)=P[y=fβ​(x)] from (1) and includes the true statement EP[1{y⟨β,x⟩<0}]≤R(β)≤EP[1{y⟨β,x⟩≤0}]\mathbb E^{\mathbb P}[\mathbb 1_{\{y\langle\beta,x\rangle<0\}}]\le\mathfrak R(\beta)\le\mathbb E^{\mathbb P}[\mathbb 1_{\{y\langle\beta,x\rangle\le0\}}]EP[1{y⟨β,x⟩<0}​]≤R(β)≤EP[1{y⟨β,x⟩≤0}​] as a helper item.
  • The choice ε=εN(η)\varepsilon=\varepsilon_N(\eta)ε=εN​(η) of (8) and the measure-concentration theorem behind it (Theorem 2) are not formalized. The confidence clauses take their conclusion, PN{P∈Bε(P^N)}≥1−η\mathbb P^N\{\mathbb P\in\mathbb B_\varepsilon(\hat{\mathbb P}_N)\}\ge1-\etaPN{P∈Bε​(P^N​)}≥1−η, as a hypothesis, and "with probability 1−η1-\eta1−η" is read as "with probability at least 1−η1-\eta1−η". The printed level 1−2η1-2\eta1−2η is kept for the two-sided bound.

Swapping the strict and non-strict inequalities in Rmax⁡\mathfrak R_{\max}Rmax​ and Rmin⁡\mathfrak R_{\min}Rmin​, restricting the supremum to measures supported on the sample points, or replacing the ball by a set that excludes non-discrete distributions would each change the theorem. None of these is an acceptable reformulation of the goal.

Useful infrastructure: couplings of a discrete measure with an arbitrary one, the distance from a point to a closed half-space in a general norm, and LP-duality arguments for fractional-knapsack-type programs. Proofs of the helper and confidence items, and any reusable lemma about worst-case probabilities of closed sets over Wasserstein balls, are welcome.

Selected references

  • S. Shafieezadeh-Abadeh, P. Mohajerin Esfahani, D. Kuhn, Distributionally Robust Logistic Regression, Advances in Neural Information Processing Systems 28 (NIPS 2015). https://papers.nips.cc/paper/2015/hash/cc1aa436277138f61cda703991069eaf-Abstract.html
  • N. Fournier, 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
  • P. Mohajerin Esfahani, D. Kuhn, Data-driven distributionally robust optimization using the Wasserstein metric: performance guarantees and tractable reformulations, Mathematical Programming 171 (2018). https://doi.org/10.1007/s10107-017-1172-1
8 thms2 active usersReviewed
🏆Completed
Convex OptimizationMachine LearningOperations Research+1·Captain: mikedeng1

Distributionally Robust Logistic Regression I: The Worst-Case Expected Logloss over a Wasserstein Ball Is a Tractable Convex ProgramResearch Paper

Motivation

Logistic regression is among the most widely used classification methods in statistics and machine learning. Its maximum-likelihood estimator minimizes the average logloss on the training data and is known to overfit when data are scarce; practitioners respond with ad hoc regularization, typically a norm penalty on the weight vector. Shafieezadeh-Abadeh, Mohajerin Esfahani and Kuhn (NIPS 2015, arXiv:1509.09259) replace the empirical average by a worst case over all distributions within a Wasserstein ball around the empirical distribution. The resulting model has a finite convex reformulation, contains classical and norm-regularized logistic regression as special cases, and comes with out-of-sample guarantees. It is one of the early instances of Wasserstein distributionally robust optimization in learning, building on the duality theory of Mohajerin Esfahani and Kuhn (Math. Program. 2018, arXiv:1505.05116); the regularization interpretation was later extended to general losses by Shafieezadeh-Abadeh, Kuhn and Mohajerin Esfahani (JMLR 2019, arXiv:1710.10016).

Setting

Let VVV be the feature space Rn\mathbb R^nRn with an arbitrary norm ∥⋅∥\|\cdot\|∥⋅∥, and let ∥β∥∗=sup⁡∥x∥≤1⟨β,x⟩\|\beta\|_* = \sup_{\|x\|\le1}\langle\beta,x\rangle∥β∥∗​=sup∥x∥≤1​⟨β,x⟩ be the dual norm of a weight vector β\betaβ. Labels are y∈{−1,+1}y\in\{-1,+1\}y∈{−1,+1}, and the feature-label space is Ξ=V×{−1,+1}\Xi = V\times\{-1,+1\}Ξ=V×{−1,+1}. The logloss of β\betaβ at (x,y)(x,y)(x,y) is

lβ(x,y)=log⁡(1+exp⁡(−y⟨β,x⟩)).l_\beta(x,y) = \log\big(1+\exp(-y\langle\beta,x\rangle)\big).lβ​(x,y)=log(1+exp(−y⟨β,x⟩)).

For a label weight κ>0\kappa>0κ>0, the metric of Definition 2 on Ξ\XiΞ is

d((x,y),(x′,y′))=∥x−x′∥+κ ∣y−y′∣/2,d\big((x,y),(x',y')\big) = \|x-x'\| + \kappa\,|y-y'|/2 ,d((x,y),(x′,y′))=∥x−x′∥+κ∣y−y′∣/2,

so that changing a label costs κ\kappaκ. The Wasserstein distance W(Q,P)W(\mathbb Q,\mathbb P)W(Q,P) between probability distributions on Ξ\XiΞ (Definition 1) is the infimum of ∫d(ξ,ξ′) Π(dξ,dξ′)\int d(\xi,\xi')\,\Pi(d\xi,d\xi')∫d(ξ,ξ′)Π(dξ,dξ′) over all couplings Π\PiΠ of Q\mathbb QQ and P\mathbb PP, and Bε(P)={Q:W(Q,P)≤ε}\mathbb B_\varepsilon(\mathbb P) = \{\mathbb Q : W(\mathbb Q,\mathbb P)\le\varepsilon\}Bε​(P)={Q:W(Q,P)≤ε}. Given training samples (x^i,y^i)i=1N(\hat x_i,\hat y_i)_{i=1}^N(x^i​,y^​i​)i=1N​, the empirical distribution is P^N=1N∑iδ(x^i,y^i)\hat{\mathbb P}_N = \frac1N\sum_i\delta_{(\hat x_i,\hat y_i)}P^N​=N1​∑i​δ(x^i​,y^​i​)​, and the distributionally robust logistic regression problem (6) is

J^=inf⁡β sup⁡Q∈Bε(P^N)EQ[lβ(x,y)].\hat J = \inf_\beta\ \sup_{\mathbb Q\in\mathbb B_\varepsilon(\hat{\mathbb P}_N)} \mathbb E^{\mathbb Q}\big[l_\beta(x,y)\big].J^=βinf​ Q∈Bε​(P^N​)sup​EQ[lβ​(x,y)].

Program (7) has variables β\betaβ, λ∈R\lambda\in\mathbb Rλ∈R, s∈RNs\in\mathbb R^Ns∈RN, objective λε+1N∑isi\lambda\varepsilon + \frac1N\sum_i s_iλε+N1​∑i​si​, and constraints lβ(x^i,y^i)≤sil_\beta(\hat x_i,\hat y_i)\le s_ilβ​(x^i​,y^​i​)≤si​, lβ(x^i,−y^i)−λκ≤sil_\beta(\hat x_i,-\hat y_i)-\lambda\kappa\le s_ilβ​(x^i​,−y^​i​)−λκ≤si​ for all iii, and ∥β∥∗≤λ\|\beta\|_*\le\lambda∥β∥∗​≤λ.

Formalization targets

Goal: Theorem 1 (tractable reformulation)

For every ε≥0\varepsilon\ge0ε≥0, κ>0\kappa>0κ>0, N≥1N\ge1N≥1 and every norm on the feature space,

inf⁡β sup⁡Q∈Bε(P^N)EQ[lβ]  =  inf⁡{λε+1N∑isi:(β,λ,s) feasible for (7)},\inf_\beta\ \sup_{\mathbb Q\in\mathbb B_\varepsilon(\hat{\mathbb P}_N)}\mathbb E^{\mathbb Q}[l_\beta] \;=\; \inf\Big\{\lambda\varepsilon+\tfrac1N\textstyle\sum_i s_i : (\beta,\lambda,s)\text{ feasible for (7)}\Big\},βinf​ Q∈Bε​(P^N​)sup​EQ[lβ​]=inf{λε+N1​∑i​si​:(β,λ,s) feasible for (7)},

and for ε>0\varepsilon>0ε>0 the infimum of (7) is attained.

Milestones

  1. §3.1 — the feasible set of (7) is convex.
  2. §2 — for ε=0\varepsilon=0ε=0 the worst-case expected logloss is the empirical average logloss, so (6) reduces to classical logistic regression (2).
  3. Theorem 1 for fixed β\betaβ — sup⁡Q∈Bε(P^N)EQ[lβ]\sup_{\mathbb Q\in\mathbb B_\varepsilon(\hat{\mathbb P}_N)}\mathbb E^{\mathbb Q}[l_\beta]supQ∈Bε​(P^N​)​EQ[lβ​] equals the attained minimum of (7) over (λ,s)(\lambda,s)(λ,s) with β\betaβ fixed.
  4. Remark 2, eq. (9) — at an optimal solution (β^,λ^,s^)(\hat\beta,\hat\lambda,\hat s)(β^​,λ^,s^),
J^=λ^ε+EP^N[lβ^]+1N∑imax⁡{0,y^i⟨β^,x^i⟩−λ^κ}.\hat J = \hat\lambda\varepsilon + \mathbb E^{\hat{\mathbb P}_N}[l_{\hat\beta}] + \tfrac1N\textstyle\sum_i\max\{0,\hat y_i\langle\hat\beta,\hat x_i\rangle-\hat\lambda\kappa\}.J^=λ^ε+EP^N​[lβ^​​]+N1​∑i​max{0,y^​i​⟨β^​,x^i​⟩−λ^κ}.
  1. Remark 1 — as κ→∞\kappa\to\inftyκ→∞ the optimal value of (7) converges to inf⁡βε∥β∥∗+1N∑ilβ(x^i,y^i)\inf_\beta \varepsilon\|\beta\|_* + \frac1N\sum_i l_\beta(\hat x_i,\hat y_i)infβ​ε∥β∥∗​+N1​∑i​lβ​(x^i​,y^​i​).
  2. Theorem 2, implication — if PN{P∈Bε(P^N)}≥1−η\mathbb P^N\{\mathbb P\in\mathbb B_\varepsilon(\hat{\mathbb P}_N)\}\ge1-\etaPN{P∈Bε​(P^N​)}≥1−η, then PN{EP[lβ^]≤J^}≥1−η\mathbb P^N\{\mathbb E^{\mathbb P}[l_{\hat\beta}]\le\hat J\}\ge1-\etaPN{EP[lβ^​​]≤J^}≥1−η.

Significance

Theorem 1 turns a minimax problem over an infinite-dimensional family of distributions into a finite convex program whose size grows linearly in NNN; with the ℓ1\ell_1ℓ1​, ℓ2\ell_2ℓ2​ or ℓ∞\ell_\inftyℓ∞​ norm it is a standard exponential-cone or conic program. Remark 1 explains norm-regularized logistic regression as a distributionally robust model: the regularizer is the dual norm of the transport cost on features, and the regularization weight is the radius of the ambiguity set. Remark 2 exposes an additional term that accounts for label noise and vanishes as label changes become prohibitively expensive. Theorem 2 makes the optimal value J^\hat JJ^ a certificate on the out-of-sample logloss whenever the ball contains the true distribution.

The paper's proofs are in a technical appendix and have not been machine-checked. Mathlib contains no Wasserstein distributionally robust duality. This mission produces a formal statement of the reformulation with an arbitrary norm and a label-dependent cost, together with formal versions of the paper's printed consequences of it (Remarks 1 and 2, the ε=0\varepsilon=0ε=0 reduction, and the implication in Theorem 2).

Difficulty

The worst-case expectation ranges over every Borel probability distribution within transport distance ε\varepsilonε of the empirical distribution, including distributions with unbounded support and distributions that move mass across labels. Exhibiting good distributions in the ball shows only that the robust value is at least the value of (7); the reverse inequality must control every distribution in the ball at once, and nothing in the definition of the ball bounds its elements' supports. The obvious simplification, restricting attention to distributions supported on finitely many points, again yields only a one-sided bound unless the supremum is shown to be approached by such distributions. The label term of the metric couples the two label classes, so results for a pure norm cost on the features do not apply directly, and the dual norm enters through an arbitrary norm rather than the Euclidean one.

Formalization scope

  • The feature space is an abstract finite-dimensional real normed space V standing for (Rn,∥⋅∥)(\mathbb R^n,\|\cdot\|)(Rn,∥⋅∥) with an arbitrary norm; weights are continuous linear functionals V →L[ℝ] ℝ, and ∥β∥∗\|\beta\|_*∥β∥∗​ is their operator norm, which is exactly the dual norm. Labels are Bool, embedded as ±1\pm1±1; the label −y-y−y is Boolean negation. The metric of Definition 2 is written literally.
  • The Wasserstein distance is of type 1, valued in [0,∞][0,\infty][0,∞], with couplings ranging over all probability measures on Ξ×Ξ\Xi\times\XiΞ×Ξ with the two prescribed marginals. The ball consists of probability measures.
  • Expectations of the positive logloss are lower Lebesgue integrals in [0,∞][0,\infty][0,∞], and the supremum over the ball is taken there; the optimal value of (7) is the infimum of its (nonnegative) objective over the feasible set, also in [0,∞][0,\infty][0,∞]. A Bochner integral, which vanishes on non-integrable functions, would make the worst case trivially finite and is not used.
  • The standing hypotheses are κ>0\kappa>0κ>0, ε≥0\varepsilon\ge0ε≥0, N≥1N\ge1N≥1.
  • Correction. The paper prints "min" in (7) for all ε≥0\varepsilon\ge0ε≥0. At ε=0\varepsilon=0ε=0 the minimum can fail to be attained (V=RV=\mathbb RV=R, N=1N=1N=1, x^1=1\hat x_1=1x^1​=1, y^1=+1\hat y_1=+1y^​1​=+1: the value is 000 but every feasible point has positive objective). The goal states the value identity for ε≥0\varepsilon\ge0ε≥0 and attainment for ε>0\varepsilon>0ε>0.
  • Remark 1 is formalized as convergence of optimal values as κ→∞\kappa\to\inftyκ→∞; a metric with κ=∞\kappa=\inftyκ=∞ is not formalized. Only convexity, not tractability, of (7) is stated. The first claim of Theorem 2 (the radius (8) and the light-tail assumption) is not formalized; the confidence of the ball event is a hypothesis of milestone 6.
  • A formalization in which the ball is taken only over distributions supported on the training samples, or in which the label term of the metric is dropped, trivializes the second constraint group of (7) and is ruled out: the ball here contains every Borel probability distribution on Ξ\XiΞ within the prescribed distance.
  • Infrastructure needed and reusable beyond this mission: type-1 optimal transport on product spaces with a label component, couplings and their marginals, and elementary properties of the logloss as a function of β\betaβ. Contributions of such supporting lemmas as independent theorems are welcome.

Selected references

  • S. Shafieezadeh-Abadeh, P. Mohajerin Esfahani, D. Kuhn, Distributionally Robust Logistic Regression, Advances in Neural Information Processing Systems 28 (NIPS 2015). https://arxiv.org/abs/1509.09259
  • P. Mohajerin Esfahani, 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
  • N. Fournier, A. Guillin, On the rate of convergence in Wasserstein distance of the empirical measure, Probability Theory and Related Fields 162 (2015). https://arxiv.org/abs/1312.2128
  • S. Shafieezadeh-Abadeh, D. Kuhn, P. Mohajerin Esfahani, Regularization via Mass Transportation, Journal of Machine Learning Research 20 (2019). https://arxiv.org/abs/1710.10016
9 thms2 active usersReviewed

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