Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in

Get started

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

Machine Learning

653 missions · 436 completed

The science of systems that learn from data and experience. Its scope runs from the statistical and mathematical foundations of learning, including generalization, expressivity, and computational limits, through the design of learning algorithms, deep learning, reinforcement learning, and probabilistic methods, to the empirical study of large models and the trustworthiness, interpretability, and societal impact of learned systems.

Missions

Open217Completed436All653
🏆Completed
Information TheoryStatistics·Captain: mikedeng1

The Statistical Complexity of Interactive Decision Making I: Subadditivity of Squared Hellinger Distance for Sequential Laws, D²_H(P,Q) ≤ 10² log(n)·E_P[Σᵢ D²_H(P⁽ⁱ⁾, Q⁽ⁱ⁾)] for n ≥ 2Research Paper

Motivation

Lower bounds for interactive decision making (bandits, reinforcement learning, and the general decision making with structured observations framework of Foster, Kakade, Qian and Rakhlin, arXiv:2112.13487) compare what a learner observes under two different environments. A learner's whole interaction history is generated one step at a time: each observation is drawn from a conditional law that depends on everything seen before. Statistical estimation guarantees, by contrast, are stated one step at a time, as bounds on the divergence between the conditional laws at each round. Passing from the per-step guarantees to a statement about the laws of entire histories requires a chain rule for the divergence in use.

For the Kullback–Leibler divergence the chain rule is an identity. The paper's guarantees, however, are stated in the squared Hellinger distance, which is bounded, symmetric, and the natural loss for density estimation with the logarithmic loss. Hellinger distance has no exact chain rule. Lemma A.13 of the paper (App. A.2, p. 73) supplies an approximate one, losing a factor logarithmic in the number of steps, and the paper uses it in the proof of its main regret lower bound (Theorem 3.2, via App. C.1.3).

Setting

Fix n∈Nn \in \mathbb Nn∈N and finite sets X1,…,Xn\mathcal X_1, \dots, \mathcal X_nX1​,…,Xn​. A sequence is x=(x1,…,xn)x = (x_1, \dots, x_n)x=(x1​,…,xn​) with xi∈Xix_i \in \mathcal X_ixi​∈Xi​, and x1:i−1=(x1,…,xi−1)x_{1:i-1} = (x_1, \dots, x_{i-1})x1:i−1​=(x1​,…,xi−1​) denotes its prefix; X(i−1)=∏t=1i−1Xt\mathcal X^{(i-1)} = \prod_{t=1}^{i-1} \mathcal X_tX(i−1)=∏t=1i−1​Xt​.

For probability distributions p,qp, qp,q on a finite set, the squared Hellinger distance, the Hellinger distance and the Kullback–Leibler divergence are

DH2(p,q)=∑a(p(a)−q(a))2,DH=DH2,DKL(p ∥ q)=∑ap(a)log⁡p(a)q(a),D^2_{\mathrm H}(p, q) = \sum_a \big(\sqrt{p(a)} - \sqrt{q(a)}\big)^2, \qquad D_{\mathrm H} = \sqrt{D^2_{\mathrm H}}, \qquad D_{\mathrm{KL}}(p\,\|\,q) = \sum_a p(a) \log\frac{p(a)}{q(a)},DH2​(p,q)=a∑​(p(a)​−q(a)​)2,DH​=DH2​​,DKL​(p∥q)=a∑​p(a)logq(a)p(a)​,

the last one set to +∞+\infty+∞ when ppp charges a point that qqq does not. Note that the paper's DH2D^2_{\mathrm H}DH2​ carries no factor 12\tfrac1221​, so 0≤DH2≤20 \le D^2_{\mathrm H} \le 20≤DH2​≤2.

A family of sequential kernels P=(P(i))i=1nP = (P^{(i)})_{i=1}^nP=(P(i))i=1n​ assigns to each iii and each prefix x1:i−1x_{1:i-1}x1:i−1​ a probability distribution P(i)(⋅∣x1:i−1)P^{(i)}(\cdot \mid x_{1:i-1})P(i)(⋅∣x1:i−1​) on Xi\mathcal X_iXi​. Its sequential law is the law of X1,…,XnX_1, \dots, X_nX1​,…,Xn​ under Xi∼P(i)(⋅∣X1:i−1)X_i \sim P^{(i)}(\cdot \mid X_{1:i-1})Xi​∼P(i)(⋅∣X1:i−1​):

P(x)=∏i=1nP(i)(xi∣x1:i−1).\mathbb P(x) = \prod_{i=1}^n P^{(i)}(x_i \mid x_{1:i-1}).P(x)=i=1∏n​P(i)(xi​∣x1:i−1​).

For a second family QQQ with law Q\mathbb QQ, the quantity controlled by per-step estimation is

EP[∑i=1nDH2(P(i)(⋅∣X1:i−1),Q(i)(⋅∣X1:i−1))].\mathbb E_{\mathbb P}\Big[\sum_{i=1}^n D^2_{\mathrm H}\big(P^{(i)}(\cdot \mid X_{1:i-1}), Q^{(i)}(\cdot \mid X_{1:i-1})\big)\Big].EP​[i=1∑n​DH2​(P(i)(⋅∣X1:i−1​),Q(i)(⋅∣X1:i−1​))].

In Lean these are IsSeqKernel, seqLaw and condHellingerSum, with hellingerSq and klDivDiscrete the published discrete divergences.

Formalization targets

Goal: Lemma A.13, (97), for n≥2n \ge 2n≥2

DH2(P,Q)≤102log⁡(n)⋅EP[∑i=1nDH2(P(i)(⋅∣X1:i−1),Q(i)(⋅∣X1:i−1))].D^2_{\mathrm H}(\mathbb P, \mathbb Q) \le 10^2 \log(n) \cdot \mathbb E_{\mathbb P}\Big[\sum_{i=1}^n D^2_{\mathrm H}\big(P^{(i)}(\cdot \mid X_{1:i-1}), Q^{(i)}(\cdot \mid X_{1:i-1})\big)\Big].DH2​(P,Q)≤102log(n)⋅EP​[i=1∑n​DH2​(P(i)(⋅∣X1:i−1​),Q(i)(⋅∣X1:i−1​))].

The constant 10210^2102 is the paper's; the shape that matters downstream is the logarithmic dependence on nnn with no assumption on the kernels beyond their being probability kernels.

Companion: Lemma A.13, (98)

If V≥eV \ge eV≥e and P(i)(A∣x1:i−1)≤V Q(i)(A∣x1:i−1)P^{(i)}(A \mid x_{1:i-1}) \le V\, Q^{(i)}(A \mid x_{1:i-1})P(i)(A∣x1:i−1​)≤VQ(i)(A∣x1:i−1​) for every iii, prefix and event AAA, then DH2(P,Q)≤3log⁡(V)⋅EP[∑iDH2(P(i),Q(i))]D^2_{\mathrm H}(\mathbb P, \mathbb Q) \le 3\log(V) \cdot \mathbb E_{\mathbb P}[\sum_i D^2_{\mathrm H}(P^{(i)}, Q^{(i)})]DH2​(P,Q)≤3log(V)⋅EP​[∑i​DH2​(P(i),Q(i))].

Milestones

  1. Lemma A.10 (p. 72): DKL(p ∥ q)≤(2+log⁡V) DH2(p,q)D_{\mathrm{KL}}(p\,\|\,q) \le (2 + \log V)\, D^2_{\mathrm H}(p, q)DKL​(p∥q)≤(2+logV)DH2​(p,q) under a likelihood-ratio bound VVV (referenced, finite case).
  2. Lemma A.5 (p. 71): DTV2≤DH2≤DKLD^2_{\mathrm{TV}} \le D^2_{\mathrm H} \le D_{\mathrm{KL}}DTV2​≤DH2​≤DKL​ (referenced, finite case).
  3. The triangle inequality for DHD_{\mathrm H}DH​ (proof of Lemma A.13, p. 73).
  4. The chain rule DKL(Q ∥ P)=EQ[∑iDKL(Q(i) ∥ P(i))]D_{\mathrm{KL}}(\mathbb Q\,\|\,\mathbb P) = \mathbb E_{\mathbb Q}[\sum_i D_{\mathrm{KL}}(Q^{(i)}\,\|\,P^{(i)})]DKL​(Q∥P)=EQ​[∑i​DKL​(Q(i)∥P(i))] for sequential laws (p. 73).
  5. Convexity of DH2D^2_{\mathrm H}DH2​ in its second argument (p. 74).
  6. Lemma A.11 (p. 72), the multiplicative Pinsker-type inequality: ∣EPh−EQh∣≤2R(EPh+EQh)DH2(P,Q)|\mathbb E_P h - \mathbb E_Q h| \le \sqrt{2R(\mathbb E_P h + \mathbb E_Q h) D^2_{\mathrm H}(P, Q)}∣EP​h−EQ​h∣≤2R(EP​h+EQ​h)DH2​(P,Q)​ and EPh≤3EQh+4R DH2(P,Q)\mathbb E_P h \le 3\mathbb E_Q h + 4R\, D^2_{\mathrm H}(P, Q)EP​h≤3EQ​h+4RDH2​(P,Q) for 0≤h≤R0 \le h \le R0≤h≤R.

Significance

The result. Inequality (97) converts per-round Hellinger estimation error into a bound on the Hellinger distance between the laws of complete interaction histories, under no boundedness assumption on likelihood ratios. In the paper this is the step that lets the lower bound of Theorem 3.2 relate any algorithm's behaviour under a reference model to its behaviour under alternatives, and hence express the minimax regret through the decision-estimation coefficient. Without it, only the KL chain rule is available, which requires bounded likelihood ratios (the situation of (98)) or loses more than a logarithmic factor. Lemma A.11, a milestone here, is used independently in the same lower bound and in the paper's tabular reinforcement learning analysis.

Formalizing it. The lemma is proved in the paper; no machine-checked proof exists. The published layer on the platform has the discrete divergences and the comparisons of Lemmas A.5 and A.10; the sequential-law objects, the triangle inequality, the convexity of DH2D^2_{\mathrm H}DH2​, the discrete chain rule and Lemma A.11 are new. A completed development gives a reusable chain-rule toolkit for any later formalization of lower bounds over adaptive interaction histories.

Difficulty

The squared Hellinger distance does not tensorize along adaptive sequences: the natural attempt to write 1−12DH2(P,Q)1 - \tfrac12 D^2_{\mathrm H}(\mathbb P, \mathbb Q)1−21​DH2​(P,Q) as a product of conditional affinities fails because the conditional affinities are random, depending on the prefix, and their expectation does not factor. Bounding DH2D^2_{\mathrm H}DH2​ by DKLD_{\mathrm{KL}}DKL​ and applying the KL chain rule fails in the other direction: the conditional KL divergences are not controlled by the conditional Hellinger distances unless the likelihood ratios are bounded, and in (97) they are not. The difficulty is to obtain a bound that pays only log⁡n\log nlogn for an unbounded ratio, with explicit constants that survive the final numerical comparison.

Formalization scope

  • Finite alphabets. The paper works over measurable spaces. This mission formalizes the finite-alphabet case, as the published FoundationsRL divergence layer does: each Xi\mathcal X_iXi​ is a Fintype, distributions are probability vectors, expectations are finite sums. Coordinates are indexed by Fin n (0-based) and the alphabets may differ from coordinate to coordinate.
  • Kernels. A kernel family is a function P i x of the whole sequence that is a probability vector and depends only on the coordinates j < i; this is what makes seqLaw P the law the paper describes.
  • Added hypothesis n≥2n \ge 2n≥2 in (97). The paper states (97) for every nnn; at n=1n = 1n=1 the right side vanishes because log⁡1=0\log 1 = 0log1=0 while the left side is positive whenever P(1)≠Q(1)P^{(1)} \ne Q^{(1)}P(1)=Q(1), and the proof's last step 2(6log⁡(96n)+1896n)≤102log⁡n2(6\log(96n) + \tfrac{18}{96n}) \le 10^2\log n2(6log(96n)+96n18​)≤102logn holds only for n≥2n \ge 2n≥2. The goal is stated for n≥2n \ge 2n≥2, with the constant unchanged.
  • Likelihood ratios are stated multiplicatively, P(A)≤V Q(A)P(A) \le V\,Q(A)P(A)≤VQ(A), so that a zero denominator does not make a hypothesis vacuous; KL divergences are compared to Hellinger distances in [0,∞][0, \infty][0,∞].
  • Lemma A.11 holds "almost surely under PPP and QQQ", which becomes: 0≤h≤R0 \le h \le R0≤h≤R at every point charged by PPP or QQQ.
  • Ruling out trivial forms. The goal's hypotheses are satisfiable with P≠Q\mathbb P \ne \mathbb QP=Q and n≥2n \ge 2n≥2 (checked in a sanity file). A formalization in which the kernels may read coordinates beyond the prefix, in which log⁡\loglog is applied to n≤1n \le 1n≤1, or in which the ratio bound of (98) is checked through a quotient that is vacuous at zero denominators, is not the paper's statement.

Contributions welcome: proofs of any milestone and of the fact that seqLaw is a probability vector.

Selected references

  • D. J. Foster, S. M. Kakade, J. Qian, A. Rakhlin, The Statistical Complexity of Interactive Decision Making, arXiv:2112.13487v3, 2023. https://arxiv.org/abs/2112.13487
  • Y. Yang, A. Barron, An asymptotic property of model selection criteria, IEEE Transactions on Information Theory 44(1), 1998. https://doi.org/10.1109/18.650993
  • Y. Polyanskiy, Y. Wu, Lecture Notes on Information Theory, 2014. https://people.lids.mit.edu/yp/homepage/data/itlectures_v5.pdf
  • D. J. Foster, A. Rakhlin, Foundations of Reinforcement Learning and Interactive Decision Making, arXiv:2312.16730v1, 2023. https://arxiv.org/abs/2312.16730
9 thms3 active usersReviewed
ProbabilityStatistics·Captain: mikedeng1

Certifying Some Distributional Robustness with Principled Adversarial Training 2: The Empirical Robustness Level E_P̂ₙ[c(T_γ(θ;Z),Z)] Concentrates Uniformly over ΘResearch Paper

Motivation

Neural networks trained by empirical risk minimization are sensitive to small adversarial perturbations of their inputs. Distributionally robust optimization addresses this by training against the worst distribution in a neighbourhood of the data distribution. Sinha, Namkoong, Volpi and Duchi (arXiv:1710.10571v5, ICLR 2018) take the neighbourhood to be a Wasserstein ball and relax the hard constraint to a Lagrangian penalty with multiplier γ\gammaγ. For large γ\gammaγ the inner maximization becomes strongly concave and is solved per data point by a transportation map TγT_\gammaTγ​, which turns each training example into its worst-case perturbation.

The average transport cost ρ^n(θ)=EP^n[c(Tγ(θ;Z),Z)]\widehat\rho_n(\theta)=\mathbb E_{\widehat P_n}[c(T_\gamma(\theta;Z),Z)]ρ​n​(θ)=EPn​​[c(Tγ​(θ;Z),Z)] is the amount of robustness the trained model actually certifies on the sample: by the paper's duality result, the empirical worst-case loss at level ρ^n(θ)\widehat\rho_n(\theta)ρ​n​(θ) is computable, and it is the certificate of robustness that the paper advertises. A certificate measured on the training sample is only useful if it transfers to the population. This mission formalizes the result that it does: ρ^n(θ)\widehat\rho_n(\theta)ρ​n​(θ) concentrates around its population counterpart, uniformly over the parameter set.

Setting

Parameters θ\thetaθ range over a set Θ⊆Rd\Theta\subseteq\mathbb R^dΘ⊆Rd and data over a set Z⊆{z∈Rm:∥z∥2≤Mz}Z\subseteq\{z\in\mathbb R^m:\|z\|_2\le M_z\}Z⊆{z∈Rm:∥z∥2​≤Mz​}, both with the Euclidean norm. A transportation cost c:Z×Z→[0,∞)c:Z\times Z\to[0,\infty)c:Z×Z→[0,∞) satisfies c(z,z)=0c(z,z)=0c(z,z)=0 and Assumption A: ccc is continuous and z↦c(z,z0)z\mapsto c(z,z_0)z↦c(z,z0​) is 111-strongly convex for each z0∈Zz_0\in Zz0​∈Z. A loss ℓ(θ;z)\ell(\theta;z)ℓ(θ;z) satisfies Assumption B: its partial gradients ∇θℓ\nabla_\theta\ell∇θ​ℓ, ∇zℓ\nabla_z\ell∇z​ℓ are Lipschitz in each variable, with constants Lθθ,Lzz,Lθz,LzθL_{\theta\theta},L_{zz},L_{\theta z},L_{z\theta}Lθθ​,Lzz​,Lθz​,Lzθ​.

For γ>Lzz\gamma>L_{zz}γ>Lzz​ the problem z↦ℓ(θ;z)−γc(z,z0)z\mapsto\ell(\theta;z)-\gamma c(z,z_0)z↦ℓ(θ;z)−γc(z,z0​) is (γ−Lzz)(\gamma-L_{zz})(γ−Lzz​)-strongly concave on ZZZ, and the transportation map is its maximizer,

Tγ(θ;z0)∈argmax⁡z∈Z{ℓ(θ;z)−γc(z,z0)}.T_\gamma(\theta;z_0)\in\operatorname*{argmax}_{z\in Z}\{\ell(\theta;z)-\gamma c(z,z_0)\}.Tγ​(θ;z0​)∈z∈Zargmax​{ℓ(θ;z)−γc(z,z0​)}.

Given i.i.d. samples Z1,…,Zn∼P0Z_1,\dots,Z_n\sim P_0Z1​,…,Zn​∼P0​ with P0(Z)=1P_0(Z)=1P0​(Z)=1 and empirical distribution P^n\widehat P_nPn​, the empirical robustness level and its population counterpart are

ρ^n(θ)=1n∑i=1nc(Tγ(θ;Zi),Zi),ρ(θ)=EP0[c(Tγ(θ;Z),Z)].\widehat\rho_n(\theta)=\frac1n\sum_{i=1}^n c(T_\gamma(\theta;Z_i),Z_i),\qquad \rho(\theta)=\mathbb E_{P_0}[c(T_\gamma(\theta;Z),Z)].ρ​n​(θ)=n1​i=1∑n​c(Tγ​(θ;Zi​),Zi​),ρ(θ)=EP0​​[c(Tγ​(θ;Z),Z)].

The complexity of Θ\ThetaΘ enters through its covering number N(Θ,ϵ,∥⋅∥)N(\Theta,\epsilon,\|\cdot\|)N(Θ,ϵ,∥⋅∥), the least number of points θ1,…,θN∈Θ\theta_1,\dots,\theta_N\in\Thetaθ1​,…,θN​∈Θ such that every θ∈Θ\theta\in\Thetaθ∈Θ is within ϵ\epsilonϵ of some θi\theta_iθi​ (+∞+\infty+∞ if there is no finite such family).

Two alternative regularity conditions close the setting, with a constant Lc>0L_c>0Lc​>0: (i) ccc is LcL_cLc​-Lipschitz on ZZZ in each argument; or (ii) ℓ(θ;z)∈[0,Mℓ]\ell(\theta;z)\in[0,M_\ell]ℓ(θ;z)∈[0,Mℓ​] and z↦ℓ(θ;z)z\mapsto\ell(\theta;z)z↦ℓ(θ;z) is γLc\gamma L_cγLc​-Lipschitz. Put K=2LcMzK=2L_cM_zK=2Lc​Mz​ in case (i) and K=Mℓ/γK=M_\ell/\gammaK=Mℓ​/γ in case (ii).

Formalization targets

Goal: the uniform tail bound of §B.7

For every t>0t>0t>0,

P(sup⁡θ∈Θ∣ρ^n(θ)−ρ(θ)∣≥t)≤2 N(Θ,(γ−Lzz)t4LcLzθ,∥⋅∥2)exp⁡(−nt28K2).\mathbb P\Bigl(\sup_{\theta\in\Theta}|\widehat\rho_n(\theta)-\rho(\theta)|\ge t\Bigr)\le 2\,N\Bigl(\Theta,\frac{(\gamma-L_{zz})t}{4L_cL_{z\theta}},\|\cdot\|_2\Bigr)\exp\Bigl(-\frac{nt^2}{8K^2}\Bigr).P(θ∈Θsup​∣ρ​n​(θ)−ρ(θ)∣≥t)≤2N(Θ,4Lc​Lzθ​(γ−Lzz​)t​,∥⋅∥2​)exp(−8K2nt2​).

In case (i), 8K2=32Lc2Mz28K^2=32L_c^2M_z^28K2=32Lc2​Mz2​ and this is exactly the last display of the proof of Theorem 4 (p. 44); case (ii) is the "identical reasoning" the paper invokes with K=Mℓ/γK=M_\ell/\gammaK=Mℓ​/γ. Θ\ThetaΘ is an arbitrary subset of Rd\mathbb R^dRd: no compactness is assumed, and an infinite covering number makes the bound vacuous rather than false.

Milestones

In the order the proof uses them:

  1. (4): strong concavity of z↦ℓ(θ;z)−γc(z,z0)z\mapsto\ell(\theta;z)-\gamma c(z,z_0)z↦ℓ(θ;z)−γc(z,z0​) with modulus γ−Lzz\gamma-L_{zz}γ−Lzz​;
  2. (16): ∥Tγ(θ1;z)−Tγ(θ2;z)∥≤Lzθγ−Lzz∥θ1−θ2∥\|T_\gamma(\theta_1;z)-T_\gamma(\theta_2;z)\|\le\frac{L_{z\theta}}{\gamma-L_{zz}}\|\theta_1-\theta_2\|∥Tγ​(θ1​;z)−Tγ​(θ2​;z)∥≤γ−Lzz​Lzθ​​∥θ1​−θ2​∥;
  3. Lemma 5: the transported cost is LcLzθγ−Lzz\frac{L_cL_{z\theta}}{\gamma-L_{zz}}γ−Lzz​Lc​Lzθ​​-Lipschitz in θ\thetaθ;
  4. the deviation ∣ρ^n(θ)−ρ(θ)∣|\widehat\rho_n(\theta)-\rho(\theta)|∣ρ​n​(θ)−ρ(θ)∣ is 2LcLzθγ−Lzz\frac{2L_cL_{z\theta}}{\gamma-L_{zz}}γ−Lzz​2Lc​Lzθ​​-Lipschitz on Θ\ThetaΘ;
  5. a (γ−Lzz)t4LcLzθ\frac{(\gamma-L_{zz})t}{4L_cL_{z\theta}}4Lc​Lzθ​(γ−Lzz​)t​-cover transfers a bound t/2t/2t/2 at its centres to a bound ttt on the supremum;
  6. 0≤c(Tγ(θ;z),z)≤K0\le c(T_\gamma(\theta;z),z)\le K0≤c(Tγ​(θ;z),z)≤K;
  7. Hoeffding's inequality at a fixed θ\thetaθ: P(∣ρ^n(θ)−ρ(θ)∣≥t/2)≤2e−nt2/(8K2)\mathbb P(|\widehat\rho_n(\theta)-\rho(\theta)|\ge t/2)\le 2e^{-nt^2/(8K^2)}P(∣ρ​n​(θ)−ρ(θ)∣≥t/2)≤2e−nt2/(8K2).

Significance

The tail bound gives a d/n\sqrt{d/n}d/n​-type generalization rate for the gap between the robustness certified on the sample and the robustness achieved on the population: with log⁡N(Θ,ϵ)≤dlog⁡(1+diam⁡(Θ)/ϵ)\log N(\Theta,\epsilon)\le d\log(1+\operatorname{diam}(\Theta)/\epsilon)logN(Θ,ϵ)≤dlog(1+diam(Θ)/ϵ) for bounded Θ\ThetaΘ, the deviation is of order K(dlog⁡(1/t)+log⁡(1/δ))/nK\sqrt{(d\log(1/t)+\log(1/\delta))/n}K(dlog(1/t)+log(1/δ))/n​. It also implies, as the paper notes, that the certified level ρ^n\widehat\rho_nρ​n​ stays positive for large nnn whenever the loss is not invariant to the data.

The paper states the result as Theorem 4, display (17), in "with probability 1−e−t1-e^{-t}1−e−t" form with the constant 4B4B4B. That form does not follow from the proved tail bound as printed: inverting the tail bound gives a deviation 42 B(t+log⁡2N)/n4\sqrt2\,B\sqrt{(t+\log 2N)/n}42​B(t+log2N)/n​ with a covering radius that depends on the deviation rather than on ttt, whereas (17) uses ttt in both places and drops 2\sqrt22​ and log⁡2\log 2log2. The mission therefore poses what the proof establishes, the tail bound above, and does not claim (17). None of this paper's results has a machine-checked proof; Hoeffding's inequality and covering numbers are in Mathlib, the argmax stability and the cover argument are not.

Difficulty

Concentration at a single fixed θ\thetaθ is Hoeffding's inequality and carries no information about the trained model, whose parameter depends on the sample. The supremum over an arbitrary, possibly uncountable Θ\ThetaΘ is the content. A union bound needs a finite family, and transferring control from a finite family to all of Θ\ThetaΘ needs the deviation to be Lipschitz in θ\thetaθ. The deviation is built from the transportation map, which is an argmax and has no closed form; its regularity in θ\thetaθ comes only from strong concavity, which holds only for γ>Lzz\gamma>L_{zz}γ>Lzz​. In case (ii) the cost ccc itself has no Lipschitz assumption, and the Lipschitz property of c(Tγ(θ;z),z)c(T_\gamma(\theta;z),z)c(Tγ​(θ;z),z) has to be extracted from the optimality of TγT_\gammaTγ​ at two different parameters. Finally, the supremum event is not obviously measurable.

Formalization scope

Spaces are EuclideanSpace ℝ (Fin d) and EuclideanSpace ℝ (Fin m); the paper's general norm is specialised to ℓ2\ell_2ℓ2​, in Assumptions A and B, in cases (i) and (ii), and in the covering number. The cost is real valued and constrained on Z×ZZ\times ZZ×Z only; the loss is typed on Rd×Rm\mathbb R^d\times\mathbb R^mRd×Rm, but Assumption B and the argmax property of the transportation map are required only for θ∈Θ\theta\in\Thetaθ∈Θ and z∈Zz\in Zz∈Z, matching the paper's ℓ:Θ×Z→R\ell:\Theta\times Z\to\mathbb Rℓ:Θ×Z→R. The transportation map is a function together with its argmax property. Samples are the coordinates of the product measure P0⊗nP_0^{\otimes n}P0⊗n​; P\mathbb PP of the supremum event is its outer measure, so no measurability of the event is assumed. The supremum is a real supremum of quantities bounded by 2K2K2K. The covering number is Mathlib's Metric.coveringNumber (closed balls, centres in Θ\ThetaΘ, values in N∪{∞}\mathbb N\cup\{\infty\}N∪{∞}). The definition on p. 9 does not say where the centres lie; the proof applies Hoeffding's inequality "for any fixed θ∈Θ\theta\in\Thetaθ∈Θ" at the centres, and the loss is only defined on Θ\ThetaΘ, so the centres are taken in Θ\ThetaΘ.

Hypotheses made explicit that the page leaves implicit:

  • γ>Lzz\gamma>L_{zz}γ>Lzz​ (p. 43, "our strong concavity assumption"), so [γ−Lzz]+=γ−Lzz[\gamma-L_{zz}]_+=\gamma-L_{zz}[γ−Lzz​]+​=γ−Lzz​;
  • Lc>0L_c>0Lc​>0 and Lzθ>0L_{z\theta}>0Lzθ​>0, since the covering radius divides by 4LcLzθ4L_cL_{z\theta}4Lc​Lzθ​;
  • ZZZ convex (needed for the transportation map to be stable);
  • z↦c(Tγ(θ;z),z)z\mapsto c(T_\gamma(\theta;z),z)z↦c(Tγ​(θ;z),z) is P0P_0P0​-measurable for every θ∈Θ\theta\in\Thetaθ∈Θ (the standing convention).

Case (ii) is assumed for θ∈Θ\theta\in\Thetaθ∈Θ only, as printed in Theorem 4.

A bound for one fixed θ\thetaθ, a supremum taken outside the probability, a covering radius not tied to ttt, or a covering number of a set other than Θ\ThetaΘ would be a different and much weaker statement; the goal has the supremum over Θ\ThetaΘ inside the event and the radius (γ−Lzz)t/(4LcLzθ)(\gamma-L_{zz})t/(4L_cL_{z\theta})(γ−Lzz​)t/(4Lc​Lzθ​).

A complete development needs the stability of maximizers of strongly concave functions under Lipschitz perturbation of the gradient, a finite-cover union bound for outer measures, and Hoeffding's inequality for bounded i.i.d. coordinates of a product measure. The first two are reusable well beyond this mission. Proofs of any milestone are welcome, as are alternative arguments for the goal.

Selected references

  • A. Sinha, H. Namkoong, R. Volpi, J. Duchi, Certifying Some Distributional Robustness with Principled Adversarial Training, ICLR 2018; arXiv:1710.10571v5, 2020. https://arxiv.org/abs/1710.10571v5
  • W. Hoeffding, Probability inequalities for sums of bounded random variables, Journal of the American Statistical Association 58 (1963), 13–30. https://doi.org/10.1080/01621459.1963.10500830
  • A. W. van der Vaart, J. A. Wellner, Weak Convergence and Empirical Processes, Springer, 1996. https://doi.org/10.1007/978-1-4757-2545-2
  • C. Villani, Optimal Transport: Old and New, Springer, 2009. https://doi.org/10.1007/978-3-540-71050-9
10 thms3 active usersReviewed
🏆Completed
OptimizationProbability·Captain: mikedeng1

Certifying Some Distributional Robustness with Principled Adversarial Training 1: SGD on the Wasserstein Penalty Surrogate Finds an Approximate Stationary Point at Rate 4σ√(L_φΔ_F/T)Research Paper

Motivation

Neural networks trained by empirical risk minimization are sensitive to small, deliberately chosen perturbations of their inputs ("adversarial examples"). A standard defence is adversarial training: at each step, perturb the training example to increase the loss, then take a gradient step at the perturbed point. Sinha, Namkoong, Volpi and Duchi (arXiv:1710.10571, ICLR 2018) recast adversarial training as distributionally robust optimization over a Wasserstein ball around the data distribution, and replaced the hard ball constraint by a Lagrangian penalty. The resulting procedure perturbs each example by solving a penalized inner maximization, and the paper shows that, when the penalty is large enough relative to the smoothness of the loss, this inner problem is strongly concave and therefore tractable.

This mission formalizes the paper's computational guarantee, Theorem 2: stochastic gradient descent on the penalized robust objective, with an inexact adversary, reaches an approximate stationary point at the rate of smooth nonconvex stochastic optimization. The analysis follows Ghadimi and Lan's argument for nonconvex SGD (arXiv:1309.5549), adapted to a gradient oracle that is biased by the inexact inner maximization.

Setting

Parameters θ\thetaθ live in Θ=Rd\Theta=\mathbb R^dΘ=Rd and data in a set Z⊆RmZ\subseteq\mathbb R^mZ⊆Rm; both spaces carry the Euclidean norm ∥⋅∥2\|\cdot\|_2∥⋅∥2​. Data are drawn from a probability distribution P0P_0P0​ on ZZZ.

A transportation cost c:Z×Z→[0,∞)c:Z\times Z\to[0,\infty)c:Z×Z→[0,∞) measures how expensive it is to move a data point z0z_0z0​ to zzz. Assumption A: ccc is continuous, c(z,z)=0c(z,z)=0c(z,z)=0, and for each z0∈Zz_0\in Zz0​∈Z the map z↦c(z,z0)z\mapsto c(z,z_0)z↦c(z,z0​) is 111-strongly convex. The canonical example is c(z,z0)=12∥z−z0∥22c(z,z_0)=\tfrac12\|z-z_0\|_2^2c(z,z0​)=21​∥z−z0​∥22​.

A loss ℓ(θ;z)\ell(\theta;z)ℓ(θ;z) has partial gradients ∇θℓ\nabla_\theta\ell∇θ​ℓ and ∇zℓ\nabla_z\ell∇z​ℓ. Assumption B: these gradients are Lipschitz in each argument,

∥∇θℓ(θ;z)−∇θℓ(θ′;z)∥≤Lθθ∥θ−θ′∥,∥∇zℓ(θ;z)−∇zℓ(θ;z′)∥≤Lzz∥z−z′∥,\|\nabla_\theta\ell(\theta;z)-\nabla_\theta\ell(\theta';z)\|\le L_{\theta\theta}\|\theta-\theta'\|,\quad \|\nabla_z\ell(\theta;z)-\nabla_z\ell(\theta;z')\|\le L_{zz}\|z-z'\|,∥∇θ​ℓ(θ;z)−∇θ​ℓ(θ′;z)∥≤Lθθ​∥θ−θ′∥,∥∇z​ℓ(θ;z)−∇z​ℓ(θ;z′)∥≤Lzz​∥z−z′∥, ∥∇θℓ(θ;z)−∇θℓ(θ;z′)∥≤Lθz∥z−z′∥,∥∇zℓ(θ;z)−∇zℓ(θ′;z)∥≤Lzθ∥θ−θ′∥.\|\nabla_\theta\ell(\theta;z)-\nabla_\theta\ell(\theta;z')\|\le L_{\theta z}\|z-z'\|,\quad \|\nabla_z\ell(\theta;z)-\nabla_z\ell(\theta';z)\|\le L_{z\theta}\|\theta-\theta'\|.∥∇θ​ℓ(θ;z)−∇θ​ℓ(θ;z′)∥≤Lθz​∥z−z′∥,∥∇z​ℓ(θ;z)−∇z​ℓ(θ′;z)∥≤Lzθ​∥θ−θ′∥.

For a penalty γ>0\gamma>0γ>0, the robust surrogate and the robust objective are

φγ(θ;z0)=sup⁡z∈Z{ℓ(θ;z)−γc(z,z0)},F(θ)=EP0[φγ(θ;Z)].\varphi_\gamma(\theta;z_0)=\sup_{z\in Z}\{\ell(\theta;z)-\gamma c(z,z_0)\},\qquad F(\theta)=\mathbb E_{P_0}[\varphi_\gamma(\theta;Z)].φγ​(θ;z0​)=z∈Zsup​{ℓ(θ;z)−γc(z,z0​)},F(θ)=EP0​​[φγ​(θ;Z)].

By Wasserstein duality, F(θ)F(\theta)F(θ) equals the worst-case expected loss over all distributions PPP, penalized by γ\gammaγ times the transport distance from PPP to P0P_0P0​.

Algorithm 1 (with Θ=Rd\Theta=\mathbb R^dΘ=Rd and constant stepsize α\alphaα): from θ0\theta^0θ0, for t=0,…,T−1t=0,\dots,T-1t=0,…,T−1, draw zt∼P0z^t\sim P_0zt∼P0​ independently, find an ϵ\epsilonϵ-approximate maximizer z^t∈Z\hat z^t\in Zz^t∈Z, meaning ℓ(θt;z^t)−γc(z^t,zt)≥φγ(θt;zt)−ϵ\ell(\theta^t;\hat z^t)-\gamma c(\hat z^t,z^t)\ge\varphi_\gamma(\theta^t;z^t)-\epsilonℓ(θt;z^t)−γc(z^t,zt)≥φγ​(θt;zt)−ϵ, and set θt+1=θt−α∇θℓ(θt;z^t)\theta^{t+1}=\theta^t-\alpha\nabla_\theta\ell(\theta^t;\hat z^t)θt+1=θt−α∇θ​ℓ(θt;z^t).

Formalization targets

Goal: Theorem 2 (p. 6)

Let γ>Lzz\gamma>L_{zz}γ>Lzz​, Lφ=Lθθ+LθzLzθ/(γ−Lzz)L_\varphi=L_{\theta\theta}+L_{\theta z}L_{z\theta}/(\gamma-L_{zz})Lφ​=Lθθ​+Lθz​Lzθ​/(γ−Lzz​), ΔF≥F(θ0)−inf⁡θF(θ)\Delta_F\ge F(\theta^0)-\inf_\theta F(\theta)ΔF​≥F(θ0)−infθ​F(θ), and assume E∥∇F(θ)−∇θφγ(θ;Z)∥22≤σ2\mathbb E\|\nabla F(\theta)-\nabla_\theta\varphi_\gamma(\theta;Z)\|_2^2\le\sigma^2E∥∇F(θ)−∇θ​φγ​(θ;Z)∥22​≤σ2 for all θ\thetaθ. With α=ΔF/(LφTσ2)\alpha=\sqrt{\Delta_F/(L_\varphi T\sigma^2)}α=ΔF​/(Lφ​Tσ2)​ and T≥LφΔF/σ2T\ge L_\varphi\Delta_F/\sigma^2T≥Lφ​ΔF​/σ2,

1T∑t=0T−1E[∥∇F(θt)∥22]−4Lθz2γ−Lzz ϵ≤4σLφΔFT.\frac1T\sum_{t=0}^{T-1}\mathbb E\big[\|\nabla F(\theta^t)\|_2^2\big]-\frac{4L_{\theta z}^2}{\gamma-L_{zz}}\,\epsilon\le4\sigma\sqrt{\frac{L_\varphi\Delta_F}{T}}.T1​t=0∑T−1​E[∥∇F(θt)∥22​]−γ−Lzz​4Lθz2​​ϵ≤4σTLφ​ΔF​​​.

Milestones

  1. (4), p. 4: for γ≥Lzz\gamma\ge L_{zz}γ≥Lzz​, z↦ℓ(θ;z)−γc(z,z0)z\mapsto\ell(\theta;z)-\gamma c(z,z_0)z↦ℓ(θ;z)−γc(z,z0​) is (γ−Lzz)(\gamma-L_{zz})(γ−Lzz​)-strongly concave.
  2. Lemma 1, p. 5: the supremum fˉ(θ)=sup⁡z∈Zf(θ,z)\bar f(\theta)=\sup_{z\in Z}f(\theta,z)fˉ​(θ)=supz∈Z​f(θ,z) of a λ\lambdaλ-strongly concave family satisfying Assumption B is differentiable, with ∇fˉ(θ)=∇θf(θ,z⋆(θ))\nabla\bar f(\theta)=\nabla_\theta f(\theta,z_\star(\theta))∇fˉ​(θ)=∇θ​f(θ,z⋆​(θ)), a (Lzθ/λ)(L_{z\theta}/\lambda)(Lzθ​/λ)-Lipschitz maximizer and a (Lθθ+LθzLzθ/λ)(L_{\theta\theta}+L_{\theta z}L_{z\theta}/\lambda)(Lθθ​+Lθz​Lzθ​/λ)-Lipschitz gradient.
  3. §2.1, p. 6: φγ(⋅;z0)\varphi_\gamma(\cdot;z_0)φγ​(⋅;z0​) has LφL_\varphiLφ​-Lipschitz gradient ∇θφγ(θ;z0)=∇θℓ(θ;z⋆(z0,θ))\nabla_\theta\varphi_\gamma(\theta;z_0)=\nabla_\theta\ell(\theta;z_\star(z_0,\theta))∇θ​φγ​(θ;z0​)=∇θ​ℓ(θ;z⋆​(z0​,θ)).
  4. (31) and (32), p. 40: the descent inequality for an LφL_\varphiLφ​-smooth objective, and its form with the bias δ=g−∇θφγ\delta=g-\nabla_\theta\varphi_\gammaδ=g−∇θ​φγ​ separated, for α≤1/Lφ\alpha\le1/L_\varphiα≤1/Lφ​.
  5. The bias bound, p. 41: ∥δ∥22≤2Lθz2ϵ/(γ−Lzz)\|\delta\|_2^2\le 2L_{\theta z}^2\epsilon/(\gamma-L_{zz})∥δ∥22​≤2Lθz2​ϵ/(γ−Lzz​).
  6. The one-step bound in conditional expectation and the averaged bound, p. 41:
1T∑t<TE∥∇F(θt)∥22≤2ϵ^+2ΔFαT+2Lφασ2,ϵ^=2Lθz2γ−Lzzϵ,\frac1T\sum_{t<T}\mathbb E\|\nabla F(\theta^t)\|_2^2\le2\hat\epsilon+\frac{2\Delta_F}{\alpha T}+2L_\varphi\alpha\sigma^2,\qquad\hat\epsilon=\frac{2L_{\theta z}^2}{\gamma-L_{zz}}\epsilon,T1​t<T∑​E∥∇F(θt)∥22​≤2ϵ^+αT2ΔF​​+2Lφ​ασ2,ϵ^=γ−Lzz​2Lθz2​​ϵ,

for every constant stepsize 0<α≤1/Lφ0<\alpha\le1/L_\varphi0<α≤1/Lφ​. The goal is this bound at the balancing stepsize.

Significance

The result. Theorem 2 certifies that the robust training procedure is no harder, in iteration count, than ordinary nonconvex SGD: the stationarity measure decays as T−1/2T^{-1/2}T−1/2, and the inexactness of the adversary enters only as an additive term proportional to ϵ\epsilonϵ, independent of TTT. This is what licenses running a few steps of gradient ascent for the inner problem rather than solving it exactly. It also explains the role of the penalty: the guarantee requires γ>Lzz\gamma>L_{zz}γ>Lzz​, so smoothness of the loss in the data (smooth activations rather than ReLUs) is what makes the robust problem tractable.

Formalizing it. The result and its proof are published; nothing here is open. To our knowledge none of it is machine-checked. A formal proof would add a verified Danskin-type theorem for strongly concave suprema with explicit Lipschitz constants (Lemma 1), which is reusable well beyond this paper, and a verified nonconvex SGD analysis with a biased oracle, including the measure-theoretic bookkeeping (independence of the fresh sample from the current iterate, differentiation under the integral) that the paper's proof compresses into one line.

Difficulty

The deterministic inequalities (31), (32) and the bias bound are short. The weight sits elsewhere. First, Lemma 1 requires differentiability of a supremum over a possibly unbounded set, with the maximizer depending on θ\thetaθ; the paper invokes a Danskin-type theorem that is not in Mathlib, and the cost ccc is not assumed differentiable, so the first-order optimality conditions for the inner problem must be derived from strong convexity alone. Second, the expectation step uses E[∇θφγ(θt;zt)∣θt]=∇F(θt)\mathbb E[\nabla_\theta\varphi_\gamma(\theta^t;z^t)\mid\theta^t]=\nabla F(\theta^t)E[∇θ​φγ​(θt;zt)∣θt]=∇F(θt), which needs both differentiation under the integral sign for FFF and the independence of ztz^tzt from θt\theta^tθt along the run. Third, finiteness of every expectation along the run is not assumed and must be propagated from step to step.

Formalization scope

Lean representation: Θ\ThetaΘ and Rm\mathbb R^mRm are EuclideanSpace ℝ (Fin d) and EuclideanSpace ℝ (Fin m); ZZZ is a set in the latter. The loss is a function on all of Rd×Rm\mathbb R^d\times\mathbb R^mRd×Rm; its partial gradients are required at points of ZZZ and the Lipschitz conditions on ZZZ only. Strong convexity is Mathlib's StrongConvexOn, whose modulus convention matches the paper. Suprema are sSup over the image of ZZZ. FFF is a Bochner integral, and φγ(θ;⋅)\varphi_\gamma(\theta;\cdot)φγ​(θ;⋅) is assumed P0P_0P0​-integrable for every θ\thetaθ. The run is driven by (z0,…,zT−1)∼P0⊗T(z^0,\dots,z^{T-1})\sim P_0^{\otimes T}(z0,…,zT−1)∼P0⊗T​ (Measure.pi). The expectations in the conclusion and in the variance hypothesis are lower Lebesgue integrals in [0,∞][0,\infty][0,∞]; the ϵ\epsilonϵ-term of Theorem 2 is moved to the right-hand side.

Hypotheses made explicit that the paper leaves implicit: γ>Lzz\gamma>L_{zz}γ>Lzz​ (the paper writes γ≥Lzz\gamma\ge L_{zz}γ≥Lzz​ but divides by γ−Lzz\gamma-L_{zz}γ−Lzz​); ZZZ nonempty, convex and closed; Lipschitz constants nonnegative; σ>0\sigma>0σ>0, ΔF>0\Delta_F>0ΔF​>0, T≥1T\ge1T≥1, ϵ≥0\epsilon\ge0ϵ≥0; FFF bounded below (so inf⁡θF\inf_\theta Finfθ​F is a real number); integrability of φγ(θ;⋅)\varphi_\gamma(\theta;\cdot)φγ​(θ;⋅); P0(Z)=1P_0(Z)=1P0​(Z)=1; joint measurability of the oracle (θ,z0)↦z^(θ,z0)(\theta,z_0)\mapsto\hat z(\theta,z_0)(θ,z0​)↦z^(θ,z0​); and, in (32) and the later milestones, 0<α≤1/Lφ0<\alpha\le1/L_\varphi0<α≤1/Lφ​, which the paper assumes "in the rest of the proof". Lemma 1 is specialized to the Euclidean norm, the case Theorem 2 uses. The cost ccc is not assumed differentiable.

A trivializing formalization is ruled out: the run uses an oracle tied to φγ\varphi_\gammaφγ​ by the ϵ\epsilonϵ-gap and to ZZZ by membership, φγ\varphi_\gammaφγ​ is the supremum of the penalized loss over ZZZ, FFF is its P0P_0P0​-integral, and the hypotheses are satisfiable (for instance ℓ(θ;z)=12∥θ∥2\ell(\theta;z)=\tfrac12\|\theta\|^2ℓ(θ;z)=21​∥θ∥2, c(z,z0)=12∥z−z0∥2c(z,z_0)=\tfrac12\|z-z_0\|^2c(z,z0​)=21​∥z−z0​∥2, Z=RmZ=\mathbb R^mZ=Rm, P0P_0P0​ a point mass, ϵ=0\epsilon=0ϵ=0). Expectations as lower integrals prevent a non-integrable ∥∇F(θt)∥2\|\nabla F(\theta^t)\|^2∥∇F(θt)∥2 from being read as 000.

Infrastructure a complete development needs: the descent lemma for functions with Lipschitz gradient; first-order characterizations of strong concavity on a convex set; a Danskin/envelope theorem for strongly concave suprema; differentiation under the integral for FFF; and conditional-expectation bookkeeping for Markov-type recursions driven by i.i.d. samples on a finite product space. The first three are reusable in any minimax or bilevel analysis. Contributions to any milestone, or to these supporting facts as separate lemmas, are welcome.

Selected references

  • A. Sinha, H. Namkoong, R. Volpi, J. Duchi, Certifying Some Distributional Robustness with Principled Adversarial Training, ICLR 2018; arXiv:1710.10571v5, 2020. https://arxiv.org/abs/1710.10571
  • S. Ghadimi, G. Lan, Stochastic First- and Zeroth-Order Methods for Nonconvex Stochastic Programming, SIAM Journal on Optimization 23(4), 2013. https://doi.org/10.1137/120880811
  • J. F. Bonnans, A. Shapiro, Perturbation Analysis of Optimization Problems, Springer, 2000. https://doi.org/10.1007/978-1-4612-1394-9
  • R. Gao, A. Kleywegt, Distributionally Robust Stochastic Optimization with Wasserstein Distance, Mathematics of Operations Research 48(2), 2023; arXiv:1604.02199. https://arxiv.org/abs/1604.02199
10 thms3 active usersReviewed
🏆Completed
Bandit AlgorithmsOperations Research·Captain: mikedeng1

Regret in Online Combinatorial Optimization I: For Every Learning Rate the Exponentially Weighted Forecaster EXP2 Has Full-Information Regret at Least 0.01 d^{3/2}√n on Some Action SetResearch Paper

Motivation

Online combinatorial optimization is a repeated game in which a learner selects, round after round, a structured object (a subset of fixed size, a path, a matching, a spanning tree) encoded as a 0/1 vector, and an adversary assigns a cost to every coordinate. It models routing, ranking, scheduling and many other sequential decision problems in operations research and machine learning, and it contains prediction with expert advice as the special case of one-hot vectors.

The most widely used algorithm for this game is the exponentially weighted forecaster, which keeps a weight on every action and multiplies it by exp⁡(−η⋅loss)\exp(-\eta\cdot\text{loss})exp(−η⋅loss) after each round. Applied to a combinatorial action set it is called EXP2 (Audibert, Bubeck and Lugosi), or Expanded Hedge in the full-information case (Koolen, Warmuth and Kivinen, COLT 2010). Its standard analysis gives regret of order m3/2nlog⁡(d/m)m^{3/2}\sqrt{n\log(d/m)}m3/2nlog(d/m)​, while online mirror descent with the negative entropy (Component Hedge) achieves mnlog⁡(d/m)m\sqrt{n\log(d/m)}mnlog(d/m)​, which is optimal. Koolen, Warmuth and Kivinen left open whether a better tuning or a better analysis of EXP2 could close this gap.

Timeline.

  • 1997: Freund and Schapire analyse Hedge for experts.
  • 2010: Koolen, Warmuth and Kivinen introduce Component Hedge, prove the mnlog⁡(d/m)m\sqrt{n\log(d/m)}mnlog(d/m)​ bound, and ask whether Expanded Hedge can match it.
  • 2012–2014: Audibert, Bubeck and Lugosi (arXiv:1204.4710; Math. Oper. Res. 39(1), 2014) answer negatively: Theorem 1 exhibits an action set on which EXP2's full-information regret is at least 0.01 d3/2n0.01\,d^{3/2}\sqrt n0.01d3/2n​ for every learning rate.

Setting

Fix integers ddd (the dimension) and nnn (the number of rounds). An action set is a nonempty finite set A⊆{0,1}d\mathcal A\subseteq\{0,1\}^dA⊆{0,1}d whose elements all have the same number mmm of ones: ∥a∥1=m\|a\|_1=m∥a∥1​=m for every a∈Aa\in\mathcal Aa∈A. At each round t=1,…,nt=1,\dots,nt=1,…,n:

  1. the player chooses a probability distribution ptp_tpt​ on A\mathcal AA and draws at∼pta_t\sim p_tat​∼pt​;
  2. simultaneously, the adversary chooses a loss vector zt∈[0,1]dz_t\in[0,1]^dzt​∈[0,1]d;
  3. the player pays at⊤zta_t^\top z_tat⊤​zt​ and, in the full-information game, observes ztz_tzt​.

The regret after nnn rounds is

Rn=E∑t=1nat⊤zt−min⁡a∈AE∑t=1na⊤zt.R_n=\mathbb E\sum_{t=1}^n a_t^\top z_t-\min_{a\in\mathcal A}\mathbb E\sum_{t=1}^n a^\top z_t .Rn​=Et=1∑n​at⊤​zt​−a∈Amin​Et=1∑n​a⊤zt​.

EXP2 with learning rate η\etaη starts from the uniform distribution p1p_1p1​ on A\mathcal AA and updates, for every a∈Aa\in\mathcal Aa∈A,

pt+1(a)=exp⁡(−η a⊤zt) pt(a)∑b∈Aexp⁡(−η b⊤zt) pt(b).p_{t+1}(a)=\frac{\exp(-\eta\,a^\top z_t)\,p_t(a)}{\sum_{b\in\mathcal A}\exp(-\eta\,b^\top z_t)\,p_t(b)} .pt+1​(a)=∑b∈A​exp(−ηb⊤zt​)pt​(b)exp(−ηa⊤zt​)pt​(a)​.

In the Lean development IsBinaryActionSet A m is the action-set condition, exp2Weights A η z t is pt+1p_{t+1}pt+1​, and exp2Regret A η z n is RnR_nRn​ against a fixed loss sequence zzz. thmOneSet d, adv1 d and adv2 d ε are the action set and the two adversaries of the paper's proof.

Formalization targets

Goal: Theorem 1 (p. 6)

For n≥dn\ge dn≥d with ddd a multiple of 444, there is an action set A⊆{0,1}d\mathcal A\subseteq\{0,1\}^dA⊆{0,1}d with constant ∥a∥1\|a\|_1∥a∥1​ such that for every η≥0\eta\ge0η≥0 some adversary with losses in [0,1]d[0,1]^d[0,1]d makes EXP2 pay

Rn ≥ 0.01 d3/2n.R_n\ \ge\ 0.01\,d^{3/2}\sqrt n .Rn​ ≥ 0.01d3/2n​.

The action set is chosen before the learning rate, and the adversary after it.

Milestones (App. A and App. C)

  1. Lemma 3 (p. 19): for k≥1k\ge1k≥1 and 1≤c≤21\le c\le 21≤c≤2,
∑i=0k(1−i/k)(ki)2ci∑i=0k(ki)2ci ≥ 13.\frac{\sum_{i=0}^k(1-i/k)\binom ki^2c^i}{\sum_{i=0}^k\binom ki^2c^i}\ \ge\ \frac13 .∑i=0k​(ik​)2ci∑i=0k​(1−i/k)(ik​)2ci​ ≥ 31​.
  1. First adversary (p. 15): on the action set of App. A, against the alternating adversary, Rn=nd16tanh⁡ηd8R_n=\frac{nd}{16}\tanh\frac{\eta d}{8}Rn​=16nd​tanh8ηd​ for nnn even.
  2. Second adversary (p. 16): against the constant adversary with ε=min⁡(log⁡2/(ηn),1)\varepsilon=\min(\log2/(\eta n),1)ε=min(log2/(ηn),1), Rn≥min⁡(dlog⁡212η,nd12)R_n\ge\min\bigl(\frac{d\log2}{12\eta},\frac{nd}{12}\bigr)Rn​≥min(12ηdlog2​,12nd​) for η>0\eta>0η>0.
  3. Optimization over η\etaη (pp. 14–15): for every η>0\eta>0η>0,
max⁡(nd16tanh⁡ηd8, min⁡(dlog⁡212η,nd12)) ≥ min⁡(0.04 nd, 0.01 d3/2n).\max\Bigl(\tfrac{nd}{16}\tanh\tfrac{\eta d}{8},\ \min\bigl(\tfrac{d\log2}{12\eta},\tfrac{nd}{12}\bigr)\Bigr)\ \ge\ \min\bigl(0.04\,nd,\ 0.01\,d^{3/2}\sqrt n\bigr).max(16nd​tanh8ηd​, min(12ηdlog2​,12nd​)) ≥ min(0.04nd, 0.01d3/2n​).

Significance

The result. Theorem 1 shows that the gap between EXP2 and mirror descent with the negative entropy is not an artefact of the analysis: on an action set with m=d/2m=d/2m=d/2, where the optimal rate is of order dnd\sqrt ndn​, no learning rate brings EXP2 below 0.01 d3/2n0.01\,d^{3/2}\sqrt n0.01d3/2n​. Exponential weights over the actions are therefore provably suboptimal in online combinatorial optimization, which motivates working with the convex hull of A\mathcal AA (mirror descent) rather than with the actions themselves. The construction is also a template for algorithm-specific lower bounds: two adversaries, one punishing large and one punishing small learning rates.

Formalizing it. The result is proved in the paper (App. A, with Lemma 3 in App. C); to our knowledge none of it is machine-checked. A formalization yields a checked algorithm-specific lower bound for exponential weights, an exact closed-form regret computation for EXP2 on a structured action set, and a rigorous proof of Lemma 3, whose printed proof checks k≤106k\le10^6k≤106 numerically before an asymptotic argument with Stirling's formula.

Difficulty

The statements are elementary, but each step hides a real computation. The first adversary requires the exact distribution of EXP2 on a set of 2(d/2d/4)2\binom{d/2}{d/4}2(d/4d/2​) actions over alternating rounds, and a regret identity rather than a bound. The second requires controlling EXP2's expected loss over all nnn rounds against a constant adversary on the same exponentially large set. Lemma 3 is the hardest piece: at c=2c=2c=2 it is tight at k=1k=1k=1, while the ratio tends to 1−2/(1+2)≈0.4141-\sqrt2/(1+\sqrt2)\approx0.4141−2​/(1+2​)≈0.414 as k→∞k\to\inftyk→∞; the printed proof verifies k≤106k\le10^6k≤106 numerically, so a formal proof needs an argument valid for every kkk. A naive attempt to prove the goal with a single adversary fails: one adversary only defeats either large or small learning rates.

Formalization scope

  • Actions are real vectors Fin d → ℝ with entries in {0,1}\{0,1\}{0,1}, so a⊤za^\top za⊤z is the dot product. Coordinates and rounds are 0-based: the paper's odd rounds are the even indices.
  • EXP2 is defined by the recursion of Figure 2 with z~t=zt\tilde z_t=z_tz~t​=zt​, starting uniform on A\mathcal AA; its closed form pt(a)∝exp⁡(−η∑s<ta⊤zs)p_t(a)\propto\exp(-\eta\sum_{s<t}a^\top z_s)pt​(a)∝exp(−η∑s<t​a⊤zs​) is a consequence, not the definition.
  • The regret is defined against a deterministic, oblivious loss sequence, for which the expectation is a finite sum. Exhibiting such an adversary proves the paper's sup⁡adversary\sup_{\text{adversary}}supadversary​, since it is a special case of the paper's adaptive adversaries.
  • The minimum over A\mathcal AA is a Finset.inf'; every statement requires A\mathcal AA nonempty, so no junk value enters.
  • Added hypotheses: 4∣d4\mid d4∣d in the goal (the proof's own simplifying assumption; the printed statement fails at d=1d=1d=1, where any constant-norm A\mathcal AA is a singleton); η>0\eta>0η>0 and n≥1n\ge1n≥1 wherever 1/η1/\eta1/η or 1/(ηn)1/(\eta n)1/(ηn) appears. The goal does not assume nnn even, although App. A does; the second-adversary milestone does not need it either.
  • The action set of App. A is printed with "or"; it is formalized with exactly one of the two intervals filled, as the prose and the constant norm ∥a∥1=d/2\|a\|_1=d/2∥a∥1​=d/2 require.
  • Ruled out: an existential over η\etaη, an adversary chosen before η\etaη, an action set depending on η\etaη, unbounded losses, and an empty action set with a junk minimum would each make the goal trivial or different; the statement quantifies as above.

Contributions welcome: proofs of the milestones, a proof of Lemma 3 by any method, and reusable lemmas on exponential weights (normalization, closed form, monotonicity of weights along a constant adversary). The paper's proofs are in its App. A and App. C.

Selected references

  • J.-Y. Audibert, S. Bubeck, G. Lugosi, Regret in Online Combinatorial Optimization, Math. Oper. Res. 39(1), 2014; arXiv:1204.4710v2. https://arxiv.org/abs/1204.4710
  • W. M. Koolen, M. K. Warmuth, J. Kivinen, Hedging Structured Concepts, Proceedings of COLT 2010 (reference [26] of the paper above).
  • Y. Freund, R. E. Schapire, A Decision-Theoretic Generalization of On-Line Learning and an Application to Boosting, J. Comput. Syst. Sci. 55(1), 1997. https://doi.org/10.1006/jcss.1997.1504
  • S. Bubeck, N. Cesa-Bianchi, Regret Analysis of Stochastic and Nonstochastic Multi-armed Bandit Problems, Found. Trends Mach. Learn. 5(1), 2012; arXiv:1204.5721. https://arxiv.org/abs/1204.5721
6 thms3 active usersReviewed
🏆Completed
Operations ResearchOptimizationProbability·Captain: mikedeng1

Stochastic First- and Zeroth-Order Methods for Nonconvex Stochastic Programming 1: The Randomized Stochastic Gradient Method Has (1/L)E‖∇f(x_R)‖² ≤ (D_f² + σ²Σγ_k²)/Σ(2γ_k − Lγ_k²)Research Paper

Motivation

Stochastic gradient methods are the standard tool for minimizing an objective that can only be accessed through noisy gradient samples. Training a machine-learning model on sampled data, simulation-based optimization, and stochastic programs with endogenous uncertainty are all of this kind. In many of these applications the objective is nonconvex: the loss or the regularizer of a learning problem may be nonconvex, as may the expected cost of a simulation model.

Before 2013 the complexity theory of stochastic approximation (SA) was essentially a convex theory. Robbins and Monro (1951) introduced the method. Polyak and Juditsky (1992) and Nemirovski, Juditsky, Lan and Shapiro (2009) established optimal rates for convex problems, and Lan (2012) unified the smooth, nonsmooth and stochastic convex cases. None of these results covered nonconvex objectives. Ghadimi and Lan (2013) gave the first non-asymptotic complexity bound for a stochastic gradient method on a smooth nonconvex problem. The bound is stated for the expected squared gradient norm at a randomly chosen iterate, and it is the result this mission formalizes.

Setting

The problem is

f∗=inf⁡x∈Rnf(x),f^*=\inf_{x\in\mathbb R^n} f(x),f∗=x∈Rninf​f(x),

where f:Rn→Rf:\mathbb R^n\to\mathbb Rf:Rn→R is differentiable and bounded below, and its gradient is LLL-Lipschitz: ∥∇f(y)−∇f(x)∥≤L∥y−x∥\|\nabla f(y)-\nabla f(x)\|\le L\|y-x\|∥∇f(y)−∇f(x)∥≤L∥y−x∥ for all x,yx,yx,y. This class is written CL1,1(Rn)\mathcal C^{1,1}_L(\mathbb R^n)CL1,1​(Rn). The function need not be convex.

The gradient is accessible only through a stochastic first-order oracle: at the kkk-th query point xkx_kxk​ it returns G(xk,ξk)G(x_k,\xi_k)G(xk​,ξk​), where ξ1,ξ2,…\xi_1,\xi_2,\dotsξ1​,ξ2​,… are random variables and GGG is a Borel function. Assumption A1 asks that for every k≥1k\ge1k≥1, conditionally on the past, G(xk,ξk)G(x_k,\xi_k)G(xk​,ξk​) is an unbiased estimate of ∇f(xk)\nabla f(x_k)∇f(xk​), and that its error δk=G(xk,ξk)−∇f(xk)\delta_k=G(x_k,\xi_k)-\nabla f(x_k)δk​=G(xk​,ξk​)−∇f(xk​) has second moment E∥δk∥2≤σ2\mathbb E\|\delta_k\|^2\le\sigma^2E∥δk​∥2≤σ2. The noise variables need not be independent of each other or of the iterates.

The randomized stochastic gradient (RSG) method takes an initial point x1x_1x1​, an iteration limit NNN, stepsizes γk\gamma_kγk​ and a probability mass function PRP_RPR​ on {1,…,N}\{1,\dots,N\}{1,…,N}. It draws a random index R∼PRR\sim P_RR∼PR​, runs

xk+1=xk−γk G(xk,ξk),k=1,…,R,x_{k+1}=x_k-\gamma_k\,G(x_k,\xi_k),\qquad k=1,\dots,R,xk+1​=xk​−γk​G(xk​,ξk​),k=1,…,R,

and outputs xRx_RxR​. The mass function used in the main theorem is

PR(k)=2γk−Lγk2∑j=1N(2γj−Lγj2),k=1,…,N.P_R(k)=\frac{2\gamma_k-L\gamma_k^2}{\sum_{j=1}^N(2\gamma_j-L\gamma_j^2)},\qquad k=1,\dots,N.PR​(k)=∑j=1N​(2γj​−Lγj2​)2γk​−Lγk2​​,k=1,…,N.

The constants are Df=[2(f(x1)−f∗)/L]1/2D_f=[2(f(x_1)-f^*)/L]^{1/2}Df​=[2(f(x1​)−f∗)/L]1/2 and, in the convex case with minimizer x∗x^*x∗, DX=∥x1−x∗∥D_X=\|x_1-x^*\|DX​=∥x1​−x∗∥.

Formalization targets

Goal: Theorem 2.1 a)

If 0<γk<2/L0<\gamma_k<2/L0<γk​<2/L for k=1,…,Nk=1,\dots,Nk=1,…,N, N≥1N\ge1N≥1, and RRR has the mass function above, then under Assumption A1

1L E[∥∇f(xR)∥2]≤Df2+σ2∑k=1Nγk2∑k=1N(2γk−Lγk2),\frac1L\,\mathbb E\big[\|\nabla f(x_R)\|^2\big]\le\frac{D_f^2+\sigma^2\sum_{k=1}^N\gamma_k^2}{\sum_{k=1}^N(2\gamma_k-L\gamma_k^2)},L1​E[∥∇f(xR​)∥2]≤∑k=1N​(2γk​−Lγk2​)Df2​+σ2∑k=1N​γk2​​,

where the expectation is over RRR and the noise. Any stepsize sequence below 2/L2/L2/L is allowed, so the goal does not fix a step rule, and the step rules of the paper's corollaries follow from it.

Milestones

  1. The quadratic bound (1.6): ∣f(y)−f(x)−⟨∇f(x),y−x⟩∣≤L2∥y−x∥2|f(y)-f(x)-\langle\nabla f(x),y-x\rangle|\le\frac L2\|y-x\|^2∣f(y)−f(x)−⟨∇f(x),y−x⟩∣≤2L​∥y−x∥2 (already proved on the platform).
  2. The one-step inequality (2.8) and its pathwise sum (2.9).
  3. The conditional mean-zero property (2.10), E[⟨∇f(xk),δk⟩∣ξ[k−1]]=0\mathbb E[\langle\nabla f(x_k),\delta_k\rangle\mid\xi_{[k-1]}]=0E[⟨∇f(xk​),δk​⟩∣ξ[k−1]​]=0.
  4. The averaged bound (2.11), ∑k(γk−L2γk2) E∥∇f(xk)∥2≤f(x1)−f∗+Lσ22∑kγk2\sum_k(\gamma_k-\frac L2\gamma_k^2)\,\mathbb E\|\nabla f(x_k)\|^2\le f(x_1)-f^*+\frac{L\sigma^2}{2}\sum_k\gamma_k^2∑k​(γk​−2L​γk2​)E∥∇f(xk​)∥2≤f(x1​)−f∗+2Lσ2​∑k​γk2​.
  5. The weighting identity: E∥∇f(xR)∥2\mathbb E\|\nabla f(x_R)\|^2E∥∇f(xR​)∥2 equals the PRP_RPR​-weighted average of E∥∇f(xk)∥2\mathbb E\|\nabla f(x_k)\|^2E∥∇f(xk​)∥2.
  6. For the convex companion: co-coercivity (1.8) (already proved on the platform) and its consequence (2.12), 1L∥∇f(y)∥2≤⟨∇f(y),y−x∗⟩\frac1L\|\nabla f(y)\|^2\le\langle\nabla f(y),y-x^*\rangleL1​∥∇f(y)∥2≤⟨∇f(y),y−x∗⟩ when ∇f(x∗)=0\nabla f(x^*)=0∇f(x∗)=0.

Companion statements

Theorem 2.1 b) bounds E[f(xR)−f∗]\mathbb E[f(x_R)-f^*]E[f(xR​)−f∗] by (DX2+σ2∑γk2)/∑(2γk−Lγk2)(D_X^2+\sigma^2\sum\gamma_k^2)/\sum(2\gamma_k-L\gamma_k^2)(DX2​+σ2∑γk2​)/∑(2γk​−Lγk2​) when fff is convex with a minimizer. Corollary 2.2 specializes both bounds to the stepsizes γk=min⁡{1/L,D~/(σN)}\gamma_k=\min\{1/L,\tilde D/(\sigma\sqrt N)\}γk​=min{1/L,D~/(σN​)}:

1L E∥∇f(xR)∥2≤LDf2N+(D~+Df2D~)σN,\frac1L\,\mathbb E\|\nabla f(x_R)\|^2\le\frac{LD_f^2}{N}+\Big(\tilde D+\frac{D_f^2}{\tilde D}\Big)\frac{\sigma}{\sqrt N},L1​E∥∇f(xR​)∥2≤NLDf2​​+(D~+D~Df2​​)N​σ​,

and the analogous bound with DXD_XDX​ for E[f(xR)−f∗]\mathbb E[f(x_R)-f^*]E[f(xR​)−f∗] in the convex case.

Significance

Theorem 2.1 a) is the basic guarantee for stochastic gradient descent on smooth nonconvex objectives. With the stepsizes of Corollary 2.2 it shows that O(σ2/ϵ2)O(\sigma^2/\epsilon^2)O(σ2/ϵ2) oracle calls suffice to reach E∥∇f(xR)∥2≤ϵ\mathbb E\|\nabla f(x_R)\|^2\le\epsilonE∥∇f(xR​)∥2≤ϵ. The paper builds two further methods on it: a two-phase variant with large-deviation guarantees, and a zeroth-order variant (RSGF) that uses Gaussian smoothing when only function values are available. Later analyses of variance-reduced and adaptive stochastic methods for nonconvex problems measure their improvements against this bound.

The result is proved on paper; no machine-checked proof of it is known. A formalized fixed-step bound of the form "some iterate among the first KKK has small expected squared gradient" exists, but it is a different statement: it has no randomized output and no general stepsizes. A complete formalization would check the measure-theoretic content that the paper treats informally: integrability of the iterates' gradients, the conditional-expectation step under dependent noise, and the role of the independence of RRR.

Difficulty

The algebra of (2.8)–(2.9) is routine. The difficulty is in the probability. The noise may depend on the past, so the cross term ⟨∇f(xk),δk⟩\langle\nabla f(x_k),\delta_k\rangle⟨∇f(xk​),δk​⟩ vanishes only in conditional expectation, and only once xkx_kxk​ is known to be measurable with respect to the past. Its integrability is not assumed anywhere: ∇f(xk)\nabla f(x_k)∇f(xk​) must be shown to have a finite second moment from the recursion, the Lipschitz gradient and Assumption A1. The randomized output adds a second step, where E∥∇f(xR)∥2\mathbb E\|\nabla f(x_R)\|^2E∥∇f(xR​)∥2 is rewritten as a weighted average. This needs RRR independent of the noise, and ∥∇f(xk)∥2\|\nabla f(x_k)\|^2∥∇f(xk​)∥2 has to be exhibited as a measurable function of the noise sequence. A proof that replaces xRx_RxR​ by the deterministic weighted average skips exactly this step.

Formalization scope

  • Rn\mathbb R^nRn is EuclideanSpace ℝ (Fin n). f∈CL1,1f\in\mathcal C^{1,1}_Lf∈CL1,1​ is the published predicate ConvexOptAlg.SmoothGD.IsBetaSmooth f g L, with the gradient given as a map ggg. f∗f^*f∗ is the greatest lower bound of the range of fff, not an arbitrary lower bound.
  • Indices are 1-based. The iterates satisfy x1x_1x1​ given and xk+1=xk−γkG(xk,ξk)x_{k+1}=x_k-\gamma_kG(x_k,\xi_k)xk+1​=xk​−γk​G(xk​,ξk​) for k≥1k\ge1k≥1, pointwise on the sample space. The noise takes values in a general measurable space.
  • Assumption A1 is stated along the trajectory and in conditional form, with respect to any filtration to which the noise is adapted. The paper's history filtration σ(ξ1,…,ξk)\sigma(\xi_1,\dots,\xi_k)σ(ξ1​,…,ξk​) is one admissible choice. Every conditional expectation and every integral in a hypothesis comes with an integrability clause. Every bounded expectation in a conclusion comes with an integrability conjunct.
  • The output index RRR is a measurable random variable with values in {1,…,N}\{1,\dots,N\}{1,…,N} and law PRP_RPR​. It is assumed independent of the whole noise sequence; the paper leaves this implicit (Step 0 draws RRR before any oracle call).
  • Added hypotheses, all implicit on the page: L>0L>0L>0; γk>0\gamma_k>0γk​>0; independence of RRR. In Corollary 2.2 the stepsize (2.13) is read as γk=1/L\gamma_k=1/Lγk​=1/L when σ=0\sigma=0σ=0, the paper's convention D~/0=+∞\tilde D/0=+\inftyD~/0=+∞, because Lean's D~/0=0\tilde D/0=0D~/0=0 would otherwise give γk=0\gamma_k=0γk​=0.
  • The goal concerns the integral of ∥∇f(xR(ω)(ω))∥2\|\nabla f(x_{R(\omega)}(\omega))\|^2∥∇f(xR(ω)​(ω))∥2 over the sample space. A statement about the weighted sum of E∥∇f(xk)∥2\mathbb E\|\nabla f(x_k)\|^2E∥∇f(xk​)∥2 with RRR removed, or one that drops the integrability conjunct, would trivialize the randomized output and does not formalize the goal.
  • Infrastructure: measurability of the iterates as functions of the noise, the pull-out property of conditional expectation for inner products, and a second-moment induction along the recursion. These are reusable for the paper's two-phase and zeroth-order methods and for other stochastic-approximation analyses. Proofs of any milestone, or of the integrability lemmas on their own, are welcome.

Selected references

  • S. Ghadimi and G. Lan, Stochastic first- and zeroth-order methods for nonconvex stochastic programming, SIAM J. Optim. 23(4), 2341–2368, 2013. Preprint arXiv:1309.5549v1 (cited version). https://arxiv.org/abs/1309.5549
  • H. Robbins and S. Monro, A stochastic approximation method, Ann. Math. Statist. 22(3), 400–407, 1951. https://doi.org/10.1214/aoms/1177729586
  • B. T. Polyak and A. B. Juditsky, Acceleration of stochastic approximation by averaging, SIAM J. Control Optim. 30(4), 838–855, 1992. https://doi.org/10.1137/0330046
  • A. Nemirovski, A. Juditsky, G. Lan and A. Shapiro, Robust stochastic approximation approach to stochastic programming, SIAM J. Optim. 19(4), 1574–1609, 2009. https://doi.org/10.1137/070704277
  • G. Lan, An optimal method for stochastic composite optimization, Math. Program. 133, 365–397, 2012. https://doi.org/10.1007/s10107-010-0434-y
  • Y. Nesterov, Introductory Lectures on Convex Optimization: A Basic Course, Kluwer, 2004. https://doi.org/10.1007/978-1-4419-8853-9
13 thms3 active usersReviewed
🏆Completed
Convex OptimizationOperations ResearchOptimization·Captain: mikedeng1

Incremental Proximal Methods for Large Scale Convex Optimization I: With a Cyclic Order and a Diminishing Stepsize, Incremental Subgradient-Proximal Methods Converge to an Optimal SolutionResearch Paper

Motivation

Many optimization problems in machine learning, signal processing and distributed computation have an objective that is a sum of a large number mmm of component functions: one per data point, per sensor, or per processor. Evaluating the whole sum, or a subgradient of it, at every iteration is expensive when mmm is large. Incremental methods process one component at a time, cycling through the components or sampling them, and update the iterate after each one. Incremental gradient and subgradient methods go back to the training of neural networks and to least squares; incremental proximal methods replace the subgradient step of a component by a proximal step, which is more stable and handles nonsmooth terms exactly.

Bertsekas (LIDS-P-2847, 2010, rev. 2011; Math. Program. 129 (2011)) proposed a unified family that mixes the two: each component is split as Fi=fi+hiF_i=f_i+h_iFi​=fi​+hi​, a proximal step is taken on fif_ifi​ and a subgradient step on hih_ihi​, followed by a projection onto the constraint set. This mission formalizes the convergence analysis of that family under the cyclic order of component selection.

Timeline. Incremental subgradient methods were analysed by Nedić and Bertsekas (SIAM J. Optim. 12 (2001)) for cyclic and randomized orders. Incremental proximal methods were studied by Bertsekas (Optimization for Machine Learning, 2011, ch. 4). The 2011 paper combines the two analyses; its cyclic-order results are Propositions 3–6.

Setting

Let Rn\mathbb R^nRn carry the Euclidean norm ∥⋅∥\|\cdot\|∥⋅∥ and inner product x′yx'yx′y. The data are a nonempty closed convex set X⊆RnX\subseteq\mathbb R^nX⊆Rn and real-valued convex functions fi,hi:Rn→Rf_i,h_i:\mathbb R^n\to\mathbb Rfi​,hi​:Rn→R, i=1,…,mi=1,\dots,mi=1,…,m. The problem is

minimize F(x)=∑i=1mFi(x),Fi=fi+hi,subject to x∈X,\text{minimize } F(x)=\sum_{i=1}^m F_i(x),\qquad F_i=f_i+h_i,\qquad\text{subject to } x\in X,minimize F(x)=i=1∑m​Fi​(x),Fi​=fi​+hi​,subject to x∈X,

with optimal value F∗=inf⁡x∈XF(x)F^*=\inf_{x\in X}F(x)F∗=infx∈X​F(x), possibly −∞-\infty−∞, and optimal set X∗={x∗∈X:F(x∗)=F∗}X^*=\{x^*\in X:F(x^*)=F^*\}X∗={x∗∈X:F(x∗)=F∗}, possibly empty.

A subgradient ∇~f(x)\tilde\nabla f(x)∇~f(x) of a convex fff at xxx is a vector ggg with f(y)≥f(x)+g′(y−x)f(y)\ge f(x)+g'(y-x)f(y)≥f(x)+g′(y−x) for all yyy; PX(u)P_X(u)PX​(u) is the point of XXX nearest to uuu. At iteration kkk one component iki_kik​ is processed with stepsize αk>0\alpha_k>0αk​>0. The three iterations are

(19)zk=PX(xk−αk∇~fik(zk)),xk+1=PX(zk−αk∇~hik(zk)),(20)zk=xk−αk∇~fik(zk),xk+1=PX(zk−αk∇~hik(zk)),(21)zk=xk−αk∇~hik(xk),xk+1=PX(zk−αk∇~fik(xk+1)).\begin{aligned} &(19)\quad z_k=P_X\big(x_k-\alpha_k\tilde\nabla f_{i_k}(z_k)\big),&& x_{k+1}=P_X\big(z_k-\alpha_k\tilde\nabla h_{i_k}(z_k)\big),\\ &(20)\quad z_k=x_k-\alpha_k\tilde\nabla f_{i_k}(z_k),&& x_{k+1}=P_X\big(z_k-\alpha_k\tilde\nabla h_{i_k}(z_k)\big),\\ &(21)\quad z_k=x_k-\alpha_k\tilde\nabla h_{i_k}(x_k),&& x_{k+1}=P_X\big(z_k-\alpha_k\tilde\nabla f_{i_k}(x_{k+1})\big). \end{aligned}​(19)zk​=PX​(xk​−αk​∇~fik​​(zk​)),(20)zk​=xk​−αk​∇~fik​​(zk​),(21)zk​=xk​−αk​∇~hik​​(xk​),​​xk+1​=PX​(zk​−αk​∇~hik​​(zk​)),xk+1​=PX​(zk​−αk​∇~hik​​(zk​)),xk+1​=PX​(zk​−αk​∇~fik​​(xk+1​)).​

The fff-subgradient is taken at the new point, which makes the fff-part a proximal step (Proposition 1). In the cyclic order ik=(k mod m)+1i_k=(k\bmod m)+1ik​=(kmodm)+1; a block of mmm consecutive iterations is a cycle, and αk\alpha_kαk​ is constant within a cycle.

The analysis assumes that the subgradients the iteration uses are bounded by a constant ccc and that, at each cycle start k>0k>0k>0, the function values at the intermediate points of the cycle differ from those at xkx_kxk​ by at most ccc times the distance (Assumption 1 for (19), (20); Assumption 2 for (21)). Both hold, for example, when all fif_ifi​, hih_ihi​ are polyhedral or Lipschitz.

Formalization targets

Goal: Proposition 6

If αk→0\alpha_k\to0αk​→0 and ∑kαk=∞\sum_k\alpha_k=\infty∑k​αk​=∞, then

lim inf⁡k→∞F(xk)=F∗,\liminf_{k\to\infty}F(x_k)=F^*,k→∞liminf​F(xk​)=F∗,

and if moreover X∗≠∅X^*\neq\emptysetX∗=∅ and ∑kαk2<∞\sum_k\alpha_k^2<\infty∑k​αk2​<∞, then xk→x∗x_k\to x^*xk​→x∗ for some x∗∈X∗x^*\in X^*x∗∈X∗. Both parts are one item, as in the paper.

Milestones

  1. Proposition 1: the proximal iteration over XXX equals PX(xk−αk∇~f(xk+1))P_X(x_k-\alpha_k\tilde\nabla f(x_{k+1}))PX​(xk​−αk​∇~f(xk+1​)), and ∥xk+1−y∥2≤∥xk−y∥2−2αk(f(xk+1)−f(y))−∥xk−xk+1∥2\|x_{k+1}-y\|^2\le\|x_k-y\|^2-2\alpha_k(f(x_{k+1})-f(y))-\|x_k-x_{k+1}\|^2∥xk+1​−y∥2≤∥xk​−y∥2−2αk​(f(xk+1​)−f(y))−∥xk​−xk+1​∥2 for y∈Xy\in Xy∈X.
  2. Eq. (30) and Eq. (37): one-iteration estimates for (19)/(20) and for (21).
  3. Proposition 3: over one cycle, ∥xk+m−y∥2≤∥xk−y∥2−2αk(F(xk)−F(y))+αk2βm2c2\|x_{k+m}-y\|^2\le\|x_k-y\|^2-2\alpha_k(F(x_k)-F(y))+\alpha_k^2\beta m^2c^2∥xk+m​−y∥2≤∥xk​−y∥2−2αk​(F(xk​)−F(y))+αk2​βm2c2, with β=1m+4\beta=\frac1m+4β=m1​+4 for (19), (20) and β=5m+4\beta=\frac5m+4β=m5​+4 for (21).
  4. Footnote 5: nonnegative sequences with Yk+1≤Yk−Zk+WkY_{k+1}\le Y_k-Z_k+W_kYk+1​≤Yk​−Zk​+Wk​ and ∑Wk<∞\sum W_k<\infty∑Wk​<∞ have YkY_kYk​ convergent.
  5. Proof of Proposition 6: ∥xk+1−xk∥≤2αkc\|x_{k+1}-x_k\|\le2\alpha_kc∥xk+1​−xk​∥≤2αk​c.
  6. Proposition 4 (constant stepsize α\alphaα): lim inf⁡F(xk)=F∗\liminf F(x_k)=F^*liminfF(xk​)=F∗ if F∗=−∞F^*=-\inftyF∗=−∞, and lim inf⁡F(xk)≤F∗+αβm2c2/2\liminf F(x_k)\le F^*+\alpha\beta m^2c^2/2liminfF(xk​)≤F∗+αβm2c2/2 otherwise.

Significance

Proposition 6 is the exact-convergence guarantee for the cyclic incremental subgradient-proximal methods: with a diminishing, non-summable stepsize they reach the optimal value whatever the starting point, and with square-summable stepsizes the iterates converge to a single optimal solution. It covers the pure incremental subgradient method (fi=0f_i=0fi​=0) and the pure incremental proximal method (hi=0h_i=0hi​=0) as special cases, and it is the template for the randomized-order analysis of the companion mission. Proposition 4 quantifies what a constant stepsize achieves.

These results are proved in the paper. None of them, nor the underlying estimates, is formalized on the platform or, to our knowledge, in Mathlib. The mission produces machine-checked versions of the proximal-step lemma for extended-real-valued functions on a constrained set, of the cycle estimate (27) with its explicit constants, and of the deterministic supermartingale convergence lemma, all reusable for other incremental and proximal methods.

Difficulty

The obvious argument treats one cycle as one step of a subgradient method on FFF. It fails because within a cycle the subgradients are taken at the intermediate points zk+j−1z_{k+j-1}zk+j−1​ or xk+j−1x_{k+j-1}xk+j−1​, not at xkx_kxk​, and the proximal steps use subgradients at the points they produce. The error between Fj(xk)F_j(x_k)Fj​(xk​) and FjF_jFj​ at those points must be controlled through the drift of the iterates during the cycle, and the bookkeeping differs between (19)/(20) and (21), which is why β\betaβ differs. For the second part of Proposition 6, convergence of the values in the lim inf⁡\liminfliminf sense does not by itself give convergence of the iterates, and X∗X^*X∗ may contain more than one point.

Formalization scope

  • Rn\mathbb R^nRn is EuclideanSpace ℝ (Fin n). Components are Fin m (0-based), so iki_kik​ is k % m, and the paper's j=1,…,mj=1,\dots,mj=1,…,m with zk+j−1z_{k+j-1}zk+j−1​ becomes j=0,…,m−1j=0,\dots,m-1j=0,…,m−1 with z (k + j). m≥1m\ge1m≥1 is assumed (NeZero m).
  • PXP_XPX​ is a predicate (IsProj: a nearest point of XXX), not a choice function.
  • Each iteration is a relation Step between xkx_kxk​, zkz_kzk​, xk+1x_{k+1}xk+1​ and the two subgradients it uses, with the fff-subgradient at the point the paper names. A run records these subgradients, so Assumptions 1–2 bound exactly them. The assumptions are not replaced by Lipschitz continuity, which is only a sufficient condition (p. 9).
  • F∗F^*F∗ and lim inf⁡F(xk)\liminf F(x_k)liminfF(xk​) are taken in EReal; F∗=−∞F^*=-\inftyF∗=−∞ is allowed and no boundedness is assumed.
  • The standing assumptions of p. 4 (X nonempty closed convex, fi,hif_i,h_ifi​,hi​ convex), positive stepsizes, constancy within a cycle and Assumptions 1–2 (stated "throughout this section", p. 8) are explicit hypotheses of every statement, including the goal, whose sentence does not repeat them.
  • The starting point x0x_0x0​ is arbitrary, as in the paper. Assumptions 1–2 make the cycle-start conditions only for k>0k>0k>0, and the bound ∥xk+1−xk∥≤2αkc\|x_{k+1}-x_k\|\le2\alpha_kc∥xk+1​−xk​∥≤2αk​c needs xk∈Xx_k\in Xxk​∈X, which holds from k=1k=1k=1 on. Proposition 3 and the step bound are therefore stated for k>0k>0k>0 and k≥1k\ge1k≥1; this does not affect Propositions 4 and 6.
  • Proposition 1 is stated for extended-real-valued closed proper convex fff, as in the paper, using the published class Γ0\Gamma_0Γ0​ (MoreauProx.Characterization.GammaZero) and its subgradients, with relative interiors as Mathlib's intrinsicInterior.

The goal cannot be satisfied vacuously: a sorry-free check confirms that the hypotheses hold together (for n=1n=1n=1, m=2m=2m=2, X=RX=\mathbb RX=R, αk=1/(⌊k/2⌋+1)\alpha_k=1/(\lfloor k/2\rfloor+1)αk​=1/(⌊k/2⌋+1), X∗≠∅X^*\neq\emptysetX∗=∅). Restricting to Lipschitz components, to bounded-below FFF, or to x0∈Xx_0\in Xx0​∈X would state a weaker theorem and is ruled out.

Proofs of any item are welcome, as are general lemmas (the projection theorem as a variational inequality, the subdifferential sum rule under the relative-interior condition) that the proofs need.

Selected references

  • D. P. Bertsekas, Incremental Proximal Methods for Large Scale Convex Optimization, Report LIDS-P-2847, MIT, 2010 (rev. March 2011); Math. Program. 129(2) (2011) 163–195. https://doi.org/10.1007/s10107-011-0472-0
  • A. Nedić, D. P. Bertsekas, Incremental Subgradient Methods for Nondifferentiable Optimization, SIAM J. Optim. 12(1) (2001) 109–138. https://doi.org/10.1137/S1052623499362111
  • D. P. Bertsekas, Incremental Gradient, Subgradient, and Proximal Methods for Convex Optimization: A Survey, in Optimization for Machine Learning, MIT Press, 2011. https://arxiv.org/abs/1507.01030
  • D. P. Bertsekas, A. Nedić, A. E. Ozdaglar, Convex Analysis and Optimization, Athena Scientific, 2003.
10 thms3 active usersReviewed
🏆Completed
Information TheoryOptimal TransportOptimization·Captain: mikedeng1

Computational Optimal Transport IX: The Entropic Cost L^ε_C(a, b) Equals max ⟨f, a⟩ + ⟨g, b⟩ − ε⟨e^{f/ε}, K e^{g/ε}⟩, with Optimal Scalings (e^{f/ε}, e^{g/ε})Textbook

Motivation

Optimal transport compares two distributions by finding the least expensive way to move mass between them. For finite histograms, the resulting linear program is precise but its optimal coupling can be sparse. In applications where the coupling represents traffic, matching, or a differentiable loss, a sparse plan may be undesirable or expensive to compute repeatedly. Peyré and Cuturi describe how adding an entropy term selects a diffuse coupling and leads to matrix scaling algorithms that can be used on large finite problems (Peyré and Cuturi, 2019, Chapter 4).

The entropic dual gives a second view of the same regularized problem. Its variables are real vectors attached to the two marginal constraints. Unlike the ordinary Kantorovich dual, the objective has no explicit feasibility constraints and is smooth. This permits calculations in the log domain, which the book introduces because direct scaling with exponentials can suffer from numerical overflow or underflow when the regularization parameter is small relative to the costs (Peyré and Cuturi, 2019, §4.4). This mission targets the exact relationship between the regularized minimum, the smooth dual maximum, and the scaling factors.

Setting

Fix positive integers n,mn,mn,m. A histogram a∈Σna\in\Sigma_na∈Σn​ is a vector with nonnegative entries summing to one; b∈Σmb\in\Sigma_mb∈Σm​ is defined similarly. Strict positivity is required for the attained dual maximum and log-domain updates; the primal scaling and Kantorovich-feasibility statements also cover zero-entry histograms. A coupling P∈U(a,b)P\in U(a,b)P∈U(a,b) is an n×mn\times mn×m matrix with nonnegative entries, row sums aaa, and column sums bbb. A real matrix CCC assigns cost CijC_{ij}Cij​ to each transfer from row iii to column jjj, and ⟨C,P⟩=∑i,jCijPij\langle C,P\rangle=\sum_{i,j}C_{ij}P_{ij}⟨C,P⟩=∑i,j​Cij​Pij​ is its transport cost.

The book uses the entropy H(P)=−∑i,jPij(log⁡Pij−1)H(P)=-\sum_{i,j}P_{ij}(\log P_{ij}-1)H(P)=−∑i,j​Pij​(logPij​−1), with 0log⁡0=00\log0=00log0=0. For ε>0\varepsilon>0ε>0, the regularized cost is LCε(a,b)=min⁡P∈U(a,b){⟨C,P⟩−εH(P)}L_C^\varepsilon(a,b)=\min_{P\in U(a,b)}\{\langle C,P\rangle-\varepsilon H(P)\}LCε​(a,b)=minP∈U(a,b)​{⟨C,P⟩−εH(P)}. The Gibbs kernel has entries Kij=exp⁡(−Cij/ε)K_{ij}=\exp(-C_{ij}/\varepsilon)Kij​=exp(−Cij​/ε). Given potentials f∈Rnf\in\mathbb R^nf∈Rn and g∈Rmg\in\mathbb R^mg∈Rm, the smooth dual objective is Q(f,g)=⟨f,a⟩+⟨g,b⟩−ε∑i,jefi/εKijegj/εQ(f,g)=\langle f,a\rangle+\langle g,b\rangle-\varepsilon\sum_{i,j}e^{f_i/\varepsilon}K_{ij}e^{g_j/\varepsilon}Q(f,g)=⟨f,a⟩+⟨g,b⟩−ε∑i,j​efi​/εKij​egj​/ε. These are the finite-dimensional objects of (4.1), (4.2), and (4.30) in the source (Peyré and Cuturi, 2019, pp. 425, 428, 448).

Formalization targets

Attained entropic duality

The goal is Proposition 4.4. There are an optimal coupling PPP and potentials (f,g)(f,g)(f,g) at which the dual reaches its maximum, with the common value

LCε(a,b)=⟨C,P⟩−εH(P)=max⁡f′,g′Q(f′,g′).L_C^\varepsilon(a,b) =\langle C,P\rangle-\varepsilon H(P) =\max_{f',g'} Q(f',g').LCε​(a,b)=⟨C,P⟩−εH(P)=f′,g′max​Q(f′,g′).

For every maximizing pair (f′,g′)(f',g')(f′,g′), the same optimal coupling satisfies

Pij=efi′/εKijegj′/ε.P_{ij}=e^{f'_i/\varepsilon}K_{ij}e^{g'_j/\varepsilon}.Pij​=efi′​/εKij​egj′​/ε.

Thus the dual potentials determine the scaling vectors u=ef′/εu=e^{f'/\varepsilon}u=ef′/ε and v=eg′/εv=e^{g'/\varepsilon}v=eg′/ε in (4.12). The maximum is an attained maximum of a real function, as stated in the book, rather than an unrestricted real infimum or supremum that might take a default value on a bad input (Peyré and Cuturi, 2019, Proposition 4.4).

Supporting results

The milestones follow the source's statements. Proposition 4.3 gives existence, uniqueness, and the Gibbs scaling of the primal optimizer. Remark 4.21 gives the two partial-gradient formulas and the closed log-domain block updates. Proposition 4.5 states that an entropic dual maximizer is a feasible pair of ordinary Kantorovich potentials, so its linear objective is bounded above by the unregularized cost LC(a,b)L_C(a,b)LC​(a,b) (Peyré and Cuturi, 2019, pp. 432, 449, 452–453).

Significance

The equality establishes that the matrix scaling variables and the dual potentials describe the same optimal coupling. It lets a computation based on scaling be interpreted as maximizing a smooth objective, and it gives exact marginal-error expressions through the dual gradients. Feasible Kantorovich potentials obtained at the optimum also provide a lower bound on the ordinary transport cost. These statements explain why log-domain updates represent the same mathematical problem as entropic transport, even when direct exponentiation is numerically fragile (Peyré and Cuturi, 2019, §§4.4–4.5).

The results are established in the textbook; the open work here is their Lean formalization. A completed development would provide reusable finite coupling, entropy, Gibbs-kernel, and smooth-dual interfaces, together with the existence and differentiability results needed to connect them. It would also distinguish a primal optimum, a dual maximum, and a feasible potential without relying on informal convention. The mission does not assert that these textbook results are new, and no machine-checked proof of these exact statements is claimed here.

Difficulty

The unconstrained dual objective has a symmetry: shifting every coordinate of fff by one constant and every coordinate of ggg by its negative leaves the value unchanged. Consequently, the set of maximizers is not bounded in the ordinary product space. Positivity of the marginals matters for attaining a maximum with finite real potentials; if a marginal entry is zero, the corresponding potential can escape toward negative infinity. On the primal side, the entropy formula must be valid at zero entries even though optimality links it to strictly positive exponential scalings. The formal argument must connect these boundary conventions and the finite-dimensional optimization statements without turning the maximum into a junk real supremum (Peyré and Cuturi, 2019, Proposition 4.4 and Remark 4.21).

Formalization scope

The Lean development represents indices by Fin n and Fin m, matrices by Matrix (Fin n) (Fin m) ℝ, and histograms by Mathlib's stdSimplex. Positive dimensions and ε>0\varepsilon>0ε>0 appear throughout. Strictly positive marginal entries are required for the attained dual maximum and log-domain updates; the other statements permit zero entries. The book assumes positive weights for discrete measures in Remark 2.1; the marginal positivity is also required for the attained dual maximum and the logarithmic updates. The cost matrix itself may have arbitrary real entries. Entropy uses Real.negMulLog, which implements 0log⁡0=00\log0=00log0=0 on the nonnegative couplings where it is applied.

The primal optimum is a predicate on a coupling and its objective, rather than a chosen matrix. The unregularized LCL_CLC​ is a real infimum used only when simplex marginals make its feasible set nonempty and bounded. The dual objective is a finite sum. Its gradients are stated as one-variable derivatives in each coordinate, and each block update is characterized as the unique maximizer with the other block fixed. The complete development needs Mathlib's finite sums, real exponential and logarithm, calculus, finite-dimensional topology, and optimization facts. Contributions that establish these shared interfaces or the four milestone statements are in scope.

Propositions 4.7 and 4.8 are excluded from this proposal because their printed bounds compare a dual linear objective with LCεL_C^\varepsilonLCε​ where the accompanying arguments instead support a comparison with the unregularized LCL_CLC​; (4.47) also has a sign discrepancy. The milestone list therefore avoids encoding a false inequality (Peyré and Cuturi, 2019, pp. 453–454).

Selected references

  • Gabriel Peyré and Marco Cuturi, Computational Optimal Transport, Foundations and Trends in Machine Learning 11(5–6), 2019, pp. 355–607. DOI: 10.1561/2200000073.
8 thms3 active usersReviewed
🏆Completed
Information TheoryOptimal TransportOptimization·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 thms3 active usersReviewed
🏆Completed
Information TheoryProbabilityStatistics·Captain: mikedeng1

Information-Theoretic Analysis of Generalization Capability of Learning Algorithms III: The Gibbs Algorithm Has Excess Risk at Most (1/β)log(1/Q(wₒ)) + β/(2n) (Corollary 2)Research Paper

Motivation

Statistical learning algorithms fit hypotheses to data that are available during training, while their performance is judged on new data. A rule that minimizes training loss can fit peculiarities of the sample, so its training loss and population loss need not agree. Xu and Raginsky study this difference through information quantities associated with the sample and the algorithm's output. Their Gibbs example shows how a probability distribution chosen before seeing the data can guide a randomized learner and yield a population-risk guarantee with explicit dependence on the sample size and the prior's mass at a good hypothesis. This mission formalizes their countable-hypothesis result, Corollary 2, and the steps of Section 4.3 and Appendix D that support it. Xu and Raginsky, 2017

Setting

Let Z\mathcal ZZ be an instance space and W\mathcal WW a hypothesis space, each with a measurable structure. A probability measure μ\muμ on Z\mathcal ZZ generates a sample S=(Z1,…,Zn)S=(Z_1,\ldots,Z_n)S=(Z1​,…,Zn​) of nnn independent observations. A loss ℓ(w,z)\ell(w,z)ℓ(w,z) measures the cost of hypothesis www on instance zzz. Its population risk is Lμ(w)=EZ∼μℓ(w,Z)L_\mu(w)=\mathbb E_{Z\sim\mu}\ell(w,Z)Lμ​(w)=EZ∼μ​ℓ(w,Z); its empirical risk on a realized sample sss is Ls(w)=n−1∑i=1nℓ(w,zi)L_s(w)=n^{-1}\sum_{i=1}^n\ell(w,z_i)Ls​(w)=n−1∑i=1n​ℓ(w,zi​). These definitions match equations (1)–(3) of the paper. Xu and Raginsky, 2017, p. 2

A randomized learning rule is a Markov kernel PW∣SP_{W|S}PW∣S​: for each observed sample sss, it gives a probability distribution for an output hypothesis WWW. Together with the sample law μ⊗n\mu^{\otimes n}μ⊗n, it determines the joint law of (S,W)(S,W)(S,W). The expected generalization error is gen⁡(μ,PW∣S)=E[Lμ(W)−LS(W)]\operatorname{gen}(\mu,P_{W|S})=\mathbb E[L_\mu(W)-L_S(W)]gen(μ,PW∣S​)=E[Lμ​(W)−LS​(W)], as in equation (4). A probability distribution QQQ on W\mathcal WW serves as a prior. The Gibbs rule at inverse temperature β>0\beta>0β>0 weights a hypothesis by its prior mass times e−βLs(w)e^{-\beta L_s(w)}e−βLs​(w), then normalizes across the hypothesis space. Thus it favors low empirical risk without discarding the prior. Xu and Raginsky, 2017, pp. 2, 6

The associated optimization problem balances expected empirical risk against the conditional Kullback–Leibler divergence from the learning kernel to QQQ: D(PW∣S∥Q∣PS)=∫D(PW∣S=s∥Q) μ⊗n(ds)D(P_{W|S}\Vert Q\mid P_S)=\int D(P_{W|S=s}\Vert Q)\,\mu^{\otimes n}(ds)D(PW∣S​∥Q∣PS​)=∫D(PW∣S=s​∥Q)μ⊗n(ds). This penalty measures how much the output distribution changes from the prior after observing the sample. The paper's Theorem 5 identifies the Gibbs kernel as an optimizer of this relaxed problem. Xu and Raginsky, 2017, p. 6

Formalization targets

Gibbs optimization

For nonnegative loss, Theorem 5 asserts that the Gibbs kernel is a Markov learning rule, has the normalized exponential distribution at each sample, and minimizes the relaxed objective over learning kernels:

PW∣S=s∗(dw)=e−βLs(w)Q(dw)EQ[e−βLs(W)].P^*_{W|S=s}(dw)=\frac{e^{-\beta L_s(w)}Q(dw)}{\mathbb E_Q[e^{-\beta L_s(W)}]}.PW∣S=s∗​(dw)=EQ​[e−βLs​(W)]e−βLs​(w)Q(dw)​.

The milestone list also records the Appendix D empirical-risk comparison with a fixed hypothesis, its identity D(δw∥Q)=−log⁡Q({w})D(\delta_w\Vert Q)=-\log Q(\{w\})D(δw​∥Q)=−logQ({w}) when the prior has positive mass at www, and the Gibbs generalization bound quoted in equation (28). Xu and Raginsky, 2017, pp. 6–7, 13

Expected population risk

The goal is Corollary 2. If W\mathcal WW is countable, 0≤ℓ≤10\le\ell\le10≤ℓ≤1, wow_owo​ achieves the minimum population risk, and Q({wo})>0Q(\{w_o\})>0Q({wo​})>0, then

E[Lμ(W)]≤inf⁡w∈WLμ(w)+1βlog⁡1Q({wo})+β2n.\mathbb E[L_\mu(W)]\le\inf_{w\in\mathcal W}L_\mu(w) +\frac1\beta\log\frac1{Q(\{w_o\})}+\frac\beta{2n}.E[Lμ​(W)]≤w∈Winf​Lμ​(w)+β1​logQ({wo​})1​+2nβ​.

The first excess term reflects the prior mass on a population-risk minimizer; the second is controlled by sample size and inverse temperature. The target keeps the infimum over the whole hypothesis space and the constants of equation (29). Xu and Raginsky, 2017, p. 7

Significance

Corollary 2 gives a quantitative way to choose a prior and temperature: a prior that puts more mass on a good hypothesis reduces the logarithmic term, while changing β\betaβ changes both terms in opposite directions. It also connects the optimization characterization of a randomized algorithm to the population risk that matters for learning. Without the empirical-risk comparison and the separate generalization estimate, optimizing the training objective alone would not give this population statement. Xu and Raginsky, 2017, pp. 6–7, 13

The cited paper proves Corollary 2 and Theorem 5; the present task is to supply machine-checked proofs of their faithful Lean statements. The Donsker–Varadhan inequality and a tilted-measure identity are already published and proved on the platform, and the basic sample-law and risk definitions are already published. The Gibbs optimization, the Appendix D comparisons, and the quoted bound (28) are posed here as new targets. This work would leave reusable definitions for randomized learning kernels, their Gibbs specialization, and objectives with potentially infinite divergence.

Difficulty

The Gibbs rule is defined separately at every sample, but a learning algorithm must be a measurable kernel on the entire sample space. Establishing the normalized density pointwise does not by itself establish this kernel property. The relaxed objective also combines an integral of empirical risk with a conditional divergence, either of which can be infinite before bounded-loss assumptions are imposed. Equation (28), which the paper attributes to earlier work, needs a sharp β/(2n)\beta/(2n)β/(2n) constant; the looser information bound discussed immediately before it has a different dependence on β\betaβ. These are separate mathematical obligations even though the final displayed inequality is short. Xu and Raginsky, 2017, pp. 6–7, 13

Formalization scope

The Lean development represents a sample as Fin n → Z, its law as Measure.pi, and a randomized learner as Kernel (Fin n → Z) W. Population and empirical risks come from the published LearnStability.Characterization.Setting definition. The Gibbs kernel is built by a normalized density over the probability prior QQQ; Theorem 5 explicitly asserts it is a Markov kernel. The relaxed objective takes values in R≥0∪{∞}\mathbb R_{\ge0}\cup\{\infty\}R≥0​∪{∞}, so an infinite KL cost is not lost through real conversion. Generalization error remains the real expectation of the population-risk minus empirical-risk difference. The stated loss bounds ensure those real expectations are meaningful in the bounded-loss results.

The paper assumes a nonnegative loss in its general setting and requires ℓ∈[0,1]\ell\in[0,1]ℓ∈[0,1] for the later bounds. The Lean statements add joint measurability of ℓ\ellℓ and n>0n>0n>0 explicitly. Corollary 2 also makes the named minimizer's defining property and positive prior mass explicit: countability alone does not ensure an attained infimum, and a zero prior mass makes the printed logarithmic bound infinite. Theorem 5 retains its general measurable hypothesis space and nonnegative loss; countability appears only where the paper invokes it. Theorem 5 states optimality over all Markov kernels, the displayed Gibbs formula, and, for each sample, uniqueness of the Gibbs distribution as the minimizer of the samplewise problem (C.12) of Appendix C. The goal concerns the Gibbs kernel's actual population risk, rather than only the existence of a minimizer of the relaxed objective.

Useful contributions include probability-kernel measurability, control of conditional divergence and its finite conversions, the fixed-hypothesis comparison, and the sharp bounded-loss generalization estimate. The point-mass KL identity and the extended objective can be reused in other Gibbs and PAC-Bayesian formalizations. Xu and Raginsky, 2017, pp. 2, 6–7, 13

Selected references

  • A. Xu and M. Raginsky, Information-Theoretic Analysis of Generalization Capability of Learning Algorithms, Advances in Neural Information Processing Systems 30, 2017. arXiv:1705.07809v2
10 thms3 active usersReviewed
🏆Completed
Bandit AlgorithmsInformation TheoryProbability·Captain: mikedeng1

A Tutorial on Thompson Sampling I: Any Algorithm Whose Information Ratio Is at Most Γ̄ Has Expected Regret at Most √(Γ̄·H(x*)·T)Research Paper

Motivation

Thompson sampling (TS) chooses each action with the posterior probability that it is optimal. Its practical success in online advertising, recommendation and experimentation raised the question of why it works and when it does not. The tutorial of Russo, Van Roy, Kazerouni, Osband and Wen (Found. Trends Mach. Learn. 11(1), 2018) answers part of that question in §8.1 with an information-theoretic regret bound due to Russo and Van Roy (JMLR 17, 2016). The bound applies to every algorithm, not only TS. It reduces the analysis of a particular algorithm to one quantity, the information ratio: the squared expected regret of a period divided by the information the period yields about the optimal action.

Timeline:

  • 2016: Russo and Van Roy, An information-theoretic analysis of Thompson sampling (JMLR 17), introduce the information ratio with the regret and the mutual information both conditioned on a realised history, and prove the regret bound and bounds on the ratio for TS (for example ∣X∣/2|\mathcal X|/2∣X∣/2 for ∣X∣|\mathcal X|∣X∣-armed bandits and d/2d/2d/2 for linear bandits).
  • 2018: Russo and Van Roy, Learning to optimize via information-directed sampling (Oper. Res. 66), design algorithms that minimise the information ratio directly.
  • 2018: Russo and Van Roy, Satisficing in time-sensitive bandit learning (arXiv:1803.02855), observe that the same bounds hold with the information ratio averaged over histories. This is the form (8.7) the tutorial uses (footnote 1, p. 75).
  • 2018: the tutorial gives the bound as (8.8), with a three-line proof on p. 76 whose last step is cited from the 2016 paper.

Setting

An agent acts in periods t=1,2,…t=1,2,\dotst=1,2,…. In each period it selects an action xtx_txt​ from a finite set X\mathcal XX and observes an outcome yty_tyt​ from a finite set Y\mathcal YY. An unknown parameter θ\thetaθ, taking values in a measurable space Θ\ThetaΘ, has a prior distribution PPP. Given θ\thetaθ and the action xxx, the outcome is drawn from a probability vector qθ(⋅∣x)q_\theta(\cdot\mid x)qθ​(⋅∣x) that depends measurably on θ\thetaθ. The agent receives the reward r(yt)r(y_t)r(yt​) for a known function rrr. The mean reward of action xxx is

μ(x,θ)=∑yqθ(y∣x) r(y),\mu(x,\theta)=\sum_{y}q_\theta(y\mid x)\,r(y),μ(x,θ)=y∑​qθ​(y∣x)r(y),

and the optimal action x∗=x∗(θ)x^*=x^*(\theta)x∗=x∗(θ) is a measurable selector of arg⁡max⁡xμ(x,θ)\arg\max_x\mu(x,\theta)argmaxx​μ(x,θ). Ties may be broken in any measurable way, and every result holds for every selector.

The history Ht\mathbb H_tHt​ is the list (x1,y1),…,(xt,yt)(x_1,y_1),\dots,(x_t,y_t)(x1​,y1​),…,(xt​,yt​). An algorithm π\piπ assigns to every history a probability vector over X\mathcal XX, from which the next action is drawn. The joint law of (θ,Ht)(\theta,\mathbb H_t)(θ,Ht​) is P(dθ)∏s≤tπ(xs∣Hs−1) qθ(ys∣xs)P(d\theta)\prod_{s\le t}\pi(x_s\mid\mathbb H_{s-1})\,q_\theta(y_s\mid x_s)P(dθ)∏s≤t​π(xs​∣Hs−1​)qθ​(ys​∣xs​), and every expectation below is taken under it. The expected cumulative regret, or Bayesian regret, is

E[Regret(T)]=E[∑t=1T(μ(x∗,θ)−μ(xt,θ))].\mathbb E[\mathrm{Regret}(T)]=\mathbb E\Big[\sum_{t=1}^T\big(\mu(x^*,\theta)-\mu(x_t,\theta)\big)\Big].E[Regret(T)]=E[t=1∑T​(μ(x∗,θ)−μ(xt​,θ))].

The entropy of the prior distribution of x∗x^*x∗ is H(x∗)=−∑aP(x∗=a)log⁡P(x∗=a)H(x^*)=-\sum_a\mathbb P(x^*=a)\log\mathbb P(x^*=a)H(x∗)=−∑a​P(x∗=a)logP(x∗=a). The conditional mutual information I(x∗;(xt,yt)∣Ht−1)I(x^*;(x_t,y_t)\mid\mathbb H_{t-1})I(x∗;(xt​,yt​)∣Ht−1​) is the expected information that the period-ttt observation carries about x∗x^*x∗ given the past, averaged over the past. The information ratio of period ttt is (8.7):

Γt=(E[μ(x∗,θ)−μ(xt,θ)])2I(x∗;(xt,yt)∣Ht−1).\Gamma_t=\frac{\big(\mathbb E[\mu(x^*,\theta)-\mu(x_t,\theta)]\big)^2}{I(x^*;(x_t,y_t)\mid\mathbb H_{t-1})}.Γt​=I(x∗;(xt​,yt​)∣Ht−1​)(E[μ(x∗,θ)−μ(xt​,θ)])2​.

Formalization targets

Goal: (8.8)

For every model and every algorithm, every horizon TTT and every Γˉ≥0\bar\Gamma\ge0Γˉ≥0 with (E[μ(x∗,θ)−μ(xt,θ)])2≤Γˉ I(x∗;(xt,yt)∣Ht−1)\big(\mathbb E[\mu(x^*,\theta)-\mu(x_t,\theta)]\big)^2\le\bar\Gamma\,I(x^*;(x_t,y_t)\mid\mathbb H_{t-1})(E[μ(x∗,θ)−μ(xt​,θ)])2≤ΓˉI(x∗;(xt​,yt​)∣Ht−1​) for t=1,…,Tt=1,\dots,Tt=1,…,T,

E[Regret(T)]≤Γˉ H(x∗) T.\mathbb E[\mathrm{Regret}(T)]\le\sqrt{\bar\Gamma\,H(x^*)\,T}.E[Regret(T)]≤ΓˉH(x∗)T​.

When every mutual information is positive, the least such Γˉ\bar\GammaΓˉ is max⁡t≤TΓt\max_{t\le T}\Gamma_tmaxt≤T​Γt​, which is the tutorial's Γˉ\bar\GammaΓˉ. A companion theorem states that literal form under the positivity hypothesis.

Milestones, in the order of the p. 76 proof

  1. Regret is additive over periods:
E[Regret(T)]=∑t=1TE[μ(x∗,θ)−μ(xt,θ)].\mathbb E[\mathrm{Regret}(T)]=\sum_{t=1}^T\mathbb E[\mu(x^*,\theta)-\mu(x_t,\theta)].E[Regret(T)]=t=1∑T​E[μ(x∗,θ)−μ(xt​,θ)].
  1. The Jensen (Cauchy–Schwarz) step: if δt2≤ΓˉIt\delta_t^2\le\bar\Gamma I_tδt2​≤ΓˉIt​ for every ttt and ∑tIt≤H\sum_tI_t\le H∑t​It​≤H, then ∑tδt≤TΓˉH\sum_t\delta_t\le\sqrt{T\bar\Gamma H}∑t​δt​≤TΓˉH​. This milestone is the published, proved theorem BanditAlgorithm.information_ratio_cumulative_bound_signed. It states the step in the form the proof uses, with the entropy budget as a hypothesis.
  2. The entropy budget:
∑t=1TI(x∗;(xt,yt)∣Ht−1)≤H(x∗).\sum_{t=1}^T I\big(x^*;(x_t,y_t)\mid\mathbb H_{t-1}\big)\le H(x^*).t=1∑T​I(x∗;(xt​,yt​)∣Ht−1​)≤H(x∗).

Significance

The result. (8.8) separates the regret analysis of an algorithm into two independent problems. One is a per-period bound on the information ratio, which depends on the structure of the problem and the algorithm. The other is the entropy of the optimal action, which depends only on the prior. Combined with the bound Γˉ≤∣X∣/2\bar\Gamma\le|\mathcal X|/2Γˉ≤∣X∣/2 that Russo and Van Roy (2016) prove for TS on ∣X∣|\mathcal X|∣X∣-armed bandits, and with H(x∗)≤log⁡∣X∣H(x^*)\le\log|\mathcal X|H(x∗)≤log∣X∣, it gives ∣X∣ Tlog⁡∣X∣/2\sqrt{|\mathcal X|\,T\log|\mathcal X|/2}∣X∣Tlog∣X∣/2​. On the shortest-path problem of p. 76, Γˉ≤d/2\bar\Gamma\le d/2Γˉ≤d/2 makes the regret depend on the number ddd of edges and on H(x∗)H(x^*)H(x∗), not on the exponentially large number of paths. The same inequality is the design criterion of information-directed sampling, which chooses actions to minimise the ratio.

Formalizing it. The bound and its proof are known. The work here is to make the probabilistic model explicit, with a general parameter space, an outcome kernel and randomized algorithms; to formalize the per-period decomposition of the regret and the chain-rule argument behind the entropy budget, which the tutorial cites rather than proves; and to obtain (8.8) for every algorithm in one statement. The Proved platform results for Lattimore and Szepesvári's Bayesian adversarial bandit (Theorem 36.5 and its chain-rule lemmas) are about a different model: one algorithm (TS), the best arm in hindsight of a reward matrix, and the budget log⁡k\log klogk. To our knowledge, (8.8) itself has not been formalized.

Difficulty

The Cauchy–Schwarz step is elementary and already proved on the platform. Milestone 1 is bookkeeping: the cumulative regret integrates over histories of length TTT, while the period-ttt term integrates over histories of length ttt, and later periods must be integrated out.

The substance is the entropy budget. The obvious attempt bounds each period's information by H(x∗)H(x^*)H(x∗), which loses a factor TTT. The bound is uniform in TTT only because the per-period informations telescope: their sum is the information that the whole history carries about x∗x^*x∗, which is at most the entropy of x∗x^*x∗. Each step requires conditional distributions of x∗x^*x∗ given histories, where θ\thetaθ lives in a general measurable space and is integrated against the prior. Zero-probability histories must also be handled consistently with the convention 0log⁡0=00\log0=00log0=0.

Formalization scope

  • X\mathcal XX and Y\mathcal YY are finite types; Θ\ThetaΘ is an arbitrary measurable space with a probability measure PPP. The tutorial allows infinite action sets and general outcomes. The finite specialization makes H(x∗)H(x^*)H(x∗) and every mutual information a finite sum. The kernel qθ(⋅∣x)q_\theta(\cdot\mid x)qθ​(⋅∣x) of §4 replaces the noise representation yt=g(xt,θ,wt)y_t=g(x_t,\theta,w_t)yt​=g(xt​,θ,wt​) of p. 70; both describe the same laws.
  • Standing hypotheses: qθ(y∣x)≥0q_\theta(y\mid x)\ge0qθ​(y∣x)≥0, ∑yqθ(y∣x)=1\sum_yq_\theta(y\mid x)=1∑y​qθ​(y∣x)=1, measurability of θ↦qθ(y∣x)\theta\mapsto q_\theta(y\mid x)θ↦qθ​(y∣x), measurability of the level sets of x∗x^*x∗, and μ(x,θ)≤μ(x∗(θ),θ)\mu(x,\theta)\le\mu(x^*(\theta),\theta)μ(x,θ)≤μ(x∗(θ),θ). They make every integrand bounded and measurable, so no integrability hypothesis is added.
  • An algorithm is a behavioural policy, giving a probability vector over actions for each history. Under perfect recall this is equivalent to an algorithm with internal randomization. Periods are 0-based in Lean: Lean period sss is tutorial period t=s+1t=s+1t=s+1.
  • Logarithms are natural in both III and HHH. The conditional mutual information is defined directly as an average of Kullback–Leibler divergences, with joint probabilities. It is not defined as a difference of unconditional mutual informations: that would make the chain rule true by definition and empty milestone 3. Γt\Gamma_tΓt​ is never written as a quotient in the goal, so a period with zero information cannot turn the bound into one with Γˉ=0\bar\Gamma=0Γˉ=0.
  • Needed infrastructure: marginalisation over later periods of the history law, the chain rule of conditional mutual information for finite variables averaged against a general prior, and I(x∗;HT)≤H(x∗)I(x^*;\mathbb H_T)\le H(x^*)I(x∗;HT​)≤H(x∗). The Proved platform results InformationTheory.kernel_average_categorical_kl_le_marginal_entropy and its _general variant (average KL to the mixture is at most the mixture's entropy), and the adversarial-bandit lemmas BanditAlgorithm.bayesian_ts_conditional_information_gain_chain_rule and bayesian_history_mutualInformation_endpoint_bound, are related tools. A chain-rule library for this history model would be reusable beyond this mission, for example for information-directed sampling. Proofs of auxiliary lemmas are welcome.

The tutorial's argument is on pp. 75–76. The tutorial cites Russo and Van Roy (2016) for the original results, including the entropy budget.

Selected references

  • D. J. Russo, B. Van Roy, A. Kazerouni, I. Osband, Z. Wen, A Tutorial on Thompson Sampling, Foundations and Trends in Machine Learning 11(1):1–96, 2018. https://doi.org/10.1561/2200000070
  • D. Russo, B. Van Roy, An Information-Theoretic Analysis of Thompson Sampling, Journal of Machine Learning Research 17(68):1–30, 2016. https://jmlr.org/papers/v17/14-087.html (arXiv: https://arxiv.org/abs/1403.5341)
  • D. Russo, B. Van Roy, Learning to Optimize via Information-Directed Sampling, Operations Research 66(1):230–252, 2018. https://doi.org/10.1287/opre.2017.1663
  • D. Russo, B. Van Roy, Satisficing in Time-Sensitive Bandit Learning, arXiv preprint, 2018. https://arxiv.org/abs/1803.02855
  • T. Lattimore, C. Szepesvári, Bandit Algorithms, Cambridge University Press, 2020, Chapter 36. https://doi.org/10.1017/9781108571401
5 thms3 active usersReviewed
🏆Completed
Numerical AnalysisOptimal TransportOptimization·Captain: mikedeng1

Computational Optimal Transport VIII: Sinkhorn's Scalings Contract by λ(K)² per Iteration in Hilbert's Projective MetricTextbook

Why Sinkhorn's algorithm needs a convergence rate

Sinkhorn's algorithm is the standard method for computing entropically regularized optimal transport between two histograms. It is used throughout machine learning, statistics, imaging and graphics because each iteration is two matrix–vector products followed by entrywise divisions, which parallelize on GPUs and differentiate easily. The same iteration, under the names matrix scaling, RAS or iterative proportional fitting, has been used since the 1930s in transportation planning, economics and contingency-table analysis. Whether the iteration converges, and how fast, determines how many iterations a practitioner must run and which stopping criteria are reliable.

This mission formalizes the global convergence analysis of Sinkhorn's algorithm as presented in Chapter 4 (§4.2, Remarks 4.12–4.14) of G. Peyré and M. Cuturi, Computational Optimal Transport (2019).

Timeline. Sinkhorn (1964) proved that a positive matrix can be scaled to be doubly stochastic, and Sinkhorn and Knopp (1967) extended this to prescribed marginals. Birkhoff (1957) and Samelson (1957) independently showed that a positive linear map is a strict contraction of the positive cone for Hilbert's projective metric, with an explicit ratio. Franklin and Lorenz (1989) combined the two to prove that Sinkhorn's scalings converge linearly in Hilbert's metric at rate λ(K)2\lambda(K)^2λ(K)2. Linial, Samorodnitsky and Wigderson (1998) related the iteration to the permanent.

Setting

Fix n,m≥1n, m \ge 1n,m≥1, a matrix K∈Rn×mK \in \mathbb{R}^{n\times m}K∈Rn×m with positive entries (in the book, the Gibbs kernel Ki,j=e−Ci,j/εK_{i,j} = e^{-C_{i,j}/\varepsilon}Ki,j​=e−Ci,j​/ε), and vectors a∈Rna \in \mathbb{R}^na∈Rn, b∈Rmb \in \mathbb{R}^mb∈Rm with positive entries. Products ⊙\odot⊙ and quotients of vectors are entrywise. The regularized transport plan has the form P=diag(u)Kdiag(v)P = \mathrm{diag}(u)K\mathrm{diag}(v)P=diag(u)Kdiag(v), where the scalings u,vu, vu,v solve

u⊙(Kv)=a,v⊙(K⊤u)=b.(4.14)u \odot (Kv) = a, \qquad v \odot (K^\top u) = b. \tag{4.14}u⊙(Kv)=a,v⊙(K⊤u)=b.(4.14)

Sinkhorn's algorithm alternately enforces each equation:

v(0)=1m,u(ℓ+1)=aKv(ℓ),v(ℓ+1)=bK⊤u(ℓ+1).(4.15)v^{(0)} = \mathbb{1}_m,\qquad u^{(\ell+1)} = \frac{a}{Kv^{(\ell)}},\qquad v^{(\ell+1)} = \frac{b}{K^\top u^{(\ell+1)}}. \tag{4.15}v(0)=1m​,u(ℓ+1)=Kv(ℓ)a​,v(ℓ+1)=K⊤u(ℓ+1)b​.(4.15)

For vectors with positive entries, Hilbert's projective metric is

dH(u,u′)=log⁡max⁡i,juiuj′ujui′,d_{\mathcal H}(u,u') = \log\max_{i,j}\frac{u_i u'_j}{u_j u'_i},dH​(u,u′)=logi,jmax​uj​ui′​ui​uj′​​,

which vanishes exactly when uuu and u′u'u′ are proportional, and equals the variation seminorm ∥log⁡u−log⁡u′∥var\|\log u - \log u'\|_{\mathrm{var}}∥logu−logu′∥var​ with ∥f∥var=max⁡ifi−min⁡ifi\|f\|_{\mathrm{var}} = \max_i f_i - \min_i f_i∥f∥var​=maxi​fi​−mini​fi​. Birkhoff's constants of KKK are

η(K)=max⁡i,j,k,ℓKi,kKj,ℓKj,kKi,ℓ,λ(K)=η(K)−1η(K)+1.\eta(K) = \max_{i,j,k,\ell}\frac{K_{i,k}K_{j,\ell}}{K_{j,k}K_{i,\ell}},\qquad \lambda(K) = \frac{\sqrt{\eta(K)}-1}{\sqrt{\eta(K)}+1}.η(K)=i,j,k,ℓmax​Kj,k​Ki,ℓ​Ki,k​Kj,ℓ​​,λ(K)=η(K)​+1η(K)​−1​.

Write P(ℓ)=diag(u(ℓ))Kdiag(v(ℓ))P^{(\ell)} = \mathrm{diag}(u^{(\ell)})K\mathrm{diag}(v^{(\ell)})P(ℓ)=diag(u(ℓ))Kdiag(v(ℓ)) and P⋆=diag(u⋆)Kdiag(v⋆)P^\star = \mathrm{diag}(u^\star)K\mathrm{diag}(v^\star)P⋆=diag(u⋆)Kdiag(v⋆) for a positive solution (u⋆,v⋆)(u^\star, v^\star)(u⋆,v⋆) of (4.14).

Formalization targets

Goal: Theorem 4.2 (Franklin–Lorenz)

For every ℓ\ellℓ,

dH(v(ℓ),v⋆)≤λ(K)2ℓ dH(v(0),v⋆),dH(u(ℓ+1),u⋆)≤λ(K)2ℓ+1 dH(v(0),v⋆),d_{\mathcal H}(v^{(\ell)}, v^\star) \le \lambda(K)^{2\ell}\, d_{\mathcal H}(v^{(0)}, v^\star),\qquad d_{\mathcal H}(u^{(\ell+1)}, u^\star) \le \lambda(K)^{2\ell+1}\, d_{\mathcal H}(v^{(0)}, v^\star),dH​(v(ℓ),v⋆)≤λ(K)2ℓdH​(v(0),v⋆),dH​(u(ℓ+1),u⋆)≤λ(K)2ℓ+1dH​(v(0),v⋆),

so both distances tend to 000; for ℓ≥1\ell \ge 1ℓ≥1,

dH(u(ℓ),u⋆)≤dH(P(ℓ)1m,a)1−λ(K)2,max⁡i,j∣log⁡Pi,j(ℓ)−log⁡Pi,j⋆∣≤dH(u(ℓ),u⋆)+dH(v(ℓ),v⋆),d_{\mathcal H}(u^{(\ell)}, u^\star) \le \frac{d_{\mathcal H}(P^{(\ell)}\mathbb{1}_m, a)}{1-\lambda(K)^2},\qquad \max_{i,j}\big|\log P^{(\ell)}_{i,j} - \log P^\star_{i,j}\big| \le d_{\mathcal H}(u^{(\ell)},u^\star) + d_{\mathcal H}(v^{(\ell)},v^\star),dH​(u(ℓ),u⋆)≤1−λ(K)2dH​(P(ℓ)1m​,a)​,i,jmax​​logPi,j(ℓ)​−logPi,j⋆​​≤dH​(u(ℓ),u⋆)+dH​(v(ℓ),v⋆),

and for ℓ≥0\ell \ge 0ℓ≥0 the mirrored bound for v(ℓ)v^{(\ell)}v(ℓ) with the half-step coupling diag(u(ℓ+1))Kdiag(v(ℓ))\mathrm{diag}(u^{(\ell+1)})K\mathrm{diag}(v^{(\ell)})diag(u(ℓ+1))Kdiag(v(ℓ)). The book writes the rate as O(λ(K)2ℓ)O(\lambda(K)^{2\ell})O(λ(K)2ℓ); the constants stated are those its proof yields.

Milestones, in attack order

  1. (4.21): dH(u,u′)=∥log⁡u−log⁡u′∥vard_{\mathcal H}(u,u') = \|\log u - \log u'\|_{\mathrm{var}}dH​(u,u′)=∥logu−logu′∥var​.
  2. Remark 4.12: dHd_{\mathcal H}dH​ is a distance on rays (triangle inequality; zero exactly on proportional vectors).
  3. Invariances: dH(v,v′)=dH(v/v′,1)=dH(1/v,1/v′)d_{\mathcal H}(v,v') = d_{\mathcal H}(v/v',\mathbb{1}) = d_{\mathcal H}(\mathbb{1}/v,\mathbb{1}/v')dH​(v,v′)=dH​(v/v′,1)=dH​(1/v,1/v′) and invariance under positive diagonal scaling.
  4. Theorem 4.1 (Birkhoff–Hopf): dH(Kv,Kv′)≤λ(K) dH(v,v′)d_{\mathcal H}(Kv,Kv') \le \lambda(K)\,d_{\mathcal H}(v,v')dH​(Kv,Kv′)≤λ(K)dH​(v,v′) and λ(K)<1\lambda(K) < 1λ(K)<1.
  5. One half-step contracts by λ(K)\lambda(K)λ(K): dH(u(ℓ+1),u⋆)≤λ(K) dH(v(ℓ),v⋆)d_{\mathcal H}(u^{(\ell+1)},u^\star) \le \lambda(K)\,d_{\mathcal H}(v^{(\ell)},v^\star)dH​(u(ℓ+1),u⋆)≤λ(K)dH​(v(ℓ),v⋆), and the vvv-analogue.
  6. The display behind (4.23): dH(u(ℓ),u⋆)≤dH(a,u(ℓ)⊙Kv(ℓ))+λ(K)2dH(u(ℓ),u⋆)d_{\mathcal H}(u^{(\ell)},u^\star) \le d_{\mathcal H}(a, u^{(\ell)}\odot Kv^{(\ell)}) + \lambda(K)^2 d_{\mathcal H}(u^{(\ell)},u^\star)dH​(u(ℓ),u⋆)≤dH​(a,u(ℓ)⊙Kv(ℓ))+λ(K)2dH​(u(ℓ),u⋆), and its mirror.

Significance

The result. Theorem 4.2 gives a global linear rate that holds from the first iteration, independent of the starting point, with a ratio computable from KKK alone. Through (4.21) the rate transfers to the dual potentials εlog⁡u(ℓ)\varepsilon\log u^{(\ell)}εlogu(ℓ), and the bounds (4.23) turn the marginal violations P(ℓ)1mP^{(\ell)}\mathbb{1}_mP(ℓ)1m​ versus aaa — which are computed anyway — into certified stopping criteria. Theorem 4.1 alone also yields a quantitative Perron–Frobenius theorem (Remark 4.13).

Formalizing it. All results here are classical and proved in the literature (Birkhoff 1957; Franklin–Lorenz 1989); Theorem 4.1 is quoted by the book without proof. To our knowledge neither Hilbert's projective metric on the positive cone, the Birkhoff–Hopf theorem, nor the convergence rate of Sinkhorn's algorithm has a machine-checked proof in Mathlib. The mission produces a reusable development of dHd_{\mathcal H}dH​ and Birkhoff's contraction theorem, and a certified rate and stopping rule for the most widely used optimal-transport solver.

Difficulty

Milestones 1–3 and 5–6 are finite manipulations of maxima of ratios. The central difficulty is Theorem 4.1. The obvious argument — bound (Kv)i/(Kv′)i(Kv)_i/(Kv')_i(Kv)i​/(Kv′)i​ entrywise by max⁡kvk/vk′\max_k v_k/v'_kmaxk​vk​/vk′​ — only shows that KKK is non-expansive (λ≤1\lambda \le 1λ≤1); it loses the strict contraction entirely. The sharp ratio (η−1)/(η+1)(\sqrt{\eta}-1)/(\sqrt{\eta}+1)(η​−1)/(η​+1) depends on how KKK acts on the two vectors jointly, which the entrywise argument does not see. The book quotes the theorem without proof, so the argument has to be supplied from Birkhoff's original paper or later expositions.

Formalization scope

Lean namespace CompOT.Sinkhorn. Indices are 000-based (Fin n, Fin m); vectors are functions Fin n → ℝ, matrices Matrix (Fin n) (Fin m) ℝ, and ⊙\odot⊙ and /// are the pointwise operations on functions. dHd_{\mathcal H}dH​, η\etaη and ∥⋅∥var\|\cdot\|_{\mathrm{var}}∥⋅∥var​ use real iSup/iInf over the finite index sets. Every theorem assumes 0<n0 < n0<n, 0<m0 < m0<m and positive entries for KKK, aaa, bbb and every vector passed to dHd_{\mathcal H}dH​, which excludes Lean's junk values for division by zero and logarithms of non-positive numbers. Sinkhorn's algorithm is a run predicate (IsSinkhornRun) stating the recursion (4.15) with v(0)=1mv^{(0)} = \mathbb{1}_mv(0)=1m​; u(0)u^{(0)}u(0) is not an iterate and is unconstrained. The solution (u⋆,v⋆)(u^\star, v^\star)(u⋆,v⋆) is any positive solution of (4.14), taken as a hypothesis (it exists iff ∑iai=∑jbj\sum_i a_i = \sum_j b_j∑i​ai​=∑j​bj​); the book's histograms are probability vectors, but only positivity is used. P⋆P^\starP⋆ in (4.24) is diag(u⋆)Kdiag(v⋆)\mathrm{diag}(u^\star)K\mathrm{diag}(v^\star)diag(u⋆)Kdiag(v⋆), the solution of the regularized problem (4.2) by Proposition 4.3.

Deviations from the print, all disclosed in the items: the O(⋅)O(\cdot)O(⋅) of (4.22) is replaced by the proof's explicit constants; the limit (u(ℓ),v(ℓ))→(u⋆,v⋆)(u^{(\ell)}, v^{(\ell)}) \to (u^\star, v^\star)(u(ℓ),v(ℓ))→(u⋆,v⋆) is stated as dH→0d_{\mathcal H} \to 0dH​→0, since scalings are determined only up to (ru,v/r)(ru, v/r)(ru,v/r); the second inequality of (4.23) is false as printed (its right side is 000 for ℓ≥1\ell \ge 1ℓ≥1) and is stated with the half-step coupling the mirrored proof gives.

A definition of dHd_{\mathcal H}dH​ without the logarithm, or as a maximum of single-entry ratios, would make the statements different theorems; the definition here is the book's, and (4.21) is a milestone checking it against the variation seminorm. A run predicate not tied to KKK, aaa, bbb, or an unsatisfiable one, is ruled out: the predicate is the recursion itself and is inhabited for every KKK, aaa, bbb.

Contributions welcome: the metric properties of dHd_{\mathcal H}dH​ (reusable for Perron–Frobenius and nonlinear consensus), a proof of the Birkhoff–Hopf theorem, and positivity lemmas for Sinkhorn iterates.

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 (§4.2, pp. 431–443)
  • J. Franklin, J. Lorenz, On the scaling of multidimensional matrices, Linear Algebra and its Applications 114/115:717–735, 1989. https://doi.org/10.1016/0024-3795(89)90490-4
  • G. Birkhoff, Extensions of Jentzsch's theorem, Transactions of the AMS 85(1):219–227, 1957. https://doi.org/10.1090/S0002-9947-1957-0087058-6
  • H. Samelson, On the Perron–Frobenius theorem, Michigan Mathematical Journal 4(1):57–59, 1957. https://doi.org/10.1307/mmj/1028990177
  • R. Sinkhorn, A relationship between arbitrary positive matrices and doubly stochastic matrices, Annals of Mathematical Statistics 35(2):876–879, 1964. https://doi.org/10.1214/aoms/1177703591
  • N. Linial, A. Samorodnitsky, A. Wigderson, A deterministic strongly polynomial algorithm for matrix scaling and approximate permanents, STOC 1998. https://doi.org/10.1145/276698.276880
8 thms3 active usersReviewed
🏆Completed
Convex OptimizationOptimization·Captain: mikedeng1

Revisiting Frank-Wolfe: Projection-Free Sparse Convex Optimization 1: All Four Frank-Wolfe Variants Reach Duality Gap ≤ 2βC_f(1+δ)/(K+2), β = 27/8, Within K IterationsResearch Paper

Why a duality-gap guarantee matters

The Frank–Wolfe method, also called the conditional-gradient method, minimizes a smooth convex objective over a compact convex set while asking only for a minimizer of a linear function over that set. In domains where a linear optimization oracle is easier than a projection, this distinction changes which algorithms are practical. Examples in Jaggi's paper include optimization over convex hulls of atomic sets, norm-constrained matrix problems, and domains where iterates can be stored as combinations of a few atoms (Jaggi 2013, §§1–2).

A bound on the unknown difference between the current objective and the optimum does not, by itself, tell an implementation when to stop. The duality gap in this paper can be computed from the same linear optimization problem the method already solves. It provides a certificate tied to the current iterate, so an observed small gap is meaningful even when the optimal objective value is unavailable. The paper's Theorem 2 guarantees that one of the first KKK iterates of four variants has such a certificate, including variants whose linear subproblems are solved only approximately (Jaggi 2013, PDF pp. 2–4).

Setting and notation

Let DDD be a compact convex subset of a real vector space and let fff be a convex, continuously differentiable real-valued function. The optimization problem is min⁡x∈Df(x)\min_{x\in D}f(x)minx∈D​f(x), and x∗∈Dx^*\in Dx∗∈D denotes a minimizer. A Frank–Wolfe step begins at x(k)x^{(k)}x(k), chooses an atom s(k)∈Ds^{(k)}\in Ds(k)∈D by approximately minimizing the linear function s↦⟨s,∇f(x(k))⟩s\mapsto\langle s,\nabla f(x^{(k)})\rangles↦⟨s,∇f(x(k))⟩, and forms a new point from the current point and the chosen atom. In Algorithm 1 the minimization is exact; Algorithm 2 allows an additive oracle error. Algorithm 3 uses a line search along the segment to the atom. Algorithm 4 minimizes over the convex hull of all atoms selected so far, including s(0)=x(0)s^{(0)}=x^{(0)}s(0)=x(0) (Jaggi 2013, Algorithms 1–4).

For x∈Dx\in Dx∈D, the paper defines the duality gap by

g(x)=max⁡s∈D⟨x−s,∇f(x)⟩.g(x)=\max_{s\in D}\langle x-s,\nabla f(x)\rangle.g(x)=s∈Dmax​⟨x−s,∇f(x)⟩.

Convexity gives 0≤f(x)−f(x∗)≤g(x)0\le f(x)-f(x^*)\le g(x)0≤f(x)−f(x∗)≤g(x). An exact minimizer of the linear subproblem attains the maximum defining g(x)g(x)g(x), so its chosen atom gives the certificate directly (Jaggi 2013, equation (2) and §2).

The curvature constant measures the scaled departure of fff from its linearization along chords of DDD:

Cf=sup⁡x,s∈D,  0<γ≤12γ2[f(x+γ(s−x))−f(x)−⟨γ(s−x),∇f(x)⟩].C_f=\sup_{x,s\in D,\;0<\gamma\le1}\frac{2}{\gamma^2}\left[f(x+\gamma(s-x))-f(x)-\langle\gamma(s-x),\nabla f(x)\rangle\right].Cf​=x,s∈D,0<γ≤1sup​γ22​[f(x+γ(s−x))−f(x)−⟨γ(s−x),∇f(x)⟩].

The paper uses CfC_fCf​ in both the oracle tolerance δγkCf/2\delta\gamma_k C_f/2δγk​Cf​/2 and the convergence bounds, where γk=2/(k+2)\gamma_k=2/(k+2)γk​=2/(k+2) and δ≥0\delta\ge0δ≥0 measures linear-subproblem accuracy. For a linear objective Cf=0C_f=0Cf​=0; for f(x)=∥x∥22/2f(x)=\|x\|_2^2/2f(x)=∥x∥22​/2, it is the squared Euclidean diameter of DDD (Jaggi 2013, equation (3) and §3).

Formalization targets

The milestone path records the linearization inequality and its primal-error certificate, the identity between the exact linear subproblem and the gap, and the paper's primal convergence Theorem 1:

f(x(k))−f(x∗)≤2Cfk+2(1+δ),k≥1.f(x^{(k)})-f(x^*)\le\frac{2C_f}{k+2}(1+\delta),\qquad k\ge1.f(x(k))−f(x∗)≤k+22Cf​​(1+δ),k≥1.

The mission goal is primal-dual convergence, Theorem 2. If one of Algorithms 1–4 runs for K≥2K\ge2K≥2 iterations, there is an index 1≤k^≤K1\le\widehat k\le K1≤k≤K for which

g(x(k^))≤2βCfK+2(1+δ),β=278.g(x^{(\widehat k)})\le\frac{2\beta C_f}{K+2}(1+\delta),\qquad\beta=\frac{27}{8}.g(x(k))≤K+22βCf​​(1+δ),β=827​.

Both targets retain the paper's constants and its approximate-oracle tolerance. The mission also states the paper's curvature examples, Lipschitz-gradient comparison, and invariance of curvature under affine reparameterization. These companions clarify what CfC_fCf​ measures; the goal itself is the duality-gap theorem (Jaggi 2013, PDF pp. 3–4).

What the result supplies

Theorem 2 converts a rate expressed using an unknown optimum into a guarantee about a quantity available through the algorithm's linear oracle. Combined with the certificate inequality, a small observed gap also bounds the primal error. The same theorem covers an exact oracle, an approximate oracle, line search, and full correction over past atoms, with one numerical constant. That common guarantee is the reason the four update rules belong in one formal target rather than four unrelated asymptotic statements (Jaggi 2013, Theorems 1–2).

The paper proves these statements; this mission asks for machine-checked proofs of their precise Lean versions. The source PDF held here is the nine-page published proceedings paper, which states the results but does not contain its supplementary appendices with proofs. A complete formal development would therefore also be useful as a self-contained account of the gap, curvature, and four algorithms. The definitions of the gap and curvature, and the exact-oracle certificate, can be reused in later convex-optimization developments.

Where the difficulty lies

Theorem 1 bounds the objective difference at each iterate, but the bound on g(x(k^))g(x^{(\widehat k)})g(x(k)) asks for a good certificate at some iterate in a finite window. A small primal error alone does not assert that the current linear oracle sees a small gap. The analysis has to connect the gap to progress across steps while accounting for the approximate linear oracle and for updates that differ from the fixed convex-combination step. The fully corrective variant also remembers all prior atoms, whereas the line-search variant chooses its step length from the current segment. These differences are present in the Lean step predicate and cannot be erased by assuming a gap bound on the run (Jaggi 2013, Algorithm 2–4 and Theorem 2).

Formalization scope

Lean represents DDD as a set in a real normed vector space and writes the pairing with ∇f(x)\nabla f(x)∇f(x) as the Fréchet derivative f′(x)f'(x)f′(x) applied to a displacement. The paper's footnote names a Hilbert space; the normed-space statement is a disclosed generalization because the results use the inner product only through the derivative pairing. Convexity is required on DDD, rather than on the whole ambient space, while the paper's continuously differentiable hypothesis is retained. Compactness, convexity, feasibility of x(0)x^{(0)}x(0), and existence of x∗x^*x∗ appear explicitly in the convergence statements.

The curvature supremum excludes γ=0\gamma=0γ=0, where the source formula contains division by zero. Its defining set is required to be bounded above when a convergence theorem treats CfC_fCf​ as a finite real number; compactness and an existing feasible point make the duality-gap supremum meaningful. The selected variant is one of four explicit step rules. Algorithm 3's oracle tolerance uses γk=2/(k+2)\gamma_k=2/(k+2)γk​=2/(k+2) before line search, and Algorithm 4's atom hull contains x(0)x^{(0)}x(0). The iterates are zero-based; the goal constrains the source algorithm's steps 0,…,K0,\ldots,K0,…,K and selects k^\widehat kk from 1,…,K1,\ldots,K1,…,K. For Algorithm 1, the exact oracle is encoded for all δ≥0\delta\ge0δ≥0; δ=0\delta=0δ=0 recovers the page's stated case.

The construction relies on Mathlib's topology, convexity, continuous derivatives, real suprema, metric diameter, and continuous affine maps. Contributions that prove the milestone certificates, establish the curvature identities, or connect the four concrete step rules to the main finite-iteration bound are in scope. A run hypothesis that directly bounds its gap or primal error would remove the assertion being formalized and is excluded.

Selected references

  • Martin Jaggi, Revisiting Frank-Wolfe: Projection-Free Sparse Convex Optimization, Proceedings of the 30th International Conference on Machine Learning, JMLR Workshop and Conference Proceedings 28, 2013. Published paper.
5 thms3 active usersReviewed
🏆Completed
ProbabilityStatisticsTheoretical Computer Science·Captain: mikedeng1

A Learning Theory Approach to Non-Interactive Database Privacy 1: The Net Mechanism Is (α, δ)-Useful for Every Class of Counting Queries with Error Governed by Its VC-DimensionResearch Paper

Motivation

A data curator holds a database of nnn individual records and wants to publish something from which many statistics can be computed, while guaranteeing differential privacy: no single record should noticeably change what is published (Dwork, McSherry, Nissim, Smith 2006). Interactive mechanisms answer queries one at a time and add noise to each answer, so their accuracy degrades as more queries are asked; Dinur and Nissim showed that answering too many arbitrary queries accurately reveals the database (Dinur, Nissim 2003).

Blum, Ligett and Roth asked a different question: can a curator release, once and non-interactively, a synthetic database that is accurate simultaneously for every query of a large, structured class, while remaining differentially private? Their answer (arXiv:1109.2229; JACM 60(2), 2013; conference version STOC 2008) is yes for every class of counting queries over a discretized universe, with accuracy governed by the class's VC-dimension rather than its cardinality. The mechanism it introduces, the Net mechanism, became the starting point of the literature on private query release (SmallDB, private multiplicative weights, and the lower bounds that followed).

Setting

Fix a finite data universe XXX (for instance X={0,1}kX=\{0,1\}^kX={0,1}k). The curator's input is an nnn-tuple z=(z1,…,zn)∈Xnz=(z_1,\dots,z_n)\in X^nz=(z1​,…,zn​)∈Xn, read as a multiset of records. Two inputs are neighbouring if they differ in exactly one entry.

A database of arbitrary size D∈X∗D\in X^*D∈X∗ is a finite nonempty multiset of elements of XXX. For a predicate φ:X→{0,1}\varphi:X\to\{0,1\}φ:X→{0,1} the counting query is

Qφ(D)=1∣D∣∑x∈Dφ(x),Q_\varphi(D)=\frac{1}{|D|}\sum_{x\in D}\varphi(x),Qφ​(D)=∣D∣1​x∈D∑​φ(x),

the fraction of records satisfying φ\varphiφ. A class CCC of predicates is identified with its class of counting queries, and its VC-dimension VCDIM(C)\mathrm{VCDIM}(C)VCDIM(C) is the size of the largest set of points that CCC shatters.

A randomized mechanism AAA, whose output on input zzz is a random database D^∈X∗\hat D\in X^*D^∈X∗, is ε\varepsilonε-differentially private if Pr⁡[A(z)∈S]≤eεPr⁡[A(z′)∈S]\Pr[A(z)\in S]\le e^{\varepsilon}\Pr[A(z')\in S]Pr[A(z)∈S]≤eεPr[A(z′)∈S] for all neighbouring z,z′z,z'z,z′ and all sets SSS of outputs. It is (α,δ)(\alpha,\delta)(α,δ)-useful for CCC if for every input zzz, with probability at least 1−δ1-\delta1−δ, ∣Qφ(D^)−Qφ(z)∣≤α|Q_\varphi(\hat D)-Q_\varphi(z)|\le\alpha∣Qφ​(D^)−Qφ​(z)∣≤α for every φ∈C\varphi\in Cφ∈C.

The global sensitivity of f:Xn→Rf:X^n\to\mathbb Rf:Xn→R is GSf=max⁡∣f(z)−f(z′)∣GS_f=\max|f(z)-f(z')|GSf​=max∣f(z)−f(z′)∣ over neighbouring pairs. An α\alphaα-net for CCC is a finite set N⊆X∗N\subseteq X^*N⊆X∗ such that every D∈X∗D\in X^*D∈X∗ has some D′∈ND'\in ND′∈N with ∣Qφ(D)−Qφ(D′)∣≤α|Q_\varphi(D)-Q_\varphi(D')|\le\alpha∣Qφ​(D)−Qφ​(D′)∣≤α for all φ∈C\varphi\in Cφ∈C; Nα(C)N_\alpha(C)Nα​(C) denotes a net of minimum size.

The exponential mechanism with quality score q:Xn×R→Rq:X^n\times R\to\mathbb Rq:Xn×R→R over a finite range RRR outputs rrr with probability proportional to exp⁡(εq(z,r)/(2GSq))\exp(\varepsilon q(z,r)/(2GS_q))exp(εq(z,r)/(2GSq​)). The Net mechanism is the exponential mechanism over R=Nα(C)R=N_\alpha(C)R=Nα​(C) with score q(z,D′)=−max⁡φ∈C∣Qφ(z)−Qφ(D′)∣q(z,D')=-\max_{\varphi\in C}|Q_\varphi(z)-Q_\varphi(D')|q(z,D′)=−maxφ∈C​∣Qφ​(z)−Qφ​(D′)∣.

Formalization targets

Goal: Theorem 3.10

There is an absolute constant c>0c>0c>0 such that, for every finite XXX, d=VCDIM(C)≥1d=\mathrm{VCDIM}(C)\ge1d=VCDIM(C)≥1, n≥1n\ge1n≥1, ε>0\varepsilon>0ε>0, 0<δ≤10<\delta\le10<δ≤1, 0<α≤120<\alpha\le\tfrac120<α≤21​, whenever

α ≥ cεα2n(dlog⁡∣X∣log⁡1α+log⁡1δ),\alpha\ \ge\ \frac{c}{\varepsilon\alpha^2 n}\Big(d\log|X|\log\frac1\alpha+\log\frac1\delta\Big),α ≥ εα2nc​(dlog∣X∣logα1​+logδ1​),

a minimum α2\tfrac\alpha22α​-net exists and the Net mechanism run on any minimum α2\tfrac\alpha22α​-net is (α,δ)(\alpha,\delta)(α,δ)-useful for CCC. The constant is left unspecified, as in the paper; the goal asserts the shape of the bound, not a value of ccc.

Milestones

  1. Observation 2.4: GSQφ≤1/nGS_{Q_\varphi}\le 1/nGSQφ​​≤1/n.
  2. Theorem 3.2 and Property 3.3: the exponential mechanism, hence the Net mechanism, is ε\varepsilonε-differentially private.
  3. Property 3.4: for any query class with sensitivities at most Δ\DeltaΔ, the Net mechanism is (2α,δ)(2\alpha,\delta)(2α,δ)-useful once α≥2Δεlog⁡∣Nα(C)∣δ\alpha\ge\frac{2\Delta}{\varepsilon}\log\frac{|N_\alpha(C)|}{\delta}α≥ε2Δ​logδ∣Nα​(C)∣​.
  4. Corollary 3.5: for counting queries, (2α,δ)(2\alpha,\delta)(2α,δ)-useful once α≥2εnlog⁡∣Nα(C)∣δ\alpha\ge\frac{2}{\varepsilon n}\log\frac{|N_\alpha(C)|}{\delta}α≥εn2​logδ∣Nα​(C)∣​.
  5. Lemma 3.7 and Theorem 3.6 (finite classes): ∣Nα(C)∣≤∣X∣⌈log⁡∣C∣/α2⌉|N_\alpha(C)|\le|X|^{\lceil\log|C|/\alpha^2\rceil}∣Nα​(C)∣≤∣X∣⌈log∣C∣/α2⌉.
  6. Lemma 3.8 and Theorem 3.9 (finite VC-dimension): ∣Nα(C)∣≤∣X∣c0 dlog⁡(1/α)/α2|N_\alpha(C)|\le|X|^{c_0\,d\log(1/\alpha)/\alpha^2}∣Nα​(C)∣≤∣X∣c0​dlog(1/α)/α2.

Significance

The result. Theorem 3.10 shows that a database of size roughly O~(VCDIM(C)log⁡∣X∣/(α3ε))\tilde O(\mathrm{VCDIM}(C)\log|X|/(\alpha^3\varepsilon))O~(VCDIM(C)log∣X∣/(α3ε)) suffices to release, privately, a synthetic database answering every query of CCC to within α\alphaα. This is only a polynomial factor above what sampling needs without privacy, and it covers classes with exponentially many queries in nnn, which interactive noise addition cannot. Together with Property 3.3 it is the first general feasibility result for non-interactive private release, and it identified VC-dimension as the governing parameter.

Formalizing it. The result is proved in the paper, modulo the cited uniform-convergence lemma (Lemma 3.8). No part of it is machine-checked on the platform. A complete development would give a formal exponential mechanism with a general score and its privacy proof, a formal utility analysis of a mechanism with a finite range, and a formal ε-approximation theorem for VC classes, which is the deepest dependency and reusable across learning theory.

Difficulty

The privacy and utility of the exponential mechanism (Theorem 3.2, Property 3.4) are short ratio arguments. The difficulty is concentrated in bounding the size of the net. For finite classes a random-sampling and union-bound argument suffices (Lemma 3.7). For infinite classes the union bound over CCC is unavailable, and Lemma 3.8 needs uniform convergence over a class of finite VC-dimension, uniformly over every finite multiset DDD: a symmetrization or chaining argument together with the Sauer–Shelah lemma, none of which is in Mathlib in this form. The obvious route of applying the finite-class bound to the restriction of CCC to the support of DDD gives a size depending on ∣D∣|D|∣D∣ and fails.

Formalization scope

  • Inputs are Fin n → X with X : Type finite; neighbouring means "replace one entry", the platform's PrivLearn.Generic.Neighbors. The paper's "∣DΔD′∣≤1|D\Delta D'|\le1∣DΔD′∣≤1" read literally for equal-size multisets forces D=D′D=D'D=D′ and would make every mechanism private.
  • Databases of arbitrary size are nonempty multisets (Database X), with every set measurable. Queries are real functions on multisets, so the same query reads inputs and outputs. Predicates are X → Bool; VC-dimension is the platform's HighDimProb.Chaining.vcDim (valued in ℕ∞; the theorems take it finite, equal to d≥1d\ge1d≥1).
  • Usefulness and α-nets use "for all Q∈CQ\in CQ∈C", not a real supremum. Nα(C)N_\alpha(C)Nα​(C) is never an infimum of cardinalities: statements quantify over minimum nets and assert that one exists.
  • The exponential mechanism is a finite mixture of point masses. Where the paper divides by GSqGS_qGSq​, Theorem 3.2 and Properties 3.3–3.4 assume GSq>0GS_q>0GSq​>0; Corollary 3.5 and Theorem 3.10 need no such hypothesis, because for counting queries GSq=0GS_q=0GSq​=0 forces a regime in which every output is accurate.
  • O(⋅)O(\cdot)O(⋅) instantiations. Lemma 3.8: ∣D′∣≤c0 dlog⁡(1/α)/α2|D'|\le c_0\,d\log(1/\alpha)/\alpha^2∣D′∣≤c0​dlog(1/α)/α2. Theorem 3.9: ∣Nα(C)∣≤∣X∣c0dlog⁡(1/α)/α2|N_\alpha(C)|\le|X|^{c_0 d\log(1/\alpha)/\alpha^2}∣Nα​(C)∣≤∣X∣c0​dlog(1/α)/α2 (real power). Theorem 3.10: the condition α≥cεα2n(dlog⁡∣X∣log⁡1α+log⁡1δ)\alpha\ge\frac{c}{\varepsilon\alpha^2n}(d\log|X|\log\frac1\alpha+\log\frac1\delta)α≥εα2nc​(dlog∣X∣logα1​+logδ1​). Each constant is absolute and quantified before the universe and the class. Theorem 3.10's (α,δ)(\alpha,\delta)(α,δ) is Corollary 3.5's (2α′,δ)(2\alpha',\delta)(2α′,δ) at α′=α/2\alpha'=\alpha/2α′=α/2, so the mechanism runs on a minimum α/2\alpha/2α/2-net. Lemma 3.7 and Theorem 3.6 round log⁡∣C∣/α2\log|C|/\alpha^2log∣C∣/α2 up and assume ∣C∣≥3|C|\ge3∣C∣≥3, as the paper's proof does.
  • Excluded corners, disclosed in each statement: d=0d=0d=0, α>12\alpha>\tfrac12α>21​. Logarithms are natural. The "solving for α" display O~(⋅)1/3\tilde O(\cdot)^{1/3}O~(⋅)1/3 of Theorem 3.10 is out of scope.
  • A trivializing formalization is ruled out: usefulness is required of the Net mechanism as defined, whose output law is a genuine probability distribution over a nonempty net of nonempty databases (Property 3.3 records this), not of a zero measure, an empty net, or a net containing the empty database.

Welcome contributions: a general ε-approximation theorem for VC classes (Lemma 3.8), reusable well beyond this mission; a reusable exponential-mechanism privacy proof; the finite-range utility analysis of Property 3.4.

Selected references

  • A. Blum, K. Ligett, A. Roth, A Learning Theory Approach to Non-Interactive Database Privacy, arXiv:1109.2229v1, 2011; J. ACM 60(2), 2013. https://arxiv.org/abs/1109.2229
  • F. McSherry, K. Talwar, Mechanism Design via Differential Privacy, FOCS 2007. https://doi.org/10.1109/FOCS.2007.66
  • C. Dwork, F. McSherry, K. Nissim, A. Smith, Calibrating Noise to Sensitivity in Private Data Analysis, TCC 2006. https://doi.org/10.1007/11681878_14
  • I. Dinur, K. Nissim, Revealing Information while Preserving Privacy, PODS 2003. https://doi.org/10.1145/773153.773173
  • M. Anthony, P. L. Bartlett, Neural Network Learning: Theoretical Foundations, Cambridge University Press, 1999. https://doi.org/10.1017/CBO9780511624216
  • V. N. Vapnik, Statistical Learning Theory, Wiley, 1998.
  • Y. Li, P. M. Long, A. Srinivasan, Improved Bounds on the Sample Complexity of Learning, J. Comput. Syst. Sci. 62(3), 2001. https://doi.org/10.1006/jcss.2000.1741
15 thms3 active usersReviewed
🏆Completed
Convex OptimizationOptimization·Captain: mikedeng1

Online Learning and Online Convex Optimization 1: Follow-the-Regularized-Leader with a σ-Strongly-Convex Regularizer Has Regret at Most R(u) − min R + TL²/σResearch Paper

Motivation

Online convex optimization is a repeated game between a learner and an environment. In each round the learner commits to a vector, the environment then reveals a convex loss function, and the learner pays the loss of its vector. No statistical assumption is made about how the losses are generated; they may be chosen adversarially. Performance is measured against the best fixed vector in hindsight. This model underlies online prediction with expert advice, online regression and classification, portfolio selection, and the analysis of stochastic gradient methods through online-to-batch conversion.

Shai Shalev-Shwartz's survey Online Learning and Online Convex Optimization (Foundations and Trends in Machine Learning, 2011/2012) organizes most first-order online algorithms around a single template, Follow-the-Regularized-Leader (FoReL), and derives their regret bounds from one theorem: Theorem 2.11 (p. 138). Online gradient descent, the experts algorithm with exponential weights, and the bounds of Sections 2.6–2.8 of the survey are instances of it. This mission formalizes that theorem and the lemmas its proof rests on.

Timeline. Follow-the-Leader goes back to Hannan (1957) and the "be the leader" argument appears in Kalai and Vempala (2005). Regularized variants and their analysis via strong convexity were developed by Shalev-Shwartz and Singer (2007) and by Abernethy, Hazan and Rakhlin (2008); the survey (2011) presents the strong-convexity analysis in the form formalized here.

Setting

Let EEE be a real normed space with norm ∥⋅∥\|\cdot\|∥⋅∥ and S⊆ES \subseteq ES⊆E a set of admissible predictions. Rounds are numbered t=1,2,…t = 1, 2, \dotst=1,2,…. In round ttt the learner predicts wt∈Sw_t \in Swt​∈S, receives a loss function ft:S→Rf_t : S \to \mathbb Rft​:S→R, and suffers ft(wt)f_t(w_t)ft​(wt​). The regret after TTT rounds with respect to a competing vector u∈Su \in Su∈S is (eq. (2.1))

RegretT(u)=∑t=1Tft(wt)−∑t=1Tft(u).\mathrm{Regret}_T(u) = \sum_{t=1}^{T} f_t(w_t) - \sum_{t=1}^{T} f_t(u).RegretT​(u)=t=1∑T​ft​(wt​)−t=1∑T​ft​(u).

Given a regularization function R:S→RR : S \to \mathbb RR:S→R, Follow-the-Regularized-Leader predicts

wt∈argmin⁡w∈S(∑i=1t−1fi(w)+R(w)),t≥1,w_t \in \operatorname*{argmin}_{w \in S} \Big( \sum_{i=1}^{t-1} f_i(w) + R(w) \Big), \qquad t \ge 1,wt​∈w∈Sargmin​(i=1∑t−1​fi​(w)+R(w)),t≥1,

with ties broken arbitrarily; in particular w1w_1w1​ minimizes RRR over SSS. With R=0R = 0R=0 this is Follow-the-Leader (FTL).

A function fff is LLL-Lipschitz over SSS if ∣f(u)−f(v)∣≤L∥u−v∥|f(u) - f(v)| \le L\|u - v\|∣f(u)−f(v)∣≤L∥u−v∥ for all u,v∈Su, v \in Su,v∈S. A function RRR is σ\sigmaσ-strongly-convex over a convex set SSS if, for all x,y∈Sx, y \in Sx,y∈S and a,b≥0a, b \ge 0a,b≥0 with a+b=1a + b = 1a+b=1,

R(ax+by)≤aR(x)+bR(y)−ab σ2∥x−y∥2.R(a x + b y) \le a R(x) + b R(y) - a b\, \frac{\sigma}{2} \|x - y\|^2 .R(ax+by)≤aR(x)+bR(y)−ab2σ​∥x−y∥2.

Formalization targets

Goal: Theorem 2.11

Let f1,…,fTf_1, \dots, f_Tf1​,…,fT​ be convex on SSS, with ftf_tft​ LtL_tLt​-Lipschitz over SSS, and let 1T∑t=1TLt2≤L2\frac1T \sum_{t=1}^T L_t^2 \le L^2T1​∑t=1T​Lt2​≤L2. If FoReL is run with a regularizer RRR that is σ\sigmaσ-strongly-convex over SSS (σ>0\sigma > 0σ>0) with respect to the same norm, then for all u∈Su \in Su∈S

RegretT(u)≤R(u)−min⁡v∈SR(v)+TL2σ.\mathrm{Regret}_T(u) \le R(u) - \min_{v \in S} R(v) + \frac{T L^2}{\sigma}.RegretT​(u)≤R(u)−v∈Smin​R(v)+σTL2​.

Milestones, in the order the proof uses them

  1. Lemma 2.1 (p. 125). FTL satisfies RegretT(u)≤∑t=1T(ft(wt)−ft(wt+1))\mathrm{Regret}_T(u) \le \sum_{t=1}^T (f_t(w_t) - f_t(w_{t+1}))RegretT​(u)≤∑t=1T​(ft​(wt​)−ft​(wt+1​)). Already proved on the platform as LogRegretOCO.FTAL.ftl_be_the_leader and referenced here.
  2. Lemma 2.3 (p. 128). For arbitrary ftf_tft​ and RRR, FoReL satisfies
∑t=1T(ft(wt)−ft(u))≤R(u)−R(w1)+∑t=1T(ft(wt)−ft(wt+1)).\sum_{t=1}^T (f_t(w_t) - f_t(u)) \le R(u) - R(w_1) + \sum_{t=1}^T (f_t(w_t) - f_t(w_{t+1})).t=1∑T​(ft​(wt​)−ft​(u))≤R(u)−R(w1​)+t=1∑T​(ft​(wt​)−ft​(wt+1​)).
  1. Lemma 2.8 (p. 135). If fff is σ\sigmaσ-strongly-convex over SSS and www minimizes fff over SSS, then f(u)−f(w)≥σ2∥u−w∥2f(u) - f(w) \ge \frac{\sigma}{2}\|u - w\|^2f(u)−f(w)≥2σ​∥u−w∥2 for all u∈Su \in Su∈S.
  2. Equation (2.7) (p. 138). Under the hypotheses of Lemma 2.10 without Lipschitzness, σ∥wt−wt+1∥2≤ft(wt)−ft(wt+1)\sigma\|w_t - w_{t+1}\|^2 \le f_t(w_t) - f_t(w_{t+1})σ∥wt​−wt+1​∥2≤ft​(wt​)−ft​(wt+1​).
  3. Lemma 2.10 (p. 137). If ftf_tft​ is LtL_tLt​-Lipschitz, then ft(wt)−ft(wt+1)≤Lt∥wt−wt+1∥≤Lt2/σf_t(w_t) - f_t(w_{t+1}) \le L_t\|w_t - w_{t+1}\| \le L_t^2/\sigmaft​(wt​)−ft​(wt+1​)≤Lt​∥wt​−wt+1​∥≤Lt2​/σ.

Significance

Theorem 2.11 is the result from which the survey's concrete regret bounds are read off. With the Euclidean regularizer R(w)=12η∥w∥22R(w) = \frac{1}{2\eta}\|w\|_2^2R(w)=2η1​∥w∥22​ it gives the bound 12η∥u∥22+ηTL2\frac{1}{2\eta}\|u\|_2^2 + \eta T L^22η1​∥u∥22​+ηTL2 of online gradient descent (Corollary 2.12), hence O(T)O(\sqrt T)O(T​) regret after tuning η\etaη; with the entropic regularizer over the probability simplex and the ℓ1\ell_1ℓ1​ norm it gives the 2log⁡(d) T\sqrt{2 \log(d)\, T}2log(d)T​-type bounds for prediction with expert advice (Corollaries 2.13–2.14). Through online-to-batch conversion such regret bounds become excess-risk bounds for stochastic optimization.

The survey's proofs are complete, so the formalization adds no new mathematics; it produces machine-checked versions of the FoReL regret theorem, of the stability lemma, and of the quadratic-growth property of strongly convex functions over a general normed space and a general convex constraint set. To our knowledge none of these is in Mathlib. The platform already has the FTL lemma over Rn\mathbb R^nRn (proved) and the special case of Lemma 2.8 with S=ES = ES=E and the Euclidean norm (UnderstandingML.strongly_convex_lemma, part 3); the general statements are new here.

Difficulty

Lemma 2.3 and Lemma 2.1 use different round indexings (FoReL's regularizer plays the role of a round-zero loss), so Lemma 2.1 cannot be applied verbatim. The main obstacle is Lemma 2.8 on a constrained set without differentiability: the obvious argument sets the gradient at the minimizer to zero, which is unavailable when RRR is not differentiable or the minimizer lies on the boundary of SSS. A second point is that the strong convexity of ∑i<tfi+R\sum_{i<t} f_i + R∑i<t​fi​+R must be derived from the convexity of the fif_ifi​ on SSS, not on all of EEE, and from the strong convexity of RRR on SSS.

Formalization scope

Conventions committed to in the Lean statements:

  • The carrier is an arbitrary real normed space E (NormedAddCommGroup E, NormedSpace ℝ E); no inner product is assumed. Every norm on Rd\mathbb R^dRd, including ℓ1\ell_1ℓ1​ as used in Corollary 2.14, is an instance. The Lipschitz and the strong-convexity hypotheses use the one norm of E, as the theorem requires ("the same norm").
  • Strong convexity is Mathlib's StrongConvexOn S σ R, the modulus σ2r2\frac{\sigma}{2}r^22σ​r2 form above. The survey's Definition 2.4 is stated with subgradients and a pairing ⟨z,u−w⟩\langle z, u - w\rangle⟨z,u−w⟩; the two agree for convex functions that have subgradients on SSS, and the Mathlib form needs neither a dual space nor subgradients. With this choice Lemma 2.8 is a genuine lemma, not an unfolding of the definition.
  • Losses and regularizer are real-valued functions on E, of which only the values on S matter; convexity is ConvexOn ℝ S. The survey's convention R=∞R = \inftyR=∞ outside SSS is the constraint wt∈Sw_t \in Swt​∈S.
  • Rounds are 1-based; w 0 and f 0 are unused. A FoReL run is a predicate on the whole trajectory (IsFoReLRun), so every tie-breaking rule gives a run, and no argmin is chosen.
  • Convexity and Lipschitzness are assumed for the rounds 1,…,T1, \dots, T1,…,T (Theorem 2.11) or 1,…,t1, \dots, t1,…,t (Lemma 2.10, (2.7)), not for all rounds.
  • min⁡v∈SR(v)\min_{v \in S} R(v)minv∈S​R(v) is written sInf (R '' S). It is attained at w1w_1w1​ whenever a run exists, so it is the true minimum, not a default value. The hypothesis T≥1T \ge 1T≥1 is present only because of the factor 1/T1/T1/T.
  • No O(⋅)O(\cdot)O(⋅) appears in any statement of this mission; every bound is the explicit one on the page.
  • Erratum: the proof of Lemma 2.10 ends with "∥wt−wt+1∥≤L/σ\|w_t - w_{t+1}\| \le L/\sigma∥wt​−wt+1​∥≤L/σ", a misprint for Lt/σL_t/\sigmaLt​/σ. The lemma's statement is correct and is formalized as printed, with both inequalities of the chain.

A trivializing formalization would make the run predicate unsatisfiable, so that Theorem 2.11 holds vacuously; the drafted predicate is satisfied by online gradient descent with R(w)=12ηw2R(w) = \frac{1}{2\eta}w^2R(w)=2η1​w2 on R\mathbb RR (Example 2.3), and that regularizer is (1/η)(1/\eta)(1/η)-strongly convex, so the hypotheses of the goal are jointly satisfiable.

Out of scope, and welcome as follow-up work: the derived bounds (Corollaries 2.12–2.14), Theorem 2.15 (which needs dual norms), Lemma 2.9, Corollary 2.2 and the doubling trick. Contributions of general lemmas — strong convexity of a convex plus strongly convex function on a set, quadratic growth at a constrained minimizer — are reusable well beyond this mission.

Selected references

  • S. Shalev-Shwartz, Online Learning and Online Convex Optimization, Foundations and Trends in Machine Learning 4(2) (2011) 107–194. https://doi.org/10.1561/2200000018
  • J. Hannan, Approximation to Bayes risk in repeated play, Contributions to the Theory of Games III, Annals of Mathematics Studies 39 (1957) 97–139. https://doi.org/10.1515/9781400882151-006
  • A. Kalai, S. Vempala, Efficient algorithms for online decision problems, Journal of Computer and System Sciences 71(3) (2005) 291–307. https://doi.org/10.1016/j.jcss.2004.10.016
  • S. Shalev-Shwartz, Y. Singer, A primal-dual perspective of online learning algorithms, Machine Learning 69 (2007) 115–142. https://doi.org/10.1007/s10994-007-5014-x
  • J. Abernethy, E. Hazan, A. Rakhlin, Competing in the dark: an efficient algorithm for bandit linear optimization, COLT 2008. https://www.learningtheory.org/colt2008/papers/123-Abernethy.pdf
  • E. Hazan, A. Agarwal, S. Kale, Logarithmic regret algorithms for online convex optimization, Machine Learning 69 (2007) 169–192. https://doi.org/10.1007/s10994-007-5016-8
8 thms3 active usersReviewed
🏆Completed
Convex OptimizationOptimization·Captain: mikedeng1

A Stochastic Gradient Method with an Exponential Convergence Rate for Finite Training Sets 2: For n ≥ 8L/μ, SAG with Step 1/(2nμ) after an SG Warm Start Converges at Rate (1 − 1/(8n))ᵏResearch Paper

Motivation

Many problems in machine learning are finite-sum problems: minimize the average of nnn loss functions, one per training example,

min⁡x∈Rp  g(x)=1n∑i=1nfi(x).\min_{x\in\mathbb R^p}\; g(x)=\frac1n\sum_{i=1}^n f_i(x).x∈Rpmin​g(x)=n1​i=1∑n​fi​(x).

Two classical methods sit at opposite ends. Full gradient (FG) descent evaluates all nnn gradients per iteration and converges linearly on strongly convex problems, at a cost proportional to nnn per step. Stochastic gradient (SG) descent evaluates one gradient per iteration, independent of nnn, but its error decreases only sublinearly, as O(1/k)O(1/k)O(1/k).

Le Roux, Schmidt and Bach (arXiv:1202.6258, NIPS 2012) introduced the stochastic average gradient (SAG) method, which keeps the one-gradient-per-iteration cost of SG and attains a linear rate, as FG does. SAG was the first method of this kind and started the line of variance-reduced methods (SVRG, SAGA, Katyusha) that are now standard for finite sums.

The paper has two convergence results. This mission formalizes the second one, Proposition 2: when the number of examples is at least 8L/μ8L/\mu8L/μ, SAG with the larger step size 12nμ\frac1{2n\mu}2nμ1​ reduces the expected suboptimality by a constant factor per pass through the data, independently of the conditioning of the problem. Proposition 1 (step size 12nL\frac1{2nL}2nL1​, any nnn) is the subject of a separate mission.

Setting

Let f1,…,fn:Rp→Rf_1,\dots,f_n:\mathbb R^p\to\mathbb Rf1​,…,fn​:Rp→R with n≥1n\ge1n≥1. The standing assumptions (p. 5, §3, and p. 13, §A.1) are:

  1. each fif_ifi​ is convex and differentiable, with gradient fi′f_i'fi′​;
  2. each fi′f_i'fi′​ is LLL-Lipschitz: ∥fi′(x)−fi′(y)∥≤L∥x−y∥\|f_i'(x)-f_i'(y)\|\le L\|x-y\|∥fi′​(x)−fi′​(y)∥≤L∥x−y∥;
  3. ggg is μ\muμ-strongly convex: x↦g(x)−μ2∥x∥2x\mapsto g(x)-\frac\mu2\|x\|^2x↦g(x)−2μ​∥x∥2 is convex, μ>0\mu>0μ>0;
  4. x∗x^*x∗ minimizes ggg.

Write g′=1n∑ifi′g'=\frac1n\sum_if_i'g′=n1​∑i​fi′​ and σ2=1n∑i∥fi′(x∗)∥2\sigma^2=\frac1n\sum_i\|f_i'(x^*)\|^2σ2=n1​∑i​∥fi′​(x∗)∥2, the variance of the gradients at the optimum.

SAG. The state is θ=(y,x)\theta=(y,x)θ=(y,x): a table y=(y1,…,yn)y=(y_1,\dots,y_n)y=(y1​,…,yn​) of stored gradients and an iterate xxx. At iteration kkk an index iki_kik​ is drawn uniformly from {1,…,n}\{1,\dots,n\}{1,…,n}, independently of the past, and

yik={fi′(xk−1)i=ikyik−1otherwise,xk=xk−1−αn∑i=1nyik.y_i^k=\begin{cases}f_i'(x^{k-1})&i=i_k\\ y_i^{k-1}&\text{otherwise}\end{cases},\qquad x^k=x^{k-1}-\frac{\alpha}{n}\sum_{i=1}^n y_i^k .yik​={fi′​(xk−1)yik−1​​i=ik​otherwise​,xk=xk−1−nα​i=1∑n​yik​.

Warm start. Proposition 2 is about a specific run. The first nnn iterations are stochastic gradient steps x~j=x~j−1−γjfij′(x~j−1)\tilde x^j=\tilde x^{j-1}-\gamma_jf'_{i_j}(\tilde x^{j-1})x~j=x~j−1−γj​fij​′​(x~j−1) from x~0=x0\tilde x^0=x^0x~0=x0 with γj=1/(2L+μ2j)\gamma_j=1/(2L+\frac\mu2 j)γj​=1/(2L+2μ​j). SAG is then started from the average xn=1n∑j=0n−1x~jx^n=\frac1n\sum_{j=0}^{n-1}\tilde x^jxn=n1​∑j=0n−1​x~j, with all yiy_iyi​ set to 000 and step size α=12nμ\alpha=\frac1{2n\mu}α=2nμ1​.

Lyapunov function. For parameters α,η,ν\alpha,\eta,\nuα,η,ν and ui=yi−fi′(x∗)u_i=y_i-f_i'(x^*)ui​=yi​−fi′​(x∗), the proof uses

Q(θ)=2g(x+αn∑iyi)−2g(x∗)+ηαn∑i∥ui∥2+αn(1−2ν)∥∑iui∥2−2ν⟨∑iui,x−x∗⟩,Q(\theta)=2g\Big(x+\frac\alpha n\sum_iy_i\Big)-2g(x^*)+\frac{\eta\alpha}n\sum_i\|u_i\|^2+\frac\alpha n(1-2\nu)\Big\|\sum_iu_i\Big\|^2-2\nu\Big\langle\sum_iu_i,x-x^*\Big\rangle,Q(θ)=2g(x+nα​i∑​yi​)−2g(x∗)+nηα​i∑​∥ui​∥2+nα​(1−2ν)​i∑​ui​​2−2ν⟨i∑​ui​,x−x∗⟩,

at η=2\eta=2η=2, ν=12n\nu=\frac1{2n}ν=2n1​, α=12nμ\alpha=\frac1{2n\mu}α=2nμ1​.

Formalization targets

Goal: Proposition 2 (p. 6)

If n≥8L/μn\ge 8L/\mun≥8L/μ, the warm-started run satisfies, for every k≥nk\ge nk≥n,

E[g(xk)−g(x∗)]≤C(1−18n)k,C=16L3n∥x0−x∗∥2+4σ23nμ(8log⁡(1+μn4L)+1).\mathbb E\big[g(x^k)-g(x^*)\big]\le C\Big(1-\frac1{8n}\Big)^k,\qquad C=\frac{16L}{3n}\|x^0-x^*\|^2+\frac{4\sigma^2}{3n\mu}\Big(8\log\Big(1+\frac{\mu n}{4L}\Big)+1\Big).E[g(xk)−g(x∗)]≤C(1−8n1​)k,C=3n16L​∥x0−x∗∥2+3nμ4σ2​(8log(1+4Lμn​)+1).

The constant is the paper's own; the goal fixes it as printed.

Milestones

In the order the proof uses them:

  1. §A.3, p. 14. One SG step: δk≤δk−1−2γk(1−γkL)E[g′(x~k−1)⊤(x~k−1−x∗)]+2γk2σ2\delta_k\le\delta_{k-1}-2\gamma_k(1-\gamma_kL)\mathbb E[g'(\tilde x^{k-1})^\top(\tilde x^{k-1}-x^*)]+2\gamma_k^2\sigma^2δk​≤δk−1​−2γk​(1−γk​L)E[g′(x~k−1)⊤(x~k−1−x∗)]+2γk2​σ2, with δk=E∥x~k−x∗∥2\delta_k=\mathbb E\|\tilde x^k-x^*\|^2δk​=E∥x~k−x∗∥2.
  2. §A.3, p. 15. The averaged SG iterate: Eg(1k∑i<kx~i)−g(x∗)≤2Lk∥x0−x∗∥2+4σ2kμlog⁡(1+μk4L)\mathbb Eg(\frac1k\sum_{i<k}\tilde x^i)-g(x^*)\le\frac{2L}k\|x^0-x^*\|^2+\frac{4\sigma^2}{k\mu}\log(1+\frac{\mu k}{4L})Eg(k1​∑i<k​x~i)−g(x∗)≤k2L​∥x0−x∗∥2+kμ4σ2​log(1+4Lμk​).
  3. Lemma 1, p. 16. The exact conditional expectation of a block quadratic form after one SAG step.
  4. §A.6, p. 24. Summed co-coercivity: ∑i∥fi′(x)−fi′(x∗)∥2≤nL (g′(x)−g′(x∗))⊤(x−x∗)\sum_i\|f_i'(x)-f_i'(x^*)\|^2\le nL\,(g'(x)-g'(x^*))^\top(x-x^*)∑i​∥fi′​(x)−fi′​(x∗)∥2≤nL(g′(x)−g′(x∗))⊤(x−x∗).
  5. §A.6, pp. 27–28. One-step contraction: E[Q(θk)∣Fk−1]≤(1−18n)Q(θk−1)\mathbb E[Q(\theta^k)\mid\mathcal F_{k-1}]\le(1-\frac1{8n})Q(\theta^{k-1})E[Q(θk)∣Fk−1​]≤(1−8n1​)Q(θk−1) when nμ/L≥8n\mu/L\ge8nμ/L≥8.
  6. §A.6, p. 28. EQ(θk)≤(1−18n)kQ(θ0)\mathbb EQ(\theta^k)\le(1-\frac1{8n})^kQ(\theta^0)EQ(θk)≤(1−8n1​)kQ(θ0), and Q(θ0)=2(g(x0)−g(x∗))+σ2nμQ(\theta^0)=2(g(x^0)-g(x^*))+\frac{\sigma^2}{n\mu}Q(θ0)=2(g(x0)−g(x∗))+nμσ2​ when y0=0y^0=0y0=0.
  7. §A.6, p. 29. Domination: Q(θ)≥6364(g(x)−g(x∗))Q(\theta)\ge\frac{63}{64}(g(x)-g(x^*))Q(θ)≥6463​(g(x)−g(x∗)) for every state.
  8. §A.6, p. 30. SAG from y0=0y^0=0y0=0 without warm start: E[g(xk)−g(x∗)]≤(1−18n)k[73(g(x0)−g(x∗))+7σ26nμ]\mathbb E[g(x^k)-g(x^*)]\le(1-\frac1{8n})^k[\frac73(g(x^0)-g(x^*))+\frac{7\sigma^2}{6n\mu}]E[g(xk)−g(x∗)]≤(1−8n1​)k[37​(g(x0)−g(x∗))+6nμ7σ2​].
  9. §A.6, p. 30. (1−18n)−n≤87(1-\frac1{8n})^{-n}\le\frac87(1−8n1​)−n≤78​.

Significance

The result. Proposition 2 gives a rate per pass through the data, (1−18n)n≤e−1/8(1-\frac1{8n})^n\le e^{-1/8}(1−8n1​)n≤e−1/8, that depends on neither μ\muμ nor LLL once n≥8L/μn\ge8L/\mun≥8L/μ. On p. 6 the paper compares it with the FG rate ((L−μ)/(L+μ))2((L-\mu)/(L+\mu))^2((L−μ)/(L+μ))2 and the accelerated FG rate 1−μ/L1-\sqrt{\mu/L}1−μ/L​. With n=100000n=100000n=100000, L=100L=100L=100, μ=0.01\mu=0.01μ=0.01, nnn SAG iterations contract by 0.88250.88250.8825 at the cost of one FG iteration, while FG contracts by 0.99960.99960.9996 and accelerated FG by 0.990.990.99. The SG warm start replaces a constant proportional to nnn by one of order log⁡n\log nlogn, so the bound also captures the O((log⁡n)/k)O((\log n)/k)O((logn)/k) behaviour of the early iterations.

Formalizing it. The paper's proof is complete, and a machine-checked proof is new; no SAG statement exists on the platform. A formalization would check the paper's long appendix computation (pp. 23–29: a Lyapunov argument with completing the square on block vectors) and fix its slips: on p. 30 the proof writes E[g(xk)−g(x∗)]≤2EQ(θk)\mathbb E[g(x^k)-g(x^*)]\le2\mathbb EQ(\theta^k)E[g(xk)−g(x∗)]≤2EQ(θk), where its own Step 2 gives the factor 76\frac7667​, and the bracket that follows matches 76\frac7667​. Lemma 1 is shared with Proposition 1, and the SG bound of §A.3 is a standalone result (after Bach and Moulines, 2011).

Difficulty

The obvious approach does not work. SAG's update direction is a biased estimate of g′(xk−1)g'(x^{k-1})g′(xk−1): the stored gradients were computed at old iterates. So the usual SG argument, an unbiased step followed by a bound on E∥xk−x∗∥2\mathbb E\|x^k-x^*\|^2E∥xk−x∗∥2, breaks down. The proof instead tracks the joint state (y,x)(y,x)(y,x) through a Lyapunov function that couples the table and the iterate, and it needs a function-value term 2g(x+αne⊤y)2g(x+\frac\alpha ne^\top y)2g(x+nα​e⊤y) to handle the large step 12nμ\frac1{2n\mu}2nμ1​. The one-step bound (pp. 24–28) is an inequality between quadratic forms in (y−f′(x∗),x−x∗,g′(x))(y-f'(x^*),x-x^*,g'(x))(y−f′(x∗),x−x∗,g′(x)). It holds only after completing the square in the yyy block, and it closes only under nμ/L≥8n\mu/L\ge8nμ/L≥8; the margin there is small (104/15≈6.93≤8104/15\approx6.93\le8104/15≈6.93≤8). The domination step similarly minimizes over ∑iyi\sum_iy_i∑i​yi​.

Formalization scope

  • Carrier and indices. Rp\mathbb R^pRp is EuclideanSpace ℝ (Fin p), and the components are indexed by Fin n. ggg and g′g'g′ are the published SAGA.Convex.fAvg and SAGA.Convex.gradAvg.
  • Assumptions. The standing assumptions are the structure SAG.LargeStep.Assumptions. Strong convexity is stated in the paper's form: g−μ2∥⋅∥2g-\frac\mu2\|\cdot\|^2g−2μ​∥⋅∥2 is convex. Each fif_ifi​ is convex (§A.1), and gradients are tied to the functions by HasGradientAt.
  • Randomness. Indices are modelled as all sequences in Fin k → Fin n, weighted uniformly (SAGA.Convex.expectIdx), which is the law of kkk independent uniform draws. A conditional expectation given Fk−1\mathcal F_{k-1}Fk−1​ is the average over the nnn indices of one step from an arbitrary fixed state.
  • The run. hybrid draws k≥nk\ge nk≥n indices. The SG phase uses the first n−1n-1n−1, index nnn is drawn and unused, and SAG uses the last k−nk-nk−n, from (0,xn)(0,x^n)(0,xn) with α=12nμ\alpha=\frac1{2n\mu}α=2nμ1​. The SG step sizes are γj=1/(2L+μ2j)\gamma_j=1/(2L+\frac\mu2j)γj​=1/(2L+2μ​j).
  • Lyapunov function. QQQ is defined with α,η,ν\alpha,\eta,\nuα,η,ν as parameters and used at (12nμ,2,12n)(\frac1{2n\mu},2,\frac1{2n})(2nμ1​,2,2n1​).
  • Lemma 1 is stated for general blocks: AAA and ccc symmetric, and bj⊤b_j^\topbj⊤​ the adjoint.
  • Not a trivializing formalization. Proposition 2's constant CCC, with its logarithm and its 16L3n\frac{16L}{3n}3n16L​, holds only for the warm-started run. Stating it for SAG started at x0x^0x0 would be a different and unproved claim, so the goal is stated for hybrid. Every hypothesis is satisfiable: n=8n=8n=8, p=1p=1p=1, fi(x)=x2/2f_i(x)=x^2/2fi​(x)=x2/2, L=μ=1L=\mu=1L=μ=1, x∗=0x^*=0x∗=0.
  • Slips on the page. Milestones 2 and 8 state what the proof establishes; their natural-language statements explain the misprints.
  • Contributions welcome. Proofs of any milestone. The SG lemmas (milestones 1–2) and co-coercivity (milestone 4, also published as ConvexOptAlg.SmoothGD.eq_3_6) are reusable beyond this mission.

Selected references

  • N. Le Roux, M. Schmidt, F. Bach, A Stochastic Gradient Method with an Exponential Convergence Rate for Finite Training Sets, NIPS 2012; arXiv:1202.6258v4 (2013). https://arxiv.org/abs/1202.6258
  • F. Bach, E. Moulines, Non-asymptotic analysis of stochastic approximation algorithms for machine learning, NIPS 2011. https://proceedings.neurips.cc/paper_files/paper/2011 (NIPS 24 proceedings)
  • Y. Nesterov, Introductory Lectures on Convex Optimization: A Basic Course, Kluwer, 2004. https://doi.org/10.1007/978-1-4419-8853-9
  • A. Defazio, F. Bach, S. Lacoste-Julien, SAGA: A Fast Incremental Gradient Method with Support for Non-Strongly Convex Composite Objectives, NIPS 2014; arXiv:1407.0202. https://arxiv.org/abs/1407.0202
18 thms3 active usersReviewed
🏆Completed
Convex OptimizationOptimizationProbability·Captain: mikedeng1

Making Gradient Descent Optimal for Strongly Convex Stochastic Optimization 3: SGD with Full Averaging Suffers an Ω(log(T)/T) Rate on a Non-Smooth Strongly Convex ProblemResearch Paper

Motivation

Stochastic gradient descent (SGD) is the standard first-order method for stochastic convex optimization and for training linear predictors on large data sets: at each step it queries a noisy subgradient of the objective, takes a step against it and projects back onto the feasible set. When the objective is strongly convex, the classical online-learning analysis of SGD with step sizes ηt=Θ(1/t)\eta_t=\Theta(1/t)ηt​=Θ(1/t) bounds the expected suboptimality of the averaged iterate wˉT=1T(w1+⋯+wT)\bar w_T=\frac1T(w_1+\dots+w_T)wˉT​=T1​(w1​+⋯+wT​) by O(log⁡(T)/T)O(\log(T)/T)O(log(T)/T) (Hazan, Agarwal, Kale 2007). The information-theoretically optimal rate for this problem class is O(1/T)O(1/T)O(1/T), and it is attained by other algorithms (Hazan, Kale 2011; Juditsky, Nesterov 2010).

This left a concrete question: is the logarithmic factor an artifact of the analysis, or a property of SGD with averaging? Rakhlin, Shamir and Sridharan (arXiv:1109.5647v7, ICML 2012) answer it by exhibiting strongly convex problems on which averaged SGD provably loses the logarithm. The same paper shows that for objectives that are smooth at the optimum the averaged iterate attains O(1/T)O(1/T)O(1/T), and that averaging only a suffix of the iterates restores O(1/T)O(1/T)O(1/T) in general. This mission is the lower-bound half of that picture; the two upper bounds are sibling missions of the same series.

Setting

Points live in Rd\mathbb R^dRd, d≥1d\ge1d≥1, with the Euclidean norm; for a point www, w1w_1w1​ denotes its first coordinate. A stochastic gradient oracle for an objective FFF returns, at a query point wtw_twt​, a random vector g^t\hat g_tg^​t​ whose mean is a subgradient of FFF at wtw_twt​. Projected SGD on a domain WWW with step sizes ηt=c/t\eta_t=c/tηt​=c/t, c>0c>0c>0, starts at a point w1∈Ww_1\in Ww1​∈W and sets

wt+1=ΠW(wt−ηtg^t),t=1,2,…,w_{t+1}=\Pi_W\big(w_t-\eta_t\hat g_t\big),\qquad t=1,2,\dots,wt+1​=ΠW​(wt​−ηt​g^​t​),t=1,2,…,

where ΠW\Pi_WΠW​ is the Euclidean projection onto WWW. The output studied here is the average wˉT=1T(w1+⋯+wT)\bar w_T=\frac1T(w_1+\dots+w_T)wˉT​=T1​(w1​+⋯+wT​). Throughout, Z1,Z2,…Z_1,Z_2,\dotsZ1​,Z2​,… are independent random variables, each uniformly distributed on [−1,3][-1,3][−1,3].

Example A. W=[0,1]dW=[0,1]^dW=[0,1]d, F(w)=12∥w∥2+w1F(w)=\tfrac12\|w\|^2+w_1F(w)=21​∥w∥2+w1​, and the oracle returns g^t=wt+(Zt,0,…,0)\hat g_t=w_t+(Z_t,0,\dots,0)g^​t​=wt​+(Zt​,0,…,0). The global minimum over WWW is at w∗=0w^*=0w∗=0, a corner of the box.

Example B. W=[−1,1]dW=[-1,1]^dW=[−1,1]d and

F(w)=12∥w∥2+{w1w1≥0−7w1w1<0,g^t=wt+{(Zt,0,…,0)wt,1≥0(−7,0,…,0)wt,1<0.F(w)=\tfrac12\|w\|^2+\begin{cases}w_1&w_1\ge0\\-7w_1&w_1<0,\end{cases}\qquad \hat g_t=w_t+\begin{cases}(Z_t,0,\dots,0)&w_{t,1}\ge0\\(-7,0,\dots,0)&w_{t,1}<0.\end{cases}F(w)=21​∥w∥2+{w1​−7w1​​w1​≥0w1​<0,​g^​t​=wt​+{(Zt​,0,…,0)(−7,0,…,0)​wt,1​≥0wt,1​<0.​

Here FFF is 111-strongly convex and non-smooth along the hyperplane w1=0w_1=0w1​=0, and its minimizer w∗=0w^*=0w∗=0 lies in the interior of WWW. The oracle is state-dependent: which branch it uses depends on the sign of the first coordinate of the query point. In both examples E[g^t]\mathbb E[\hat g_t]E[g^​t​] is a subgradient of FFF at wtw_twt​ and E∥g^t∥2\mathbb E\|\hat g_t\|^2E∥g^​t​∥2 is bounded for fixed ddd.

Formalization targets

Goal: Theorem 4 (p. 5)

In Example B, for every c>0c>0c>0, every starting point w1∈Ww_1\in Ww1​∈W with w1,1≥0w_{1,1}\ge0w1,1​≥0, T0=max⁡{2,6c+1}T_0=\max\{2,6c+1\}T0​=max{2,6c+1} and every integer T≥T0+2T\ge T_0+2T≥T0​+2,

E[F(wˉT)−F(w∗)] ≥ 3c16T∑t=T0+2T1t−T0T.\mathbb E\big[F(\bar w_T)-F(w^*)\big]\ \ge\ \frac{3c}{16T}\sum_{t=T_0+2}^{T}\frac1t-\frac{T_0}{T}.E[F(wˉT​)−F(w∗)] ≥ 16T3c​t=T0​+2∑T​t1​−TT0​​.

For fixed ccc this is Ω(log⁡(T)/T)\Omega(\log(T)/T)Ω(log(T)/T). The goal is the paper's statement with its constants.

Milestones

  1. Theorem 3 (p. 5). In Example A, for every c>0c>0c>0, every w1∈Ww_1\in Ww1​∈W, T0=max⁡{2,c/2}T_0=\max\{2,c/2\}T0​=max{2,c/2} and every integer T≥T0+1T\ge T_0+1T≥T0​+1,
E[F(wˉT)−F(w∗)] ≥ c16T∑t=T0T−11t.\mathbb E\big[F(\bar w_T)-F(w^*)\big]\ \ge\ \frac{c}{16T}\sum_{t=T_0}^{T-1}\frac1t.E[F(wˉT​)−F(w∗)] ≥ 16Tc​t=T0​∑T−1​t1​.
  1. Eq. (9) (p. 16). The pathwise recursion of the first coordinate in Example B:
wt+1,1=Π[−1,1]((1−ct)wt,1−{Zt c/twt,1≥0−7c/twt,1<0).w_{t+1,1}=\Pi_{[-1,1]}\Big(\big(1-\tfrac ct\big)w_{t,1}-\begin{cases}Z_t\,c/t&w_{t,1}\ge0\\-7c/t&w_{t,1}<0\end{cases}\Big).wt+1,1​=Π[−1,1]​((1−tc​)wt,1​−{Zt​c/t−7c/t​wt,1​≥0wt,1​<0​).
  1. App. B.5, p. 17. In Example B, whenever c/t<1c/t<1c/t<1,
Pr⁡(wt,1∉[0,c/t] ∣ wt−1,1≥0) ≥ 34.\Pr\big(w_{t,1}\notin[0,c/t]\ \big|\ w_{t-1,1}\ge0\big)\ \ge\ \tfrac34 .Pr(wt,1​∈/[0,c/t] ​ wt−1,1​≥0) ≥ 43​.

Significance

The result. Theorem 4 shows that the O(log⁡(T)/T)O(\log(T)/T)O(log(T)/T) guarantee for SGD with full averaging is tight up to constants on strongly convex problems, even when the optimum is interior. It separates SGD with averaging from algorithms that reach O(1/T)O(1/T)O(1/T), and it is the reason the paper introduces α\alphaα-suffix averaging. It also explains why smoothness at the optimum (the paper's §3) matters: Example B is non-smooth exactly at w∗w^*w∗.

Formalizing it. The result is proved on paper but, as far as the platform's index shows, has no machine-checked proof. Formalization adds a verified lower bound with explicit constants. It also settles the paper's own argument. The printed proof of Theorem 4 relies on Lemma 4 (p. 16), whose first claim uses Zt≥−1Z_t\ge-1Zt​≥−1 where the recursion subtracts (c/t)Zt(c/t)Z_t(c/t)Zt​ with ZtZ_tZt​ up to 333, so Lemma 4 fails with positive probability. Theorem 4 is believed true, but a complete proof needs a repaired argument. Theorem 3's printed proof uses ηt≤1\eta_t\le1ηt​≤1 in step (8), while t≥T0t\ge T_0t≥T0​ only gives ηt≤2\eta_t\le2ηt​≤2. Numerical checks of Theorem 3 itself found no violation.

Difficulty

An expectation lower bound on the average needs control of every iterate wtw_twt​, not just of the last one, and the iterates form a non-linear Markov chain because of the projection and, in Example B, because of the state-dependent oracle. Upper-bound techniques do not transfer: they bound E∥wt−w∗∥2\mathbb E\|w_t-w^*\|^2E∥wt​−w∗∥2 from above, which says nothing about the sign of wt,1w_{t,1}wt,1​. In Example B, the natural first idea is to argue that wt,1w_{t,1}wt,1​ never stays negative, so that it behaves like the constrained Example A; this is the claim of the paper's Lemma 4, and as stated it does not hold, because a single noise draw near 333 can push the first coordinate below the level the lemma asserts. A proof must handle that event with explicit constants and still produce the T0/TT_0/TT0​/T slack of the statement.

Formalization scope

  • Space. Rd\mathbb R^dRd is UnderstandingML.Vec d = EuclideanSpace ℝ (Fin d) with [NeZero d]; the paper's first coordinate is index 0.
  • Projection. ΠW\Pi_WΠW​ onto the box [lo,hi]d[lo,hi]^d[lo,hi]d is coordinatewise clamping vi↦max⁡{lo,min⁡{hi,vi}}v_i\mapsto\max\{lo,\min\{hi,v_i\}\}vi​↦max{lo,min{hi,vi​}}, which is the Euclidean projection onto the box.
  • Indexing. sgdRun … k is the paper's wk+1w_{k+1}wk+1​; the step at index kkk uses ηk+1=c/(k+1)\eta_{k+1}=c/(k+1)ηk+1​=c/(k+1) and the noise value ZZZ at index kkk. The starting point is arbitrary (not 000), as in Theorems 3–4.
  • Noise. Each ZtZ_tZt​ has law ProbabilityTheory.cond volume (Set.Icc (-1) 3) (uniform on [−1,3][-1,3][−1,3]); a horizon-TTT sequence has the product law UnderstandingML.iidLaw. Expectations are Bochner integrals over it.
  • Constants and ranges. c>0c>0c>0 is the only condition on ccc. T0T_0T0​ is real; TTT is a natural number; ∑t=T0T−1\sum_{t=T_0}^{T-1}∑t=T0​T−1​ is over the integers ⌈T0⌉≤t≤T−1\lceil T_0\rceil\le t\le T-1⌈T0​⌉≤t≤T−1, and ∑t=T0+2T\sum_{t=T_0+2}^{T}∑t=T0​+2T​ over ⌈T0⌉+2≤t≤T\lceil T_0\rceil+2\le t\le T⌈T0​⌉+2≤t≤T. F(w∗)F(w^*)F(w∗) is written F(0)F(0)F(0).
  • No junk integrals. Theorems 3 and 4 also assert integrability of F(wˉT)−F(0)F(\bar w_T)-F(0)F(wˉT​)−F(0), so the inequality cannot hold because an integral defaulted to 000. The probability milestone is stated multiplicatively, Pr⁡(A∩B)≥34Pr⁡(B)\Pr(A\cap B)\ge\frac34\Pr(B)Pr(A∩B)≥43​Pr(B), rather than through ProbabilityTheory.cond, which would be the zero measure on a null conditioning event.
  • Not trivializable. The examples (the constant 777, the noise interval [−1,3][-1,3][−1,3], the boxes [0,1]d[0,1]^d[0,1]d, [−1,1]d[-1,1]^d[−1,1]d) are fixed by the paper; replacing the oracle or the domain is a different theorem. Since F(wˉT)≥F(0)F(\bar w_T)\ge F(0)F(wˉT​)≥F(0) always, Theorem 4 is immediate whenever its right-hand side is negative, but it is a non-trivial inequality for large TTT, and the statement quantifies over all T≥T0+2T\ge T_0+2T≥T0​+2.
  • Not posed. Lemma 4 (false as stated), step (8) of App. B.4, and Eq. (10) with the displays after it in App. B.5 (they depend on Lemma 4).
  • Infrastructure. Measurability of the SGD run in the noise sequence, independence of ZtZ_tZt​ from the past iterates under the product law, and probabilities of intervals under the uniform law are reusable for any analysis of SGD on explicit examples. Proofs of the milestones, a repaired proof of Lemma 4's role, and a complete proof of Theorem 4 are all welcome.

Selected references

  • A. Rakhlin, O. Shamir, K. Sridharan, Making Gradient Descent Optimal for Strongly Convex Stochastic Optimization, ICML 2012; arXiv:1109.5647v7, 2012. https://arxiv.org/abs/1109.5647v7
  • E. Hazan, A. Agarwal, S. Kale, Logarithmic regret algorithms for online convex optimization, Machine Learning 69, 2007. https://doi.org/10.1007/s10994-007-5016-8
  • E. Hazan, S. Kale, Beyond the regret minimization barrier: an optimal algorithm for stochastic strongly-convex optimization, COLT 2011. https://proceedings.mlr.press/v19/hazan11a.html
  • A. Juditsky, Y. Nesterov, Primal-dual subgradient methods for minimizing uniformly convex functions, 2010. https://hal.science/hal-00508933
  • A. Nemirovski, A. Juditsky, G. Lan, A. Shapiro, Robust stochastic approximation approach to stochastic programming, SIAM J. Optim. 19(4), 2009. https://doi.org/10.1137/070704277
7 thms3 active usersReviewed
Bandit AlgorithmsProbabilityStatistics·Captain: mikedeng1

Thompson Sampling: An Asymptotically Optimal Finite-Time Analysis: Bernoulli Thompson Sampling Has Regret (1+ε)Σ Δ_a(ln T + ln ln T)/K(μ_a, μ*) + CResearch Paper

Motivation

Thompson Sampling is the oldest bandit algorithm: Thompson proposed it in 1933 for allocating patients between two treatments (Thompson 1933). It keeps a posterior distribution over the unknown mean reward of every action, draws one sample from each posterior, and plays the action whose sample is largest. It is simple, widely used, and in experiments competitive with index policies designed for optimality. For decades it had no matching theoretical guarantee.

The benchmark for a stochastic bandit algorithm is the lower bound of Lai and Robbins (1985): every consistent policy draws a suboptimal arm aaa at least (1−o(1))ln⁡T/K(μa,μ∗)(1-o(1))\ln T/K(\mu_a,\mu^*)(1−o(1))lnT/K(μa​,μ∗) times in TTT rounds, where KKK is the Kullback–Leibler divergence. A policy that attains this rate is called asymptotically optimal.

Timeline.

  • 1933: Thompson introduces the algorithm, without analysis.
  • 1985: Lai and Robbins prove the lower bound and construct asymptotically optimal (but complex) policies.
  • 2011–2012: KL-UCB (Garivier and Cappé 2011) and Bayes-UCB (Kaufmann, Cappé and Garivier 2012) attain the bound for Bernoulli rewards with simpler index rules.
  • 2012: Agrawal and Goyal give the first logarithmic regret bound for Thompson Sampling, O((∑a1/Δa2)2ln⁡T)O\big((\sum_a 1/\Delta_a^2)^2\ln T\big)O((∑a​1/Δa2​)2lnT), which does not have the optimal constant.
  • 2012: Kaufmann, Korda and Munos (arXiv:1205.4217) prove that Thompson Sampling with uniform priors is asymptotically optimal for Bernoulli rewards, with a finite-time bound. This mission formalizes that result.

Setting

There are K≥2K\ge2K≥2 arms. Arm aaa yields reward 111 with probability μa∈(0,1)\mu_a\in(0,1)μa​∈(0,1) and 000 otherwise. Arm 111 is the unique optimal arm: μ∗=μ1>μa\mu^*=\mu_1>\mu_aμ∗=μ1​>μa​ for every a≠1a\neq1a=1. The gap of arm aaa is Δa=μ∗−μa\Delta_a=\mu^*-\mu_aΔa​=μ∗−μa​, and μ2\mu_2μ2​ denotes the largest mean among the suboptimal arms.

Thompson Sampling with uniform priors. Let Na,tN_{a,t}Na,t​ be the number of times arm aaa has been drawn before round ttt and Sa,tS_{a,t}Sa,t​ the number of rewards equal to 111 among those draws. With a uniform prior, the posterior of μa\mu_aμa​ is Beta(Sa,t+1, Na,t−Sa,t+1)\mathrm{Beta}(S_{a,t}+1,\,N_{a,t}-S_{a,t}+1)Beta(Sa,t​+1,Na,t​−Sa,t​+1). In round ttt the algorithm draws, independently, a sample θa,t\theta_{a,t}θa,t​ from each posterior, plays At=arg⁡max⁡aθa,tA_t=\arg\max_a\theta_{a,t}At​=argmaxa​θa,t​, and observes the reward of AtA_tAt​.

The regret after TTT rounds is

R(T)=Tμ∗−E[∑t=1TRt]=∑aΔa E[Na,T],\mathcal R(T)=T\mu^*-\mathbb E\Big[\sum_{t=1}^T R_t\Big]=\sum_a\Delta_a\,\mathbb E[N_{a,T}],R(T)=Tμ∗−E[t=1∑T​Rt​]=a∑​Δa​E[Na,T​],

where Na,TN_{a,T}Na,T​ now counts the draws of aaa in rounds 1,…,T1,\dots,T1,…,T. The Bernoulli divergence is K(p,q)=pln⁡pq+(1−p)ln⁡1−p1−qK(p,q)=p\ln\frac pq+(1-p)\ln\frac{1-p}{1-q}K(p,q)=plnqp​+(1−p)ln1−q1−p​.

The analysis compares the Thompson samples with two index rules. For an arm with SSS successes in NNN draws, at round ttt of a horizon TTT, the KL-UCB index is u=sup⁡{x∈[S/N,1):N K(S/N,x)≤ln⁡t+ln⁡ln⁡T}u=\sup\{x\in[S/N,1):N\,K(S/N,x)\le\ln t+\ln\ln T\}u=sup{x∈[S/N,1):NK(S/N,x)≤lnt+lnlnT}, and the Bayes-UCB index qqq is the quantile of order 1−1tln⁡T1-\frac1{t\ln T}1−tlnT1​ of the posterior Beta(S+1,N−S+1)\mathrm{Beta}(S+1,N-S+1)Beta(S+1,N−S+1).

Formalization targets

Goal: Theorem 1 (p. 3)

For every ϵ>0\epsilon>0ϵ>0 there is a constant CCC, depending on ϵ\epsilonϵ and the instance, such that for every horizon TTT,

R(T)≤(1+ϵ)∑a: μa≠μ∗Δa(ln⁡T+ln⁡ln⁡T)K(μa,μ∗)+C.\mathcal R(T)\le(1+\epsilon)\sum_{a:\,\mu_a\neq\mu^*}\frac{\Delta_a(\ln T+\ln\ln T)}{K(\mu_a,\mu^*)}+C.R(T)≤(1+ϵ)a:μa​=μ∗∑​K(μa​,μ∗)Δa​(lnT+lnlnT)​+C.

Only the existence of CCC is asserted; its value is not fixed, so improvements of the lower-order terms do not invalidate the goal.

Milestones

  1. Eq. (1): R(T)=Tμ∗−E[∑t=1TRt]=∑aΔa E[Na,T]\mathcal R(T)=T\mu^*-\mathbb E[\sum_{t=1}^T R_t]=\sum_a\Delta_a\,\mathbb E[N_{a,T}]R(T)=Tμ∗−E[∑t=1T​Rt​]=∑a​Δa​E[Na,T​].
  2. Theorem 2 (p. 4): for each suboptimal aaa and ϵ>0\epsilon>0ϵ>0, E[Na,T]≤(1+ϵ)ln⁡T+ln⁡ln⁡TK(μa,μ1)+C\mathbb E[N_{a,T}]\le(1+\epsilon)\frac{\ln T+\ln\ln T}{K(\mu_a,\mu_1)}+CE[Na,T​]≤(1+ϵ)K(μa​,μ1​)lnT+lnlnT​+C.
  3. Proposition 1 (p. 4): there is b∈(0,1)b\in(0,1)b∈(0,1) with ∑t≥1P(N1,t≤tb)<∞\sum_{t\ge1}\mathbb P(N_{1,t}\le t^b)<\infty∑t≥1​P(N1,t​≤tb)<∞.
  4. Display (4) (p. 5): E[Na,T]≤A+B+2\mathbb E[N_{a,T}]\le A+B+2E[Na,T​]≤A+B+2, an under-estimation term AAA for arm 111 plus a KL-UCB term BBB.
  5. Lemma 1 (p. 5): ∑tP(θ1,t≤μ1−6ln⁡t/N1,t)≤N0(b)+3+Cb\sum_t\mathbb P\big(\theta_{1,t}\le\mu_1-\sqrt{6\ln t/N_{1,t}}\big)\le N_0(b)+3+C_b∑t​P(θ1,t​≤μ1​−6lnt/N1,t​​)≤N0​(b)+3+Cb​.
  6. Lemma 2 (p. 6): B≤(1+ϵ)ln⁡T+ln⁡ln⁡TK(μa,μ1)+DB\le(1+\epsilon)\frac{\ln T+\ln\ln T}{K(\mu_a,\mu_1)}+DB≤(1+ϵ)K(μa​,μ1​)lnT+lnlnT​+D for large TTT.
  7. Lemma 3 (p. 9), in its analytic form (§3.4): a bound on the probability that the optimal arm's samples stay below μ2+δ\mu_2+\deltaμ2​+δ for fff rounds.
  8. Lemma 4 (p. 9): saturated suboptimal arms rarely produce samples above μa+δa\mu_a+\delta_aμa​+δa​.
  9. §2 (p. 3): the Beta–Binomial identity (referenced) and the comparison q<uq<uq<u of the two indices.

Significance

The result. Theorem 1 shows that the leading constant of Thompson Sampling's regret equals the Lai–Robbins constant, so no consistent policy does asymptotically better on Bernoulli bandits. It settled a question open since 1933 and is the starting point for later optimality proofs of Thompson Sampling for exponential families and Gaussian rewards. Proposition 1, a summable tail bound on the event that the optimal arm is under-sampled, is the reusable core: it is a deviation inequality for the number of draws of the optimal arm, which a bound on its expectation does not imply.

The formalization. The result is proved on paper; no machine-checked proof of an optimal-constant bound for Bernoulli Thompson Sampling exists. The platform already has the Gaussian frequentist analysis of Lattimore and Szepesvári (Theorem 36.3) and the non-optimal Agrawal–Goyal bound. This mission adds the Bernoulli, Beta-posterior case with the KL constant, the KL-UCB and Bayes-UCB indices with the ln⁡t+ln⁡ln⁡T\ln t+\ln\ln Tlnt+lnlnT exploration rate, and the optimal-arm tail bound. Corrected statements are part of the output: the explicit constant DDD printed at the end of Lemma 2's proof is too small, the constant Cλ,μ1,μ2C_{\lambda,\mu_1,\mu_2}Cλ,μ1​,μ2​​ printed for Lemma 3 has the wrong sign, and Lemma 3 as printed quantifies over arbitrary random intervals, which its proof does not support.

Difficulty

The standard proof for an optimistic index policy bounds the draws of a suboptimal arm by an under-estimation term ∑tP(l1,t<μ1)\sum_t\mathbb P(l_{1,t}<\mu_1)∑t​P(l1,t​<μ1​) and a concentration term. For Thompson Sampling the under-estimation term is not small: once the posterior of arm 111 is concentrated, P(θ1,t<μ1)\mathbb P(\theta_{1,t}<\mu_1)P(θ1,t​<μ1​) is close to 1/21/21/2 in every round. Comparing θ1,t\theta_{1,t}θ1,t​ with a lower confidence bound μ1−6ln⁡t/N1,t\mu_1-\sqrt{6\ln t/N_{1,t}}μ1​−6lnt/N1,t​​ instead only helps if N1,tN_{1,t}N1,t​ is large with overwhelming probability, and a bound on E[N1,t]\mathbb E[N_{1,t}]E[N1,t​] does not give that.

Proposition 1 supplies it, and it carries most of the difficulty. It must control long stretches of rounds in which arm 111 is never drawn while several suboptimal arms compete, and it needs the samples of arm 111 conditioned on its successes at a random time while the arm is not played, an optional-skipping step that the paper leaves implicit and that is the main measure-theoretic obstacle in Lean.

Formalization scope

Representation. The algorithm is the published Thompson Sampling run (AgrawalGoyalTS_TwoArmed_ThompsonSampling) on the published Bernoulli bandit (bernoulliRelativeEntropy). That run is Agrawal–Goyal's Algorithm 2, which passes each reward through a Bernoulli trial of success probability equal to the reward; for {0,1}\{0,1\}{0,1} rewards the trial returns the reward almost surely, so the posterior is exactly the paper's. Probabilities are values of tsLaw in [0,∞][0,\infty][0,∞], expectations of counts and the regret are lower integrals in [0,∞][0,\infty][0,∞], and every bound compares with the embedding of a real right-hand side.

Conventions.

  • Lean arm 000 is the paper's arm 111. Lean round ttt is the paper's round t+1t+1t+1; Na,tN_{a,t}Na,t​, Sa,tS_{a,t}Sa,t​ are the counts when θa,t\theta_{a,t}θa,t​ is drawn, and the paper's ln⁡t\ln tlnt is ln⁡(t+1)\ln(t+1)ln(t+1) at Lean round ttt.
  • 6ln⁡t/N1,t=∞\sqrt{6\ln t/N_{1,t}}=\infty6lnt/N1,t​​=∞ when N1,t=0N_{1,t}=0N1,t​=0 (p. 4), encoded by cases.
  • The KL-UCB supremum ranges over x<1x<1x<1, because the real-valued divergence at q=1q=1q=1 is a finite junk value; u=1u=1u=1 when N=0N=0N=0 or S=NS=NS=N, cases the page leaves undefined.
  • Every constant with a printed dependence list (CCC, DDD, NNN, bbb, CbC_bCb​) is chosen after the instance (and ϵ\epsilonϵ, the arm) and before TTT.

Added hypotheses and corrections.

  • 0<μa<10<\mu_a<10<μa​<1 for every arm, and K≥2K\ge2K≥2: not stated in the paper but used by its proof (it divides by μ1(1−μ1)\mu_1(1-\mu_1)μ1​(1−μ1​), and K(μa,1)=∞K(\mu_a,1)=\inftyK(μa​,1)=∞).
  • Arm 111 is the unique optimal arm (the paper's standing assumption of §2; its reduction of several optimal arms to one is cited, not proved).
  • Display (4) and the index comparison are stated for T≥3T\ge3T≥3 (the page's T≥eT\ge eT≥e) and rounds 1≤t≤T1\le t\le T1≤t≤T.
  • Lemma 2 asserts only the existence of DDD; Lemma 3 is formalized as the analytic bound of §3.4 with the sign-corrected constant; Lemma 1's CbC_bCb​ is read with the pre-draw count.

Trivializations ruled out. Thompson Sampling is not characterized by a predicate that an arbitrary policy could satisfy: it is the published run, which fixes the posterior draws, the argmax and the updates. The constant is quantified as ∀ϵ ∃C ∀T\forall\epsilon\,\exists C\,\forall T∀ϵ∃C∀T, never ∀T ∃C\forall T\,\exists C∀T∃C, and no real number is extracted from a possibly infinite expectation.

Infrastructure and contributions. A complete development needs Beta–Binomial duality, Chernoff–Hoeffding bounds for binomial tails, optional skipping for the reward stacks of the played arms, and the KL-UCB counting argument. The Beta–Binomial identity is an open milestone shared with the Agrawal–Goyal mission. Proofs of any milestone, in particular Proposition 1, Lemma 4 and the analytic Lemma 3, are welcome; Lemma 3's bound and the index comparison are pure real analysis and reusable beyond bandits.

Selected references

  • E. Kaufmann, N. Korda, R. Munos, Thompson Sampling: An Asymptotically Optimal Finite Time Analysis, ALT 2012 (LNCS 7568); arXiv:1205.4217v2. https://arxiv.org/abs/1205.4217
  • W. R. Thompson, On the likelihood that one unknown probability exceeds another in view of the evidence of two samples, Biometrika 25, 1933. https://doi.org/10.2307/2332286
  • T. L. Lai, H. Robbins, Asymptotically efficient adaptive allocation rules, Advances in Applied Mathematics 6, 1985. https://doi.org/10.1016/0196-8858(85)90002-8
  • S. Agrawal, N. Goyal, Analysis of Thompson Sampling for the multi-armed bandit problem, COLT 2012; arXiv:1111.1797. https://arxiv.org/abs/1111.1797
  • A. Garivier, O. Cappé, The KL-UCB algorithm for bounded stochastic bandits and beyond, COLT 2011; arXiv:1102.2490. https://arxiv.org/abs/1102.2490
  • E. Kaufmann, O. Cappé, A. Garivier, On Bayesian upper confidence bounds for bandit problems, AISTATS 2012. https://proceedings.mlr.press/v22/kaufmann12.html
17 thms3 active usersReviewed
🏆Completed
Convex OptimizationOptimizationProbability·Captain: mikedeng1

Sample Size Selection in Optimization Methods for Machine Learning 1: With Batch Sizes n_k ≥ a^k, Dynamic Batch Steepest Descent Converges Linearly in Expectation, E[J(w_k) − J(w*)] ≤ Cρ^kResearch Paper

Motivation

Training a model in machine learning means minimizing an expected loss over a data distribution, using a finite sample from it. Two families of methods dominate. Stochastic gradient methods step along the gradient of the loss at one data point: each step is cheap, but the noise forces small steps and many sequential iterations. Batch methods average the gradient over a large set of points: each step is accurate and parallelizes well, but costs a pass over the data. Bottou and Bousquet (The tradeoffs of large scale learning, NIPS 2007) compared the two by the total work needed to reach accuracy ϵ\epsilonϵ and concluded that stochastic gradient descent is preferable in large-scale learning.

Byrd, Chin, Nocedal and Wu (Sample size selection in optimization methods for machine learning, Math. Program. 2012) analyse a third option: a dynamic batch method, which takes gradient steps on mini-batches whose size grows over the run. A small batch makes early progress cheap; a large batch later makes the steps accurate. Their Theorem 4.2 shows that when the batch size grows geometrically, steepest descent with a fixed step converges linearly in expectation, and their Corollary 4.3 derives from it a total work bound of the same order as stochastic gradient descent. The analysis underlies a line of work on adaptive sampling and variance-controlled batch methods (for example Friedlander and Schmidt, Hybrid deterministic-stochastic methods for data fitting, SIAM J. Sci. Comput. 2012; Bottou, Curtis and Nocedal, Optimization methods for large-scale machine learning, SIAM Review 2018, §5.2).

Setting

Let (Z,P)(Z,P)(Z,P) be a probability space of data points zzz; in the paper z=(x,y)z=(x,y)z=(x,y) is an input–output pair with distribution P(x,y)P(x,y)P(x,y). The parameter is w∈Rmw\in\mathbb R^mw∈Rm (mmm is the number of variables). A per-sample loss ℓ(w;z)\ell(w;z)ℓ(w;z) is given with gradient ∇ℓ(w;z)\nabla\ell(w;z)∇ℓ(w;z) in www, and the objective is the expected loss (2.1)

J(w)=∫ℓ(w;z) dP(z).J(w)=\int\ell(w;z)\,dP(z).J(w)=∫ℓ(w;z)dP(z).

The gradient of the objective is the expected per-sample gradient, ∇J(w)=∫∇ℓ(w;z) dP(z)\nabla J(w)=\int\nabla\ell(w;z)\,dP(z)∇J(w)=∫∇ℓ(w;z)dP(z).

Uniform convexity (4.2): JJJ is twice continuously differentiable and there are constants 0<λ<L0<\lambda<L0<λ<L with

λ∥d∥22≤dT∇2J(w) d≤L∥d∥22for all w,d.\lambda\|d\|_2^2\le d^T\nabla^2J(w)\,d\le L\|d\|_2^2\qquad\text{for all } w,d .λ∥d∥22​≤dT∇2J(w)d≤L∥d∥22​for all w,d.

Then JJJ has a unique minimizer w∗w^*w∗.

For a random vector X∈RmX\in\mathbb R^mX∈Rm, ∥Var(X)∥1=E∥X−EX∥22\|\mathrm{Var}(X)\|_1=\mathbb E\|X-\mathbb EX\|_2^2∥Var(X)∥1​=E∥X−EX∥22​ is the sum of its componentwise variances. The variance bound (4.22) asks for a constant ω\omegaω with

∥Var(∇ℓ(w;⋅))∥1≤ωfor all w.\|\mathrm{Var}(\nabla\ell(w;\cdot))\|_1\le\omega\qquad\text{for all } w .∥Var(∇ℓ(w;⋅))∥1​≤ωfor all w.

The algorithm. Fix sample sizes nk≥1n_k\ge1nk​≥1 and a starting point w0w_0w0​. At iteration kkk draw a batch SkS_kSk​ of nkn_knk​ points, independently with law PPP and independently of earlier batches, form the batch gradient (4.19)

gk=1nk∑i∈Sk∇ℓ(wk;i),g_k=\frac1{n_k}\sum_{i\in S_k}\nabla\ell(w_k;i),gk​=nk​1​i∈Sk​∑​∇ℓ(wk​;i),

and take the dynamic batch steepest descent step (4.24)

wk+1=wk−1L gk.w_{k+1}=w_k-\frac1L\,g_k .wk+1​=wk​−L1​gk​.

The iterates wkw_kwk​ are random, and expectations below are over all batches.

Formalization targets

Goal: Theorem 4.2

If nk≥akn_k\ge a^knk​≥ak for all kkk, for some a>1a>1a>1, and (4.22) holds, then

E[J(wk)−J(w∗)]≤Cρkfor all k,ρ=max⁡{1−λ/(4L), 1/a}<1,C=max⁡{J(w0)−J(w∗), 2ω/λ}.\mathbb E[J(w_k)-J(w^*)]\le C\rho^k\quad\text{for all }k,\qquad \rho=\max\{1-\lambda/(4L),\,1/a\}<1,\quad C=\max\{J(w_0)-J(w^*),\,2\omega/\lambda\}.E[J(wk​)−J(w∗)]≤Cρkfor all k,ρ=max{1−λ/(4L),1/a}<1,C=max{J(w0​)−J(w∗),2ω/λ}.

The constants are the paper's. The goal also asserts that J(wk)J(w_k)J(wk​) is integrable for every kkk.

Milestones, in the order the proof uses them

  1. (4.5), p. 8: ∇J(w)T∇J(w)≥λ[J(w)−J(w∗)]\nabla J(w)^T\nabla J(w)\ge\lambda[J(w)-J(w^*)]∇J(w)T∇J(w)≥λ[J(w)−J(w∗)] for every www.
  2. Taylor bound, p. 11: J(w−1Lg)≤J(w)−1L∇J(w)Tg+12L∥g∥2J(w-\frac1Lg)\le J(w)-\frac1L\nabla J(w)^Tg+\frac1{2L}\|g\|^2J(w−L1​g)≤J(w)−L1​∇J(w)Tg+2L1​∥g∥2 for every www and ggg.
  3. (4.25), p. 11: at a fixed point www, with ggg the batch gradient of nnn i.i.d. draws,
E[J(w−1Lg)]≤J(w)−1L∥∇J(w)∥2+12LE∥g∥2,E∥g∥2=∥∇J(w)∥2+∥Var(g)∥1.\mathbb E[J(w-\tfrac1Lg)]\le J(w)-\tfrac1L\|\nabla J(w)\|^2+\tfrac1{2L}\mathbb E\|g\|^2,\qquad \mathbb E\|g\|^2=\|\nabla J(w)\|^2+\|\mathrm{Var}(g)\|_1 .E[J(w−L1​g)]≤J(w)−L1​∥∇J(w)∥2+2L1​E∥g∥2,E∥g∥2=∥∇J(w)∥2+∥Var(g)∥1​.
  1. Variance of the batch gradient, p. 12: ∥Var(g)∥1≤∥Var(∇ℓ(w;⋅))∥1/n\|\mathrm{Var}(g)\|_1\le\|\mathrm{Var}(\nabla\ell(w;\cdot))\|_1/n∥Var(g)∥1​≤∥Var(∇ℓ(w;⋅))∥1​/n.
  2. (4.26), p. 12: E[J(w−1Lg)]≤J(w)−12L∥∇J(w)∥2+12Ln∥Var(∇ℓ(w;⋅))∥1\mathbb E[J(w-\tfrac1Lg)]\le J(w)-\tfrac1{2L}\|\nabla J(w)\|^2+\tfrac1{2Ln}\|\mathrm{Var}(\nabla\ell(w;\cdot))\|_1E[J(w−L1​g)]≤J(w)−2L1​∥∇J(w)∥2+2Ln1​∥Var(∇ℓ(w;⋅))∥1​.
  3. (4.27), p. 12: E[J(w−1Lg)−J(w∗)]≤(1−λ2L)(J(w)−J(w∗))+ω2Ln\mathbb E[J(w-\tfrac1Lg)-J(w^*)]\le(1-\tfrac{\lambda}{2L})(J(w)-J(w^*))+\tfrac{\omega}{2Ln}E[J(w−L1​g)−J(w∗)]≤(1−2Lλ​)(J(w)−J(w∗))+2Lnω​.

Milestones 3–6 are the paper's conditional expectations given wkw_kwk​, stated at a fixed point www with the batch drawn afresh.

Significance

Theorem 4.2 is the convergence guarantee of the dynamic sampling strategy: it says that the noise of a mini-batch gradient does not destroy the linear rate of steepest descent, provided the batch grows geometrically. The rate ρ\rhoρ makes the trade-off explicit: the optimization contracts by 1−λ/(4L)1-\lambda/(4L)1−λ/(4L) per step, the noise by 1/a1/a1/a, and the slower of the two governs. From it the paper's Corollary 4.3 bounds the total number of sample-gradient evaluations to reach E[J(wk)−J(w∗)]≤ϵ\mathbb E[J(w_k)-J(w^*)]\le\epsilonE[J(wk​)−J(w∗)]≤ϵ by O(L/(λϵ))O(L/(\lambda\epsilon))O(L/(λϵ)), which places dynamic batch methods on the same footing as stochastic gradient descent in the Bottou–Bousquet comparison, while keeping the parallelism of batch methods.

The result is proved in the paper; to our knowledge no machine-checked proof exists. A formalization produces a reusable account of the one-iteration analysis of a mini-batch gradient step (descent lemma, variance of an i.i.d. sample mean of random vectors, conditional expectation over a fresh batch), and of the passage from a conditional one-step recursion to an unconditional bound over a run driven by an infinite i.i.d. array. Corollary 4.3 is not part of this mission: it involves O(⋅)O(\cdot)O(⋅) bounds, a cost model for gradient evaluations and an iteration count treated as a real number.

Difficulty

The arithmetic of the induction on p. 12 is short. The difficulty is in making the probability rigorous. The iterate wkw_kwk​ is random, and the paper's one-step bound (4.27) is a conditional expectation given wkw_kwk​, with J(wk)J(w_k)J(wk​) on the right-hand side. Turning it into an unconditional recursion requires that the batch of iteration kkk be independent of wkw_kwk​, that wkw_kwk​ be a measurable function of the earlier batches, and that J(wk)J(w_k)J(wk​) and ∥gk∥2\|g_k\|^2∥gk​∥2 be integrable at every step, none of which is automatic for a run driven by an infinite array of draws. A naive formalization that treats wkw_kwk​ as a fixed point, or gkg_kgk​ as an abstract random vector with a postulated variance bound, skips exactly this content.

The variance identity for a sample mean of random vectors in Rm\mathbb R^mRm and the bound ∥∇J(w)∥≤L∥w−w∗∥\|\nabla J(w)\|\le L\|w-w^*\|∥∇J(w)∥≤L∥w−w∗∥ from (4.2) are standard but not packaged in this form in Mathlib.

Formalization scope

  • The space is EuclideanSpace ℝ (Fin m). The paper's λ\lambdaλ is written lam (λ is a Lean keyword). (4.2) is ContDiff ℝ 2 J, 0 < lam < L, and the two-sided bound on fderiv ℝ (fderiv ℝ J) w d d.
  • JJJ is defined as the Bochner integral ∫ℓ(w;z) dP(z)\int\ell(w;z)\,dP(z)∫ℓ(w;z)dP(z) for a general per-sample loss ℓ\ellℓ; the paper's linear predictor f(w;x)=wTxf(w;x)=w^Txf(w;x)=wTx and convex loss lll are not used by the theorem and are not assumed. The model assumes: ℓ(w;⋅)\ell(w;\cdot)ℓ(w;⋅) integrable; ∇ℓ(w;z)\nabla\ell(w;z)∇ℓ(w;z) the gradient of ℓ(⋅;z)\ell(\cdot;z)ℓ(⋅;z) at www; (w,z)↦∇ℓ(w;z)(w,z)\mapsto\nabla\ell(w;z)(w,z)↦∇ℓ(w;z) jointly measurable; ∇ℓ(w;⋅)\nabla\ell(w;\cdot)∇ℓ(w;⋅) square-integrable; and ∇J(w)=∫∇ℓ(w;z) dP(z)\nabla J(w)=\int\nabla\ell(w;z)\,dP(z)∇J(w)=∫∇ℓ(w;z)dP(z) (differentiation under the integral, which the paper uses without proof).
  • Sampling with replacement. The paper's (3.5) is sampling without replacement from NNN points; it takes N→∞N\to\inftyN→∞ on p. 5, which "also corresponds to the case of sampling with replacement". The formalization draws every point i.i.d. from PPP: draw iii of iteration kkk is ξk,i\xi_{k,i}ξk,i​ and the law of the whole array is Measure.infinitePi over N×N\mathbb N\times\mathbb NN×N. The finite-population factor (N−nk)/(N−1)(N-n_k)/(N-1)(N−nk​)/(N−1) is not modelled.
  • w∗w^*w∗ is a given minimizer of JJJ; nkn_knk​ are natural numbers with ak≤nka^k\le n_kak≤nk​ (real powers of a real a>1a>1a>1); ω\omegaω is a real number.
  • The goal asserts integrability of J(wk)J(w_k)J(wk​) together with the bound, so the inequality cannot be met by the Bochner integral's value 000 on a non-integrable function. The batch gradient is the mean over nkn_knk​ draws at the current iterate, and wkw_kwk​ is the random run: a goal with an abstract random gkg_kgk​ satisfying a postulated variance bound, or with wkw_kwk​ a deterministic sequence, would not be this theorem.
  • Welcome contributions: the variance of an i.i.d. mean of Rm\mathbb R^mRm-valued random vectors; the descent lemma and gradient-dominance inequality from Hessian bounds; measurability and independence lemmas for processes driven by Measure.infinitePi. All three are reusable beyond this mission.

Selected references

  • R. H. Byrd, G. M. Chin, J. Nocedal, Y. Wu, Sample size selection in optimization methods for machine learning, Mathematical Programming 134 (2012) 127–155. https://doi.org/10.1007/s10107-012-0572-5
  • L. Bottou, O. Bousquet, The tradeoffs of large scale learning, NIPS 2007. https://papers.nips.cc/paper/3323-the-tradeoffs-of-large-scale-learning
  • M. P. Friedlander, M. Schmidt, Hybrid deterministic-stochastic methods for data fitting, SIAM J. Sci. Comput. 34 (2012) A1380–A1405. https://doi.org/10.1137/110830629
  • L. Bottou, F. E. Curtis, J. Nocedal, Optimization methods for large-scale machine learning, SIAM Review 60 (2018) 223–311. https://doi.org/10.1137/16M1080173
10 thms3 active usersReviewed
🏆Completed
Convex OptimizationOptimization·Captain: mikedeng1

Sample Size Selection in Optimization Methods for Machine Learning 2: Steepest Descent with Gradient Error ‖g_k − ∇J(w_k)‖ ≤ θ‖g_k‖ Contracts J by 1 − βλ/L per StepResearch Paper

Motivation

Training a machine-learning model usually means minimizing an expected or empirical loss J(w)J(w)J(w) over parameters w∈Rmw \in \mathbb{R}^mw∈Rm. Exact gradients of such objectives are expensive, because each one requires a pass over the whole data set; practical methods replace ∇J(wk)\nabla J(w_k)∇J(wk​) by a cheaper approximation gkg_kgk​, for instance a gradient computed on a subsample. This raises a basic question for the analysis of optimization algorithms: how accurate must the approximate gradient be for steepest descent to keep its linear rate of convergence?

Byrd, Chin, Nocedal and Wu (Math. Program. 2012) answer this question with a relative-error condition, and use the answer to motivate a rule that increases the sample size during the run. Their §4.1 treats the deterministic case: the approximations gkg_kgk​ are arbitrary vectors, and only a geometric condition linking gkg_kgk​ to ∇J(wk)\nabla J(w_k)∇J(wk​) is assumed. That deterministic result, Theorem 4.1, is the goal of this mission. The stochastic counterpart (Theorem 4.2, dynamic batch sizes) is a separate mission of the same series.

Relative-error conditions of this kind ("the error is a fixed fraction of the step") appear throughout the literature on inexact gradient and inexact Newton methods (e.g. Bertsekas and Tsitsiklis 2000 on gradient methods with errors), and the condition (4.8) below is the deterministic template for the adaptive sampling tests later developed for stochastic optimization.

Setting

Let J:Rm→RJ : \mathbb{R}^m \to \mathbb{R}J:Rm→R be twice continuously differentiable and uniformly convex: there are constants 0<λ<L0 < \lambda < L0<λ<L such that

λ∥d∥22  ≤  dT∇2J(w) d  ≤  L∥d∥22for all w,d∈Rm.(4.2)\lambda\|d\|_2^2 \;\le\; d^T \nabla^2 J(w)\, d \;\le\; L\|d\|_2^2 \qquad\text{for all } w, d \in \mathbb{R}^m. \tag{4.2}λ∥d∥22​≤dT∇2J(w)d≤L∥d∥22​for all w,d∈Rm.(4.2)

Such a JJJ has a unique minimizer w∗w_*w∗​; following the paper, it is normalized so that J(w∗)=0J(w_*) = 0J(w∗​)=0.

Fix θ∈(0,1)\theta \in (0,1)θ∈(0,1). Given a sequence of vectors g0,g1,…g_0, g_1, \ldotsg0​,g1​,… (the approximate gradients), the fixed-steplength steepest descent iteration is

wk+1=wk−αgk,α=1−θL.(4.1, 4.7)w_{k+1} = w_k - \alpha g_k, \qquad \alpha = \frac{1-\theta}{L}. \tag{4.1, 4.7}wk+1​=wk​−αgk​,α=L1−θ​.(4.1, 4.7)

The approximate gradient at iteration kkk satisfies the relative-error condition if

∥gk−∇J(wk)∥  ≤  θ ∥gk∥.(4.8)\|g_k - \nabla J(w_k)\| \;\le\; \theta\, \|g_k\|. \tag{4.8}∥gk​−∇J(wk​)∥≤θ∥gk​∥.(4.8)

Write

β=(1−θ)22(1+θ)2.(4.9)\beta = \frac{(1-\theta)^2}{2(1+\theta)^2}. \tag{4.9}β=2(1+θ)2(1−θ)2​.(4.9)

Formalization targets

Goal: Theorem 4.1 (p. 8)

  1. If (4.8) holds at iteration kkk, then
J(wk+1)≤(1−βλL)J(wk).(4.9)J(w_{k+1}) \le \Bigl(1 - \frac{\beta\lambda}{L}\Bigr) J(w_k). \tag{4.9}J(wk+1​)≤(1−Lβλ​)J(wk​).(4.9)
  1. If (4.8) holds at every iteration, then wk→w∗w_k \to w_*wk​→w∗​ (4.10); every k>Lβλ[log⁡(1/ϵ)+log⁡J(w0)]k > \frac{L}{\beta\lambda}[\log(1/\epsilon) + \log J(w_0)]k>βλL​[log(1/ϵ)+logJ(w0​)] satisfies J(wk)<J(w∗)+ϵJ(w_k) < J(w_*) + \epsilonJ(wk​)<J(w∗​)+ϵ (4.11); and
∥gk∥2≤1(1−θ)2 2L2J(w0)λ(1−βλL)k.(4.12)\|g_k\|^2 \le \frac{1}{(1-\theta)^2}\,\frac{2L^2J(w_0)}{\lambda}\Bigl(1-\frac{\beta\lambda}{L}\Bigr)^k. \tag{4.12}∥gk​∥2≤(1−θ)21​λ2L2J(w0​)​(1−Lβλ​)k.(4.12)

The constants are those of the paper and are kept explicit.

Milestones

In the order the paper's proof uses them:

  • (4.5) ∇J(w)T∇J(w)≥λ[J(w)−J(w∗)]\nabla J(w)^T\nabla J(w) \ge \lambda[J(w) - J(w_*)]∇J(w)T∇J(w)≥λ[J(w)−J(w∗​)] and (4.6) J(w)−J(w∗)≥λ2L2∥∇J(w)∥22J(w) - J(w_*) \ge \frac{\lambda}{2L^2}\|\nabla J(w)\|_2^2J(w)−J(w∗​)≥2L2λ​∥∇J(w)∥22​, consequences of (4.2) alone (p. 8);
  • (4.13) (1−θ)∥gk∥≤∥∇J(wk)∥≤(1+θ)∥gk∥(1-\theta)\|g_k\| \le \|\nabla J(w_k)\| \le (1+\theta)\|g_k\|(1−θ)∥gk​∥≤∥∇J(wk​)∥≤(1+θ)∥gk​∥ and (4.14) ∇J(wk)Tgk≥(1−θ)∥gk∥2\nabla J(w_k)^Tg_k \ge (1-\theta)\|g_k\|^2∇J(wk​)Tgk​≥(1−θ)∥gk​∥2 under (4.8) (p. 9);
  • (4.16) the one-step decrease J(wk+1)≤J(wk)−βL∥∇J(wk)∥2J(w_{k+1}) \le J(w_k) - \frac{\beta}{L}\|\nabla J(w_k)\|^2J(wk+1​)≤J(wk​)−Lβ​∥∇J(wk​)∥2 under (4.8) at kkk (p. 9);
  • (4.17) J(wk)≤(1−βλ/L)kJ(w0)J(w_k) \le (1 - \beta\lambda/L)^k J(w_0)J(wk​)≤(1−βλ/L)kJ(w0​) under (4.8) at every earlier iteration (p. 9).

Significance

Theorem 4.1 says that the linear convergence of steepest descent on a uniformly convex function survives arbitrary gradient errors, provided each error is at most a fixed fraction θ\thetaθ of the approximate gradient's own norm. The price is explicit: the per-step contraction factor is 1−β(θ)λ/L1 - \beta(\theta)\lambda/L1−β(θ)λ/L instead of a factor of the form 1−cλ/L1 - c\lambda/L1−cλ/L with an absolute constant ccc, and the iteration bound (4.11) grows like L/(βλ)L/(\beta\lambda)L/(βλ) times a logarithm. Because (4.8) is relative rather than absolute, no a priori bound on the error is needed, and the error may be large far from the solution. In the paper this is the motivation for requiring the sample variance of a subsampled gradient to be small relative to ∥gk∥2\|g_k\|^2∥gk​∥2, which leads to the dynamic sample-size rule analysed in §4.2.

The result is proved in the paper (pp. 9–10). No machine-checked proof of it, or of any relative-error inexact gradient method with explicit constants, has been published. A formal proof provides a checked reference statement for inexact first-order methods with the paper's constants, and the milestones (4.5), (4.6), (4.13), (4.14) are reusable facts about strongly convex smooth functions and about relative-error gradient approximations.

Difficulty

Each step is classical, but the proof combines second-order information with metric estimates. The descent estimate (4.15) needs a second-order Taylor bound from the upper Hessian bound in (4.2), which in Lean means passing from a bound on the second Fréchet derivative to a quadratic upper bound on JJJ along a segment. The inequalities (4.5) and (4.6) relate the gradient norm to the optimality gap through the lower and upper Hessian bounds and the minimizer, and must be derived without an explicit averaged Hessian unless one is built. The convergence wk→w∗w_k \to w_*wk​→w∗​ in (4.10) requires turning convergence of the function values into convergence of the iterates, which again uses uniform convexity. Finally, (4.11) is a logarithmic iteration count whose boundary cases (J(w0)=0J(w_0) = 0J(w0​)=0, ϵ≥J(w0)\epsilon \ge J(w_0)ϵ≥J(w0​)) must be handled. A naive reading of the iteration with exact gradients does not apply: the step is (1−θ)/L(1-\theta)/L(1−θ)/L, not 1/L1/L1/L, and the direction −gk-g_k−gk​ is only known to be a descent direction through (4.14).

Formalization scope

The space is EuclideanSpace ℝ (Fin m). Assumption (4.2) is a definition HessianBounds J lam L (with lam for λ\lambdaλ, a Lean keyword): ContDiff ℝ 2 J, 0 < lam < L, and both bounds on the quadratic form fderiv ℝ (fderiv ℝ J) w d d. The gradient is Mathlib's gradient J. The minimizer is a point wstar with J wstar ≤ J w for all w, and J wstar = 0 is a hypothesis of the goal and of (4.17), exactly as in the paper; (4.5) and (4.6) are stated with J(w∗)J(w_*)J(w∗​) and without it. The constant β\betaβ is a definition beta θ; it is never a free variable. The approximate gradients gkg_kgk​ are an arbitrary sequence and nothing is random. The iterates are any sequence with w (k+1) = w k - ((1 - θ) / L) • g k for all k.

The one-step claim (4.9) assumes (4.8) only at the index kkk; (4.10)–(4.12) assume it at every index. (4.11) is stated in the form the proof derives in (4.18): every kkk strictly beyond the bound has J(wk)<ϵJ(w_k) < \epsilonJ(wk​)<ϵ. The logarithm is natural; when J(w0)=0J(w_0) = 0J(w0​)=0 Lean's convention log⁡0=0\log 0 = 0log0=0 applies, which is harmless because every iterate is then optimal. No positivity hypothesis on J(w0)J(w_0)J(w0​) is added.

A trivializing formalization is excluded: the step size is fixed by the paper, β\betaβ and the Hessian bounds are pinned, and the hypotheses are satisfiable, e.g. by J(w)=c2∥w∥2J(w) = \tfrac{c}{2}\|w\|^2J(w)=2c​∥w∥2 with λ<c<L\lambda < c < Lλ<c<L, w∗=0w_* = 0w∗​=0 and gk=∇J(wk)g_k = \nabla J(w_k)gk​=∇J(wk​).

A complete development needs: a second-order Taylor (or mean-value) bound from a Hessian bound, the strong-convexity inequalities (4.5)–(4.6), and elementary real-analysis facts about geometric sequences and logarithms. The milestones (4.5), (4.6), (4.13) and (4.14) are independent of the iteration and reusable. Proofs of any milestone, and alternative proofs with sharper constants stated as separate theorems, are welcome.

Selected references

  • R. H. Byrd, G. M. Chin, J. Nocedal, Y. Wu, Sample size selection in optimization methods for machine learning, Mathematical Programming 134 (2012), 127–155. https://doi.org/10.1007/s10107-012-0572-5
  • D. P. Bertsekas, J. N. Tsitsiklis, Gradient convergence in gradient methods with errors, SIAM Journal on Optimization 10 (2000), 627–642. https://doi.org/10.1137/S1052623497331063
  • L. Bottou, O. Bousquet, The tradeoffs of large scale learning, Advances in Neural Information Processing Systems 20 (2008). https://papers.nips.cc/paper/3323-the-tradeoffs-of-large-scale-learning
8 thms3 active usersReviewed
🏆Completed
Probability·Captain: mikedeng1

Efficient Algorithms for Online Decision Problems 3: Follow the Lazy Leader (FLL, FLL*) Matches FPL, FPL* in Expectation Each Period and Updates with Probability at Most εAResearch Paper

Motivation

In an online linear decision problem a decision maker chooses, on each period t=1,2,…t = 1, 2, \dotst=1,2,…, a decision dtd_tdt​ from a set D⊂Rn\mathcal D \subset \mathbb R^nD⊂Rn, and only then learns a state vector st∈S⊂Rns_t \in \mathcal S \subset \mathbb R^nst​∈S⊂Rn and pays the cost dt⋅std_t \cdot s_tdt​⋅st​. The online shortest path problem, the experts problem, online binary search trees and list update are all of this form. Kalai and Vempala showed that a single offline optimisation oracle M(s)=arg min⁡d∈Dd⋅sM(s) = \operatorname{arg\,min}_{d \in \mathcal D} d \cdot sM(s)=argmind∈D​d⋅s is enough to compete with the best fixed decision in hindsight: Follow the Perturbed Leader plays the leader of a randomly perturbed history (Kalai & Vempala 2005; the idea goes back to Hannan 1957).

Each period of FPL calls the oracle once and may change the decision. When an oracle call is expensive, or when switching decisions carries a cost (rotating a search tree, re-routing traffic), this is wasteful. The same paper introduces Follow the Lazy Leader: versions FLL and FLL* of FPL and FPL* that correlate the perturbations across periods so that the decision rarely changes, while each single period is distributed exactly as before. Lemma 1.2 of the paper is the statement that this works, and it is the result of this mission.

Setting

Vectors are elements of Rn\mathbb R^nRn; ∣x∣1=∑i∣xi∣|x|_1 = \sum_i |x_i|∣x∣1​=∑i​∣xi​∣, and s1:t=s1+⋯+sts_{1:t} = s_1 + \dots + s_ts1:t​=s1​+⋯+st​ with s1:0=0s_{1:0} = 0s1:0​=0.

  • An argmin oracle for D\mathcal DD is a map MMM with M(x)∈DM(x) \in \mathcal DM(x)∈D and M(x)⋅x≤d⋅xM(x) \cdot x \le d \cdot xM(x)⋅x≤d⋅x for all d∈Dd \in \mathcal Dd∈D. The decisions are assumed to have L1L^1L1 diameter at most DDD, and the states satisfy ∣s∣1≤A|s|_1 \le A∣s∣1​≤A for s∈Ss \in \mathcal Ss∈S.
  • The states s1,s2,⋯∈Ss_1, s_2, \dots \in \mathcal Ss1​,s2​,⋯∈S form a fixed sequence (an oblivious adversary).
  • For ε>0\varepsilon > 0ε>0, UUU is the uniform law on the cube [0,1/ε]n[0, 1/\varepsilon]^n[0,1/ε]n and μ\muμ is the Laplace law with density dμ(x)=(ε/2)ne−ε∣x∣1d\mu(x) = (\varepsilon/2)^n e^{-\varepsilon |x|_1}dμ(x)=(ε/2)ne−ε∣x∣1​.

The four algorithms, period ttt:

  1. FPL(ε\varepsilonε) plays M(s1:t−1+p)M(s_{1:t-1} + p)M(s1:t−1​+p) with p∼Up \sim Up∼U; FPL*(ε\varepsilonε) does the same with p∼μp \sim \mup∼μ.
  2. FLL(ε\varepsilonε) draws one offset p∼Up \sim Up∼U at the start, which fixes the grid G={p+1εz:z∈Zn}G = \{p + \tfrac1\varepsilon z : z \in \mathbb Z^n\}G={p+ε1​z:z∈Zn}, and plays M(gt−1)M(g_{t-1})M(gt−1​), where the grid point gt−1=g(s1:t−1,p)g_{t-1} = g(s_{1:t-1}, p)gt−1​=g(s1:t−1​,p) is the unique point of GGG in s1:t−1+[0,1/ε)ns_{1:t-1} + [0, 1/\varepsilon)^ns1:t−1​+[0,1/ε)n.
  3. FLL*(ε\varepsilonε) draws p1∼μp_1 \sim \mup1​∼μ, plays M(s1:t−1+pt)M(s_{1:t-1} + p_t)M(s1:t−1​+pt​), and then sets pt+1=pt−stp_{t+1} = p_t - s_tpt+1​=pt​−st​ with probability min⁡{1,dμ(pt−st)/dμ(pt)}\min\{1, d\mu(p_t - s_t)/d\mu(p_t)\}min{1,dμ(pt​−st​)/dμ(pt​)} and pt+1=−ptp_{t+1} = -p_tpt+1​=−pt​ otherwise. Accepting keeps the evaluation point fixed: s1:t+pt+1=s1:t−1+pts_{1:t} + p_{t+1} = s_{1:t-1} + p_ts1:t​+pt+1​=s1:t−1​+pt​. The law of ptp_tpt​ is written νt\nu_tνt​.

Formalization targets

Goal: Lemma 1.2 (p. 295)

For every period t≥1t \ge 1t≥1:

Ep∼U[st⋅M(g(s1:t−1,p))]=Ep∼U[st⋅M(s1:t−1+p)],Pr⁡p∼U[gt−1≠gt]≤εA,\mathbb E_{p\sim U}\big[s_t \cdot M(g(s_{1:t-1}, p))\big] = \mathbb E_{p\sim U}\big[s_t \cdot M(s_{1:t-1} + p)\big], \qquad \Pr_{p\sim U}[g_{t-1} \ne g_t] \le \varepsilon A,Ep∼U​[st​⋅M(g(s1:t−1​,p))]=Ep∼U​[st​⋅M(s1:t−1​+p)],p∼UPr​[gt−1​=gt​]≤εA, Ept∼νt[st⋅M(s1:t−1+pt)]=Ep∼μ[st⋅M(s1:t−1+p)],Pr⁡[s1:t+pt+1≠s1:t−1+pt]≤εA.\mathbb E_{p_t\sim \nu_t}\big[s_t \cdot M(s_{1:t-1} + p_t)\big] = \mathbb E_{p\sim \mu}\big[s_t \cdot M(s_{1:t-1} + p)\big], \qquad \Pr\big[s_{1:t} + p_{t+1} \ne s_{1:t-1} + p_t\big] \le \varepsilon A .Ept​∼νt​​[st​⋅M(s1:t−1​+pt​)]=Ep∼μ​[st​⋅M(s1:t−1​+p)],Pr[s1:t​+pt+1​=s1:t−1​+pt​]≤εA.

The first line is the FLL half, the second the FLL* half. The constant εA\varepsilon AεA is the paper's.

Milestones

  1. Lemma 3.2 (p. 300): U({x:x−v∈[0,1/ε]n})≥1−ε∣v∣1U(\{x : x - v \in [0,1/\varepsilon]^n\}) \ge 1 - \varepsilon |v|_1U({x:x−v∈[0,1/ε]n})≥1−ε∣v∣1​.
  2. The grid point is uniform (pp. 302–303): g(x,p)g(x, p)g(x,p) with p∼Up \sim Up∼U has the law of x+px + px+p.
  3. FLL update bound (p. 303): Pr⁡p∼U[g(x,p)≠g(x+v,p)]≤ε∣v∣1\Pr_{p\sim U}[g(x,p) \ne g(x+v,p)] \le \varepsilon |v|_1Prp∼U​[g(x,p)=g(x+v,p)]≤ε∣v∣1​.
  4. Display (8) (p. 304): one FLL* update maps μ\muμ to μ\muμ.
  5. Induction (p. 304): νt=μ\nu_t = \muνt​=μ for every t≥1t \ge 1t≥1.
  6. Switching bound (p. 304): for any law of ptp_tpt​, Pr⁡[pt+1≠pt−v]≤ε∣v∣1\Pr[p_{t+1} \ne p_t - v] \le \varepsilon |v|_1Pr[pt+1​=pt​−v]≤ε∣v∣1​.

Significance

Lemma 1.2 transfers every guarantee proved for FPL and FPL* to FLL and FLL*: Theorem 1.1 of the paper bounds expected costs period by period, so equal per-period expectations give the same additive bound min-costT+εRAT+D/ε\text{min-cost}_T + \varepsilon RAT + D/\varepsilonmin-costT​+εRAT+D/ε and the same multiplicative bound for the lazy algorithms. In addition, the expected number of oracle calls and decision changes over TTT periods is at most εAT\varepsilon A TεAT, which is O(T)O(\sqrt T)O(T​) at the usual tuning ε∼1/T\varepsilon \sim 1/\sqrt Tε∼1/T​. The paper uses this for online binary search trees with few rotations.

The result is proved in the paper. As far as is known there is no machine-checked proof of it. This mission produces a Lean statement of all four claims and of the six steps of the proof, against explicit Lean definitions of the grid point, the FLL* step and the law sequence νt\nu_tνt​. The uniformity of a random-grid point and the invariance of a Laplace law under a Metropolis-type step are reusable facts beyond online learning.

Difficulty

The FLL half asks for the exact law of the grid point g(x,p)g(x, p)g(x,p), a piecewise translation of ppp whose pieces depend on xxx. The page settles it in one line ("by symmetry"); in Lean it is an equality of push-forward measures, and the obvious attempt, a single change of variables p↦p+cp \mapsto p + cp↦p+c, fails because the shift ccc is different on different pieces of the cube.

The FLL* half is a statement about measures on Rn×Rn\mathbb R^n \times \mathbb R^nRn×Rn given as a mixture of point masses. The page argues with densities, pointwise in xxx; the formal statement is an equality of measures, with the update written as a Measure.bind against a kernel whose two branches move mass in different directions. The density computation of display (8) does not by itself give this equality.

Formalization scope

  • Vectors are Fin n → ℝ, d⋅sd \cdot sd⋅s is dotProduct, ∣x∣1|x|_1∣x∣1​ is written out as ∑ i, |x i|. States are indexed from 1; s 0 is unused.
  • s1:ts_{1:t}s1:t​ is prefixSum and UUU is perturbLaw n ε from the published definition OracleRO.ApproxFPL.FPL. The oracle is the predicate IsArgminOracle Dset M, and every statement holds for every such MMM.
  • The Laplace law laplaceLaw n ε carries its normalising constant (ε/2)n(\varepsilon/2)^n(ε/2)n, so it is a probability measure for ε>0\varepsilon > 0ε>0.
  • The grid point fllGridPoint ε x p is the explicit formula pi+⌈ε(xi−pi)⌉/εp_i + \lceil \varepsilon(x_i - p_i) \rceil / \varepsilonpi​+⌈ε(xi​−pi​)⌉/ε. It is the unique grid point in the half-open cube for ε>0\varepsilon > 0ε>0, and it is measurable. The half-open and closed cubes differ by a null set, and the closed-cube law is used throughout.
  • The FLL* update is the joint law fllStarJoint ε v ν of (pt,pt+1)(p_t, p_{t+1})(pt​,pt+1​), built with Measure.bind and Measure.dirac. The acceptance probability is min⁡{1,e−ε(∣p−v∣1−∣p∣1)}\min\{1, e^{-\varepsilon(|p-v|_1 - |p|_1)}\}min{1,e−ε(∣p−v∣1​−∣p∣1​)}. The law fllStarLaw ε s t is the recursion started at μ\muμ, not μ\muμ itself.
  • "Performing an update" on period ttt means gt−1≠gtg_{t-1} \ne g_tgt−1​=gt​ for FLL and s1:t+pt+1≠s1:t−1+pts_{1:t} + p_{t+1} \ne s_{1:t-1} + p_ts1:t​+pt+1​=s1:t−1​+pt​ for FLL*.
  • Hypotheses not on the page: measurability of MMM and ε>0\varepsilon > 0ε>0.

The formalization rules out the following trivializations:

  • the grid point is not a Classical.choose;
  • the integrands are bounded and measurable, because MMM maps into a set of finite diameter, so the expectations are not the junk value 000 of a non-integrable function;
  • νt\nu_tνt​ is defined by the chain and not as μ\muμ, so claim 3 does not compare a law with itself;
  • FLL's grid point is compared with FPL's point s1:t−1+ps_{1:t-1} + ps1:t−1​+p, not with itself.

Welcome contributions:

  • the uniformity of x+((p−x) mod L)x + ((p - x) \bmod L)x+((p−x)modL) under the uniform law on a box;
  • Measure.bind lemmas for finite mixtures of Dirac kernels;
  • the change of variables for the Laplace density under reflection and shift.

Selected references

  • A. Kalai, S. Vempala, Efficient algorithms for online decision problems, Journal of Computer and System Sciences 71(3):291–307, 2005. https://doi.org/10.1016/j.jcss.2004.10.016
  • J. Hannan, Approximation to Bayes risk in repeated play, Contributions to the Theory of Games III, Annals of Mathematics Studies 39, 97–139, 1957. https://doi.org/10.1515/9781400882151-005
  • A. Ben-Tal, E. Hazan, T. Koren, S. Mannor, Oracle-based robust optimization via online learning, Operations Research 63(3):628–638, 2015. https://doi.org/10.1287/opre.2015.1374
11 thms3 active usersReviewed
Convex OptimizationLinear algebraStatistics·Captain: mikedeng1

Nuclear-Norm Penalization and Optimal Rates for Noisy Low-Rank Matrix Completion 2: If λ ≥ 3‖M‖∞ on a Linear Subspace, a Sharp Oracle Inequality with the Restricted Constant μ₅(A)Research Paper

Motivation

Estimating a large matrix that is approximately low rank from a few noisy linear measurements is a basic problem of high-dimensional statistics. It covers matrix completion (recovering a ratings table from a small sample of entries), multi-task regression and quantum state tomography. The standard estimator penalizes the nuclear norm, the sum of the singular values, which is the convex surrogate of the rank. Koltchinskii, Lounici and Tsybakov (arXiv:1011.6256v4; Ann. Statist. 39(5), 2011) study a variant of this estimator that uses the known distribution of the design. Their Theorem 1 proves sharp oracle inequalities, with leading constant 1, under a global isometry condition on the design (Assumption 1).

Global isometry is a strong requirement. For sparse vectors, the analogous requirement was relaxed to the restricted eigenvalue condition of Bickel, Ritov and Tsybakov (Ann. Statist. 37, 2009), which only asks for curvature on a cone of approximately sparse directions. The random-design version is due to Koltchinskii (Bernoulli 15, 2009), and a matrix version of the cone appears in Negahban, Ravikumar, Wainwright and Yu (arXiv:1010.2731). Theorem 2 of the paper is the matrix counterpart of the restricted eigenvalue analysis for this estimator. It keeps the leading constant 1, and the price is a stronger tuning condition, λ ≥ 3‖M‖∞ instead of 2‖M‖∞. Section 5.4 of the same paper derives from it a sharp sparsity oracle inequality for the ordinary vector Lasso.

Setting

Observe n pairs (Xᵢ, Yᵢ), i = 1, …, n, where Xᵢ is a random m₁ × m₂ real matrix and Yᵢ a real random variable, satisfying the trace regression model

E(Yi∣Xi)=tr⁡(Xi⊤A0),\mathbb E(Y_i \mid X_i) = \operatorname{tr}(X_i^\top A_0),E(Yi​∣Xi​)=tr(Xi⊤​A0​),

for an unknown matrix A₀. Write ⟨A, B⟩ = tr(AᵀB), and let ‖A‖₁, ‖A‖₂ and ‖A‖∞ be the nuclear, Frobenius and operator norms, the last being the largest singular value. The design enters through the bilinear form

⟨A,B⟩L2(Π)=1n∑i=1nE(⟨A,Xi⟩⟨B,Xi⟩),\langle A, B\rangle_{L_2(\Pi)} = \frac1n\sum_{i=1}^n \mathbb E\big(\langle A, X_i\rangle\langle B, X_i\rangle\big),⟨A,B⟩L2​(Π)​=n1​i=1∑n​E(⟨A,Xi​⟩⟨B,Xi​⟩),

with semi-norm ‖A‖_{L₂(Π)}. Two random objects are built from the sample: the noise matrix M = (1/n) Σᵢ (YᵢXᵢ − 𝔼(YᵢXᵢ)), and, for λ > 0 and a set 𝔸 of matrices, the estimator Â^λ, any minimizer over 𝔸 of

Ln(A)=∥A∥L2(Π)2−⟨2n∑i=1nYiXi,A⟩+λ∥A∥1.L_n(A) = \|A\|_{L_2(\Pi)}^2 - \Big\langle \frac2n\sum_{i=1}^n Y_iX_i, A\Big\rangle + \lambda\|A\|_1 .Ln​(A)=∥A∥L2​(Π)2​−⟨n2​i=1∑n​Yi​Xi​,A⟩+λ∥A∥1​.

Let A = Σ_{j≤r} σⱼ uⱼvⱼᵀ be a singular value decomposition, with support (S₁, S₂), the spans of the uⱼ and of the vⱼ. Write 𝒫_A⊥(B) = P_{S₁⊥} B P_{S₂⊥} for the part of B orthogonal to both singular spaces, and 𝒫_A(B) = B − 𝒫_A⊥(B). When 𝔸 is a linear subspace and c₀ ≥ 0, the cone ℂ_{A,c₀} consists of the B ∈ 𝔸 with ‖𝒫_A⊥(B)‖₁ ≤ c₀‖𝒫_A(B)‖₁. The restricted constant μ_{c₀}(A) is the infimum of the μ′ > 0 such that ‖𝒫_A(B)‖₂ ≤ μ′‖B‖{L₂(Π)} for every B ∈ ℂ{A,c₀}. The paper uses μ(A) := μ₅(A).

Formalization targets

Goal: Theorem 2, (2.19)

Let 𝔸 be a linear subspace. If λ ≥ 3‖M‖∞, then

∥A^λ−A0∥L2(Π)2≤inf⁡A∈A[∥A−A0∥L2(Π)2+λ2μ2(A)rank⁡(A)].\|\hat A^\lambda - A_0\|_{L_2(\Pi)}^2 \le \inf_{A \in \mathbb A}\Big[\|A - A_0\|_{L_2(\Pi)}^2 + \lambda^2\mu^2(A)\operatorname{rank}(A)\Big].∥A^λ−A0​∥L2​(Π)2​≤A∈Ainf​[∥A−A0​∥L2​(Π)2​+λ2μ2(A)rank(A)].

The bound is deterministic: it holds for every realization of the sample on which λ ≥ 3‖M‖∞. A₀ need not lie in 𝔸, and nothing is assumed about the design beyond what makes the objects finite.

Milestones

The milestones are the displays of the proof, in the order the proof uses them:

  1. (2.8), the inequality obtained from the first-order optimality condition of the estimator, which the proof of Theorem 1 already uses;
  2. (2.20), in the case ⟨Â^λ − A₀, Â^λ − A⟩_{L₂(Π)} > 0;
  3. (2.21), the splitting of ⟨M, Â^λ − A⟩ along 𝒫_A and 𝒫_A⊥;
  4. (2.22), the inequality (λ − 2Δ)‖𝒫_A⊥(Â^λ − A)‖₁ ≤ (λ + 2Δ)‖𝒫_A(Â^λ − A)‖₁ with Δ = ‖M‖∞;
  5. the membership Â^λ − A ∈ ℂ_{A,5} and the resulting bound by μ(A);
  6. the final two-step display with the constant 1 + 2√2/3.

Significance

Theorem 2 gives a sharp oracle inequality whose only design-dependent quantity is a restricted constant. That constant is finite in situations where the global isometry of Theorem 1 fails. The result covers every linear subspace 𝔸, for example all matrices, the diagonal matrices or matrices with a prescribed sparsity pattern. In the diagonal case it becomes a sharp sparsity oracle inequality for the vector Lasso under a restricted eigenvalue condition (the paper's Theorem 14). The oracle inequalities of Bickel, Ritov and Tsybakov under the same condition have a leading constant larger than 1.

The result is proved in the paper, in about half a page that leans on the proof of Theorem 1. No machine-checked version exists. A formalization pins down two things the printed proof leaves to the reader: the convex-analytic optimality condition behind (2.8), and the "obvious modification of (2.10)" and "some algebra" behind (2.20) and the final display. It also reuses and extends the platform's matrix vocabulary: nuclear and operator norms, SVD data, and the tangent and normal projections of the matrix completion missions.

Difficulty

The estimator is defined implicitly as a minimizer, so the analysis has to go through first-order conditions. Those require the subdifferential of the nuclear norm and a choice of subgradient that matches the support of the comparison matrix A. Mathlib has neither a characterization of this subdifferential nor the monotonicity argument in matrix form. The obvious route, copying Theorem 1, fails at the step that uses Assumption 1 to pass from Frobenius to L₂(Π) norms: without a global isometry, that comparison is available only on the cone ℂ_{A,5}, and the error is known to lie there only in the case ⟨Â^λ − A₀, Â^λ − A⟩_{L₂(Π)} > 0 and only for λ ≥ 3‖M‖∞. The constant 5 = (λ + 2Δ)/(λ − 2Δ) at λ = 3Δ is not slack. A linear subspace, not just a convex set, is needed so that Â^λ − A lies in 𝔸, where the cone lives.

Formalization scope

Matrices are RealMatrix m₁ m₂ from the published MatrixCompletion definitions. These supply ⟨·,·⟩ (matrixInner), the nuclear, Frobenius and operator norms, SVD data SVD A r, the sign matrix Σuⱼvⱼᵀ, and 𝒫_A, 𝒫_A⊥ (tangentProjection, normalProjection). This mission adds two definition files.

  • Model. ⟨·,·⟩{L₂(Π)}, M, L_n and the estimator, all at a fixed outcome ω. The structure TraceRegression holds the standing assumptions: measurable Xᵢ and Yᵢ, square-integrable entries of Xᵢ, integrable Yᵢ and YᵢXᵢ, and 𝔼(Yᵢ | σ(Xᵢ)) = tr(XᵢᵀA₀) almost surely. The page leaves the integrability implicit. Without it a Bochner integral would silently be 0 and ‖·‖{L₂(Π)} would be meaningless. Expectations of matrices are entrywise. Independence of the pairs (p. 1) is not assumed: Theorem 2 does not use it. The estimator is any minimizer of L_n over 𝔸.
  • Cone and restricted constant. ℂ_{A,c₀} ⊆ 𝔸 and the predicate "μ′ is a cone constant". μ(A) can be +∞ (no constant exists), and a real infimum of an empty set is 0. So every statement is made for every cone constant μ′ for (A, 5). This is equivalent to the infimum form and makes the bound vacuous exactly when the paper's is. A formalization with a real sInf would make (2.19) false and is ruled out.

The other conventions are these. "inf over A ∈ 𝔸" is a bound for every A ∈ 𝔸. rank(A) is Matrix.rank. n ≥ 1 and λ > 0 are assumed, as on the page. (2.8) is stated for a convex 𝔸, as in the proof of Theorem 1 where it is derived. (2.21) is stated for an arbitrary matrix in place of Â^λ − A. No printed statement needed correction.

A complete development needs the subdifferential of the nuclear norm ((2.1) of the paper), the first-order condition for constrained convex minimization, the identity (2.9) and the facts (2.10), and trace duality, which is on the platform as matrix_trace_duality_inequality. The subdifferential of the nuclear norm and the projection estimates are reusable well beyond this mission. Contributions of those general lemmas are welcome.

Selected references

  • V. Koltchinskii, K. Lounici, A. B. Tsybakov, Nuclear-norm penalization and optimal rates for noisy low-rank matrix completion, arXiv:1011.6256v4, 2016 (Ann. Statist. 39(5), 2302–2329, 2011). https://arxiv.org/abs/1011.6256
  • P. J. Bickel, Y. Ritov, A. B. Tsybakov, Simultaneous analysis of Lasso and Dantzig selector, Ann. Statist. 37(4), 1705–1732, 2009. https://doi.org/10.1214/08-AOS620
  • V. Koltchinskii, The Dantzig selector and sparsity oracle inequalities, Bernoulli 15(3), 799–828, 2009. https://doi.org/10.3150/09-BEJ187
  • S. Negahban, P. Ravikumar, M. J. Wainwright, B. Yu, A unified framework for high-dimensional analysis of M-estimators with decomposable regularizers, arXiv:1010.2731, 2010 (Statist. Sci. 27(4), 2012). https://arxiv.org/abs/1010.2731
  • G. A. Watson, Characterization of the subdifferential of some matrix norms, Linear Algebra Appl. 170, 33–45, 1992. https://doi.org/10.1016/0024-3795(92)90407-2
14 thms3 active usersReviewed
🏆Completed
Optimization·Captain: mikedeng1

Efficient Algorithms for Online Decision Problems 1: Follow the Perturbed Leader FPL(ε) Has Expected Cost at Most min-cost_T + εRAT + D/εResearch Paper

Motivation

In an online decision problem a decision maker chooses actions one period at a time, and only after each choice learns what that choice cost. The classical instance is prediction with expert advice: each day one of nnn experts is followed, and afterwards every expert's loss is revealed. The goal is a strategy whose total cost is close to that of the best single fixed action in hindsight, whatever the sequence of costs.

Many structured problems have exponentially many actions, such as paths in a graph whose edge delays change daily. Weighted-majority methods keep one weight per action and are then inefficient. A. Kalai and S. Vempala (J. Comput. System Sci. 71 (2005) 291–307) showed that it suffices to be able to solve the offline problem: given total costs, find the best single action. Their algorithm, Follow the Perturbed Leader (FPL), adds a random perturbation to the accumulated costs and calls the offline solver once per period. The idea goes back to J. Hannan (1957); the paper's analysis made it short and broadly applicable, and FPL has since become a standard tool in online learning and online combinatorial optimization.

Timeline.

  • 1957: Hannan introduces perturbed play, with perturbations growing like t\sqrt tt​, and obtains additive bounds for finitely many actions.
  • 2005: Kalai and Vempala analyse FPL for linear costs over an arbitrary decision set with an offline oracle: an additive bound (Theorem 1.1(a), the goal here), a multiplicative bound (Theorem 1.1(b)), and lazy variants.

Setting

Decisions and states are vectors in Rn\mathbb R^nRn. The decision set is a possibly infinite set D⊂Rn\mathcal D \subset \mathbb R^nD⊂Rn and the state set is S⊂Rn\mathcal S \subset \mathbb R^nS⊂Rn. In period t=1,2,…t = 1, 2, \dotst=1,2,… the decision maker picks dt∈Dd_t \in \mathcal Ddt​∈D, then the state st∈Ss_t \in \mathcal Sst​∈S is revealed, and the cost is the dot product dt⋅std_t \cdot s_tdt​⋅st​. The state sequence is fixed in advance (an oblivious adversary).

Write s1:t=s1+⋯+sts_{1:t} = s_1 + \dots + s_ts1:t​=s1​+⋯+st​, with s1:0=0s_{1:0} = 0s1:0​=0. The offline oracle is a map M:Rn→DM : \mathbb R^n \to \mathcal DM:Rn→D with

M(s)∈arg min⁡d∈Dd⋅s.M(s) \in \operatorname*{arg\,min}_{d \in \mathcal D} d \cdot s .M(s)∈d∈Dargmin​d⋅s.

Because costs are linear, the best fixed decision after TTT periods has cost

min-costT=min⁡d∈D∑t=1Td⋅st=M(s1:T)⋅s1:T.\text{min-cost}_T = \min_{d \in \mathcal D} \sum_{t=1}^T d \cdot s_t = M(s_{1:T}) \cdot s_{1:T}.min-costT​=d∈Dmin​t=1∑T​d⋅st​=M(s1:T​)⋅s1:T​.

Three parameters measure an instance, with ∣x∣1=∑i∣xi∣|x|_1 = \sum_i |x_i|∣x∣1​=∑i​∣xi​∣:

  • the diameter D≥∣d−d′∣1D \ge |d - d'|_1D≥∣d−d′∣1​ for all d,d′∈Dd, d' \in \mathcal Dd,d′∈D;
  • the cost bound R≥∣d⋅s∣R \ge |d \cdot s|R≥∣d⋅s∣ for all d∈Dd \in \mathcal Dd∈D, s∈Ss \in \mathcal Ss∈S;
  • the state size A≥∣s∣1A \ge |s|_1A≥∣s∣1​ for all s∈Ss \in \mathcal Ss∈S.

FPL(ε\varepsilonε), for a parameter ε>0\varepsilon > 0ε>0: in each period ttt, draw ptp_tpt​ uniformly at random from the cube [0,1/ε]n[0, 1/\varepsilon]^n[0,1/ε]n and play M(s1:t−1+pt)M(s_{1:t-1} + p_t)M(s1:t−1​+pt​). Its expected cost is E[cost of FPL(ε)]=∑t=1TE [M(s1:t−1+pt)⋅st]\mathbb E[\text{cost of FPL}(\varepsilon)] = \sum_{t=1}^T \mathbb E\,[M(s_{1:t-1} + p_t) \cdot s_t]E[cost of FPL(ε)]=∑t=1T​E[M(s1:t−1​+pt​)⋅st​].

Hannan(δ\deltaδ): the same rule with ptp_tpt​ uniform on [0,t/δ]n[0, \sqrt t/\delta]^n[0,t​/δ]n.

Formalization targets

Goal: Theorem 1.1(a)

For every state sequence s1,…,sT∈Ss_1, \dots, s_T \in \mathcal Ss1​,…,sT​∈S and every 0<ε≤10 < \varepsilon \le 10<ε≤1,

E[cost of FPL(ε)]≤min-costT+εRAT+Dε.\mathbb E[\text{cost of FPL}(\varepsilon)] \le \text{min-cost}_T + \varepsilon R A T + \frac{D}{\varepsilon}.E[cost of FPL(ε)]≤min-costT​+εRAT+εD​.

The constants are the paper's. With ε=D/(RAT)\varepsilon = \sqrt{D/(RAT)}ε=D/(RAT)​ the expected regret is at most 2DRAT2\sqrt{DRAT}2DRAT​.

Milestones (the paper's proof path)

  1. Display (4), "be the leader": ∑t=1TM(s1:t)⋅st≤M(s1:T)⋅s1:T\sum_{t=1}^T M(s_{1:t}) \cdot s_t \le M(s_{1:T}) \cdot s_{1:T}∑t=1T​M(s1:t​)⋅st​≤M(s1:T​)⋅s1:T​.
  2. Lemma 3.1: for any T>0T > 0T>0 and vectors p0=0,p1,…,pTp_0 = 0, p_1, \dots, p_Tp0​=0,p1​,…,pT​,
∑t=1TM(s1:t+pt)⋅st≤M(s1:T)⋅s1:T+D∑t=1T∣pt−pt−1∣∞.\sum_{t=1}^T M(s_{1:t} + p_t) \cdot s_t \le M(s_{1:T}) \cdot s_{1:T} + D \sum_{t=1}^T |p_t - p_{t-1}|_\infty .t=1∑T​M(s1:t​+pt​)⋅st​≤M(s1:T​)⋅s1:T​+Dt=1∑T​∣pt​−pt−1​∣∞​.
  1. Display (5): for p1∈[0,1/ε]np_1 \in [0, 1/\varepsilon]^np1​∈[0,1/ε]n, ∑tM(s1:t+p1)⋅st≤M(s1:T)⋅s1:T+D∣p1∣∞≤M(s1:T)⋅s1:T+D/ε\sum_t M(s_{1:t} + p_1) \cdot s_t \le M(s_{1:T}) \cdot s_{1:T} + D|p_1|_\infty \le M(s_{1:T}) \cdot s_{1:T} + D/\varepsilon∑t​M(s1:t​+p1​)⋅st​≤M(s1:T​)⋅s1:T​+D∣p1​∣∞​≤M(s1:T​)⋅s1:T​+D/ε.
  2. Lemma 3.2: the cubes [0,1/ε]n[0, 1/\varepsilon]^n[0,1/ε]n and v+[0,1/ε]nv + [0, 1/\varepsilon]^nv+[0,1/ε]n overlap in at least a (1−ε∣v∣1)(1 - \varepsilon |v|_1)(1−ε∣v∣1​) fraction.

Companion: Theorem 3.3

For any state sequence in S\mathcal SS, any δ>0\delta > 0δ>0 and any T>0T > 0T>0,

E[cost of Hannan(δ)]≤M(s1:T)⋅s1:T+2δRAT+DTδ.\mathbb E[\text{cost of Hannan}(\delta)] \le M(s_{1:T}) \cdot s_{1:T} + 2\delta R A \sqrt T + \frac{D\sqrt T}{\delta}.E[cost of Hannan(δ)]≤M(s1:T​)⋅s1:T​+2δRAT​+δDT​​.

This bound needs no knowledge of TTT. It is included as a separate theorem, not a milestone of the goal.

Significance

The result. Theorem 1.1(a) reduces online linear optimization over any decision set to its offline counterpart, at the price of one oracle call per period and regret O(DRAT)O(\sqrt{DRAT})O(DRAT​). Applied to online shortest paths, spanning trees and other combinatorial problems it gives efficient algorithms where weighted majority would maintain exponentially many weights. Later uses of FPL (approximate oracles, robust optimization via online learning) start from this bound.

Formalizing it. The theorem has been proved in print for twenty years; it has no machine-checked proof that we know of. The platform already holds a formalization of Ben-Tal, Hazan, Koren and Mannor's approximate-oracle variant (OracleRO.ApproxFPL), which takes a maximising oracle and an oscillation bound RRR and therefore yields a weaker constant (2εRAT2\varepsilon RAT2εRAT) in this setting. This mission states the exact-oracle bound with the paper's constant εRAT\varepsilon RATεRAT, where RRR bounds ∣d⋅s∣|d \cdot s|∣d⋅s∣ itself. A correct proof must handle that constant carefully; see the next section.

Difficulty

Display (4), Lemma 3.1 and display (5) are finite-sum arguments from the defining property of MMM. Lemma 3.2 is a statement about Lebesgue measure of a cube and its translate.

The central difficulty is the stability step: bounding, period by period, how much worse it is to play M(s1:t−1+pt)M(s_{1:t-1} + p_t)M(s1:t−1​+pt​) than M(s1:t+pt)M(s_{1:t} + p_t)M(s1:t​+pt​). The obvious argument says that the two perturbed points have laws that agree on a (1−ε∣st∣1)(1 - \varepsilon|s_t|_1)(1−ε∣st​∣1​) fraction, and on the rest "one can only be RRR larger". Under the printed definition of RRR the difference of two costs d⋅st−d′⋅std \cdot s_t - d' \cdot s_td⋅st​−d′⋅st​ can be as large as 2R2R2R, so this per-period bound fails for costs of mixed sign: with n=1n = 1n=1, D={−1,1}\mathcal D = \{-1, 1\}D={−1,1} and suitable s1:t−1s_{1:t-1}s1:t−1​, the per-period difference is 2εst22\varepsilon s_t^22εst2​, while εRA=εst2\varepsilon R A = \varepsilon s_t^2εRA=εst2​. The theorem itself, with εRAT\varepsilon RATεRAT, remains true, but a proof cannot proceed by the per-period comparison as written. Proving the goal with the stated constant, rather than 2εRAT2\varepsilon RAT2εRAT, is the substantive part of the mission.

Formalization scope

  • Vectors are Fin n → ℝ; d⋅sd \cdot sd⋅s is dotProduct (⬝ᵥ); ∣x∣1|x|_1∣x∣1​ is written out as ∑i∣xi∣\sum_i |x_i|∑i​∣xi​∣; ∣x∣∞|x|_\infty∣x∣∞​ is the Lean norm ‖x‖, which on Fin n → ℝ is the sup norm. The sets are Dset and S; the diameter is Ddiam.
  • States are a sequence s : ℕ → Fin n → ℝ indexed from 111 (s 0 is unused); the hypothesis st∈Ss_t \in \mathcal Sst​∈S is imposed for 1≤t≤T1 \le t \le T1≤t≤T.
  • The oracle is the predicate IsArgminOracle Dset M: M(x)∈DM(x) \in \mathcal DM(x)∈D and M(x)⋅x≤d⋅xM(x) \cdot x \le d \cdot xM(x)⋅x≤d⋅x for all d∈Dd \in \mathcal Dd∈D. Every theorem quantifies over all such MMM; the oracle is never a chosen Classical.epsilon minimiser.
  • Parameters DDD, RRR, AAA are hypotheses over the sets exactly as printed on p. 294 (not the weaker "reasonable decisions" variant of the paper's footnote 4). Each statement takes only the parameters it uses.
  • Shared definitions come from the published OracleRO.ApproxFPL.FPL: prefixSum s t =s1:t= s_{1:t}=s1:t​; perturbLaw n ε, the uniform law on [0,1/ε]n[0, 1/\varepsilon]^n[0,1/ε]n; and fplExpectedReward M s ε T =∑t=1T∫st⋅M(s1:t−1+p) dU(p)= \sum_{t=1}^T \int s_t \cdot M(s_{1:t-1} + p)\, dU(p)=∑t=1T​∫st​⋅M(s1:t−1​+p)dU(p), which with an argmin oracle is the expected cost of FPL(ε\varepsilonε) (its name reflects a maximisation source). Using one integral per period is the paper's own observation that fresh and shared perturbations give the same expectation.
  • Added hypotheses, each disclosed in the item: ε>0\varepsilon > 0ε>0 and δ>0\delta > 0δ>0 (the page divides by them); measurability of MMM (the expectations require it). With RRR bounding ∣d⋅s∣|d \cdot s|∣d⋅s∣ and M(x)∈DM(x) \in \mathcal DM(x)∈D, every integrand is bounded and measurable, so every expectation is a genuine integral and no bound holds vacuously. The page's ε≤1\varepsilon \le 1ε≤1 is kept in the goal although the bound does not use it. TTT is unrestricted where the page allows it.
  • Not a trivialization. The expected cost uses M(s1:t−1+p)M(s_{1:t-1} + p)M(s1:t−1​+p), the decision available before sts_tst​ is seen; replacing it by the "be the leader" decision M(s1:t+p)M(s_{1:t} + p)M(s1:t​+p) would make the goal follow from display (5) alone. The uniform law is normalised (a probability measure for ε>0\varepsilon > 0ε>0).
  • Corrected reading. Display (5) on the page prints M(st+p1)M(s_t + p_1)M(st​+p1​); the statement uses M(s1:t+p1)M(s_{1:t} + p_1)M(s1:t​+p1​), which is what Lemma 3.1 gives and what the text says it applies.
  • Not included. The per-period stability inequality of the printed proof, which is false for costs of mixed sign.

Contributions welcome: proofs of the milestones, the goal and Theorem 3.3, and reusable lemmas on uniform laws over translated cubes.

Selected references

  • A. Kalai, S. Vempala, Efficient algorithms for online decision problems, J. Comput. System Sci. 71(3) (2005) 291–307. https://doi.org/10.1016/j.jcss.2004.10.016
  • J. Hannan, Approximation to Bayes risk in repeated plays, in: Contributions to the Theory of Games, vol. 3, Princeton University Press, 1957, pp. 97–139 (reference [14] of Kalai–Vempala, https://doi.org/10.1016/j.jcss.2004.10.016).
  • A. Ben-Tal, E. Hazan, T. Koren, S. Mannor, Oracle-based robust optimization via online learning, Oper. Res. 63(3) (2015) 628–638. https://doi.org/10.1287/opre.2015.1374
7 thms3 active usersReviewed
🏆Completed
Complexity TheoryProbabilityTheoretical Computer Science·Captain: mikedeng1

What Can We Learn Privately? V: Masked Parity Is Learnable by Adaptive but Not by Nonadaptive Statistical Queries Under the Uniform DistributionResearch Paper

Motivation

In the local model of differential privacy, each individual randomizes their own data before handing it to an untrusted learner. Local protocols are the deployed form of private data collection, and in practice every round of interaction with the population is expensive: the learner must broadcast new instructions and wait for new reports. Kasiviswanathan, Lee, Nissim, Raskhodnikova and Smith, What Can We Learn Privately? (arXiv:0803.0924v3, published in SIAM J. Comput. 40(3) (2011) 793–826, DOI 10.1137/090756090; theorem numbers below are those of arXiv v3) show that local learning is equivalent to learning with statistical queries (SQ) in the sense of Kearns (1998), and that the equivalence maps noninteractive local learners to nonadaptive SQ learners. The question whether interaction is ever necessary in the local model therefore becomes the question whether adaptivity is ever necessary for SQ learning.

This mission formalizes the paper's answer (§5.3, Theorem 5.16): a concept class, MASKED-PARITY, that an adaptive SQ learner learns exactly with d+1d+1d+1 queries in two rounds, while every nonadaptive SQ learner with fewer than exponentially many queries fails against a specific valid oracle, under the uniform distribution on examples.

Setting

Fix ddd, a power of two. The domain is D={0,1}d×{0,1}log⁡d×{0,1}D=\{0,1\}^d\times\{0,1\}^{\log d}\times\{0,1\}D={0,1}d×{0,1}logd×{0,1}, with points u=(x,i,b)u=(x,i,b)u=(x,i,b), and examples are drawn from the uniform distribution D\mathcal DD on DDD. For r∈{0,1}dr\in\{0,1\}^dr∈{0,1}d and a∈{0,1}a\in\{0,1\}a∈{0,1}, the concept cr,a:D→{+1,−1}c_{r,a}:D\to\{+1,-1\}cr,a​:D→{+1,−1} is

cr,a(x,i,b)={(−1)r⊙x+ab=0,(−1)rib=1,c_{r,a}(x,i,b)=\begin{cases}(-1)^{r\odot x+a}&b=0,\\(-1)^{r_i}&b=1,\end{cases}cr,a​(x,i,b)={(−1)r⊙x+a(−1)ri​​b=0,b=1,​

where r⊙xr\odot xr⊙x is the inner product modulo 2. MASKED-PARITY is the class {cr,a}\{c_{r,a}\}{cr,a​}: on the half b=0b=0b=0 it is the parity rrr or its negation, according to the mask aaa; on the half b=1b=1b=1 it reveals the bit rir_iri​.

A statistical query is a function g(u,y)g(u,y)g(u,y) of an example and a label together with a tolerance τ\tauτ. The SQ oracle for the target ccc answers with any real vvv such that ∣v−Eu∼D[g(u,c(u))]∣≤τ|v-\mathbb E_{u\sim\mathcal D}[g(u,c(u))]|\le\tau∣v−Eu∼D​[g(u,c(u))]∣≤τ; the learner must succeed for every such answer. An SQ learner is nonadaptive if it fixes all its queries before receiving any answer, and adaptive otherwise. Write ⟨f,h⟩=Eu∼D[f(u)h(u)]\langle f,h\rangle=\mathbb E_{u\sim\mathcal D}[f(u)h(u)]⟨f,h⟩=Eu∼D​[f(u)h(u)] and err(f,h)=Pr⁡u∼D[f(u)≠h(u)]\mathrm{err}(f,h)=\Pr_{u\sim\mathcal D}[f(u)\ne h(u)]err(f,h)=Pru∼D​[f(u)=h(u)].

The lower bound uses the decomposition of a query into fg(u)=g(u,1)−g(u,−1)2f_g(u)=\frac{g(u,1)-g(u,-1)}2fg​(u)=2g(u,1)−g(u,−1)​ and Cg=12E[g(u,1)+g(u,−1)]C_g=\frac12\mathbb E[g(u,1)+g(u,-1)]Cg​=21​E[g(u,1)+g(u,−1)], the restrictions cr,asc^s_{r,a}cr,as​, fgsf^s_gfgs​ of cr,ac_{r,a}cr,a​ and fgf_gfg​ to the half b=sb=sb=s (equation (6)), and the oracle

Ocr,a,D(g,τ)={Cg+⟨fg1,cr,a1⟩if ∣⟨fg0,cr,a0⟩∣<τ,E[g(u,cr,a(u))]otherwise.\mathcal O_{c_{r,a},\mathcal D}(g,\tau)=\begin{cases}C_g+\langle f^1_g,c^1_{r,a}\rangle&\text{if }|\langle f^0_g,c^0_{r,a}\rangle|<\tau,\\ \mathbb E[g(u,c_{r,a}(u))]&\text{otherwise.}\end{cases}Ocr,a​,D​(g,τ)={Cg​+⟨fg1​,cr,a1​⟩E[g(u,cr,a​(u))]​if ∣⟨fg0​,cr,a0​⟩∣<τ,otherwise.​

Formalization targets

Goal: Theorem 5.16 (p. 27)

  1. There is a two-round SQ learner (ddd queries, then one), with {0,1}\{0,1\}{0,1}-valued queries of tolerance at least 14d+1\frac1{4d+1}4d+11​, that outputs cr,ac_{r,a}cr,a​ for every target and every valid answers.
  2. O\mathcal OO is a valid SQ oracle, and every nonadaptive learner making ttt queries with values ±1\pm1±1 and tolerance at least 2−d/32^{-d/3}2−d/3, run against O\mathcal OO on a uniformly random target, satisfies
Pr⁡crˉ,aˉ[err(crˉ,aˉ,h)≥14]≥12−t2d/3+2.\Pr_{c_{\bar r,\bar a}}\Bigl[\mathrm{err}(c_{\bar r,\bar a},h)\ge\tfrac14\Bigr]\ge\frac12-\frac t{2^{d/3+2}}.crˉ,aˉ​Pr​[err(crˉ,aˉ​,h)≥41​]≥21​−2d/3+2t​.

Milestones

  • Proposition 5.18 (p. 28): the learner AMP\mathcal A_{\mathrm{MP}}AMP​ recovers r^=r\hat r=rr^=r and a^=a\hat a=aa^=a from every valid answers.
  • Equation (7) (p. 29): E[g(u,cr,a(u))]=Cg+⟨fg0,cr,a0⟩+⟨fg1,cr,a1⟩\mathbb E[g(u,c_{r,a}(u))]=C_g+\langle f^0_g,c^0_{r,a}\rangle+\langle f^1_g,c^1_{r,a}\rangleE[g(u,cr,a​(u))]=Cg​+⟨fg0​,cr,a0​⟩+⟨fg1​,cr,a1​⟩.
  • The oracle (p. 30): O\mathcal OO is valid and answers identically on cr,0c_{r,0}cr,0​ and cr,1c_{r,1}cr,1​ when ∣⟨fg0,cr,00⟩∣<τ|\langle f^0_g,c^0_{r,0}\rangle|<\tau∣⟨fg0​,cr,00​⟩∣<τ.
  • Orthogonality (p. 30): ⟨cr,a0,cr′,a0⟩\langle c^0_{r,a},c^0_{r',a}\rangle⟨cr,a0​,cr′,a0​⟩ is 1/21/21/2 if r=r′r=r'r=r′ and 000 otherwise.
  • Bessel bound (p. 30): ∑(r,a)2⟨fg0,cr,a0⟩2≤1\sum_{(r,a)}2\langle f^0_g,c^0_{r,a}\rangle^2\le1∑(r,a)​2⟨fg0​,cr,a0​⟩2≤1 for ±1\pm1±1-valued ggg.
  • Counting (p. 30): at most 22d/3−12^{2d/3-1}22d/3−1 pairs (r,a)(r,a)(r,a) have ∣⟨fg0,cr,a0⟩∣≥2−d/3|\langle f^0_g,c^0_{r,a}\rangle|\ge2^{-d/3}∣⟨fg0​,cr,a0​⟩∣≥2−d/3.
  • Pr⁡[Good]≥1−t/2d/3+2\Pr[\mathit{Good}]\ge1-t/2^{d/3+2}Pr[Good]≥1−t/2d/3+2 (p. 30).

Significance

The result. Combined with the paper's equivalence between local and SQ learning (Theorem 5.14), Theorem 5.16 shows that interaction is sometimes necessary in local differential privacy: there is a class learnable by an interactive local protocol with polynomially many examples, but not by any noninteractive one with fewer than exponentially many (Corollary 5.17). The separation concerns strong learning under a fixed distribution; the paper notes that adaptive and nonadaptive SQ learning coincide for weak learning, and that a distribution-free separation was left open.

Formalizing it. The result is proved in the paper and has, to our knowledge, no machine-checked proof. The mission produces a self-contained Lean model of statistical query learning with labelled queries and adversarial oracles, a finite Fourier calculus for parities on {0,1}d\{0,1\}^d{0,1}d (orthogonality and a Bessel inequality for ±1\pm1±1-valued functions), and the counting and union-bound argument of SQ lower bounds. The proof of part (2) contains several printed slips (listed below); a formal proof settles the corrected argument.

Difficulty

The upper bound is a direct computation. The difficulty is in part (2): the learner's hypothesis may be any function, not a concept of the class, and the lower bound must hold for every nonadaptive strategy at once. A naive argument that each query "reveals little about aaa" fails, because the true answer to a query does depend on aaa; the argument needs an oracle that is valid (within tolerance of the truth) and yet independent of aaa on most targets, and a quantitative bound on how many targets any single ±1\pm1±1-valued query can correlate with on the half b=0b=0b=0. That bound is an L2L^2L2 statement over all 2d+12^{d+1}2d+1 concepts, not a pointwise one.

Formalization scope

  • Domain and distribution. The index i∈{0,1}log⁡di\in\{0,1\}^{\log d}i∈{0,1}logd is encoded as Fin d, and every theorem assumes d=2md=2^md=2m (implicit in the paper). Vectors are Fin d → ZMod 2, with 0-based bits. Expectations are averages over the finite domain; probabilities over the target are counts of pairs (r,a)(r,a)(r,a) divided by 2d+12^{d+1}2d+1.
  • Values. Concepts, hypotheses and queries are real-valued; labels ±1\pm1±1 are reals. Queries in part (1) take values in {0,1}\{0,1\}{0,1}, as AMP\mathcal A_{\mathrm{MP}}AMP​'s do; queries in part (2) take values ±1\pm1±1 on labels ±1\pm1±1, as in the paper's proof. The paper allows non-Boolean queries (p. 19); a version of part (2) for real queries with values in [−1,1][-1,1][−1,1] is a true strengthening that the same argument supports, and is not stated.
  • Oracles. An SQ oracle is adversarial within the tolerance: the upper bound holds for every valid answer. Part (2) exhibits the paper's oracle O\mathcal OO and asserts its validity for every τ>0\tau>0τ>0. Without that conjunct an "oracle" that ignores the tolerance would make part (2) trivial; the statement rules this out.
  • Learners. Learners are deterministic structures (a nonadaptive learner is a list of queries and tolerances plus an output map; a two-round learner's second-round queries are functions of the first-round answers). A randomized learner is a mixture over its coins and the bounds hold coin by coin. "Efficient" is not modelled. The informal "with a polynomial number of queries" is formalized through its quantitative "Specifically" sentence.
  • Real powers. 2d/32^{d/3}2d/3, 22d/3−12^{2d/3-1}22d/3−1 and 2d/3+22^{d/3+2}2d/3+2 are real powers; no natural-number division is used.
  • Corrections of the proof (not of the theorem). The event Good\mathit{Good}Good on p. 30 is printed with crˉ,aˉc_{\bar r,\bar a}crˉ,aˉ​ and ≤\le≤; the milestone uses crˉ,aˉ0c^0_{\bar r,\bar a}crˉ,aˉ0​ and the strict <<<, which is what the counting display and the oracle's test require. The quotient 22d/3−1/2d+12^{2d/3-1}/2^{d+1}22d/3−1/2d+1 is printed as 2−d/32^{-d/3}2−d/3 and equals 2−d/3−22^{-d/3-2}2−d/3−2; "cr,00=−cr,00c^0_{r,0}=-c^0_{r,0}cr,00​=−cr,00​" should read cr,10=−cr,00c^0_{r,1}=-c^0_{r,0}cr,10​=−cr,00​. The final display of the proof gives 12(1−t/2d/3+2)\frac12(1-t/2^{d/3+2})21​(1−t/2d/3+2), which is at least the theorem's bound.

Contributions welcome: the Fourier facts for {0,1}d\{0,1\}^d{0,1}d (reusable for any parity-based SQ lower bound), the general decomposition (7), and the probability bound of part (2) from the milestones.

Selected references

  • S. P. Kasiviswanathan, H. K. Lee, K. Nissim, S. Raskhodnikova, A. Smith, What Can We Learn Privately?, SIAM J. Comput. 40(3) (2011) 793–826. arXiv:0803.0924v3, DOI 10.1137/090756090.
  • M. Kearns, Efficient noise-tolerant learning from statistical queries, J. ACM 45(6) (1998) 983–1006. DOI 10.1145/293347.293351.
  • A. Blum, M. Furst, J. Jackson, M. Kearns, Y. Mansour, S. Rudich, Weakly learning DNF and characterizing statistical query learning using Fourier analysis, STOC 1994. DOI 10.1145/195058.195147.
  • N. Bshouty, V. Feldman, On using extended statistical queries to avoid membership queries, J. Mach. Learn. Res. 2 (2002) 359–395. JMLR.
11 thms3 active usersReviewed
🏆Completed
Dynamic ProgrammingReinforcement Learning·Captain: mikedeng1

On the Sample Complexity of Reinforcement Learning III: Non-Stationary Approximate Policy Iteration Is Within 2T Times the Regression Error Averaged over Any Competitor's State-Time DistributionTextbook

Motivation

Approximate dynamic programming replaces the exact value functions of a Markov decision process by approximations, typically produced by a regression algorithm. The classical guarantees for the resulting policies are stated in the max norm: if every state-action value is estimated to within ε\varepsilonε uniformly over the state space, the greedy policy loses at most a multiple of ε\varepsilonε (Williams and Baird 1993; Bertsekas and Tsitsiklis 1996). Regression algorithms, however, control an average error under the distribution on which they are trained, not a worst-case error, so these guarantees rarely apply to the approximations actually computed.

Chapter 5 of S. M. Kakade's PhD thesis (On the Sample Complexity of Reinforcement Learning, UCL 2003, pp. 57–66) identifies the distribution under which the error of an approximate policy iteration algorithm should be measured. For the finite-horizon, non-stationary approximate policy iteration algorithm (NAPI), the loss relative to any competitor policy is bounded by twice the horizon times the regression error averaged under the future state-time distribution of that competitor. Taking the competitor optimal, the relevant "test" distribution is the one visited by an optimal policy, generally not the distribution on which the regressor was trained; the thesis calls this the "mismeasure" of reinforcement learning. The key tool, the performance difference lemma, was proved for the discounted case by Kakade and Langford (ICML 2002) and is used throughout the conservative policy iteration and policy search literature.

Setting

A TTT-epoch MDP has a finite state set SSS, a finite nonempty action set AAA, decision epochs t∈{0,…,T−1}t\in\{0,\dots,T-1\}t∈{0,…,T−1}, a transition kernel P(s′∣s,a)P(s'\mid s,a)P(s′∣s,a) and a deterministic reward r(s,a)∈[0,1]r(s,a)\in[0,1]r(s,a)∈[0,1]. A policy π\piπ is a sequence of decision rules π(⋅∣s,t)\pi(\cdot\mid s,t)π(⋅∣s,t), distributions on AAA; it may be stochastic and non-stationary. A deterministic policy hhh chooses the action h(s,t)h(s,t)h(s,t).

Values are normalized. The ttt-value is Vπ,t(s)=1TE[∑τ=tT−1r(sτ,aτ)∣st=s]V_{\pi,t}(s)=\frac1T\mathbb E\big[\sum_{\tau=t}^{T-1}r(s_\tau,a_\tau)\mid s_t=s\big]Vπ,t​(s)=T1​E[∑τ=tT−1​r(sτ​,aτ​)∣st​=s], so Vπ,t=0V_{\pi,t}=0Vπ,t​=0 for t≥Tt\ge Tt≥T and

Vπ,t(s)=∑aπ(a∣s,t)(1Tr(s,a)+∑s′P(s′∣s,a)Vπ,t+1(s′)),Vπ=Vπ,0.V_{\pi,t}(s)=\sum_a\pi(a\mid s,t)\Big(\tfrac1T r(s,a)+\sum_{s'}P(s'\mid s,a)V_{\pi,t+1}(s')\Big),\qquad V_\pi=V_{\pi,0}.Vπ,t​(s)=a∑​π(a∣s,t)(T1​r(s,a)+s′∑​P(s′∣s,a)Vπ,t+1​(s′)),Vπ​=Vπ,0​.

The state-action value is Qπ,t(s,a)=1Tr(s,a)+Es′∼P(⋅∣s,a)Vπ,t+1(s′)Q_{\pi,t}(s,a)=\frac1T r(s,a)+\mathbb E_{s'\sim P(\cdot\mid s,a)}V_{\pi,t+1}(s')Qπ,t​(s,a)=T1​r(s,a)+Es′∼P(⋅∣s,a)​Vπ,t+1​(s′), the advantage is Aπ,t=Qπ,t−Vπ,tA_{\pi,t}=Q_{\pi,t}-V_{\pi,t}Aπ,t​=Qπ,t​−Vπ,t​, and the optimal value is V∗(s)=sup⁡πVπ(s)V^*(s)=\sup_\pi V_\pi(s)V∗(s)=supπ​Vπ​(s). The future state-time distribution of π\piπ from s0s_0s0​ is

dπ,s0(s,t)=1TPr⁡(st=s∣π,s0)on S×{0,…,T−1}.d_{\pi,s_0}(s,t)=\tfrac1T\Pr(s_t=s\mid\pi,s_0)\quad\text{on } S\times\{0,\dots,T-1\}.dπ,s0​​(s,t)=T1​Pr(st​=s∣π,s0​)on S×{0,…,T−1}.

NAPI (Algorithm 6) starts from an arbitrary deterministic policy and updates its decision rules backwards, t=T−1,…,0t=T-1,\dots,0t=T−1,…,0: at update ttt a PolicyChooser receives the current policy π\piπ and returns a decision rule hth_tht​, which replaces the rule at time ttt. The output is (h0,…,hT−1)(h_0,\dots,h_{T-1})(h0​,…,hT−1​). With RegressionPolicyChooser (Algorithm 7), a regressor returns an approximation Q~π,t\tilde Q_{\pi,t}Q~​π,t​ of Qπ,tQ_{\pi,t}Qπ,t​ and hth_tht​ is greedy for it. The per state error and per state regression error at update ttt are

εt(s)=max⁡aQπ,t(s,a)−Qπ,t(s,ht(s)),ε~t(s)=max⁡a∣Qπ,t(s,a)−Q~π,t(s,a)∣,\varepsilon_t(s)=\max_aQ_{\pi,t}(s,a)-Q_{\pi,t}(s,h_t(s)),\qquad \tilde\varepsilon_t(s)=\max_a|Q_{\pi,t}(s,a)-\tilde Q_{\pi,t}(s,a)|,εt​(s)=amax​Qπ,t​(s,a)−Qπ,t​(s,ht​(s)),ε~t​(s)=amax​∣Qπ,t​(s,a)−Q~​π,t​(s,a)∣,

both measured against the input policy π\piπ of update ttt.

The discounted companions use the normalized discounted value Vπ,γ=(1−γ)E[∑tγtr(st,at)]V_{\pi,\gamma}=(1-\gamma)\mathbb E[\sum_t\gamma^tr(s_t,a_t)]Vπ,γ​=(1−γ)E[∑t​γtr(st​,at​)], its advantage Aπ,γA_{\pi,\gamma}Aπ,γ​, and the Bellman error BJ=sup⁡s,a∣QJ(s,a)−J(s)∣B_J=\sup_{s,a}|Q_J(s,a)-J(s)|BJ​=sups,a​∣QJ​(s,a)−J(s)∣ of a state vector JJJ, where QJ(s,a)=(1−γ)r(s,a)+γEs′J(s′)Q_J(s,a)=(1-\gamma)r(s,a)+\gamma\mathbb E_{s'}J(s')QJ​(s,a)=(1−γ)r(s,a)+γEs′​J(s′).

Formalization targets

Goal: Theorem 5.3.2 (p. 64)

For the policy π\piπ returned by NAPI with RegressionPolicyChooser, every policy π′\pi'π′ and every state s0s_0s0​,

Vπ(s0) ≥ Vπ′(s0)−2T E(s,t)∼dπ′,s0[ε~t(s)].V_\pi(s_0)\ \ge\ V_{\pi'}(s_0)-2T\,\mathbb E_{(s,t)\sim d_{\pi',s_0}}\big[\tilde\varepsilon_t(s)\big].Vπ​(s0​) ≥ Vπ′​(s0​)−2TE(s,t)∼dπ′,s0​​​[ε~t​(s)].

The regression outputs are arbitrary; the statement holds for every regressor and every tie-breaking rule.

Milestones

  • Lemma 5.2.1, undiscounted (p. 59): Vπ′(s0)−Vπ(s0)=T E(s,t)∼dπ′,s0Ea∼π′(⋅∣s,t)[Aπ,t(s,a)]V_{\pi'}(s_0)-V_\pi(s_0)=T\,\mathbb E_{(s,t)\sim d_{\pi',s_0}}\mathbb E_{a\sim\pi'(\cdot\mid s,t)}[A_{\pi,t}(s,a)]Vπ′​(s0​)−Vπ​(s0​)=TE(s,t)∼dπ′,s0​​​Ea∼π′(⋅∣s,t)​[Aπ,t​(s,a)].
  • Lemma 5.3.1 (p. 63): for NAPI's output π~\tilde\piπ~ and the input policy π\piπ of update ttt, Qπ~,t=Qπ,tQ_{\tilde\pi,t}=Q_{\pi,t}Qπ~,t​=Qπ,t​ and Aπ~,t(s,a)≤εt(s)A_{\tilde\pi,t}(s,a)\le\varepsilon_t(s)Aπ~,t​(s,a)≤εt​(s).
  • Display in the proof of Theorem 5.3.2 (p. 64): εt(s)≤2ε~t(s)\varepsilon_t(s)\le2\tilde\varepsilon_t(s)εt​(s)≤2ε~t​(s) when hth_tht​ is greedy for Q~π,t\tilde Q_{\pi,t}Q~​π,t​.
  • Corollary 5.2.2 (p. 61): Vπ(s0)≥V∗(s0)−T∥Aπ,t∥∞V_\pi(s_0)\ge V^*(s_0)-T\|A_{\pi,t}\|_\inftyVπ​(s0​)≥V∗(s0​)−T∥Aπ,t​∥∞​ and Vπ,γ(s0)≥Vγ∗(s0)−11−γ∥Aπ,γ∥∞V_{\pi,\gamma}(s_0)\ge V^*_\gamma(s_0)-\frac{1}{1-\gamma}\|A_{\pi,\gamma}\|_\inftyVπ,γ​(s0​)≥Vγ∗​(s0​)−1−γ1​∥Aπ,γ​∥∞​.
  • Theorem 5.1.3 (Williams–Baird, p. 59): a policy greedy for QJQ_JQJ​ satisfies Vπ,γ(s)≥Vγ∗(s)−2BJ1−γV_{\pi,\gamma}(s)\ge V^*_\gamma(s)-\frac{2B_J}{1-\gamma}Vπ,γ​(s)≥Vγ∗​(s)−1−γ2BJ​​.

The discounted half of Lemma 5.2.1 is already on the platform as ApproxOptRL.CPI.performance_difference and is referenced, not restated.

Significance

The goal replaces a max-norm hypothesis by an average one, under an explicit distribution. Its consequences: the approximation error only matters on the state-time pairs an optimal (or any good) policy visits; a regressor trained under a distribution μ\muμ over state-times performs well when μ\muμ resembles the state-time distribution of a good policy; and only one factor of the horizon TTT appears, against two factors of 1/(1−γ)1/(1-\gamma)1/(1−γ) in the max-norm bounds for discounted approximate value and policy iteration (Chapter 3 of the thesis). The same chain, Lemma 5.2.1 and Lemma 5.3.1, underlies the μ-policy search analysis of Chapter 6 and, in the discounted case, conservative policy iteration.

All statements are proved in the thesis; none of the finite-horizon ones is formalized on the platform. A related performance difference identity, FoundationsRL.RLBasics.performance_difference, is proved on the platform for episodic MDPs with layer-dependent kernels and unnormalized values, with roll-in by one policy; it is the same mathematics up to the 1/T1/T1/T normalization but a different object, and is not reused. The mission produces a reusable normalized TTT-epoch layer (values, advantages, state-time distributions) and machine-checked proofs of the chapter's results.

Difficulty

The obvious approach to Theorem 5.3.2 compares VπV_\piVπ​ with Vπ′V_{\pi'}Vπ′​ through max-norm contraction arguments, as in the discounted analysis of Chapter 3; that route only yields a bound in terms of max⁡s,tε~t(s)\max_{s,t}\tilde\varepsilon_t(s)maxs,t​ε~t​(s) and loses the averaging under dπ′,s0d_{\pi',s_0}dπ′,s0​​. The averaged bound needs an exact identity between value differences and advantages along the competitor's trajectory distribution, which for non-stationary stochastic competitors requires a careful telescoping over epochs of the state distribution recursion. The second difficulty is bookkeeping in the algorithm: the regression error at update ttt is measured against the input policy of that update, whose decision rules at later times have already been replaced, while the bound concerns the returned policy; relating the two requires showing that later updates do not change Q⋅,tQ_{\cdot,t}Q⋅,t​.

Formalization scope

  • Model. S, A are Fintypes with decidable equality, A nonempty; P s a s' is P(s′∣s,a)P(s'\mid s,a)P(s′∣s,a) with IsTransitionKernel P; rewards satisfy 0 ≤ r s a ≤ 1 in every statement (the thesis's standing assumption, p. 22). The thesis also allows infinite state spaces; here S is finite.
  • Epochs and normalization. Epochs are 0-based, t∈{0,…,T−1}t\in\{0,\dots,T-1\}t∈{0,…,T−1}, with 0 < T. All values carry the factor 1/T1/T1/T (discounted: 1−γ1-\gamma1−γ), and dπ,s0d_{\pi,s_0}dπ,s0​​ carries 1/T1/T1/T; the constants TTT and 2T2T2T are right only in this normalization.
  • Policies. A policy is ℕ → S → A → ℝ, valid when every rule at a time t<Tt<Tt<T is a distribution. Deterministic policies ℕ → S → A enter through their indicator policies. V∗V^*V∗ is the supremum over the subtype of valid policies. Discounted statements use the published ApproxOptRL.Shared.Model; Vγ∗V^*_\gammaVγ∗​ is the value of an optimal stationary policy.
  • The NAPI run is an explicit recursion (napiPolicy): the policy after updates T−1,…,tT-1,\dots,tT−1,…,t, so the input of update ttt is the policy at stage t+1t+1t+1 and the output is the policy at stage 000. The printed loop "For t=T−1,…,1t=T-1,\dots,1t=T−1,…,1" omits the update at t=0t=0t=0, which would leave the time-0 rule random and make the theorem false; the loop here runs to t=0t=0t=0, as in the proof and in Algorithms 8–9.
  • Ruled out. A "run" whose returned policy is unconstrained, or regression errors measured against the returned policy instead of the input policy of each update, would trivialize or alter the goal; both are excluded by the explicit recursion. That the two measurements agree is Lemma 5.3.1, a milestone, not a definition.
  • Maxima. Maxima over actions are Finset.sup'; ∥⋅∥∞\|\cdot\|_\infty∥⋅∥∞​ on state-action functions is Mathlib's sup norm on S → A → ℝ. BJB_JBJ​ is a single number, as printed in Definition 5.1.2.

Welcome contributions: proofs of the milestones, general lemmas about the TTT-epoch layer (values in [0,1][0,1][0,1], normalization of dπ,s0d_{\pi,s_0}dπ,s0​​, the path-expectation form of Vπ,tV_{\pi,t}Vπ,t​), and links to the platform's discounted performance difference results.

Selected references

  • S. M. Kakade, On the Sample Complexity of Reinforcement Learning, PhD thesis, Gatsby Computational Neuroscience Unit, University College London, 2003. https://discovery.ucl.ac.uk/id/eprint/10100726/
  • S. Kakade and J. Langford, Approximately Optimal Approximate Reinforcement Learning, ICML 2002. https://dl.acm.org/doi/10.5555/645531.656005
  • R. J. Williams and L. C. Baird, Tight Performance Bounds on Greedy Policies Based on Imperfect Value Functions, Technical Report NU-CCS-93-14, Northeastern University, 1993.
  • D. P. Bertsekas and J. N. Tsitsiklis, Neuro-Dynamic Programming, Athena Scientific, 1996.
  • M. L. Puterman, Markov Decision Processes: Discrete Stochastic Dynamic Programming, Wiley, 1994. https://doi.org/10.1002/9780470316887
16 thms3 active usersReviewed
🏆Completed
Convex OptimizationOptimization·Captain: mikedeng1

Robust Regression and Lasso 2: When an Absolute Norm Bounds the Column Disturbance Norms, Robust Regression Is Regression Regularized by the Dual Norm, ‖b − Ax‖ₐ + l‖x‖*ₛResearch Paper

Motivation

Robust regression guards a linear model against errors in the data matrix. The observations b∈Rnb \in \mathbb R^nb∈Rn are fitted by AxAxAx, but the features (the columns a1,…,ama_1,\dots,a_ma1​,…,am​ of AAA) are only known up to a disturbance ΔA\Delta AΔA from an uncertainty set U\mathcal UU. The robust estimator minimizes the worst-case residual,

min⁡x∈Rm max⁡ΔA∈U∥b−(A+ΔA)x∥.\min_{x \in \mathbb R^m}\ \max_{\Delta A \in \mathcal U} \|b - (A+\Delta A)x\| .x∈Rmmin​ ΔA∈Umax​∥b−(A+ΔA)x∥.

Xu, Caramanis and Mannor (arXiv:0811.1790v1; IEEE Trans. Inf. Theory 56(7), 2010) showed that when each column is perturbed independently within a Euclidean ball of radius cic_ici​, this problem is exactly the weighted ℓ1\ell_1ℓ1​-regularized problem min⁡x∥b−Ax∥2+∑ici∣xi∣\min_x \|b - Ax\|_2 + \sum_i c_i|x_i|minx​∥b−Ax∥2​+∑i​ci​∣xi​∣, an un-squared Lasso (their Theorem 1, the subject of the first mission of this series). Robustness then explains regularization: the penalty is the price of the worst disturbance.

Section III of the paper asks which regularizers arise when the disturbances of different features are coupled, that is, when a single budget limits all columns jointly. The answer it gives is that every norm-based regularizer arises this way: a norm budget on the vector of column-disturbance sizes produces the dual norm as the penalty. This links robust optimization (Ben-Tal, El Ghaoui, Nemirovski 2009) and regularized estimation, and it recovers the robust least-squares formulation of El Ghaoui and Lebret (1997) as the Euclidean special case.

Setting

Fix n≥1n \ge 1n≥1, m≥0m \ge 0m≥0, and an arbitrary norm ∥⋅∥a\|\cdot\|_a∥⋅∥a​ on Rn\mathbb R^nRn. The data are the columns a1,…,am∈Rna_1,\dots,a_m \in \mathbb R^na1​,…,am​∈Rn of AAA and the response b∈Rnb \in \mathbb R^nb∈Rn; for x∈Rmx \in \mathbb R^mx∈Rm, Ax=∑ixiaiAx = \sum_i x_i a_iAx=∑i​xi​ai​. A disturbance is ΔA=(δ1,…,δm)\Delta A = (\delta_1,\dots,\delta_m)ΔA=(δ1​,…,δm​) with δi∈Rn\delta_i \in \mathbb R^nδi​∈Rn; the perturbed matrix A+ΔAA + \Delta AA+ΔA has columns ai+δia_i + \delta_iai​+δi​. For an uncertainty set U\mathcal UU the robust objective is

RU(x)=sup⁡ΔA∈U∥b−(A+ΔA)x∥a∈[−∞,+∞].R_{\mathcal U}(x) = \sup_{\Delta A\in\mathcal U} \|b - (A+\Delta A)x\|_a \in [-\infty,+\infty].RU​(x)=ΔA∈Usup​∥b−(A+ΔA)x∥a​∈[−∞,+∞].

Three families of uncertainty sets appear.

  1. Feature-wise (Theorem 3): for budgets ci≥0c_i \ge 0ci​≥0, Ua={(δ1,…,δm):∥δi∥a≤ci}\mathcal U_a = \{(\delta_1,\dots,\delta_m) : \|\delta_i\|_a \le c_i\}Ua​={(δ1​,…,δm​):∥δi​∥a​≤ci​}.
  2. Coupled (p. 6): for functions f1,…,fk:Rm→Rf_1,\dots,f_k:\mathbb R^m\to\mathbb Rf1​,…,fk​:Rm→R, U′={(δ1,…,δm):fj(∥δ1∥a,…,∥δm∥a)≤0, j=1,…,k}\mathcal U' = \{(\delta_1,\dots,\delta_m) : f_j(\|\delta_1\|_a,\dots,\|\delta_m\|_a) \le 0,\ j=1,\dots,k\}U′={(δ1​,…,δm​):fj​(∥δ1​∥a​,…,∥δm​∥a​)≤0, j=1,…,k}, with the budget set Z={z∈Rm:fj(z)≤0 ∀j, z≥0}\mathcal Z = \{z \in \mathbb R^m : f_j(z) \le 0\ \forall j,\ z \ge 0\}Z={z∈Rm:fj​(z)≤0 ∀j, z≥0}.
  3. Norm budget (Corollary 1): for a norm ∥⋅∥s\|\cdot\|_s∥⋅∥s​ on Rm\mathbb R^mRm and l≥0l \ge 0l≥0, U′={(δ1,…,δm):∥(∥δ1∥a,…,∥δm∥a)∥s≤l}\mathcal U' = \{(\delta_1,\dots,\delta_m) : \|(\|\delta_1\|_a,\dots,\|\delta_m\|_a)\|_s \le l\}U′={(δ1​,…,δm​):∥(∥δ1​∥a​,…,∥δm​∥a​)∥s​≤l}. The dual norm is ∥y∥s∗=sup⁡{y⊤z:∥z∥s≤1}\|y\|_s^* = \sup\{y^\top z : \|z\|_s \le 1\}∥y∥s∗​=sup{y⊤z:∥z∥s​≤1}. A norm is absolute if ∥(∣z1∣,…,∣zm∣)∥s=∥z∥s\|(|z_1|,\dots,|z_m|)\|_s = \|z\|_s∥(∣z1​∣,…,∣zm​∣)∥s​=∥z∥s​ for all zzz.

A fourth, polytope set, {(δ1,…,δm):∃c≥0, Tc≤s, ∥δj∥a≤cj}\{(\delta_1,\dots,\delta_m) : \exists c \ge 0,\ Tc \le s,\ \|\delta_j\|_a \le c_j\}{(δ1​,…,δm​):∃c≥0, Tc≤s, ∥δj​∥a​≤cj​} for T∈Rk×mT \in \mathbb R^{k\times m}T∈Rk×m, s∈Rks\in\mathbb R^ks∈Rk, is the subject of Corollary 2. Write ∣x∣=(∣x1∣,…,∣xm∣)|x| = (|x_1|,\dots,|x_m|)∣x∣=(∣x1​∣,…,∣xm​∣).

Formalization targets

Goal: Corollary 1 (p. 7)

For an absolute norm ∥⋅∥s\|\cdot\|_s∥⋅∥s​ and l≥0l \ge 0l≥0, for every x∈Rmx \in \mathbb R^mx∈Rm the worst case over the norm-budget set is attained and

max⁡ΔA∈U′∥b−(A+ΔA)x∥a=∥b−Ax∥a+l ∥x∥s∗,\max_{\Delta A\in\mathcal U'} \|b-(A+\Delta A)x\|_a = \|b - Ax\|_a + l\,\|x\|_s^*,ΔA∈U′max​∥b−(A+ΔA)x∥a​=∥b−Ax∥a​+l∥x∥s∗​,

and the robust problem and min⁡x∥b−Ax∥a+l∥x∥s∗\min_x \|b-Ax\|_a + l\|x\|_s^*minx​∥b−Ax∥a​+l∥x∥s∗​ have the same minimizers.

Milestone: Theorem 3 (p. 6)

For c≥0c \ge 0c≥0 and every xxx: max⁡ΔA∈Ua∥b−(A+ΔA)x∥a=∥b−Ax∥a+∑ici∣xi∣\max_{\Delta A\in\mathcal U_a}\|b-(A+\Delta A)x\|_a = \|b-Ax\|_a + \sum_i c_i|x_i|maxΔA∈Ua​​∥b−(A+ΔA)x∥a​=∥b−Ax∥a​+∑i​ci​∣xi​∣, attained, with the same minimizers.

Milestone: Eq. (13) (proof of Theorem 4, Appendix B, p. 19)

For every xxx, in the extended reals,

sup⁡ΔA∈U′∥b−(A+ΔA)x∥a=∥b−Ax∥a+sup⁡c∈Z∣x∣⊤c.\sup_{\Delta A\in\mathcal U'} \|b-(A+\Delta A)x\|_a = \|b-Ax\|_a + \sup_{c\in\mathcal Z} |x|^\top c .ΔA∈U′sup​∥b−(A+ΔA)x∥a​=∥b−Ax∥a​+c∈Zsup​∣x∣⊤c.

Milestone: Corollary 2 (p. 7)

If some c≥0c \ge 0c≥0 has Tc≤sTc \le sTc≤s, then for every xxx the worst case over the polytope set equals ∥b−Ax∥a+inf⁡{s⊤λ:x≤T⊤λ, −x≤T⊤λ, λ≥0}\|b-Ax\|_a + \inf\{s^\top\lambda : x \le T^\top\lambda,\ -x\le T^\top\lambda,\ \lambda\ge0\}∥b−Ax∥a​+inf{s⊤λ:x≤T⊤λ, −x≤T⊤λ, λ≥0} (both sides +∞+\infty+∞ when the constraints are infeasible), the infimum is attained when feasible, and robust minimizers are exactly the xxx-parts of optimal solutions of that linear program.

The paper's general result, Theorem 4 (p. 6), expresses the coupled robust problem through a Lagrangian function v(λ,κ,x)v(\lambda,\kappa,x)v(λ,κ,x) under the assumption that Z\mathcal ZZ has nonempty relative interior. The mission does not pose it: that assumption is not Slater's condition, and the statement fails without one (an explicit counterexample with Z={0}×[0,∞)\mathcal Z = \{0\}\times[0,\infty)Z={0}×[0,∞) is recorded in the series plan). The mission poses the decomposition (13), on which Theorem 4 rests, and the two corollaries, which are true as stated under the readings below.

Significance

The result. Corollary 1 says that any norm penalty l∥x∥s∗l\|x\|_s^*l∥x∥s∗​ is the worst-case cost of column disturbances whose sizes are jointly bounded in the dual norm. Taking ∥⋅∥s=ℓ∞\|\cdot\|_s = \ell_\infty∥⋅∥s​=ℓ∞​ gives the ℓ1\ell_1ℓ1​ penalty (budget per column), ℓ1\ell_1ℓ1​ gives ℓ∞\ell_\inftyℓ∞​ (a shared budget), and both Euclidean gives the Frobenius-ball model of robust least squares. Corollary 2 shows that polytope budgets keep the problem a linear program apart from the loss, which allows modeling, for instance, corruption of an unknown subset of features. Eq. (13) is the common reduction behind these: the coupled worst case is the uncoupled one maximized over the admissible budget vectors.

Formalizing it. None of these statements has a machine-checked proof. The mission makes precise two points the paper leaves implicit: which "symmetric" norms the corollary is true for, and in what sense "max" holds when the budget set is empty or unbounded. The finished development is a self-contained library of worst-case residual identities for arbitrary norms on finite-dimensional or general normed spaces. Related platform items, credited and not reused: SPOBounds.StronglyConvex.dual_norm_ball_max (maximum of a linear functional over a norm ball, with the continuous-dual norm), and RobustLS.Unstructured.worst_case_residual_closed_form (El Ghaoui–Lebret, which perturbs [A b][A\ b][A b] in a Frobenius ball, a different set).

Difficulty

The upper bound of every identity is a triangle inequality. The content is in the matching lower bound: a disturbance must be exhibited that aligns all perturbed columns with the residual direction, and in (13) each column disturbance must have norm exactly cic_ici​, including columns with xi=0x_i = 0xi​=0, which is where n≥1n \ge 1n≥1 enters. The paper's first line of the proof of (13) rewrites U′\mathcal U'U′ as {ΔA:∃c∈Z, ∥δi∥a≤ci}\{\Delta A : \exists c \in \mathcal Z,\ \|\delta_i\|_a \le c_i\}{ΔA:∃c∈Z, ∥δi​∥a​≤ci​}; that set identity is false unless Z\mathcal ZZ is downward closed, so the obvious route through it does not work for (13) as stated. For Corollary 1 the remaining step is the identity sup⁡{∣x∣⊤c:c≥0, ∥c∥s≤l}=l∥x∥s∗\sup\{|x|^\top c : c\ge0,\ \|c\|_s\le l\} = l\|x\|_s^*sup{∣x∣⊤c:c≥0, ∥c∥s​≤l}=l∥x∥s∗​, which needs the absolute property and fails for norms that are only permutation invariant. For Corollary 2 the remaining step is linear programming duality, which Mathlib does not yet provide in this form.

Formalization scope

(Rn,∥⋅∥a)(\mathbb R^n, \|\cdot\|_a)(Rn,∥⋅∥a​) is an arbitrary real normed space EEE with Nontrivial E (the paper's implicit n≥1n\ge1n≥1); finite dimension is not imposed, a harmless generalization. Columns are a family a : Fin m → E, disturbances δ : Fin m → E, coefficients Fin m → ℝ, and Ax=∑ixi⋅aiAx = \sum_i x_i \cdot a_iAx=∑i​xi​⋅ai​. Explicit readings:

  1. The robust objective is a supremum over the uncertainty set, computed in EReal; it is never defined by its closed form. "Max" is stated as IsGreatest of the set of residual values (attained) in Theorem 3 and Corollary 1, where the maximum exists, and as an EReal supremum in (13) and Corollary 2, where it need not.
  2. "Is equivalent to" / "the resulting regularized regression problem is" means: equal objectives at every xxx and equal sets of minimizers. Existence of a minimizer is not claimed.
  3. "Symmetric norm" is read as absolute; ∥⋅∥s\|\cdot\|_s∥⋅∥s​ is a Mathlib Seminorm on Fin m → ℝ with Nz=0⇒z=0N z = 0 \Rightarrow z = 0Nz=0⇒z=0 (the type already carries the sup norm, so the notation ∥⋅∥\|\cdot\|∥⋅∥ is not used for it). The dual norm is a real sSup of {y⊤z:Nz≤1}\{y^\top z : N z \le 1\}{y⊤z:Nz≤1}, a nonempty set that is bounded above because NNN is a norm on Rm\mathbb R^mRm.
  4. l≥0l \ge 0l≥0 is added to Corollary 1, and feasibility of c≥0c\ge0c≥0, Tc≤sTc\le sTc≤s to Corollary 2; without them the sets are empty.
  5. Eq. (13) is stated for U′\mathcal U'U′ as defined on p. 6 (not through the paper's set rewriting); the convexity of the fjf_jfj​ is kept as the paper's standing assumption and is not used.

A trivializing formalization is ruled out: the robust objective is the EReal supremum (or the residual-value set) over the uncertainty set, so no identity holds by unfolding, and no real sSup junk value enters a robust objective. Welcome contributions: the explicit worst-case disturbance in an arbitrary normed space, the absolute-norm duality lemma, and a finite-dimensional LP strong duality theorem, each reusable beyond this mission.

Selected references

  • H. Xu, C. Caramanis, S. Mannor, Robust Regression and Lasso, arXiv:0811.1790v1, 2008; IEEE Transactions on Information Theory 56(7):3561–3574, 2010. https://arxiv.org/abs/0811.1790v1, https://doi.org/10.1109/TIT.2010.2048503
  • L. El Ghaoui, H. Lebret, Robust solutions to least-squares problems with uncertain data, SIAM Journal on Matrix Analysis and Applications 18(4):1035–1064, 1997. https://doi.org/10.1137/S0895479896298130
  • A. Ben-Tal, L. El Ghaoui, A. Nemirovski, Robust Optimization, Princeton University Press, 2009. https://doi.org/10.1515/9781400831050
  • R. Tibshirani, Regression shrinkage and selection via the lasso, Journal of the Royal Statistical Society B 58(1):267–288, 1996. https://doi.org/10.1111/j.2517-6161.1996.tb02080.x
5 thms3 active usersReviewed
PreviousPage 9 of 27Next

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