Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Collections

Robust Optimization

Robust counterparts, uncertainty sets, adaptive policies, and distributionally robust optimization.

41 completed missions

Missions

41–41 of 41
OpenCompletedAll
🏆Completed
Machine LearningOptimal TransportOptimization+1·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
Previous

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