Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in

Get started

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

Machine Learning

273 missions · 179 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

Open94Completed179All273
🏆Completed
OptimizationProbabilityStatistics·Captain: mikedeng1

Simultaneous Analysis of Lasso and Dantzig Selector V: Estimation, Prediction and Sparsity Bounds for the LassoResearch Paper

Motivation

In a linear regression with many more candidate variables than observations, least squares is not defined uniquely and does not estimate anything useful. The Lasso (Tibshirani, 1996) replaces it by an ℓ1\ell_1ℓ1​-penalised least-squares problem, which is convex, can be solved at scale, and returns sparse coefficient vectors. The question that a statistician, a signal-processing engineer or an operations researcher fitting a sparse model must answer before trusting it is quantitative: how far is the Lasso estimate from the true coefficient vector, how well does it predict, and how many variables does it select, as functions of the sample size nnn, the number of variables MMM and the sparsity sss of the truth?

Bickel, Ritov and Tsybakov (arXiv:0801.1095, Ann. Statist. 37(4), 2009) answered this under the restricted eigenvalue (RE) condition, which they introduced, with explicit constants and an explicit failure probability. Their Theorem 7.2, the goal of this mission, is a standard reference result of high-dimensional statistics and a model for the Lasso analyses in the textbooks of Bühlmann and van de Geer (2011) and Wainwright (2019).

Timeline, restricted to what each work proved:

  • 2007: Candès and Tao (arXiv:math/0506081) prove ℓ2\ell_2ℓ2​ bounds for the Dantzig selector under a uniform uncertainty principle.
  • 2007: Bunea, Tsybakov and Wegkamp (doi:10.1214/07-EJS008) prove sparsity oracle inequalities for the Lasso under mutual-coherence conditions; Lemma B.1 of the present paper is essentially their Lemma 1.
  • 2008/2009: Bickel, Ritov and Tsybakov prove Theorem 7.2 under RE(s,3)(s,3)(s,3) and RE(s,m,3)(s,m,3)(s,m,3), conditions weaker than those of the previous works.

Setting

A deterministic design matrix X∈Rn×MX\in\mathbb R^{n\times M}X∈Rn×M with columns x(1),…,x(M)x_{(1)},\dots,x_{(M)}x(1)​,…,x(M)​ is observed together with

y=Xβ∗+w,y=X\beta^*+w,y=Xβ∗+w,

where β∗∈RM\beta^*\in\mathbb R^Mβ∗∈RM is unknown and w=(W1,…,Wn)w=(W_1,\dots,W_n)w=(W1​,…,Wn​) has independent N(0,σ2)\mathcal N(0,\sigma^2)N(0,σ2) entries with σ>0\sigma>0σ>0. Throughout, n≥1n\ge1n≥1, M≥2M\ge2M≥2, and every diagonal entry of the Gram matrix Ψn=X⊤X/n\Psi_n=X^\top X/nΨn​=X⊤X/n equals 111.

For δ∈RM\delta\in\mathbb R^Mδ∈RM write ∣δ∣p=(∑j∣δj∣p)1/p|\delta|_p=(\sum_j|\delta_j|^p)^{1/p}∣δ∣p​=(∑j​∣δj​∣p)1/p, J(δ)={j:δj≠0}J(\delta)=\{j:\delta_j\ne0\}J(δ)={j:δj​=0} for the support, M(δ)=∣J(δ)∣\mathcal M(\delta)=|J(\delta)|M(δ)=∣J(δ)∣ for the sparsity, and δJ\delta_JδJ​ for the vector that agrees with δ\deltaδ on JJJ and vanishes off JJJ. The largest eigenvalue of Ψn\Psi_nΨn​ is ϕmax⁡\phi_{\max}ϕmax​.

The Lasso estimator with tuning parameter r>0r>0r>0 is any minimiser

β^L∈arg⁡min⁡β∈RM{1n∣y−Xβ∣22+2r∣β∣1}.\hat\beta_L\in\arg\min_{\beta\in\mathbb R^M}\Big\{\frac1n|y-X\beta|_2^2+2r|\beta|_1\Big\}.β^​L​∈argβ∈RMmin​{n1​∣y−Xβ∣22​+2r∣β∣1​}.

Minimisers exist but need not be unique.

Assumption RE(s,c0)(s,c_0)(s,c0​) (1≤s≤M1\le s\le M1≤s≤M, c0>0c_0>0c0​>0) asks that

κ(s,c0)=min⁡∣J0∣≤s min⁡δ≠0, ∣δJ0c∣1≤c0∣δJ0∣1∣Xδ∣2n ∣δJ0∣2>0.\kappa(s,c_0)=\min_{|J_0|\le s}\ \min_{\delta\ne0,\ |\delta_{J_0^c}|_1\le c_0|\delta_{J_0}|_1}\frac{|X\delta|_2}{\sqrt n\,|\delta_{J_0}|_2}>0 .κ(s,c0​)=∣J0​∣≤smin​ δ=0, ∣δJ0c​​∣1​≤c0​∣δJ0​​∣1​min​n​∣δJ0​​∣2​∣Xδ∣2​​>0.

Assumption RE(s,m,c0)(s,m,c_0)(s,m,c0​) (1≤s≤M/21\le s\le M/21≤s≤M/2, m≥sm\ge sm≥s, s+m≤Ms+m\le Ms+m≤M) is the same with ∣δJ01∣2|\delta_{J_{01}}|_2∣δJ01​​∣2​ in the denominator, where J01=J0∪J1J_{01}=J_0\cup J_1J01​=J0​∪J1​ and J1J_1J1​ collects the mmm largest in absolute value coordinates of δ\deltaδ outside J0J_0J0​.

Formalization targets

Goal: Theorem 7.2

Let M(β∗)≤s\mathcal M(\beta^*)\le sM(β∗)≤s, let RE(s,3)(s,3)(s,3) hold, and let r=Aσlog⁡M/nr=A\sigma\sqrt{\log M/n}r=AσlogM/n​ with A>22A>2\sqrt2A>22​. With probability at least 1−M1−A2/81-M^{1-A^2/8}1−M1−A2/8, every Lasso solution satisfies

∣β^L−β∗∣1≤16Aκ2(s,3)σslog⁡Mn,∣X(β^L−β∗)∣22≤16A2κ2(s,3)σ2slog⁡M,M(β^L)≤64ϕmax⁡κ2(s,3)s,|\hat\beta_L-\beta^*|_1\le\frac{16A}{\kappa^2(s,3)}\sigma s\sqrt{\frac{\log M}{n}},\qquad |X(\hat\beta_L-\beta^*)|_2^2\le\frac{16A^2}{\kappa^2(s,3)}\sigma^2s\log M,\qquad \mathcal M(\hat\beta_L)\le\frac{64\phi_{\max}}{\kappa^2(s,3)}s,∣β^​L​−β∗∣1​≤κ2(s,3)16A​σsnlogM​​,∣X(β^​L​−β∗)∣22​≤κ2(s,3)16A2​σ2slogM,M(β^​L​)≤κ2(s,3)64ϕmax​​s,

and, if RE(s,m,3)(s,m,3)(s,m,3) holds, on the same event and for all 1<p≤21<p\le21<p≤2,

∣β^L−β∗∣pp≤16{1+3sm}2(p−1)s(Aσκ2(s,m,3)log⁡Mn)p.|\hat\beta_L-\beta^*|_p^p\le16\Big\{1+3\sqrt{\tfrac sm}\Big\}^{2(p-1)}s\Big(\frac{A\sigma}{\kappa^2(s,m,3)}\sqrt{\frac{\log M}{n}}\Big)^p .∣β^​L​−β∗∣pp​≤16{1+3ms​​}2(p−1)s(κ2(s,m,3)Aσ​nlogM​​)p.

Milestones

In the order in which the paper's proof uses them:

  1. (B.4): the noise event A=⋂j{2∣1nx(j)⊤w∣≤r}\mathcal A=\bigcap_j\{2|\tfrac1n x_{(j)}^\top w|\le r\}A=⋂j​{2∣n1​x(j)⊤​w∣≤r} has P(Ac)≤M1−A2/8\mathbb P(\mathcal A^c)\le M^{1-A^2/8}P(Ac)≤M1−A2/8.
  2. (B.6): the optimality conditions of the Lasso.
  3. Lemma B.1 (Section 7 case): the basic inequality (B.1) for all β\betaβ, the residual bound (B.2) and the sparsity bound M(β^L)≤4ϕmax⁡∥fβ^L−f∥n2/r2\mathcal M(\hat\beta_L)\le4\phi_{\max}\|f_{\hat\beta_L}-f\|_n^2/r^2M(β^​L​)≤4ϕmax​∥fβ^​L​​−f∥n2​/r2 (B.3).
  4. Corollary B.2: the error δ=β^L−β\delta=\hat\beta_L-\betaδ=β^​L​−β lies in the cone ∣δJ0c∣1≤3∣δJ0∣1|\delta_{J_0^c}|_1\le3|\delta_{J_0}|_1∣δJ0c​​∣1​≤3∣δJ0​​∣1​.
  5. (B.30)–(B.31): on A\mathcal AA, 1n∣Xδ∣22≤16r2s/κ2\frac1n|X\delta|_2^2\le16r^2s/\kappa^2n1​∣Xδ∣22​≤16r2s/κ2 and ∣δJ0∣2≤4rs/κ2|\delta_{J_0}|_2\le4r\sqrt s/\kappa^2∣δJ0​​∣2​≤4rs​/κ2.
  6. (B.27) and (B.28) with c0=3c_0=3c0​=3: ℓ1\ell_1ℓ1​ and ℓ2\ell_2ℓ2​ norms of a cone vector.
  7. The ℓp\ell_pℓp​ interpolation ∑ajp≤b12−pb2p−1\sum a_j^p\le b_1^{2-p}b_2^{p-1}∑ajp​≤b12−p​b2p−1​.

Significance

The result. Theorem 7.2 gives, for fixed nnn and MMM rather than asymptotically, the rate slog⁡M/ns\log M/nslogM/n for the prediction loss and slog⁡M/ns\sqrt{\log M/n}slogM/n​ for the ℓ1\ell_1ℓ1​ loss of the Lasso, under a condition on the design only (RE), with no assumption on how MMM compares with nnn. The dependence on MMM is only logarithmic, which is what makes the Lasso usable when M≫nM\gg nM≫n. Bound (7.9) shows that the Lasso selects at most a constant multiple of sss variables, and (7.10) covers every ℓp\ell_pℓp​ loss between ℓ1\ell_1ℓ1​ and ℓ2\ell_2ℓ2​. Together with Theorem 7.1 for the Dantzig selector, the result shows that the two estimators have the same rates.

Formalizing it. The theorem is proved on paper. As far as a search of the platform shows, there is no machine-checked proof of a probabilistic Lasso rate. The closest platform statement, HighDimStat.SparseLinear.lasso_l2_error_bound (Wainwright, Theorem 7.13(a)), is deterministic, assumes a lower bound on the regularisation parameter in place of Gaussian noise, uses a restricted eigenvalue condition over the cone of one fixed support, and concludes an ℓ2\ell_2ℓ2​ bound with a different constant. A formal proof of Theorem 7.2 would supply the Gaussian maximal inequality, the Lasso optimality conditions, and the cone and interpolation inequalities as reusable lemmas.

Difficulty

Each step is short on paper, and none of the steps is deep. The main work is in three places. First, the probability: the event on which the deterministic argument runs involves all MMM correlations 1nx(j)⊤w\frac1n x_{(j)}^\top wn1​x(j)⊤​w at once, and its probability must be bounded by exactly M1−A2/8M^{1-A^2/8}M1−A2/8, which requires the law of a linear combination of independent Gaussians and a sharp Gaussian tail estimate, not a generic concentration bound with unspecified constants. Second, the Lasso is defined only through its minimising property, while the sparsity bound (7.9) is a statement about the number of non-zero coordinates of a minimiser of a non-differentiable objective; the characterisation (B.6) of minimisers is not in Mathlib. Third, (7.10) involves two restricted eigenvalue constants, a ranking of coordinates with possible ties, and real exponents, and every constant has to come out exactly.

The obvious idea of proving (7.7)–(7.10) for one fixed minimiser does not suffice: the statement quantifies over every minimiser on a single event.

Formalization scope

The design XXX is a Matrix (Fin n) (Fin M) ℝ; vectors are functions Fin M → ℝ. The noise is a family W : Fin n → Ω → ℝ of independent, measurable random variables with law gaussianReal 0 σ² on a probability space, and y(ω)=Xβ∗+W(ω)y(\omega)=X\beta^*+W(\omega)y(ω)=Xβ∗+W(ω). The probabilistic conclusion is one measurable event EEE with P(E)≥1−M1−A2/8\mathbb P(E)\ge1-M^{1-A^2/8}P(E)≥1−M1−A2/8 on which every minimiser of (7.2) satisfies all bounds; the event does not depend on the minimiser, on mmm or on ppp. log⁡\loglog is the natural logarithm.

RE(s,3)(s,3)(s,3) and RE(s,m,3)(s,m,3)(s,m,3) are stated through witnesses: a predicate "κn∣δJ0∣2≤∣Xδ∣2\kappa\sqrt n|\delta_{J_0}|_2\le|X\delta|_2κn​∣δJ0​​∣2​≤∣Xδ∣2​ for every admissible J0J_0J0​ and δ\deltaδ", and the theorem holds for every witness κ>0\kappa>0κ>0. Because the paper's κ(s,c0)\kappa(s,c_0)κ(s,c0​) is an attained minimum, every witness is at most it and the bounds decrease in κ\kappaκ, so this is equivalent to the printed statement. The assumption quantifies over every J0J_0J0​ with ∣J0∣≤s|J_0|\le s∣J0​∣≤s, as on page 7, not only over the support of β∗\beta^*β∗. ϕmax⁡\phi_{\max}ϕmax​ is the supremum of 1n∣Xx∣22\frac1n|Xx|_2^2n1​∣Xx∣22​ over unit vectors xxx. Lemma B.1 is stated in its Section-7 specialisation (unit column norms, f=Xβ∗f=X\beta^*f=Xβ∗), the form used in the proof of Theorem 7.2; (B.28) is stated for every c0>0c_0>0c0​>0 and (B.27) likewise, since the paper writes them with c0=1c_0=1c0​=1 and invokes them with c0=3c_0=3c0​=3. The printed Theorem 7.2 needs no correction; all four constants were checked against the proof.

A formalization in which the noise is not Gaussian, the Lasso predicate can be vacuous, the RE condition is imposed only on the support of β∗\beta^*β∗, or the probability is that of a non-measurable set, is not this theorem and is ruled out by the statement.

Needed infrastructure: Gaussian tail bounds and the law of a linear combination of independent Gaussians (largely in Mathlib), subdifferential calculus for ℓ1\ell_1ℓ1​-penalised least squares, and elementary finite-sum inequalities. The cone inequalities (B.27)–(B.28), the interpolation inequality and the optimality conditions (B.6) are reusable in other sparse-estimation missions; contributions to any milestone are welcome.

Selected references

  • P. J. Bickel, Y. Ritov, A. B. Tsybakov, Simultaneous analysis of Lasso and Dantzig selector, Ann. Statist. 37(4), 1705–1732, 2009. arXiv:0801.1095v3, https://arxiv.org/abs/0801.1095 ; https://doi.org/10.1214/08-AOS620
  • F. Bunea, A. B. Tsybakov, M. H. Wegkamp, Sparsity oracle inequalities for the Lasso, Electron. J. Statist. 1, 169–194, 2007. https://doi.org/10.1214/07-EJS008
  • E. Candès, T. Tao, The Dantzig selector: statistical estimation when p is much larger than n, Ann. Statist. 35(6), 2313–2351, 2007. https://arxiv.org/abs/math/0506081
  • R. Tibshirani, Regression shrinkage and selection via the lasso, J. R. Statist. Soc. B 58(1), 267–288, 1996. https://doi.org/10.1111/j.2517-6161.1996.tb02080.x
  • M. J. Wainwright, High-Dimensional Statistics: A Non-Asymptotic Viewpoint, Cambridge University Press, 2019, Chapter 7. https://doi.org/10.1017/9781108627771
10 thms4 active usersReviewed
🏆Completed
OptimizationProbabilityStatistics·Captain: mikedeng1

Simultaneous Analysis of Lasso and Dantzig Selector IV: Estimation and Prediction Error Bounds for the Dantzig SelectorResearch Paper

Motivation

In high-dimensional linear regression the number of unknown coefficients MMM may be much larger than the number of observations nnn, and the coefficient vector can only be recovered because it is assumed to be sparse: few of its entries are non-zero. Two convex estimators dominate this setting: the Lasso of Tibshirani (1996), an ℓ1\ell_1ℓ1​-penalized least-squares estimator, and the Dantzig selector of Candès and Tao (2007), which minimizes the ℓ1\ell_1ℓ1​ norm subject to a bound on the correlation between the residual and the columns of the design. Both are used routinely in statistics, signal processing and machine learning, and their rates of convergence determine how many observations suffice to estimate a sparse vector.

Bickel, Ritov and Tsybakov (arXiv:0801.1095; Ann. Statist. 37(4), 2009) analysed the two estimators side by side under a single, weak condition on the design, the restricted eigenvalue (RE) assumption. This mission formalizes their rates for the Dantzig selector, Theorem 7.1 of the paper.

Timeline. Candès and Tao (Ann. Statist. 35, 2007) introduced the Dantzig selector and bounded its ℓ2\ell_2ℓ2​ error under a uniform uncertainty principle on the design. Bickel, Ritov and Tsybakov (2009) replaced that condition by the RE assumptions, which are implied by it (their Lemma 4.1), and obtained ℓp\ell_pℓp​ bounds for every 1≤p≤21\le p\le21≤p≤2 and a prediction bound, with explicit constants. Later work (van de Geer and Bühlmann, EJS 2009) compared RE with the compatibility condition and other design conditions.

Setting

Observations follow the linear model

y=Xβ∗+w,y=X\beta^*+w,y=Xβ∗+w,

where X∈Rn×MX\in\mathbb R^{n\times M}X∈Rn×M is a deterministic design matrix, n≥1n\ge1n≥1, M≥2M\ge2M≥2, β∗∈RM\beta^*\in\mathbb R^Mβ∗∈RM is unknown, and w=(W1,…,Wn)w=(W_1,\dots,W_n)w=(W1​,…,Wn​) has independent N(0,σ2)\mathcal N(0,\sigma^2)N(0,σ2) coordinates with σ>0\sigma>0σ>0. The columns are normalized: every diagonal element of the Gram matrix XTX/nX^TX/nXTX/n equals 1.

For β∈RM\beta\in\mathbb R^Mβ∈RM, J(β)={j:βj≠0}J(\beta)=\{j:\beta_j\ne0\}J(β)={j:βj​=0} is its support and M(β)=∣J(β)∣\mathcal M(\beta)=|J(\beta)|M(β)=∣J(β)∣ its sparsity; β∗\beta^*β∗ satisfies M(β∗)≤s\mathcal M(\beta^*)\le sM(β∗)≤s for an integer 1≤s≤M1\le s\le M1≤s≤M. Norms are ∣δ∣p=(∑j∣δj∣p)1/p|\delta|_p=(\sum_j|\delta_j|^p)^{1/p}∣δ∣p​=(∑j​∣δj​∣p)1/p and ∣v∣22=∑ivi2|v|_2^2=\sum_iv_i^2∣v∣22​=∑i​vi2​; for an index set JJJ, δJ\delta_JδJ​ keeps the coordinates of δ\deltaδ in JJJ and sets the others to 0, and JcJ^cJc is the complement of JJJ.

With a tuning level r=Aσlog⁡M/nr=A\sigma\sqrt{\log M/n}r=AσlogM/n​, A>2A>\sqrt2A>2​, the Dantzig selector is any minimizer

β^D∈arg⁡min⁡β∈Λ∣β∣1,Λ={β∈RM: ∣1nXT(y−Xβ)∣∞≤r}.\hat\beta_D\in\arg\min_{\beta\in\Lambda}|\beta|_1,\qquad \Lambda=\Big\{\beta\in\mathbb R^M:\ \Big|\tfrac1nX^T(y-X\beta)\Big|_\infty\le r\Big\}.β^​D​∈argβ∈Λmin​∣β∣1​,Λ={β∈RM: ​n1​XT(y−Xβ)​∞​≤r}.

The cone condition at an index set J0J_0J0​ with constant c0>0c_0>0c0​>0 is ∣δJ0c∣1≤c0∣δJ0∣1|\delta_{J_0^c}|_1\le c_0|\delta_{J_0}|_1∣δJ0c​​∣1​≤c0​∣δJ0​​∣1​. Assumption RE(s,c0)(s,c_0)(s,c0​) asks that

κ(s,c0)=min⁡∣J0∣≤s min⁡δ≠0, ∣δJ0c∣1≤c0∣δJ0∣1∣Xδ∣2n ∣δJ0∣2>0.\kappa(s,c_0)=\min_{|J_0|\le s}\ \min_{\delta\ne0,\ |\delta_{J_0^c}|_1\le c_0|\delta_{J_0}|_1}\frac{|X\delta|_2}{\sqrt n\,|\delta_{J_0}|_2}>0 .κ(s,c0​)=∣J0​∣≤smin​ δ=0, ∣δJ0c​​∣1​≤c0​∣δJ0​​∣1​min​n​∣δJ0​​∣2​∣Xδ∣2​​>0.

Assumption RE(s,m,c0)(s,m,c_0)(s,m,c0​) is the same with ∣δJ01∣2|\delta_{J_{01}}|_2∣δJ01​​∣2​ in the denominator, where J01=J0∪J1J_{01}=J_0\cup J_1J01​=J0​∪J1​ and J1J_1J1​ collects the mmm largest ∣δj∣|\delta_j|∣δj​∣ outside J0J_0J0​; it is used for s≤ms\le ms≤m, s+m≤Ms+m\le Ms+m≤M.

Formalization targets

Goal: Theorem 7.1

With probability at least 1−M1−A2/21-M^{1-A^2/2}1−M1−A2/2, every Dantzig selector satisfies

∣β^D−β∗∣1≤8Aκ2(s,1) σslog⁡Mn,∣X(β^D−β∗)∣22≤16A2κ2(s,1) σ2slog⁡M,|\hat\beta_D-\beta^*|_1\le\frac{8A}{\kappa^2(s,1)}\,\sigma s\sqrt{\frac{\log M}{n}},\qquad |X(\hat\beta_D-\beta^*)|_2^2\le\frac{16A^2}{\kappa^2(s,1)}\,\sigma^2s\log M,∣β^​D​−β∗∣1​≤κ2(s,1)8A​σsnlogM​​,∣X(β^​D​−β∗)∣22​≤κ2(s,1)16A2​σ2slogM,

and, on the same event, if RE(s,m,1)(s,m,1)(s,m,1) holds, simultaneously for all 1<p≤21<p\le21<p≤2,

∣β^D−β∗∣pp≤2p−1 8{1+sm}2(p−1)s(Aσκ2(s,m,1)log⁡Mn)p.|\hat\beta_D-\beta^*|_p^p\le2^{p-1}\,8\Big\{1+\sqrt{\tfrac sm}\Big\}^{2(p-1)}s\Big(\frac{A\sigma}{\kappa^2(s,m,1)}\sqrt{\frac{\log M}{n}}\Big)^p .∣β^​D​−β∗∣pp​≤2p−18{1+ms​​}2(p−1)s(κ2(s,m,1)Aσ​nlogM​​)p.

Milestones

In the order the proof of the paper uses them:

  1. The noise event B=⋂j{∣1n∑iXijWi∣≤r∥fj∥n}\mathcal B=\bigcap_j\{|\frac1n\sum_iX_{ij}W_i|\le r\|f_j\|_n\}B=⋂j​{∣n1​∑i​Xij​Wi​∣≤r∥fj​∥n​} has P{Bc}≤M1−A2/2\mathbb P\{\mathcal B^c\}\le M^{1-A^2/2}P{Bc}≤M1−A2/2 (proof of Lemma B.3).
  2. Lemma B.3, (B.9): for any β\betaβ satisfying the Dantzig constraint, δ=β^D−β\delta=\hat\beta_D-\betaδ=β^​D​−β satisfies the cone condition at J(β)J(\beta)J(β) with c0=1c_0=1c0​=1.
  3. (B.25): on B\mathcal BB, β∗∈Λ\beta^*\in\Lambdaβ∗∈Λ, 1n∣XTXδ∣∞≤2r\frac1n|X^TX\delta|_\infty\le2rn1​∣XTXδ∣∞​≤2r, and 1n∣Xδ∣22≤4rs ∣δJ0∣2\frac1n|X\delta|_2^2\le4r\sqrt s\,|\delta_{J_0}|_2n1​∣Xδ∣22​≤4rs​∣δJ0​​∣2​.
  4. (B.26): under RE(s,1)(s,1)(s,1), 1n∣Xδ∣22≤16r2s/κ2\frac1n|X\delta|_2^2\le16r^2s/\kappa^2n1​∣Xδ∣22​≤16r2s/κ2 and ∣δJ0∣2≤4rs/κ2|\delta_{J_0}|_2\le4r\sqrt s/\kappa^2∣δJ0​​∣2​≤4rs​/κ2.
  5. (B.27): on the cone, ∣δ∣1≤(1+c0)s ∣δJ0∣2|\delta|_1\le(1+c_0)\sqrt s\,|\delta_{J_0}|_2∣δ∣1​≤(1+c0​)s​∣δJ0​​∣2​.
  6. (B.28): on the cone, ∣δ∣2≤(1+c0s/m) ∣δJ01∣2|\delta|_2\le(1+c_0\sqrt{s/m})\,|\delta_{J_{01}}|_2∣δ∣2​≤(1+c0​s/m​)∣δJ01​​∣2​.
  7. (B.29): under RE(s,m,1)(s,m,1)(s,m,1), ∣δ∣22≤16(1+s/m)2(rs/κ2)2|\delta|_2^2\le16(1+\sqrt{s/m})^2(r\sqrt s/\kappa^2)^2∣δ∣22​≤16(1+s/m​)2(rs​/κ2)2.
  8. Interpolation: ∑jaj≤b1\sum_ja_j\le b_1∑j​aj​≤b1​, ∑jaj2≤b2\sum_ja_j^2\le b_2∑j​aj2​≤b2​, aj≥0a_j\ge0aj​≥0 imply ∑jajp≤b12−pb2p−1\sum_ja_j^p\le b_1^{2-p}b_2^{p-1}∑j​ajp​≤b12−p​b2p−1​ for 1<p≤21<p\le21<p≤2.

Significance

The result. Theorem 7.1 shows that, up to the factor log⁡M\log MlogM, the Dantzig selector estimates an sss-sparse vector as well as least squares would if the support were known: the prediction error 1n∣X(β^D−β∗)∣22\frac1n|X(\hat\beta_D-\beta^*)|_2^2n1​∣X(β^​D​−β∗)∣22​ is of order σ2slog⁡M/n\sigma^2s\log M/nσ2slogM/n, and the ℓp\ell_pℓp​ errors are of order s1/pσlog⁡M/ns^{1/p}\sigma\sqrt{\log M/n}s1/pσlogM/n​. The bounds hold for any MMM, including M≫nM\gg nM≫n, provided only that RE holds, and every constant is explicit. The paper's Theorem 7.2 gives the same rates for the Lasso; comparing the two is the paper's main message.

Formalizing it. The theorem is proved in the paper; to the best of current knowledge it has not been machine-checked. A complete formal proof would provide: a verified Gaussian maximal inequality for the noise event, the deterministic cone and RE arithmetic that underlies essentially all ℓ1\ell_1ℓ1​-regularized estimation theory, and a reusable ℓ1\ell_1ℓ1​–ℓ2\ell_2ℓ2​ interpolation lemma. Most milestones are deterministic and independent of the probability layer.

Difficulty

The obvious argument — compare β^D\hat\beta_Dβ^​D​ with β∗\beta^*β∗ in Euclidean norm using the smallest eigenvalue of XTX/nX^TX/nXTX/n — fails because that eigenvalue is 0 whenever M>nM>nM>n. The proof must instead show that the error vector lies in a cone on which XXX is injective in a quantitative sense, and this uses the optimality of β^D\hat\beta_Dβ^​D​ (not just feasibility) together with the event B\mathcal BB on which β∗\beta^*β∗ itself is feasible. The ℓp\ell_pℓp​ bound needs a second, stronger condition RE(s,m,1)(s,m,1)(s,m,1) and a control of the tail of the error outside the mmm largest coordinates. On the formal side, handling the non-uniqueness of the minimizer, real powers with exponent p−1p-1p−1 or 2−p2-p2−p, and the union over MMM Gaussian tails with the exact constant M1−A2/2M^{1-A^2/2}M1−A2/2 all need care.

Formalization scope

Vectors are functions Fin M → ℝ, the design is Matrix (Fin n) (Fin M) ℝ; the paper's dictionary of functions enters only through XXX. The unit diagonal of XTX/nX^TX/nXTX/n is a hypothesis, not a normalization performed in the proof. The noise is W : Fin n → Ω → ℝ on a probability space, measurable, mutually independent, each of law N(0,σ2)\mathcal N(0,\sigma^2)N(0,σ2); log⁡\loglog is the natural logarithm. The Dantzig selector is a predicate (feasible and of minimal ℓ1\ell_1ℓ1​ norm among feasible vectors), and every result is stated for every minimizer. RE(s,c0)(s,c_0)(s,c0​) and RE(s,m,c0)(s,m,c_0)(s,m,c0​) are stated through a witness κ\kappaκ (a number with the defining lower-bound property); κ(s,c0)\kappa(s,c_0)κ(s,c0​) is the largest witness and the bounds decrease in κ\kappaκ, so the statements are equivalent to the paper's while avoiding the value of a real infimum over an empty set. Two witnesses are kept apart: κ\kappaκ for RE(s,1)(s,1)(s,1) in (7.4)–(7.5), κ′\kappa'κ′ for RE(s,m,1)(s,m,1)(s,m,1) in (7.6). Ties in the choice of the mmm largest coordinates are handled by quantifying over every admissible J1J_1J1​. The probability statement asserts one measurable event EEE with P(E)≥1−M1−A2/2\mathbb P(E)\ge1-M^{1-A^2/2}P(E)≥1−M1−A2/2 on which all three bounds hold for every minimizer, every admissible mmm, every witness κ′\kappa'κ′ and every ppp.

The event EEE is fixed before the minimizer is quantified, so a formalization in which the event depends on β^D\hat\beta_Dβ^​D​, or in which RE is a hypothesis about the random error vector rather than the design, would be a different (weaker) statement and is not accepted. The deterministic milestones (B.26)–(B.29) take the conclusion of (B.25) as a hypothesis; they are true for every vector satisfying their hypotheses and are not restricted to the event.

A complete development needs Gaussian tail bounds and a union bound (Mathlib's gaussianReal), finite Hölder-type inequalities for real exponents, and elementary sorting arguments for the tail outside J01J_{01}J01​. The cone, RE and interpolation lemmas are reusable for the Lasso (Theorem 7.2, a sister mission) and beyond. Proofs of any milestone are welcome independently.

Selected references

  • P. J. Bickel, Y. Ritov, A. B. Tsybakov, Simultaneous analysis of Lasso and Dantzig selector, Ann. Statist. 37(4), 1705–1732, 2009. arXiv:0801.1095v3: https://arxiv.org/abs/0801.1095
  • E. Candès, T. Tao, The Dantzig selector: statistical estimation when p is much larger than n, Ann. Statist. 35(6), 2313–2351, 2007. https://doi.org/10.1214/009053606000001523
  • R. Tibshirani, Regression shrinkage and selection via the lasso, J. R. Stat. Soc. B 58(1), 267–288, 1996. https://doi.org/10.1111/j.2517-6161.1996.tb02080.x
  • S. van de Geer, P. Bühlmann, On the conditions used to prove oracle results for the Lasso, Electron. J. Statist. 3, 1360–1392, 2009. https://doi.org/10.1214/09-EJS506
10 thms4 active usersReviewed
🏆Completed
OptimizationProbabilityStatistics·Captain: mikedeng1

Simultaneous Analysis of Lasso and Dantzig Selector II: Approximate Equivalence of the Lasso and Dantzig Prediction LossesResearch Paper

Motivation

Two estimators dominate sparse high-dimensional regression, where the number MMM of candidate regressors can far exceed the sample size nnn. The Lasso (Tibshirani, 1996) minimises a least-squares criterion plus an ℓ1\ell_1ℓ1​ penalty. The Dantzig selector (Candès and Tao, 2007) minimises the ℓ1\ell_1ℓ1​ norm of the coefficients subject to a bound on the correlation between the residual and the regressors, and is computed by a linear program. They were proposed independently and first analysed under different assumptions: sparsity oracle inequalities for the Lasso (Bunea, Tsybakov and Wegkamp, 2007) and ℓ2\ell_2ℓ2​ bounds for the Dantzig selector under a uniform uncertainty principle (Candès and Tao, 2007). A practitioner choosing between them needs to know whether guarantees for one say anything about the other.

Bickel, Ritov and Tsybakov (arXiv:0801.1095; Ann. Statist. 37(4), 2009, doi:10.1214/08-AOS620) analyse both estimators in parallel under one assumption on the design, the restricted eigenvalue condition. Their main message is that, under sparsity, the two estimators "exhibit similar behavior" (p. 2). Section 5 makes this precise: the prediction losses of the two estimators are close. The result holds in a nonparametric model: the regression function need not be a combination of the regressors. This mission formalizes that comparison, Theorem 5.1 of the paper.

Setting

Let f1,…,fMf_1,\dots,f_Mf1​,…,fM​ be real functions (the dictionary) on a set Z\mathcal ZZ, and Z1,…,Zn∈ZZ_1,\dots,Z_n\in\mathcal ZZ1​,…,Zn​∈Z fixed design points, with n≥1n\ge1n≥1 and M≥2M\ge2M≥2. The design matrix is X=(fj(Zi))∈Rn×MX=(f_j(Z_i))\in\mathbb R^{n\times M}X=(fj​(Zi​))∈Rn×M. Observations are Yi=f(Zi)+WiY_i=f(Z_i)+W_iYi​=f(Zi​)+Wi​, where fff is an unknown function and W1,…,WnW_1,\dots,W_nW1​,…,Wn​ are independent N(0,σ2)\mathcal N(0,\sigma^2)N(0,σ2) with σ>0\sigma>0σ>0. Write y=(Yi)y=(Y_i)y=(Yi​), f=(f(Zi))\boldsymbol f=(f(Z_i))f=(f(Zi​)) and w=(Wi)w=(W_i)w=(Wi​), so y=f+wy=\boldsymbol f+wy=f+w.

The empirical norm of ggg is ∥g∥n=(1n∑ig(Zi)2)1/2\|g\|_n=(\tfrac1n\sum_i g(Z_i)^2)^{1/2}∥g∥n​=(n1​∑i​g(Zi​)2)1/2. Every column has ∥fj∥n≠0\|f_j\|_n\neq0∥fj​∥n​=0, and fmax⁡=max⁡j∥fj∥nf_{\max}=\max_j\|f_j\|_nfmax​=maxj​∥fj​∥n​. For β∈RM\beta\in\mathbb R^Mβ∈RM, fβ=∑jβjfjf_\beta=\sum_j\beta_jf_jfβ​=∑j​βj​fj​ has value vector XβX\betaXβ. The support is J(β)={j:βj≠0}J(\beta)=\{j:\beta_j\ne0\}J(β)={j:βj​=0} and the sparsity is M(β)=∣J(β)∣\mathcal M(\beta)=|J(\beta)|M(β)=∣J(β)∣. For J⊆{1,…,M}J\subseteq\{1,\dots,M\}J⊆{1,…,M}, δJ\delta_JδJ​ agrees with δ\deltaδ on JJJ and vanishes elsewhere.

Fix r>0r>0r>0. The Lasso β^L\hat\beta_Lβ^​L​ is any minimiser of

1n∑i=1n(Yi−fβ(Zi))2+2r∑j=1M∥fj∥n∣βj∣.\frac1n\sum_{i=1}^n\big(Y_i-f_\beta(Z_i)\big)^2+2r\sum_{j=1}^M\|f_j\|_n|\beta_j| .n1​i=1∑n​(Yi​−fβ​(Zi​))2+2rj=1∑M​∥fj​∥n​∣βj​∣.

With D=diag(∥f1∥n2,…,∥fM∥n2)D=\mathrm{diag}(\|f_1\|_n^2,\dots,\|f_M\|_n^2)D=diag(∥f1​∥n2​,…,∥fM​∥n2​), the Dantzig constraint is ∣1nD−1/2X⊤(y−Xβ)∣∞≤r|\tfrac1nD^{-1/2}X^\top(y-X\beta)|_\infty\le r∣n1​D−1/2X⊤(y−Xβ)∣∞​≤r. The Dantzig selector β^D\hat\beta_Dβ^​D​ is any vector of smallest ∣β∣1=∑j∣βj∣|\beta|_1=\sum_j|\beta_j|∣β∣1​=∑j​∣βj​∣ that satisfies it. The estimators are f^L=fβ^L\hat f_L=f_{\hat\beta_L}f^​L​=fβ^​L​​ and f^D=fβ^D\hat f_D=f_{\hat\beta_D}f^​D​=fβ^​D​​.

Assumption RE(s,c0)(s,c_0)(s,c0​) with 1≤s≤M1\le s\le M1≤s≤M, c0>0c_0>0c0​>0 asks that

κ(s,c0)=min⁡∣J0∣≤s min⁡δ≠0, ∣δJ0c∣1≤c0∣δJ0∣1 ∣Xδ∣2n ∣δJ0∣2>0.\kappa(s,c_0)=\min_{|J_0|\le s}\ \min_{\delta\ne0,\ |\delta_{J_0^c}|_1\le c_0|\delta_{J_0}|_1}\ \frac{|X\delta|_2}{\sqrt n\,|\delta_{J_0}|_2}>0 .κ(s,c0​)=∣J0​∣≤smin​ δ=0, ∣δJ0c​​∣1​≤c0​∣δJ0​​∣1​min​ n​∣δJ0​​∣2​∣Xδ∣2​​>0.

Throughout, r=Aσlog⁡M/nr=A\sigma\sqrt{\log M/n}r=AσlogM/n​, where log⁡\loglog is the natural logarithm.

Formalization targets

Goal: Theorem 5.1

Assume RE(s,1)(s,1)(s,1) with 1≤s≤M1\le s\le M1≤s≤M, and let A>22A>2\sqrt2A>22​. With probability at least 1−M1−A2/81-M^{1-A^2/8}1−M1−A2/8, every Lasso solution with M(β^L)≤s\mathcal M(\hat\beta_L)\le sM(β^​L​)≤s and every Dantzig selector satisfy

∣ ∥f^D−f∥n2−∥f^L−f∥n2 ∣≤16A2 M(β^L)σ2n fmax⁡2κ2(s,1) log⁡M.\Big|\,\|\hat f_D-f\|_n^2-\|\hat f_L-f\|_n^2\,\Big|\le16A^2\,\frac{\mathcal M(\hat\beta_L)\sigma^2}{n}\,\frac{f_{\max}^2}{\kappa^2(s,1)}\,\log M .​∥f^​D​−f∥n2​−∥f^​L​−f∥n2​​≤16A2nM(β^​L​)σ2​κ2(s,1)fmax2​​logM.

Milestones

The proof uses one probabilistic event and two one-sided deterministic inequalities.

  1. The Lasso satisfies the Dantzig constraint (2.3).
  2. The noise event A=⋂j{2∣1n∑iXijWi∣≤r∥fj∥n}\mathcal A=\bigcap_j\{2|\tfrac1n\sum_iX_{ij}W_i|\le r\|f_j\|_n\}A=⋂j​{2∣n1​∑i​Xij​Wi​∣≤r∥fj​∥n​} has P(Ac)≤M1−A2/8\mathbb P(\mathcal A^c)\le M^{1-A^2/8}P(Ac)≤M1−A2/8 (B.4).
  3. On A\mathcal AA, ∣1nX⊤(f−Xβ^L)∣∞≤3rfmax⁡/2|\tfrac1nX^\top(\boldsymbol f-X\hat\beta_L)|_\infty\le 3rf_{\max}/2∣n1​X⊤(f−Xβ^​L​)∣∞​≤3rfmax​/2 (Lemma B.1, (B.2)).
  4. The Dantzig error lies in the cone ∣δJ0c∣1≤∣δJ0∣1|\delta_{J_0^c}|_1\le|\delta_{J_0}|_1∣δJ0c​​∣1​≤∣δJ0​​∣1​ (Lemma B.3, (B.9)).
  5. On the larger event B⊇A\mathcal B\supseteq\mathcal AB⊇A, ∣1nX⊤(f−Xβ^D)∣∞≤2rfmax⁡|\tfrac1nX^\top(\boldsymbol f-X\hat\beta_D)|_\infty\le 2rf_{\max}∣n1​X⊤(f−Xβ^​D​)∣∞​≤2rfmax​ (Lemma B.3, (B.10)).
  6. ∥f^D−f∥n2≤∥f^L−f∥n2+16fmax⁡2r2M(β^L)/κ2\|\hat f_D-f\|_n^2\le\|\hat f_L-f\|_n^2+16f_{\max}^2r^2\mathcal M(\hat\beta_L)/\kappa^2∥f^​D​−f∥n2​≤∥f^​L​−f∥n2​+16fmax2​r2M(β^​L​)/κ2 on B\mathcal BB (B.15).
  7. ∥f^L−f∥n2≤∥f^D−f∥n2+9fmax⁡2r2M(β^L)/κ2\|\hat f_L-f\|_n^2\le\|\hat f_D-f\|_n^2+9f_{\max}^2r^2\mathcal M(\hat\beta_L)/\kappa^2∥f^​L​−f∥n2​≤∥f^​D​−f∥n2​+9fmax2​r2M(β^​L​)/κ2 on A\mathcal AA (B.17).

Further result: Theorem 5.2

Assume ∥fj∥n=1\|f_j\|_n=1∥fj​∥n​=1 for all jjj and RE(s,5)(s,5)(s,5). With probability at least 1−M1−A2/81-M^{1-A^2/8}1−M1−A2/8, whenever M(β^D)≤s\mathcal M(\hat\beta_D)\le sM(β^​D​)≤s,

∥f^L−f∥n2≤10∥f^D−f∥n2+81A2 M(β^D)σ2n log⁡Mκ2(s,5).\|\hat f_L-f\|_n^2\le10\|\hat f_D-f\|_n^2+81A^2\,\frac{\mathcal M(\hat\beta_D)\sigma^2}{n}\,\frac{\log M}{\kappa^2(s,5)} .∥f^​L​−f∥n2​≤10∥f^​D​−f∥n2​+81A2nM(β^​D​)σ2​κ2(s,5)logM​.

Significance

The result. Theorem 5.1 bounds the gap between the two prediction losses by the rate M(β^L)σ2log⁡M/n\mathcal M(\hat\beta_L)\sigma^2\log M/nM(β^​L​)σ2logM/n of a sparse regression with M(β^L)\mathcal M(\hat\beta_L)M(β^​L​) parameters. The bound carries a factor fmax⁡2/κ2(s,1)f^2_{\max}/\kappa^2(s,1)fmax2​/κ2(s,1) that measures how ill-conditioned the Gram matrix is on sparse vectors. A prediction bound for one estimator therefore transfers to the other at this cost. The paper uses this transfer in Proposition 6.3, which combines Theorem 5.1 with the Lasso oracle inequality of Section 6 to derive an oracle inequality for the Dantzig selector. The theorem requires no assumption relating fff to the dictionary.

Formalizing it. The result has been proved since 2009, and this mission formalizes that proof. None of the objects involved exists on Prove2Me yet: the weighted Lasso, the Dantzig selector and the Gaussian noise events. The Wainwright series on the platform defines a differently normalised Lasso with an unweighted penalty, a single fixed support and a different restricted eigenvalue condition, so it cannot be reused here. A machine-checked proof would also confirm the paper's constants, 16A216A^216A2 and the thresholds 222\sqrt222​ and M1−A2/8M^{1-A^2/8}M1−A2/8, which appear in all later analyses.

Difficulty

Each estimator is defined only implicitly, as the solution of an optimisation problem, and neither need be unique. Comparing their losses directly gives ±2nδ⊤X⊤(f−Xβ^)\pm\tfrac2n\delta^\top X^\top(\boldsymbol f-X\hat\beta)±n2​δ⊤X⊤(f−Xβ^​) plus 1n∣Xδ∣22\tfrac1n|X\delta|_2^2n1​∣Xδ∣22​ with δ=β^L−β^D\delta=\hat\beta_L-\hat\beta_Dδ=β^​L​−β^​D​. A crude bound on the cross term, ∣δ∣1⋅∣X⊤(⋅)∣∞|\delta|_1\cdot|X^\top(\cdot)|_\infty∣δ∣1​⋅∣X⊤(⋅)∣∞​, yields an error proportional to ∣δ∣1|\delta|_1∣δ∣1​. This does not produce the sparse rate unless ∣δ∣1|\delta|_1∣δ∣1​ is controlled by ∣Xδ∣2|X\delta|_2∣Xδ∣2​. That control needs δ\deltaδ to lie in the restricted eigenvalue cone at the support of the random, data-dependent vector β^L\hat\beta_Lβ^​L​. The restricted eigenvalue condition must therefore hold uniformly over supports of size at most sss; a condition for one fixed support does not suffice. The probabilistic part is a union bound over MMM Gaussian coordinates, and it must be arranged so that a single event serves every minimiser of both programs.

Formalization scope

The dictionary and the design points enter every statement only through XXX and f\boldsymbol ff, so the Lean statements take X : Matrix (Fin n) (Fin M) ℝ and f : Fin n → ℝ directly, and fff is arbitrary. The noise is a family W : Fin n → Ω → ℝ of measurable, mutually independent random variables with law gaussianReal 0 σ², and y=f+W(ω)y=f+W(\omega)y=f+W(ω). The Lasso and the Dantzig selector are predicates (IsLasso, IsDantzig), and every theorem is stated for every solution. The Dantzig constraint is written coordinatewise as ∣1n∑iXij(yi−(Xβ)i)∣≤r∥fj∥n|\tfrac1n\sum_iX_{ij}(y_i-(X\beta)_i)|\le r\|f_j\|_n∣n1​∑i​Xij​(yi​−(Xβ)i​)∣≤r∥fj​∥n​. The Lasso penalty and the Dantzig constraint are weighted by ∥fj∥n\|f_j\|_n∥fj​∥n​, and the Dantzig objective ∣β∣1|\beta|_1∣β∣1​ is unweighted, exactly as in the paper. Theorem 5.1 does not normalise the columns.

RE(s,c0)(s,c_0)(s,c0​) is stated through a witness: a real κ>0\kappa>0κ>0 with κn∣δJ0∣2≤∣Xδ∣2\kappa\sqrt n|\delta_{J_0}|_2\le|X\delta|_2κn​∣δJ0​​∣2​≤∣Xδ∣2​ on the cone, for all ∣J0∣≤s|J_0|\le s∣J0​∣≤s. The paper's κ(s,c0)\kappa(s,c_0)κ(s,c0​) is attained, so it is the largest witness. Every bound decreases in κ\kappaκ, so this reading is equivalent to the paper's and avoids a real infimum over an empty set. "With probability at least ppp" becomes the existence of a measurable event EEE with P(E)≥p\mathbb P(E)\ge pP(E)≥p on which the conclusion holds for every Lasso solution and every Dantzig selector. The condition M(β^L)≤s\mathcal M(\hat\beta_L)\le sM(β^​L​)≤s is imposed inside the event, per realisation. The milestones (B.2), (B.10), (B.15) and (B.17) are stated deterministically, on the noise events A\mathcal AA and B\mathcal BB as predicates on the noise vector; this is how the proof uses them. (B.4) is stated for every A>0A>0A>0, which is stronger than the paper's A>22A>2\sqrt2A>22​ and still true.

The goal cannot be made vacuous. For A>22A>2\sqrt2A>22​ the probability bound 1−M1−A2/81-M^{1-A^2/8}1−M1−A2/8 is positive. Lasso solutions exist because r>0r>0r>0 and every ∥fj∥n>0\|f_j\|_n>0∥fj​∥n​>0, and Dantzig selectors exist because the Lasso is feasible. RE(s,1)(s,1)(s,1) with κ=1\kappa=1κ=1 holds for X=n IX=\sqrt n\,IX=n​I.

A complete development needs:

  • subgradient optimality for the weighted Lasso;
  • a Gaussian tail bound P(∣η∣≥t)≤e−t2/2\mathbb P(|\eta|\ge t)\le e^{-t^2/2}P(∣η∣≥t)≤e−t2/2 together with the law of a weighted sum of independent Gaussians;
  • Cauchy–Schwarz on supports;
  • the quadratic bound bx−x2≤b2/4bx-x^2\le b^2/4bx−x2≤b2/4.

The noise-event lemmas and the Lasso optimality condition can be reused by the companion missions on this paper. Proofs of any milestone are welcome, including proofs that route (B.4) through Mathlib's sub-Gaussian API.

Selected references

  • P. J. Bickel, Y. Ritov, A. B. Tsybakov, Simultaneous analysis of Lasso and Dantzig selector, Ann. Statist. 37(4), 1705–1732, 2009. arXiv:0801.1095v3: https://arxiv.org/abs/0801.1095 ; doi:10.1214/08-AOS620
  • E. Candès, T. Tao, The Dantzig selector: statistical estimation when p is much larger than n, Ann. Statist. 35(6), 2313–2351, 2007. https://doi.org/10.1214/009053606000001523
  • R. Tibshirani, Regression shrinkage and selection via the lasso, J. R. Stat. Soc. B 58(1), 267–288, 1996. https://doi.org/10.1111/j.2517-6161.1996.tb02080.x
  • F. Bunea, A. B. Tsybakov, M. H. Wegkamp, Sparsity oracle inequalities for the Lasso, Electron. J. Stat. 1, 169–194, 2007. https://doi.org/10.1214/07-EJS008
9 thms4 active usersReviewed
🏆Completed
Bandit AlgorithmsOperations ResearchProbability·Captain: mikedeng1

Stochastic Linear Optimization under Bandit Feedback 1: The Regret Bound of ConfidenceBallResearch Paper

Motivation

In stochastic linear optimization under bandit feedback a learner repeatedly chooses a decision xtx_txt​ from a fixed set D⊆RnD\subseteq\mathbb R^nD⊆Rn and observes only the noisy cost of that one decision, whose expectation is a fixed but unknown linear function μ⊤xt\mu^\top x_tμ⊤xt​. The model covers online routing, ad and product selection with feature vectors, and any sequential decision problem whose decision set is too large to enumerate but whose expected cost is linear in a known representation. The multi-armed bandit is the special case where DDD is the set of standard basis vectors.

Dani, Hayes and Kakade (COLT 2008) analysed the algorithm ConfidenceBall₂, a generalization of Auer's LinRel (JMLR 2002), and proved that its regret is O∗(nT)O^*(n\sqrt T)O∗(nT​) with high probability for an arbitrary compact decision set, and that this is optimal up to logarithmic factors. Their confidence-ellipsoid construction became the template for later linear bandit algorithms (OFUL, LinUCB), and the ellipsoid-plus-potential analysis is the standard argument of the field (Lattimore and Szepesvári, Bandit Algorithms, Chapters 19–20).

Timeline: Auer (2002) introduced LinRel for finite decision sets; Dani, Hayes and Kakade (2008) extended it to arbitrary compact sets with the O∗(nT)O^*(n\sqrt T)O∗(nT​) bound and a matching Ω(nT)\Omega(n\sqrt T)Ω(nT​) lower bound; Rusmevichientong and Tsitsiklis (Math. Oper. Res. 2010) studied linearly parameterized bandits with dimension-dependent regret bounds; Abbasi-Yadkori, Pál and Szepesvári (NeurIPS 2011) sharpened the confidence ellipsoids with self-normalized martingale bounds.

Setting

Fix n≥1n\ge1n≥1 and a compact decision set D⊆RnD\subseteq\mathbb R^nD⊆Rn whose standard basis e1,…,ene_1,\dots,e_ne1​,…,en​ is a barycentric spanner: each ei∈De_i\in Dei​∈D and every x∈Dx\in Dx∈D lies in the cube [−1,1]n[-1,1]^n[−1,1]n. The paper's Section 5 adopts these coordinates without loss of generality. An unknown vector μ∈Rn\mu\in\mathbb R^nμ∈Rn satisfies ∣μ⊤x∣≤1|\mu^\top x|\le1∣μ⊤x∣≤1 for x∈Dx\in Dx∈D, and x∗∈Dx^*\in Dx∗∈D minimises μ⊤x\mu^\top xμ⊤x.

On round t=1,2,…t=1,2,\dotst=1,2,… the learner plays xt∈Dx_t\in Dxt​∈D, measurable with respect to the information Ft\mathcal F_tFt​ before round ttt, and observes a loss ℓt∈[−1,1]\ell_t\in[-1,1]ℓt​∈[−1,1] with E[ℓt∣Ft]=μ⊤xt\mathbb E[\ell_t\mid\mathcal F_t]=\mu^\top x_tE[ℓt​∣Ft​]=μ⊤xt​. The regret after TTT rounds is

RT=∑t=1T(μ⊤xt−μ⊤x∗).R_T=\sum_{t=1}^T\big(\mu^\top x_t-\mu^\top x^*\big).RT​=t=1∑T​(μ⊤xt​−μ⊤x∗).

ConfidenceBall₂(D,δ)(D,\delta)(D,δ) maintains the design matrix At=I+∑τ<txτxτ⊤A_t=I+\sum_{\tau<t}x_\tau x_\tau^\topAt​=I+∑τ<t​xτ​xτ⊤​, the least-squares estimate μ^t=At−1∑τ<tℓτxτ\hat\mu_t=A_t^{-1}\sum_{\tau<t}\ell_\tau x_\tauμ^​t​=At−1​∑τ<t​ℓτ​xτ​, the radius

βt=max⁡(128 nln⁡tln⁡(t2/δ), (83ln⁡(t2/δ))2),\beta_t=\max\Big(128\,n\ln t\ln(t^2/\delta),\ \big(\tfrac83\ln(t^2/\delta)\big)^2\Big),βt​=max(128nlntln(t2/δ), (38​ln(t2/δ))2),

and the confidence ellipsoid Bt2={ν:(ν−μ^t)⊤At(ν−μ^t)≤βt}B^2_t=\{\nu:(\nu-\hat\mu_t)^\top A_t(\nu-\hat\mu_t)\le\beta_t\}Bt2​={ν:(ν−μ^​t​)⊤At​(ν−μ^​t​)≤βt​}. It plays the optimistic decision xt∈argmin⁡x∈Dmin⁡ν∈Bt2ν⊤xx_t\in\operatorname{argmin}_{x\in D}\min_{\nu\in B^2_t}\nu^\top xxt​∈argminx∈D​minν∈Bt2​​ν⊤x. The analysis uses the width wt=xt⊤At−1xtw_t=\sqrt{x_t^\top A_t^{-1}x_t}wt​=xt⊤​At−1​xt​​, the error Zt=(μ^t−μ)⊤At(μ^t−μ)Z_t=(\hat\mu_t-\mu)^\top A_t(\hat\mu_t-\mu)Zt​=(μ^​t​−μ)⊤At​(μ^​t​−μ), and the noise ηt=ℓt−μ⊤xt\eta_t=\ell_t-\mu^\top x_tηt​=ℓt​−μ⊤xt​.

Formalization targets

Goal: Theorem 2, ConfidenceBall₂ bullet (corrected)

For 0<δ<10<\delta<10<δ<1 with n≤β1n\le\beta_1n≤β1​ and noise ∣ηt∣≤1|\eta_t|\le1∣ηt​∣≤1,

Pr⁡(∀T≥1, RT≤8nTβTln⁡(T+1))≥1−δ.\Pr\Big(\forall T\ge1,\ R_T\le\sqrt{8nT\beta_T\ln(T+1)}\Big)\ge1-\delta.Pr(∀T≥1, RT​≤8nTβT​ln(T+1)​)≥1−δ.

A single event covers every horizon, so the bound is anytime.

Milestones

  • Lemma 8. If μ∈Bt2\mu\in B^2_tμ∈Bt2​ then rt≤2min⁡(βtwt,1)r_t\le2\min(\sqrt{\beta_t}w_t,1)rt​≤2min(βt​​wt​,1).
  • Lemma 10. det⁡At+1=∏τ=1t(1+wτ2)\det A_{t+1}=\prod_{\tau=1}^t(1+w_\tau^2)detAt+1​=∏τ=1t​(1+wτ2​).
  • Lemma 9 (corrected). ∑τ=1tmin⁡(wτ2,1)≤2nln⁡(t+1)\sum_{\tau=1}^t\min(w_\tau^2,1)\le2n\ln(t+1)∑τ=1t​min(wτ2​,1)≤2nln(t+1).
  • Theorem 6 (corrected). If μ∈Bt2\mu\in B^2_tμ∈Bt2​ for all t≤Tt\le Tt≤T, then ∑t≤Trt2≤8nβTln⁡(T+1)\sum_{t\le T}r_t^2\le8n\beta_T\ln(T+1)∑t≤T​rt2​≤8nβT​ln(T+1).
  • Theorem 4 (Freedman). Pr⁡(∑Xi≥a, V≤v)≤exp⁡(−a2/(2v+2ab/3))\Pr(\sum X_i\ge a,\ V\le v)\le\exp(-a^2/(2v+2ab/3))Pr(∑Xi​≥a, V≤v)≤exp(−a2/(2v+2ab/3)) for martingale differences bounded above by bbb.
  • Lemma 12. Zt≤n+2∑τ<tητxτ⊤(μ^τ−μ)1+wτ2+∑τ<tητ2wτ21+wτ2Z_t\le n+2\sum_{\tau<t}\eta_\tau\frac{x_\tau^\top(\hat\mu_\tau-\mu)}{1+w_\tau^2}+\sum_{\tau<t}\eta_\tau^2\frac{w_\tau^2}{1+w_\tau^2}Zt​≤n+2∑τ<t​ητ​1+wτ2​xτ⊤​(μ^​τ​−μ)​+∑τ<t​ητ2​1+wτ2​wτ2​​.
  • Lemma 14. Pr⁡(∀t, ∑τ<tMτ≤βt/2)≥1−δ\Pr(\forall t,\ \sum_{\tau<t}M_\tau\le\beta_t/2)\ge1-\deltaPr(∀t, ∑τ<t​Mτ​≤βt​/2)≥1−δ.
  • Theorem 5 (Confidence). Pr⁡(∀t, μ∈Bt2)≥1−δ\Pr(\forall t,\ \mu\in B^2_t)\ge1-\deltaPr(∀t, μ∈Bt2​)≥1−δ.

Significance

The result gives a regret bound for linear bandits over an arbitrary compact decision set that depends on the dimension nnn rather than on ∣D∣|D|∣D∣, holds uniformly over horizons, and requires no gap between the best and second-best decision. With the paper's lower bound it shows that the price of bandit feedback, compared with full information, is a factor Θ∗(n)\Theta^*(\sqrt n)Θ∗(n​). The two components, a confidence theorem for a least-squares ellipsoid under martingale noise and a deterministic potential argument on log⁡det⁡At\log\det A_tlogdetAt​, are reused in the analysis of most optimistic linear and generalized-linear bandit algorithms.

The theorem has a published proof but, to our knowledge, no machine-checked one. The platform already has the elliptical potential lemma (BanditAlgorithm.elliptical_potential_lemma, Lattimore–Szepesvári Lemma 19.4), the matrix determinant lemma and the Woodbury identity, which cover the linear-algebra layer; the LinUCB regret theorem there (BanditAlgorithm.linear_bandit_linucb_regret_bound) is pathwise given confidence, for a different algorithm, so the probabilistic half is new. Formalization also settles the printed constants, three of which need correction (below).

Difficulty

The deterministic half is linear algebra. The difficulty is the confidence theorem. Hoeffding–Azuma applied to ∑τMτ\sum_\tau M_\tau∑τ​Mτ​ would need a deterministic step bound, and the natural one gives only a T3/4T^{3/4}T3/4 regret. The step sizes of MtM_tMt​ are bounded in terms of the random widths wtw_twt​, so the argument must control the conditional variances pathwise and apply Freedman's inequality, whose event {V≤v}\{V\le v\}{V≤v} is random. The escape indicator EtE_tEt​, which switches the martingale off after the first failure of confidence, is what makes the variance bound hold on every path, and the induction that turns Lemma 14 into Theorem 5 must be carried out on a single event for all ttt simultaneously. Freedman's inequality itself is not in Mathlib.

Formalization scope

Vectors are Fin n → ℝ, matrices Matrix (Fin n) (Fin n) ℝ, rounds are indexed t=1,2,…t=1,2,\dotst=1,2,… in ℕ. The spanner is the standard basis, as in Section 5 of the paper (the algorithm is equivariant under the linear change of coordinates). The probability model is a probability space with a general filtration (Ft)(\mathcal F_t)(Ft​); xtx_txt​ is Ft\mathcal F_tFt​-measurable and ℓt\ell_tℓt​ is Ft+1\mathcal F_{t+1}Ft+1​-measurable. The argmin is encoded as a joint minimiser over D×Bt2D\times B^2_tD×Bt2​, which admits every tie-break and is required on every outcome; measurability of xtx_txt​ is a hypothesis, not derived from the selection. The optimum x∗x^*x∗ is a hypothesis (x∗∈Dx^*\in Dx∗∈D, minimising), not an sInf.

Corrections of the printed statements, each labelled in the item's Formalization Note:

  1. ln⁡(T+1)\ln(T+1)ln(T+1) for ln⁡T\ln TlnT in Lemma 9, Theorem 6 and Theorem 2. The printed bounds are false at T=1T=1T=1 (with n=1n=1n=1, D=[−1,1]D=[-1,1]D=[−1,1], μ>0\mu>0μ>0, the tie-break x1=1x_1=1x1​=1 gives R1=2μ>0R_1=2\mu>0R1​=2μ>0 against a bound of 000); the proof of Lemma 9 gives 2ln⁡det⁡At+1≤2nln⁡(t+1)2\ln\det A_{t+1}\le2n\ln(t+1)2lndetAt+1​≤2nln(t+1).
  2. n≤β1=(83ln⁡(1/δ))2n\le\beta_1=(\tfrac83\ln(1/\delta))^2n≤β1​=(38​ln(1/δ))2 is added to Theorems 5 and 2: the proof of Theorem 5 claims Z1≤n<β1Z_1\le n<\beta_1Z1​≤n<β1​, which fails for δ\deltaδ near 111. Theorem 6 takes the proof's "1<β11<\beta_11<β1​" as the hypothesis β1≥1\beta_1\ge1β1​≥1.
  3. ∣ℓt−μ⊤xt∣≤1|\ell_t-\mu^\top x_t|\le1∣ℓt​−μ⊤xt​∣≤1 is added to Lemma 14, Theorems 5 and 2: Section 5.2 uses ∣ηt∣≤1|\eta_t|\le1∣ηt​∣≤1, while the model gives only ∣ηt∣≤2|\eta_t|\le2∣ηt​∣≤2. It holds when costs lie in [0,1][0,1][0,1].
  4. Theorem 5's "δ>0\delta>0δ>0" is stated with 0<δ<10<\delta<10<δ<1; Lemma 10's index typo (wtw_twt​ for wτw_\tauwτ​) and Theorem 4's ∑i=1n\sum_{i=1}^n∑i=1n​ (for TTT) are corrected.

A regret bound for an arbitrary decision sequence under the assumption μ∈Bt2\mu\in B^2_tμ∈Bt2​ for all ttt is Theorem 6, not the goal; the goal carries the ConfidenceBall₂ selection rule, the conditional-mean and measurability hypotheses, and δ\deltaδ as the algorithm's own parameter. The hypotheses are jointly satisfiable, for example by a finite DDD with a fixed tie-break and i.i.d. costs in [0,1][0,1][0,1].

Needed infrastructure: Freedman's inequality for a filtration (reusable across all of bandit theory), the potential lemma (available), and measurability of the algorithm's statistics. Contributions of alternative proofs of Theorem 5, for example via self-normalized bounds, are welcome.

Selected references

  • V. Dani, T. P. Hayes, S. M. Kakade, Stochastic Linear Optimization under Bandit Feedback, COLT 2008. http://colt2008.cs.helsinki.fi/papers/80-Dani.pdf
  • P. Auer, Using Confidence Bounds for Exploitation-Exploration Trade-offs, JMLR 3, 2002. https://www.jmlr.org/papers/v3/auer02a.html
  • D. A. Freedman, On Tail Probabilities for Martingales, Annals of Probability 3(1), 1975. https://doi.org/10.1214/aop/1176996452
  • B. Awerbuch, R. Kleinberg, Adaptive Routing with End-to-End Feedback, STOC 2004. https://doi.org/10.1145/1007352.1007367
  • P. Rusmevichientong, J. N. Tsitsiklis, Linearly Parameterized Bandits, Mathematics of Operations Research 35(2), 2010. https://doi.org/10.1287/moor.1100.0446
  • Y. Abbasi-Yadkori, D. Pál, Cs. Szepesvári, Improved Algorithms for Linear Stochastic Bandits, NeurIPS 2011. https://arxiv.org/abs/1102.2670
  • T. Lattimore, Cs. Szepesvári, Bandit Algorithms, Cambridge University Press, 2020. https://doi.org/10.1017/9781108571401
12 thms4 active usersReviewed
Operations ResearchOptimizationStatistics·Captain: mikedeng1

Generalization Bounds in the Predict-then-Optimize Framework I: Natarajan-Dimension Generalization Bound for Polyhedral Feasible RegionsResearch Paper

Motivation

In many operational problems (shortest paths, assignment, planning) the decision solves a linear program whose cost vector is unknown at decision time and is predicted from contextual features. The predict-then-optimize pipeline fits a model fff that maps a feature vector xxx to a predicted cost vector c^=f(x)\hat c=f(x)c^=f(x), and then acts on the decision that is optimal for c^\hat cc^. Elmachtoub and Grigas (Smart "Predict, then Optimize", Management Science 2022) proposed to measure the quality of such a model not by the prediction error but by the SPO loss (Smart Predict-then-Optimize loss): the excess true cost of the decision induced by the prediction over the best decision in hindsight.

The question is whether a small SPO loss on the training sample implies a small SPO loss on new data, uniformly over the models a training procedure may return. The SPO loss is neither convex nor continuous in the prediction, so the standard Lipschitz-based bounds for regression do not apply. El Balghiti, Elmachtoub, Grigas and Tewari (arXiv:1905.11488v3, Mathematics of Operations Research 2023; a preliminary version appeared at NeurIPS 2019) give the first such generalization bounds. This mission formalizes their first one, for polyhedral feasible regions, which treats every vertex of the feasible region as a class label of a multiclass classification problem. The bound has since been used by later work, e.g. Hu, Kallus and Mao (Fast rates for contextual linear optimization, Management Science 2022), who sharpen it by a log⁡n\sqrt{\log n}logn​ factor (as noted on p. 4 of the paper).

Setting

A feasible region S⊆RdS\subseteq\mathbb R^dS⊆Rd is nonempty, compact and convex. For a cost vector c∈Rdc\in\mathbb R^dc∈Rd the nominal problem is min⁡w∈Sc⊤w\min_{w\in S}c^\top wminw∈S​c⊤w. An optimization oracle is a fixed map w∗:Rd→Sw^*:\mathbb R^d\to Sw∗:Rd→S with w∗(c)∈arg⁡min⁡w∈Sc⊤ww^*(c)\in\arg\min_{w\in S}c^\top ww∗(c)∈argminw∈S​c⊤w for every ccc; nothing is assumed about how it breaks ties. The SPO loss of a prediction c^\hat cc^ when the realized cost is ccc is

ℓSPO(c^,c)=c⊤w∗(c^)−c⊤w∗(c) ≥0.\ell_{\rm SPO}(\hat c,c)=c^\top w^*(\hat c)-c^\top w^*(c)\ \ge 0 .ℓSPO​(c^,c)=c⊤w∗(c^)−c⊤w∗(c) ≥0.

The linear optimization gap is ωS(c)=max⁡w∈Sc⊤w−min⁡w∈Sc⊤w\omega_S(c)=\max_{w\in S}c^\top w-\min_{w\in S}c^\top wωS​(c)=maxw∈S​c⊤w−minw∈S​c⊤w, and for a set C\mathcal CC of cost vectors ωS(C)=sup⁡c∈CωS(c)\omega_S(\mathcal C)=\sup_{c\in\mathcal C}\omega_S(c)ωS​(C)=supc∈C​ωS​(c); the SPO loss of a cost in C\mathcal CC lies in [0,ωS(C)][0,\omega_S(\mathcal C)][0,ωS​(C)].

Data are pairs (x,c)(x,c)(x,c) drawn from a distribution D\mathcal DD on X×C\mathcal X\times\mathcal CX×C. A hypothesis class H\mathcal HH is a family of predictors f:X→Rdf:\mathcal X\to\mathbb R^df:X→Rd. The SPO risk is RSPO(f)=ED[ℓSPO(f(x),c)]R_{\rm SPO}(f)=\mathbb E_{\mathcal D}[\ell_{\rm SPO}(f(x),c)]RSPO​(f)=ED​[ℓSPO​(f(x),c)], and on an i.i.d. sample (x1,c1),…,(xn,cn)(x_1,c_1),\dots,(x_n,c_n)(x1​,c1​),…,(xn​,cn​) the empirical SPO risk is R^SPO(f)=1n∑iℓSPO(f(xi),ci)\hat R_{\rm SPO}(f)=\frac1n\sum_i\ell_{\rm SPO}(f(x_i),c_i)R^SPO​(f)=n1​∑i​ℓSPO​(f(xi​),ci​). The empirical Rademacher complexity with respect to the SPO loss is

R^SPOn(H)=Eσ[sup⁡f∈H1n∑i=1nσi ℓSPO(f(xi),ci)]\hat{\mathfrak R}^n_{\rm SPO}(\mathcal H)=\mathbb E_\sigma\Big[\sup_{f\in\mathcal H}\frac1n\sum_{i=1}^n\sigma_i\,\ell_{\rm SPO}(f(x_i),c_i)\Big]R^SPOn​(H)=Eσ​[f∈Hsup​n1​i=1∑n​σi​ℓSPO​(f(xi​),ci​)]

with independent uniform signs σi∈{±1}\sigma_i\in\{\pm1\}σi​∈{±1}, and RSPOn(H)\mathfrak R^n_{\rm SPO}(\mathcal H)RSPOn​(H) is its expectation over the sample.

The decisions induced by H\mathcal HH form the class w∗(H)={x↦w∗(f(x)):f∈H}w^*(\mathcal H)=\{x\mapsto w^*(f(x)):f\in\mathcal H\}w∗(H)={x↦w∗(f(x)):f∈H}. A class F\mathcal FF N-shatters a finite set X⊆X\mathbb X\subseteq\mathcal XX⊆X if there are two labelings g1,g2g_1,g_2g1​,g2​ that differ at every point of X\mathbb XX such that every mixture of them (follow g1g_1g1​ on a subset TTT, g2g_2g2​ on the rest) is realized by some member of F\mathcal FF. The Natarajan dimension dN(F)d_N(\mathcal F)dN​(F) is the largest size of an N-shattered set. When SSS is a polyhedron, S\mathfrak SS denotes its finite set of extreme points.

Formalization targets

Goal: Theorem 2, second display (p. 11)

For a polyhedral SSS and every δ>0\delta>0δ>0, with probability at least 1−δ1-\delta1−δ over an i.i.d. sample of size nnn, every f∈Hf\in\mathcal Hf∈H satisfies

RSPO(f)≤R^SPO(f)+2 ωS(C)2dN(w∗(H))log⁡(n∣S∣2)n+ωS(C)log⁡(1/δ)2n.R_{\rm SPO}(f)\le\hat R_{\rm SPO}(f)+2\,\omega_S(\mathcal C)\sqrt{\frac{2d_N(w^*(\mathcal H))\log(n|\mathfrak S|^2)}{n}}+\omega_S(\mathcal C)\sqrt{\frac{\log(1/\delta)}{2n}} .RSPO​(f)≤R^SPO​(f)+2ωS​(C)n2dN​(w∗(H))log(n∣S∣2)​​+ωS​(C)2nlog(1/δ)​​.

Milestones, in attack order

  1. Theorem 1 (p. 9): with probability 1−δ1-\delta1−δ, RSPO(f)≤R^SPO(f)+2RSPOn(H)+ωS(C)log⁡(1/δ)/(2n)R_{\rm SPO}(f)\le\hat R_{\rm SPO}(f)+2\mathfrak R^n_{\rm SPO}(\mathcal H)+\omega_S(\mathcal C)\sqrt{\log(1/\delta)/(2n)}RSPO​(f)≤R^SPO​(f)+2RSPOn​(H)+ωS​(C)log(1/δ)/(2n)​ for all f∈Hf\in\mathcal Hf∈H.
  2. Massart step (Appendix B.1, p. 31): for a fixed sample with costs in C\mathcal CC, R^SPOn(H)≤ωS(C)2log⁡∣F∣X∣/n\hat{\mathfrak R}^n_{\rm SPO}(\mathcal H)\le\omega_S(\mathcal C)\sqrt{2\log|\mathfrak F_{|\mathbb X}|/n}R^SPOn​(H)≤ωS​(C)2log∣F∣X​∣/n​, where F∣X\mathfrak F_{|\mathbb X}F∣X​ is the set of decision vectors (w∗(f(x1)),…,w∗(f(xn)))(w^*(f(x_1)),\dots,w^*(f(x_n)))(w∗(f(x1​)),…,w∗(f(xn​))).
  3. Natarajan lemma (cited on p. 31; proved on the platform as UnderstandingML.natarajan_lemma): a class from an mmm-point set to kkk labels with Natarajan dimension ddd has at most mdk2dm^d k^{2d}mdk2d members.
  4. Empirical bound (Appendix B.1, p. 31): for a fixed sample, R^SPOn(H)≤ωS(C)2dN(w∗(H))log⁡(n∣S∣2)/n\hat{\mathfrak R}^n_{\rm SPO}(\mathcal H)\le\omega_S(\mathcal C)\sqrt{2d_N(w^*(\mathcal H))\log(n|\mathfrak S|^2)/n}R^SPOn​(H)≤ωS​(C)2dN​(w∗(H))log(n∣S∣2)/n​.
  5. Theorem 2, first display (p. 11): the same bound for the expected complexity RSPOn(H)\mathfrak R^n_{\rm SPO}(\mathcal H)RSPOn​(H).

Significance

The bound controls the out-of-sample decision cost of every predictor in the class, not only of an empirical risk minimizer, so it applies to any training procedure (SPO+ surrogate minimization, decision trees, heuristics) that returns a member of H\mathcal HH. Its dependence on the feasible region is only through ωS(C)\omega_S(\mathcal C)ωS​(C) and log⁡∣S∣\log|\mathfrak S|log∣S∣: the number of vertices of a combinatorial polytope is typically exponential in ddd, and enters only logarithmically. For linear predictors x↦Bxx\mapsto Bxx↦Bx the paper's Corollary 2 bounds dN(w∗(Hlin))d_N(w^*(\mathcal H_{\rm lin}))dN​(w∗(Hlin​)) by dpdpdp, giving a rate of order dplog⁡(n∣S∣)/n\sqrt{dp\log(n|\mathfrak S|)/n}dplog(n∣S∣)/n​.

The results are proved in the paper; this mission formalizes them. No statement about predict-then-optimize or the SPO loss is known to have a machine-checked proof. The platform already has the Natarajan lemma (proved) and several Massart-type lemmas for generic classes; this mission connects that multiclass machinery to decision losses, and its Theorem 1 is a reusable Rademacher generalization bound for a loss with range [0,ω][0,\omega][0,ω].

Difficulty

The obvious route through Lipschitz contraction fails: the SPO loss jumps when the prediction crosses a point where the optimum is not unique, so the Rademacher complexity of the composed class cannot be bounded by that of H\mathcal HH times a Lipschitz constant. Any argument through the finitely many vertices of SSS needs the decisions w∗(f(xi))w^*(f(x_i))w∗(f(xi​)) to take finitely many values on a sample, i.e. the oracle to return vertices; for an oracle that returns a non-vertex optimal point under ties, w∗(H)w^*(\mathcal H)w∗(H) may take infinitely many values on a sample. On the probabilistic side, the passage from the empirical to the expected complexity and the McDiarmid concentration step (Theorem 1) require the suprema over an uncountable class to be measurable, which the paper does not discuss.

Formalization scope

Lean works in Rd\mathbb R^dRd = EuclideanSpace ℝ (Fin d); cost vectors and decisions live in the same space and c⊤wc^\top wc⊤w is the inner product. The standing assumptions of §2 are hypotheses of every theorem: SSS nonempty, compact and convex; w∗w^*w∗ an arbitrary oracle (a hypothesis IsOracle S w, never a specific selection); C\mathcal CC nonempty and bounded, with the cost component of D\mathcal DD in C\mathcal CC almost surely (or, for fixed-sample statements, every ci∈Cc_i\in\mathcal Cci​∈C); n≥1n\ge1n≥1. "Polyhedron" means the solution set of finitely many linear inequalities; with compactness it is a polytope, and ∣S∣|\mathfrak S|∣S∣ is the cardinality of Set.extremePoints ℝ S. The expectation over signs is the exact average over the 2n2^n2n sign vectors; RSPOR_{\rm SPO}RSPO​ and RSPOn\mathfrak R^n_{\rm SPO}RSPOn​ are Bochner integrals. "With probability at least 1−δ1-\delta1−δ" is stated as: the product measure of the set of samples on which some f∈Hf\in\mathcal Hf∈H violates the bound is at most δ\deltaδ.

The formalization commits to the following disclosed additions:

  • In the empirical bound, Theorem 2 and its first display, the oracle returns extreme points of SSS. This is the proof's own "w.l.o.g." (p. 31), made explicit because p. 10 allows non-vertex outputs under ties. The hypothesis is needed: on the unit square, an oracle that returns distinct interior points of an edge under ties can have dN(w∗(H))=1d_N(w^*(\mathcal H))=1dN​(w∗(H))=1 and empirical complexity near 12\frac1221​, which exceeds the printed bound for large nnn.
  • The Natarajan dimension is not defined as a number (a supremum in N\mathbb NN would silently be 000 for unboundedly large shattered sets). Statements carry a natural number kkk bounding the size of every N-shattered set, in place of dN(w∗(H))d_N(w^*(\mathcal H))dN​(w∗(H)). This is equivalent when dNd_NdN​ is finite; the printed bound is vacuous otherwise.
  • Theorem 1 and the goal carry three measurability hypotheses: each loss function z↦ℓSPO(f(z1),z2)z\mapsto\ell_{\rm SPO}(f(z_1),z_2)z↦ℓSPO​(f(z1​),z2​) is measurable; the uniform deviation sup⁡f(RSPO(f)−R^SPO(f))\sup_f(R_{\rm SPO}(f)-\hat R_{\rm SPO}(f))supf​(RSPO​(f)−R^SPO​(f)) and, for each sign vector, the signed supremum sup⁡f1n∑iσiℓSPO(f(xi),ci)\sup_f\frac1n\sum_i\sigma_i\ell_{\rm SPO}(f(x_i),c_i)supf​n1​∑i​σi​ℓSPO​(f(xi​),ci​) are almost-everywhere measurable functions of the sample. Without them the integral defining RSPOn\mathfrak R^n_{\rm SPO}RSPOn​ could default to 000.
  • The Massart step assumes F∣X\mathfrak F_{|\mathbb X}F∣X​ finite, the case in which its printed right-hand side is finite.

A formalization that let dNd_NdN​ be an sSup in N\mathbb NN, or chose a specific tie-breaking oracle inside the definitions, would prove a different and in part trivial statement; both are excluded.

Infrastructure needed: McDiarmid's bounded-differences inequality and symmetrization for the product measure; Massart's finite-class lemma (a proved version is on the platform as RademacherMassart.rad_le_massart, with its own normalization); the Natarajan lemma (proved, UnderstandingML.natarajan_lemma, stated with its own but identical notion of N-shattering over finite types); finiteness and nonemptiness of the extreme points of a nonempty polytope. Theorem 1 and the Massart step do not use polyhedrality and are reusable for any bounded decision loss. Contributions of these infrastructure lemmas are welcome.

Selected references

  • O. El Balghiti, A. N. Elmachtoub, P. Grigas, A. Tewari, Generalization Bounds in the Predict-then-Optimize Framework, arXiv:1905.11488v3, 2022; Mathematics of Operations Research, 2023. https://arxiv.org/abs/1905.11488
  • A. N. Elmachtoub, P. Grigas, Smart "Predict, then Optimize", Management Science 68(1), 9–26, 2022. https://arxiv.org/abs/1710.08005
  • P. L. Bartlett, S. Mendelson, Rademacher and Gaussian complexities: risk bounds and structural results, Journal of Machine Learning Research 3, 463–482, 2002. https://www.jmlr.org/papers/v3/bartlett02a.html
  • B. K. Natarajan, On learning sets and functions, Machine Learning 4(1), 67–97, 1989. https://doi.org/10.1007/BF00114804
  • S. Shalev-Shwartz, S. Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press, 2014 (Lemma 29.4). https://doi.org/10.1017/CBO9781107298019
  • M. Mohri, A. Rostamizadeh, A. Talwalkar, Foundations of Machine Learning, 2nd ed., MIT Press, 2018 (Theorem 3.3, Corollary 3.8). https://cs.nyu.edu/~mohri/mlbook/
9 thms4 active usersReviewed
🏆Completed
ProbabilityStatistics·Captain: naimengye

Understanding Machine Learning XXV: PAC-BayesTextbook

Motivation

The MDL and Occam principles of Chapter 7 rank hypotheses by description length and pay for a hypothesis according to its rank. Chapter 31 of Shalev-Shwartz and Ben-David, Understanding Machine Learning: From Theory to Algorithms (doi:10.1017/CBO9781107298019), generalizes this to the PAC-Bayesian approach of McAllester: prior knowledge is a prior distribution PPP over the class, the learner outputs a posterior QQQ, read as the randomized predictor that draws h∼Qh \sim Qh∼Q, and the price of QQQ is its Kullback–Leibler divergence from PPP. The PAC-Bayes theorem (Theorem 31.1) says that with probability 1−δ1 - \delta1−δ, simultaneously for every posterior, the generalization loss exceeds the training loss by at most (D(Q∥P)+ln⁡(m/δ))/(2(m−1))\sqrt{(D(Q\|P) + \ln(m/\delta))/(2(m-1))}(D(Q∥P)+ln(m/δ))/(2(m−1))​. Its proof is a compact and elegant argument: Markov's inequality for an exponential moment, a change of measure from QQQ to PPP by Jensen's inequality, an exchange of expectations that is possible because the prior does not depend on the sample, and a moment bound for the deviation of a single hypothesis. The bound suggests the learning rule of Remark 31.1, minimize LS(Q)L_S(Q)LS​(Q) plus the divergence penalty, which is regularized risk minimization in disguise, and for a finite class with a uniform prior it recovers an Occam-type bound (Exercise 2).

Setting

HHH is a measurable space of hypotheses, ℓ:H×Z→[0,1]\ell : H \times Z \to [0,1]ℓ:H×Z→[0,1] a jointly measurable loss, DDD a distribution over ZZZ, and PPP a prior probability measure on HHH. For a posterior QQQ, ℓ(Q,z)=Eh∼Q[ℓ(h,z)]\ell(Q, z) = \mathbb{E}_{h \sim Q}[\ell(h, z)]ℓ(Q,z)=Eh∼Q​[ℓ(h,z)], LD(Q)=Eh∼Q[LD(h)]L_D(Q) = \mathbb{E}_{h \sim Q}[L_D(h)]LD​(Q)=Eh∼Q​[LD​(h)] and LS(Q)=Eh∼Q[LS(h)]L_S(Q) = \mathbb{E}_{h \sim Q}[L_S(h)]LS​(Q)=Eh∼Q​[LS​(h)], and D(Q∥P)=Eh∼Q[ln⁡(dQ/dP)]D(Q\|P) = \mathbb{E}_{h \sim Q}[\ln(dQ/dP)]D(Q∥P)=Eh∼Q​[ln(dQ/dP)] is the Kullback–Leibler divergence, a real number when Q≪PQ \ll PQ≪P and the log-density is QQQ-integrable.

Formalization targets

Goal: Theorem 31.1

For m≥2m \ge 2m≥2 and δ∈(0,1)\delta \in (0,1)δ∈(0,1), with probability at least 1−δ1 - \delta1−δ over S∼DmS \sim D^mS∼Dm, every probability measure Q≪PQ \ll PQ≪P with finite divergence satisfies

LD(Q)≤LS(Q)+D(Q∥P)+ln⁡(m/δ)2(m−1).L_D(Q) \le L_S(Q) + \sqrt{\frac{D(Q\|P) + \ln(m/\delta)}{2(m-1)}}.LD​(Q)≤LS​(Q)+2(m−1)D(Q∥P)+ln(m/δ)​​.

Milestones

The identity Ez∼D[ℓ(Q,z)]=LD(Q)\mathbb{E}_{z \sim D}[\ell(Q, z)] = L_D(Q)Ez∼D​[ℓ(Q,z)]=LD​(Q) (§31.1); the moment bound ES[e2(m−1)Δ(h)2]≤m\mathbb{E}_S[e^{2(m-1)\Delta(h)^2}] \le mES​[e2(m−1)Δ(h)2]≤m of the proof (p. 417); Exercise 2, the bound for a finite class with the uniform prior.

Significance

PAC-Bayes bounds are among the tightest generalization bounds known in practice, and the reason is visible in Theorem 31.1: the complexity term is not a property of the class but of the posterior actually chosen, measured against a prior, so a learner that stays close to its prior generalizes even in a huge class. The theorem is the ancestor of a large literature (Seeger, Langford, Catoni, Maurer) and of modern nonvacuous bounds for neural networks. Formally it is a pleasant target: the change-of-measure inequality Eh∼Q[f(h)]−D(Q∥P)≤ln⁡Eh∼P[ef(h)]\mathbb{E}_{h \sim Q}[f(h)] - D(Q\|P) \le \ln\mathbb{E}_{h \sim P}[e^{f(h)}]Eh∼Q​[f(h)]−D(Q∥P)≤lnEh∼P​[ef(h)] is the Donsker–Varadhan inequality, of independent value, and the moment bound is a sharp sub-Gaussian fact. On the platform, the mission introduces Gibbs risks and the Kullback–Leibler divergence between measures on a class, ending the book's series with its last learning principle.

Difficulty

The Gibbs risk identity is Fubini for a bounded jointly measurable function. The moment bound is the delicate step: the book derives it from Hoeffding's tail bound through Exercise 1, whose one-sided hypothesis is not enough (a constant negative variable satisfies it with an unbounded moment), and even the two-sided tail integrates only to 2m−12m - 12m−1; the claim ≤m\le m≤m is nevertheless true, for instance by writing eaΔ2=Eg[e2a gΔ]e^{a\Delta^2} = \mathbb{E}_g[e^{\sqrt{2a}\,g\Delta}]eaΔ2=Eg​[e2a​gΔ] for a standard Gaussian ggg and applying Hoeffding's lemma to the sample mean, which gives ES[e2(m−1)Δ2]≤(1−(m−1)/m)−1/2=m\mathbb{E}_S[e^{2(m-1)\Delta^2}] \le (1 - (m-1)/m)^{-1/2} = \sqrt mES​[e2(m−1)Δ2]≤(1−(m−1)/m)−1/2=m​. Theorem 31.1 then follows the book: Markov's inequality on ef(S)e^{f(S)}ef(S) with f(S)=sup⁡Q(2(m−1)Eh∼QΔ(h)2−D(Q∥P))f(S) = \sup_Q(2(m-1)\mathbb{E}_{h \sim Q}\Delta(h)^2 - D(Q\|P))f(S)=supQ​(2(m−1)Eh∼Q​Δ(h)2−D(Q∥P)), the change of measure (31.2) by Jensen's inequality for ln⁡\lnln applied to the density dQ/dPdQ/dPdQ/dP (the Donsker–Varadhan inequality, which needs Q≪PQ \ll PQ≪P and an integrable log-density), the exchange of expectations (31.4) by Fubini, the moment bound, and finally Jensen for x2x^2x2 in (31.6); formally the supremum over all posteriors is handled by proving the bound for each QQQ on the event {S:Eh∼P[e2(m−1)Δ(h)2]≤m/δ}\{S : \mathbb{E}_{h \sim P}[e^{2(m-1)\Delta(h)^2}] \le m/\delta\}{S:Eh∼P​[e2(m−1)Δ(h)2]≤m/δ}, whose complement has probability at most δ\deltaδ by Markov, which sidesteps any measurability question about fff. Exercise 2 is the theorem with Q=δhQ = \delta_hQ=δh​, for which D(Q∥P)=ln⁡∣H∣D(Q\|P) = \ln|H|D(Q∥P)=ln∣H∣.

Formalization scope

The class is an arbitrary measurable space, priors and posteriors are probability measures on it, and Q(h)/P(h)Q(h)/P(h)Q(h)/P(h) is Mathlib's Radon–Nikodym derivative; the divergence is a Bochner integral, so the theorem quantifies over posteriors Q≪PQ \ll PQ≪P whose log-density is QQQ-integrable, exactly the posteriors with a finite divergence, for which the bound has content, and no junk value can make a case false. Posteriors may depend on the sample: the statement bounds the outer measure of the set of samples for which some admissible QQQ violates the bound. The loss is jointly measurable so that h↦LD(h)h \mapsto L_D(h)h↦LD​(h) and (S,h)↦LS(h)(S, h) \mapsto L_S(h)(S,h)↦LS​(h) are measurable and the Gibbs risks are genuine integrals; m≥2m \ge 2m≥2 is forced by the denominator 2(m−1)2(m-1)2(m−1). The moment bound is stated as the claim the proof needs rather than as Exercise 1, whose printed hypothesis is insufficient; the item text records this. Exercise 2 is stated as a simultaneous bound over the finite class, the form in which the theorem delivers it.

Not stated: Remark 31.1 (a learning rule, not a theorem), Exercise 1 as printed, and the second part of Exercise 2.

Selected references

  • S. Shalev-Shwartz, S. Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press, 2014, Chapter 31. doi:10.1017/CBO9781107298019
  • D. A. McAllester, Some PAC-Bayesian theorems, Machine Learning 37, 1999. doi:10.1023/A:1007618624809
  • D. A. McAllester, PAC-Bayesian stochastic model selection, Machine Learning 51, 2003. doi:10.1023/A:1021840411064
  • A. Maurer, A note on the PAC Bayesian theorem, arXiv:cs/0411099, 2004.
  • M. Seeger, PAC-Bayesian generalisation error bounds for Gaussian process classification, Journal of Machine Learning Research 3, 2002.
  • J. Langford, J. Shawe-Taylor, PAC-Bayes and margins, NIPS 2002.
6 thms4 active usersReviewed
🏆Completed
CombinatoricsOptimization·Captain: naimengye

Understanding Machine Learning XV: Neural NetworksTextbook

Motivation

A feedforward neural network is a directed acyclic graph of neurons, each computing a fixed scalar activation of a weighted sum of its inputs; fixing the graph and the activation and letting the weights vary gives a hypothesis class. Chapter 20 of Shalev-Shwartz and Ben-David, Understanding Machine Learning: From Theory to Algorithms (doi:10.1017/CBO9781107298019), studies these classes through the book's three lenses. Approximation: every Boolean function is implemented by a network of depth 2 (Claim 20.1), but only at exponential size (Theorem 20.2), while a sign neuron implements conjunctions and disjunctions (Lemma 20.4), the bridge to Boolean circuits and hence to everything computable in bounded time. Estimation: the VC dimension of the class of sign networks over a graph with ∣E∣|E|∣E∣ edges is O(∣E∣log⁡∣E∣)O(|E|\log|E|)O(∣E∣log∣E∣) (Theorem 20.6), so the sample complexity is governed by the number of weights. Optimization: training is NP-hard even for tiny networks, and the practical answer is SGD with the gradient computed by backpropagation, whose correctness the chapter derives from the chain rule.

Setting

A layered graph has layers V0,…,VTV_0, \dots, V_TV0​,…,VT​, every edge joining Vt−1V_{t-1}Vt−1​ to VtV_tVt​; V0V_0V0​ holds the nnn inputs and a constant neuron outputting 111. With weights w:E→Rw : E \to \mathbb{R}w:E→R and an activation σ\sigmaσ, the outputs are computed layer by layer, at+1,i=∑j:(vt,j,vt+1,i)∈Ewt,i,j ot,ja_{t+1,i} = \sum_{j : (v_{t,j}, v_{t+1,i}) \in E} w_{t,i,j}\,o_{t,j}at+1,i​=∑j:(vt,j​,vt+1,i​)∈E​wt,i,j​ot,j​ and ot+1,i=σ(at+1,i)o_{t+1,i} = \sigma(a_{t+1,i})ot+1,i​=σ(at+1,i​). The class HV,E,σ={hV,E,σ,w:w:E→R}H_{V,E,\sigma} = \{h_{V,E,\sigma,w} : w : E \to \mathbb{R}\}HV,E,σ​={hV,E,σ,w​:w:E→R} (20.1); for binary classification the output layer is a single neuron and σ\sigmaσ is the sign function, so HV,E,sign⁡H_{V,E,\operatorname{sign}}HV,E,sign​ is a set of {±1}\{\pm1\}{±1}-valued predictors on Rn\mathbb{R}^nRn. The size of the network is ∣V∣|V|∣V∣, its depth TTT. The growth function τH(m)=max⁡∣C∣≤m∣HC∣\tau_H(m) = \max_{|C| \le m}|H_C|τH​(m)=max∣C∣≤m​∣HC​∣ extends to classes with any finite codomain (p. 275), and the proof of Theorem 20.6 uses two of its properties, stated as Exercises 3 and 4: the growth function of a product class is at most the product of the growth functions, and likewise for a composition class. For backpropagation the activation is any differentiable σ\sigmaσ and the loss is 12∥oT−y∥2\frac12\|o_T - y\|^221​∥oT​−y∥2; the backward pass sets δT=oT−y\delta_T = o_T - yδT​=oT​−y and δt=δt+1diag⁡(σ′(at+1))Wt\delta_t = \delta_{t+1}\operatorname{diag}(\sigma'(a_{t+1}))W_tδt​=δt+1​diag(σ′(at+1​))Wt​.

Formalization targets

Goal: Theorem 20.6

The VC dimension of HV,E,sign⁡H_{V,E,\operatorname{sign}}HV,E,sign​ is O(∣E∣log⁡∣E∣)O(|E|\log|E|)O(∣E∣log∣E∣). Explicitly, for a layered graph of depth at least 111 with a single output neuron,

VCdim⁡(HV,E,sign⁡)≤2∣E∣log⁡2(16∣E∣),\operatorname{VCdim}(H_{V,E,\operatorname{sign}}) \le 2|E|\log_2(16|E|),VCdim(HV,E,sign​)≤2∣E∣log2​(16∣E∣),

stated as: every m≤VCdim⁡m \le \operatorname{VCdim}m≤VCdim satisfies this bound (so the VC dimension is finite).

Milestones

Claim 20.1 (the depth-2 graph with ∣V1∣=2n+1|V_1| = 2^n + 1∣V1​∣=2n+1 whose sign class contains every function {±1}n→{±1}\{\pm1\}^n \to \{\pm1\}{±1}n→{±1}); Theorem 20.2 (every sign network implementing all functions {0,1}n→{0,1}\{0,1\}^n \to \{0,1\}{0,1}n→{0,1} has 2n/3≤2∣V∣2^{n/3} \le 2|V|2n/3≤2∣V∣); Lemma 20.4 (conjunction and disjunction as sign neurons); Exercise 4 (growth function of a composition); the correctness of backpropagation (§20.6: the partial derivative for the edge (vt,j,vt+1,i)(v_{t,j}, v_{t+1,i})(vt,j​,vt+1,i​) is δt+1,iσ′(at+1,i)ot,j\delta_{t+1,i}\sigma'(a_{t+1,i})o_{t,j}δt+1,i​σ′(at+1,i​)ot,j​). Further items: Exercise 3 (growth function of a product) and the intermediate bound τH(m)≤(em)∣E∣\tau_H(m) \le (em)^{|E|}τH​(m)≤(em)∣E∣ of the proof of Theorem 20.6.

Significance

Theorem 20.6 is the reason networks are learnable at all in the book's sense: by the fundamental theorem, a class with finite VC dimension is agnostic PAC learnable with sample complexity linear in that dimension, and here the dimension is essentially the number of tunable parameters. The proof technique, due to Kakade and Tewari's lecture notes, is a composition-and-product argument on growth functions that applies to any layered class of threshold units and is reusable well beyond this chapter. Theorem 20.2 is the matching negative fact on expressive power, and it is a corollary of the same bound: a class that shatters 2n2^n2n points needs Ω(2n)\Omega(2^n)Ω(2n) edges. Backpropagation's correctness is the one theorem about training the chapter can offer, given the hardness results, and it is the algorithm every practitioner runs.

Difficulty

Claim 20.1 and Lemma 20.4 are explicit constructions: the neuron gi(x)=sign⁡(⟨x,ui⟩−n+1)g_i(x) = \operatorname{sign}(\langle x, u_i\rangle - n + 1)gi​(x)=sign(⟨x,ui​⟩−n+1) detects x=uix = u_ix=ui​ because ⟨x,ui⟩≤n−2\langle x, u_i\rangle \le n - 2⟨x,ui​⟩≤n−2 otherwise, and the output neuron takes the disjunction; formally one must build the weight function and evaluate the forward pass on the 2n2^n2n inputs. Exercises 3 and 4 are counting: a restricted product is determined by its two restricted factors, and a restricted composition f2∘f1f_2 \circ f_1f2​∘f1​ on CCC is determined by f1∣Cf_1|_Cf1​∣C​ and f2∣f1(C)f_2|_{f_1(C)}f2​∣f1​(C)​, with ∣f1(C)∣≤∣C∣|f_1(C)| \le |C|∣f1​(C)∣≤∣C∣. Theorem 20.6 then needs: the class of one neuron is the class of homogenous halfspaces on its dt,id_{t,i}dt,i​ incoming coordinates, of VC dimension at most dt,id_{t,i}dt,i​ (Mission VI), Sauer's lemma in the form τ(m)≤(em)d\tau(m) \le (em)^{d}τ(m)≤(em)d for every m≥1m \ge 1m≥1 (Mission IV; for m≤dm \le dm≤d use 2m≤(em)m2^m \le (em)^m2m≤(em)m), the layer class as a product and the network as a composition of layer classes, and finally the arithmetic 2m≤(em)∣E∣⇒m≤2∣E∣log⁡2(16∣E∣)2^m \le (em)^{|E|} \Rightarrow m \le 2|E|\log_2(16|E|)2m≤(em)∣E∣⇒m≤2∣E∣log2​(16∣E∣), which replaces the book's appeal to Lemma A.2 (for m≥8∣E∣m \ge 8|E|m≥8∣E∣ one has ln⁡m≤mln⁡22∣E∣\ln m \le \frac{m\ln 2}{2|E|}lnm≤2∣E∣mln2​). Theorem 20.2 follows from the goal with ∣E∣≤∣V∣2|E| \le |V|^2∣E∣≤∣V∣2. Backpropagation is a chain-rule computation in a single real variable: the loss as a function of one weight is a composition of finitely many differentiable maps, and the derivative unwinds to the backward recursion; the formal effort is in the induction along layers with the natural-number indexing of the model.

Formalization scope

Layers and neurons are indexed by natural numbers: a LayeredGraph records the depth, the layer widths and, for each t<Tt < Tt<T, the finite set of edges (vt,j,vt+1,i)(v_{t,j}, v_{t+1,i})(vt,j​,vt+1,i​) as pairs (i,j)(i, j)(i,j) within the layer widths. Weights are functions on all index triples, and only those on edges are used, so the class is the image of all weight functions, as in (20.1). The forward computation netOutput is a recursion on the layer index; netInput is at+1,ia_{t+1,i}at+1,i​. The sign activation returns ±1\pm1±1 with sign⁡(0)=−1\operatorname{sign}(0) = -1sign(0)=−1, the book's convention elsewhere, and a neuron with no incoming edges outputs σ(0)\sigma(0)σ(0) (p. 270). The binary class signNetClass n G is Bool-valued, true iff the output neuron's input is positive, and is stated for graphs of depth at least 111 (for depth 000 the edges out of the input layer would be used but not counted in ∣E∣|E|∣E∣). Growth functions with finite codomain are growthY, an sSup over restriction sizes, well defined because the codomains are finite; the Bool case is Mission IV's growth, and VC dimension and shattering are Mission IV's. Theorem 20.6 and Theorem 20.2 are given with explicit constants derived from the proof, since O(⋅)O(\cdot)O(⋅) statements have no formal content; the drafter verified max⁡{m:2m≤(em)∣E∣}≤2∣E∣log⁡2(16∣E∣)\max\{m : 2^m \le (em)^{|E|}\} \le 2|E|\log_2(16|E|)max{m:2m≤(em)∣E∣}≤2∣E∣log2​(16∣E∣) numerically for ∣E∣|E|∣E∣ up to 300030003000 and at 104,…,10710^4, \dots, 10^7104,…,107, and 2n≤2∣V∣2log⁡2(16∣V∣2)≤8∣V∣32^n \le 2|V|^2\log_2(16|V|^2) \le 8|V|^32n≤2∣V∣2log2​(16∣V∣2)≤8∣V∣3. Backpropagation is stated for an arbitrary layered graph (phantom edges have weight 000, p. 279), any differentiable activation, and one edge at a time as a HasDerivAt of the loss in that weight; δt\delta_tδt​ is defined by recursion on T−tT - tT−t. The book's layer indices in (20.3) are shifted by one in the statement.

Not stated: Theorem 20.3 (Turing machines), Theorem 20.5 and Exercise 1 (sigmoid approximation, which needs a convention for outputs in [−1,1][-1,1][−1,1] that the chapter leaves open), Theorem 20.7 and Exercise 6 (NP-hardness), Exercise 5 (the Ω(∣E∣2)\Omega(|E|^2)Ω(∣E∣2) sigmoid lower bound, which assumes an exact threshold), the sigmoid half of Theorem 20.2, and the SGD pseudocode of §20.6, which is a heuristic without a stated guarantee.

Selected references

  • S. Shalev-Shwartz, S. Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press, 2014, Chapter 20. doi:10.1017/CBO9781107298019
  • M. Anthony, P. L. Bartlett, Neural Network Learning: Theoretical Foundations, Cambridge University Press, 1999. doi:10.1017/CBO9780511624216
  • D. E. Rumelhart, G. E. Hinton, R. J. Williams, Learning representations by back-propagating errors, Nature 323, 1986. doi:10.1038/323533a0
  • I. Parberry, Circuit Complexity and Neural Networks, MIT Press, 1994.
  • E. B. Baum, D. Haussler, What size net gives valid generalization?, Neural Computation 1(1), 1989. doi:10.1162/neco.1989.1.1.151
8 thms4 active usersReviewed
🏆Completed
Probability·Captain: Lucas

The Principles of Deep Learning Theory I: Wick's Theorem for Gaussian IntegralsTextbook

Motivation

The book The Principles of Deep Learning Theory by D. A. Roberts and S. Yaida (arXiv:2106.10165) develops a perturbative, physics-style theory of wide deep neural networks. Every later computation in the book, from the statistics of preactivations at initialization to the neural tangent kernel, reduces to Gaussian expectations of polynomials. The single tool that evaluates these expectations is Wick's theorem (eq. 1.45), which the authors ask the reader to "put a box around". This mission formalizes Chapter 1, §1.1 (Gaussian Integrals), culminating in that theorem. It is the first mission of a series formalizing the book, all in the Lean namespace DeepLearningTheory.

Setting

Fix N≥0N \ge 0N≥0 and a symmetric positive-definite real N×NN\times NN×N matrix K=(Kμν)K = (K_{\mu\nu})K=(Kμν​), the covariance. Write Kμν=(K−1)μνK^{\mu\nu} = (K^{-1})_{\mu\nu}Kμν=(K−1)μν​ for its inverse. The zero-mean multivariable Gaussian distribution with covariance KKK (eq. 1.31) has density on RN\mathbb{R}^NRN

p(z)=1∣2πK∣exp⁡(−12∑μ,ν=1NzμKμνzν),∣2πK∣=det⁡(2πK)=(2π)Ndet⁡K,p(z) = \frac{1}{\sqrt{|2\pi K|}} \exp\Big(-\tfrac12 \sum_{\mu,\nu=1}^N z_\mu K^{\mu\nu} z_\nu\Big), \qquad |2\pi K| = \det(2\pi K) = (2\pi)^N \det K,p(z)=∣2πK∣​1​exp(−21​μ,ν=1∑N​zμ​Kμνzν​),∣2πK∣=det(2πK)=(2π)NdetK,

and the expectation of an observable FFF is E[F(z)]=∫dNz p(z)F(z)\mathbb{E}[F(z)] = \int d^N z\, p(z) F(z)E[F(z)]=∫dNzp(z)F(z) (eqs. 1.36, 1.46), an integral against Lebesgue measure. A pairing of the labels 1,…,2m1,\dots,2m1,…,2m is a partition into mmm unordered pairs; equivalently, a fixed-point-free involution σ\sigmaσ of {1,…,2m}\{1,\dots,2m\}{1,…,2m} pairing aaa with σ(a)\sigma(a)σ(a). There are (2m−1)!!(2m-1)!!(2m−1)!! pairings.

Formalization targets

Goal: Wick's theorem (eq. 1.45)

For all indices μ1,…,μ2m∈{1,…,N}\mu_1,\dots,\mu_{2m} \in \{1,\dots,N\}μ1​,…,μ2m​∈{1,…,N} (repetitions allowed),

E[zμ1⋯zμ2m]=∑pairings σ ∏a<σ(a)Kμaμσ(a).\mathbb{E}[z_{\mu_1}\cdots z_{\mu_{2m}}] = \sum_{\text{pairings } \sigma}\ \prod_{a<\sigma(a)} K_{\mu_a \mu_{\sigma(a)}}.E[zμ1​​⋯zμ2m​​]=pairings σ∑​ a<σ(a)∏​Kμa​μσ(a)​​.

Milestones

  1. Eq. (1.30) — the normalization ∫dNz e−12z⊤K−1z=∣2πK∣\int d^N z\, e^{-\frac12 z^\top K^{-1} z} = \sqrt{|2\pi K|}∫dNze−21​z⊤K−1z=∣2πK∣​.
  2. Eq. (1.41) — the generating function ∫dNz e−12z⊤K−1z+J⋅z=∣2πK∣ e12J⊤KJ\int d^N z\, e^{-\frac12 z^\top K^{-1} z + J\cdot z} = \sqrt{|2\pi K|}\, e^{\frac12 J^\top K J}∫dNze−21​z⊤K−1z+J⋅z=∣2πK∣​e21​J⊤KJ for every source J∈RNJ \in \mathbb{R}^NJ∈RN.
  3. Odd moments vanish (p. 22, discussion after eq. 1.42).
  4. Eq. (1.43) — E[zμ1zμ2]=Kμ1μ2\mathbb{E}[z_{\mu_1} z_{\mu_2}] = K_{\mu_1\mu_2}E[zμ1​​zμ2​​]=Kμ1​μ2​​.
  5. Eq. (1.44) — E[zμ1zμ2zμ3zμ4]=Kμ1μ2Kμ3μ4+Kμ1μ3Kμ2μ4+Kμ1μ4Kμ2μ3\mathbb{E}[z_{\mu_1}z_{\mu_2}z_{\mu_3}z_{\mu_4}] = K_{\mu_1\mu_2}K_{\mu_3\mu_4} + K_{\mu_1\mu_3}K_{\mu_2\mu_4} + K_{\mu_1\mu_4}K_{\mu_2\mu_3}E[zμ1​​zμ2​​zμ3​​zμ4​​]=Kμ1​μ2​​Kμ3​μ4​​+Kμ1​μ3​​Kμ2​μ4​​+Kμ1​μ4​​Kμ2​μ3​​.

Significance

Wick's theorem (also known as Isserlis' theorem, 1918) is used throughout the book: the Gaussianity of the first layer (Chapter 4), the four-point correlators of deep linear networks (Chapter 3), and all perturbative expansions around the infinite-width limit are evaluated by Wick contractions. A machine-checked version stated in the book's own density-based conventions gives later missions of this series a dependable foundation. The result is classical; the work remaining is its formalization in exactly this form. A related statement for general (possibly degenerate) Gaussian measures already exists on the platform as FeynmanWick.wick_theorem_gaussian; the present mission keeps the book's formulation via the explicit density and a positive-definite covariance.

Difficulty

The book's derivation differentiates the generating function (1.41) 2m2m2m times at J=0J=0J=0, which requires justifying differentiation under the integral sign and organizing the combinatorics of the product rule into pairings. Both the analytic step (dominated convergence for Gaussian tails, in NNN dimensions) and the combinatorial step (a bijection between surviving terms and pairings, with the 1/(2mm!)1/(2^m m!)1/(2mm!) normalization) are routine on paper but need care in Lean. Computing the normalization (1.30) itself requires diagonalizing KKK and a linear change of variables.

Formalization scope

  • Vectors are functions Fin N → ℝ with Lebesgue measure; KKK is a Matrix (Fin N) (Fin N) ℝ with K.PosDef (which includes symmetry). The inverse is Mathlib's K⁻¹.
  • gaussianDensity K z and gaussExpect K F are exactly the book's p(z)p(z)p(z) and E[F]\mathbb{E}[F]E[F]; gaussQuadForm K z is ∑zμKμνzν\sum z_\mu K^{\mu\nu} z_\nu∑zμ​Kμνzν​.
  • pairings (2m) is the finite set of fixed-point-free involutions of Fin (2m); the product is over labels aaa with a<σ(a)a<\sigma(a)a<σ(a), so each pair contributes once.
  • Positive definiteness is assumed exactly as in the book; no statement is vacuous since, e.g., K=IK = IK=I satisfies every hypothesis.

Selected references

  • D. A. Roberts, S. Yaida (with B. Hanin), The Principles of Deep Learning Theory, Cambridge University Press, 2022. arXiv:2106.10165
  • L. Isserlis, On a formula for the product-moment coefficient of any order of a normal frequency distribution in any number of variables, Biometrika 12 (1918). doi:10.1093/biomet/12.1-2.134
7 thms4 active usersReviewed
🏆Completed
CombinatoricsProbabilityStatistics·Captain: naimengye

An Introduction to Computational Learning Theory III: The Vapnik-Chervonenkis Dimension, ε-Nets and Sample ComplexityTextbook

Motivation

Chapter 3 of Kearns and Vazirani, An Introduction to Computational Learning Theory (MIT Press, 1994, doi:10.7551/mitpress/3897.001.0001), asks how many random examples suffice to learn a concept from an infinite class. The cardinality bound of Occam's Razor is useless there, yet the rectangle game of Chapter 1 shows that some infinite classes are learnable from a finite sample. The answer is the Vapnik–Chervonenkis dimension: the size of the largest set on which the class realizes every labeling. Sauer's lemma says that a class of VC dimension ddd realizes only Φd(m)=∑i≤d(mi)≤(em/d)d\Phi_d(m) = \sum_{i \le d}\binom{m}{i} \le (em/d)^dΦd​(m)=∑i≤d​(im​)≤(em/d)d labelings on any mmm points, polynomially many rather than 2m2^m2m, and the ε-net theorem of Blumer, Ehrenfeucht, Haussler and Warmuth turns this into a sample bound: a consistent hypothesis from a class of VC dimension ddd is probably approximately correct once mmm is of order (1/ϵ)(log⁡(1/δ)+dlog⁡(1/ϵ))(1/\epsilon)(\log(1/\delta) + d\log(1/\epsilon))(1/ϵ)(log(1/δ)+dlog(1/ϵ)). A matching lower bound shows that Ω(d/ϵ)\Omega(d/\epsilon)Ω(d/ϵ) examples are necessary. The chapter thus gives a single combinatorial parameter that characterizes, up to a logarithmic factor, the sample complexity of learning any class in the distribution-free model.

Setting

For a class CCC of concepts X→{0,1}X \to \{0,1\}X→{0,1} and a finite S⊆XS \subseteq XS⊆X, ΠC(S)\Pi_C(S)ΠC​(S) is the set of dichotomies of SSS realized by CCC; SSS is shattered if all 2∣S∣2^{|S|}2∣S∣ are realized; VCD(C)\mathrm{VCD}(C)VCD(C) is the supremum of the sizes of shattered sets, possibly ∞\infty∞; ΠC(m)\Pi_C(m)ΠC​(m) is the largest ∣ΠC(S)∣|\Pi_C(S)|∣ΠC​(S)∣ over ∣S∣=m|S| = m∣S∣=m; and Φd(m)\Phi_d(m)Φd​(m) is defined by Φd(m)=Φd(m−1)+Φd−1(m−1)\Phi_d(m) = \Phi_d(m-1) + \Phi_{d-1}(m-1)Φd​(m)=Φd​(m−1)+Φd−1​(m−1), Φd(0)=Φ0(m)=1\Phi_d(0) = \Phi_0(m) = 1Φd​(0)=Φ0​(m)=1. For a target ccc the error regions are c Δ hc \,\Delta\, hcΔh for hhh in the hypothesis class, and a set of points is an ε-net if it meets every error region of weight at least ϵ\epsilonϵ under the target distribution DDD. Samples, their product law, consistency and the error of a hypothesis are those of Mission I.

Formalization targets

Goal: Theorems 3.3 and 3.4

Let HHH be a class of VC dimension at most ddd, well-behaved for the target ccc (the double-sample event of the proof is null-measurable), and m≥8/ϵm \ge 8/\epsilonm≥8/ϵ. The points of a random sample of mmm examples of a target ccc fail to be an ε-net for the error regions {c Δ h:h∈H}\{c \,\Delta\, h : h \in H\}{cΔh:h∈H} with probability at most

2 Φd(2m) 2−ϵm/2,2\,\Phi_d(2m)\,2^{-\epsilon m/2},2Φd​(2m)2−ϵm/2,

so any algorithm that outputs a hypothesis in HHH consistent with its sample has error greater than ϵ\epsilonϵ with at most that probability; with m≥(4/ϵ)log⁡2(2/δ)m \ge (4/\epsilon)\log_2(2/\delta)m≥(4/ϵ)log2​(2/δ) and m≥(8d/ϵ)log⁡2(13/ϵ)m \ge (8d/\epsilon)\log_2(13/\epsilon)m≥(8d/ϵ)log2​(13/ϵ) the probability is at most δ\deltaδ; and, if HHH is nonempty, every class contained in HHH for whose targets HHH is well-behaved is PAC learnable using HHH.

Milestones

Lemma 3.1 (Sauer's lemma, ΠC(m)≤Φd(m)\Pi_C(m) \le \Phi_d(m)ΠC​(m)≤Φd​(m)); Lemma 3.2 (Φd(m)=∑i≤d(mi)\Phi_d(m) = \sum_{i \le d}\binom{m}{i}Φd​(m)=∑i≤d​(im​)); the polynomial bound Φd(m)≤(em/d)d\Phi_d(m) \le (em/d)^dΦd​(m)≤(em/d)d of p. 57; Theorem 3.5 (the Ω(d/ϵ)\Omega(d/\epsilon)Ω(d/ϵ) lower bound, in the two explicit forms of its proof).

Significance

Theorem 3.3 is the fundamental theorem of PAC learning: it replaces log⁡∣H∣\log|H|log∣H∣ in Occam's Razor by the VC dimension and thereby covers rectangles, halfspaces, polygons, neural networks with a fixed architecture, and every class whose dichotomies grow polynomially. Its proof, the double sample and random partition argument, is the origin of symmetrization in empirical process theory. Sauer's lemma is a cornerstone of extremal combinatorics with independent proofs by Sauer, Shelah and Vapnik–Chervonenkis, and the lower bound of Theorem 3.5 shows that the upper bound is tight to within log⁡(1/ϵ)\log(1/\epsilon)log(1/ϵ), so the VC dimension genuinely characterizes sample complexity. None of these is machine-checked. Formalizing them puts on the platform the VC dimension, the growth function and the ε-net theorem with explicit constants, stated on the same sample law as the rest of this series, and the first information-theoretic lower bound for learning.

Difficulty

Sauer's lemma is a double induction on ddd and mmm through the auxiliary class C′C'C′ of dichotomies whose two extensions to a distinguished point are both realized, which needs care with the identification of dichotomies of SSS and of S∖{x}S \setminus \{x\}S∖{x}. The ε-net theorem needs: the reduction Pr⁡[A]≤2Pr⁡[B]\Pr[A] \le 2\Pr[B]Pr[A]≤2Pr[B] from a failed ε-net on the first half to a region hit at least ϵm/2\epsilon m/2ϵm/2 times by the second half, which is a Chebyshev bound on a binomial variable and is where m≥8/ϵm \ge 8/\epsilonm≥8/ϵ enters; the exchangeability of the 2m2m2m draws with a random partition into two halves; the counting bound (mℓ)/(2mℓ)≤2−ℓ\binom{m}{\ell}/\binom{2m}{\ell} \le 2^{-\ell}(ℓm​)/(ℓ2m​)≤2−ℓ; and Sauer's lemma applied to the error regions, whose growth function equals that of HHH. The explicit constants require the numerical inequality 2(2em/d)d2−ϵm/2≤δ2(2em/d)^d 2^{-\epsilon m/2} \le \delta2(2em/d)d2−ϵm/2≤δ under the two stated conditions. The lower bound is a probabilistic argument with a random target: conditional on the sample, the labels of unseen points are fair coins, so the number of errors on them is binomial and exceeds half its range with probability at least 1/21/21/2; the refined bound scales this construction to a region of weight 16ϵ16\epsilon16ϵ and uses Markov's inequality to bound the number of draws landing in it. Measurability of the failure sets is avoided by stating outer-measure bounds, except for the double-sample event, which the proof integrates: it is assumed null-measurable (the well-behavedness of Blumer et al., without which the theorem is false for a class of VC dimension 111 on ω1\omega_1ω1​). For the lower bound it is avoided by working over a finitely supported distribution on a space with measurable singletons.

Formalization scope

The VC dimension is a supremum in N∪{∞}\mathbb{N} \cup \{\infty\}N∪{∞}, the growth function a supremum in N\mathbb{N}N (bounded by 2m2^m2m), and Φd\Phi_dΦd​ the book's recurrence, with its closed form and polynomial bound stated as separate theorems. The goal is stated for a hypothesis class HHH (Theorem 3.4), Theorem 3.3 being the case C=HC = HC=H; it carries the exact bound of the proof, the explicit constants of Blumer et al. in place of the book's c0c_0c0​, the requirement m≥8/ϵm \ge 8/\epsilonm≥8/ϵ of the proof's Chebyshev step, measurability of the hypotheses and the target, well-behavedness of HHH for the target, and 0<ϵ,δ<10 < \epsilon, \delta < 10<ϵ,δ<1. PAC learnability of the subclasses of HHH needs HHH nonempty, since no algorithm outputs hypotheses in the empty class. The lower bound is stated for every deterministic learning function, on an instance space with measurable singletons, for a class shattering some set of d≥1d \ge 1d≥1 points, with the explicit constants derived in the proof sketch (m≤d/2m \le d/2m≤d/2: error ≥1/8\ge 1/8≥1/8 with probability ≥1/2\ge 1/2≥1/2; ϵ≤1/16\epsilon \le 1/16ϵ≤1/16 and m≤(d−1)/(64ϵ)m \le (d-1)/(64\epsilon)m≤(d−1)/(64ϵ): error >ϵ> \epsilon>ϵ with probability ≥1/4\ge 1/4≥1/4). Running time is not modelled. The composition bound for layered networks (Theorems 3.6 and 3.7) is not stated.

Trivializing readings are excluded: the ε-net event ranges over every hypothesis of HHH, the failure bounds are uniform over all consistent learners, and the lower bound holds for every learning function. Welcome contributions: Sauer's lemma, the closed form and the (em/d)d(em/d)^d(em/d)d bound, the random-partition counting lemma, and the binomial median inequality used in the lower bound.

Selected references

  • M. J. Kearns, U. V. Vazirani, An Introduction to Computational Learning Theory, MIT Press, 1994, Chapter 3. doi:10.7551/mitpress/3897.001.0001
  • A. Blumer, A. Ehrenfeucht, D. Haussler, M. K. Warmuth, Learnability and the Vapnik–Chervonenkis dimension, Journal of the ACM 36(4), 1989. doi:10.1145/76359.76371
  • V. N. Vapnik, A. Ya. Chervonenkis, On the uniform convergence of relative frequencies of events to their probabilities, Theory of Probability and its Applications 16(2), 1971. doi:10.1137/1116025
  • N. Sauer, On the density of families of sets, Journal of Combinatorial Theory, Series A 13(1), 1972. doi:10.1016/0097-3165(72)90019-2
  • A. Ehrenfeucht, D. Haussler, M. Kearns, L. Valiant, A general lower bound on the number of examples needed for learning, Information and Computation 82(3), 1989. doi:10.1016/0890-5401(89)90002-3
8 thms4 active usersReviewed
🏆Completed
ProbabilityRandom Matrix TheoryStatistics·Captain: mikedeng1

High-Dimensional Probability VI: The Hanson-Wright InequalityTextbook

Motivation

Sums of independent random variables are well understood: Bernstein's inequality and its relatives give sharp, non-asymptotic tail bounds for ∑iaiXi\sum_i a_i X_i∑i​ai​Xi​ whenever the XiX_iXi​ are independent and light-tailed. Many quantities that arise in high-dimensional statistics and random matrix theory, however, are not linear but quadratic in an independent sample — the squared norm of a random vector after a linear transformation, a quadratic-form test statistic, the diagonal of a sample covariance matrix, or the number of edges cut by a random partition in a random graph. A quadratic form X⊤AX=∑i,jAijXiXjX^\top A X = \sum_{i,j} A_{ij} X_i X_jX⊤AX=∑i,j​Aij​Xi​Xj​ is a sum with dependent terms: XiXjX_iX_jXi​Xj​ and XiXkX_iX_kXi​Xk​ share the factor XiX_iXi​, so classical sum-of-independent-variables tools do not apply directly.

The Hanson-Wright inequality, first obtained by Hanson and Wright (1971) for sub-gaussian variables and later sharpened and popularized in this form by Rudelson and Vershynin (2013, "Hanson-Wright inequality and sub-gaussian concentration," Electronic Communications in Probability), closes this gap: it gives a concentration inequality for X⊤AXX^\top A XX⊤AX around its mean with the same two-regime (sub-gaussian near the center, sub-exponential in the tail) shape as Bernstein's inequality for linear sums. It is now a standard tool wherever quadratic statistics of independent data are analyzed: covariance estimation, compressed sensing, randomized numerical linear algebra, and the analysis of random matrices more broadly draw on it routinely.

Setting

Fix a probability space and let X=(X1,…,Xn)X = (X_1, \dots, X_n)X=(X1​,…,Xn​) be a random vector whose coordinates X1,…,XnX_1, \dots, X_nX1​,…,Xn​ are independent, mean zero, and sub-gaussian: each XiX_iXi​ has a finite sub-gaussian (Orlicz ψ2\psi_2ψ2​) norm ∥Xi∥ψ2\|X_i\|_{\psi_2}∥Xi​∥ψ2​​, the smallest t>0t > 0t>0 with Eexp⁡(Xi2/t2)≤2\mathbb E \exp(X_i^2/t^2) \le 2Eexp(Xi2​/t2)≤2. Write K=max⁡i∥Xi∥ψ2K = \max_i \|X_i\|_{\psi_2}K=maxi​∥Xi​∥ψ2​​.

Let A=(Aij)i,j=1nA = (A_{ij})_{i,j=1}^nA=(Aij​)i,j=1n​ be an n×nn \times nn×n real matrix, with no constraint on its diagonal, and form the quadratic form

X⊤AX=∑i,j=1nAijXiXj.X^\top A X = \sum_{i,j=1}^n A_{ij} X_i X_j.X⊤AX=i,j=1∑n​Aij​Xi​Xj​.

Two matrix norms measure the size of AAA: the Frobenius norm ∥A∥F=(∑i,jAij2)1/2\|A\|_F = \bigl(\sum_{i,j} A_{ij}^2\bigr)^{1/2}∥A∥F​=(∑i,j​Aij2​)1/2 (the Euclidean norm of AAA's entries) and the operator (spectral) norm ∥A∥=sup⁡∥x∥2=1∥Ax∥2\|A\| = \sup_{\|x\|_2=1} \|Ax\|_2∥A∥=sup∥x∥2​=1​∥Ax∥2​ (the largest singular value of AAA). Always ∥A∥≤∥A∥F≤n ∥A∥\|A\| \le \|A\|_F \le \sqrt{n}\,\|A\|∥A∥≤∥A∥F​≤n​∥A∥, so the two norms can differ by a factor as large as n\sqrt nn​ — the gap between them is exactly what produces the inequality's two regimes below.

Formalization targets

Goal — Theorem 6.2.1 (Hanson-Wright inequality)

P{ ∣X⊤AX−E X⊤AX∣≥t }  ≤  2exp⁡ ⁣[−cmin⁡ ⁣(t2K4∥A∥F2, tK2∥A∥)]for every t≥0,P\bigl\{\, |X^\top A X - \mathbb E\, X^\top A X| \ge t \,\bigr\} \;\le\; 2 \exp\!\left[-c \min\!\left(\frac{t^2}{K^4 \|A\|_F^2},\ \frac{t}{K^2 \|A\|}\right)\right] \qquad \text{for every } t \ge 0,P{∣X⊤AX−EX⊤AX∣≥t}≤2exp[−cmin(K4∥A∥F2​t2​, K2∥A∥t​)]for every t≥0,

where c>0c > 0c>0 is an absolute constant, not depending on nnn, XXX, AAA, or ttt. Stating the constant only as "some absolute ccc" (rather than pinning it to a numeral) is deliberate: the book's own proof does not track a sharp value, and a goal that only asserts the shape of the bound survives any later improvement to ccc.

Significance

The result itself. Hanson-Wright turns a two-dimensional (in i,ji,ji,j) dependency structure into a one-dimensional concentration statement controlled by two scalar quantities, ∥A∥F\|A\|_F∥A∥F​ and ∥A∥\|A\|∥A∥. This is what makes it usable: a practitioner bounding a quadratic statistic need only compute these two norms, not analyze the joint dependency structure of {XiXj}\{X_iX_j\}{Xi​Xj​} directly. It specializes to Bernstein's inequality (Chapter 2 of this book) when AAA is diagonal, and it underlies non-asymptotic guarantees for covariance estimation, the Johnson-Lindenstrauss lemma via a different route, and the concentration of Lipschitz functions of sub-gaussian vectors.

Formalizing it. The published proof of Hanson-Wright is not a single argument but a chain of four steps: a decoupling reduction (Section 6.1), a direct computation for Gaussian chaos (Lemma 6.2.2), a comparison lemma extending the Gaussian bound to general sub-gaussian vectors via a replacement trick (Lemma 6.2.3), and a final assembly that separates the diagonal part (handled by Bernstein's inequality) from the off-diagonal part (handled by decoupling and comparison). This mission formalizes the goal theorem's statement and the first, most reusable link in that chain — the decoupling machinery of Section 6.1, which reduces the analysis of the dependent chaos X⊤AXX^\top A XX⊤AX to the independent-once-conditioned bilinear form X⊤AX′X^\top A X'X⊤AX′ — together with the chapter's separate contraction principle (Section 6.7), a general comparison tool for Rademacher-weighted sums used repeatedly in the book's later chaining chapters. The Gaussian MGF computation and the replacement-trick comparison lemma (Lemmas 6.2.2–6.2.3) are left as future milestones on top of this mission: they require Gaussian rotation invariance and the singular value decomposition of AAA, substantially more machinery than the milestones included here.

Difficulty

The obvious first idea — treat X⊤AX=∑i,jAijXiXjX^\top A X = \sum_{i,j} A_{ij}X_iX_jX⊤AX=∑i,j​Aij​Xi​Xj​ as if it were a sum of independent terms and apply Bernstein's inequality termwise — fails immediately: the terms AijXiXjA_{ij}X_iX_jAij​Xi​Xj​ for fixed iii are not independent across jjj, since they all share the factor XiX_iXi​. Decoupling (Theorem 6.1.1) is the non-obvious fix: it replaces the off-diagonal chaos by a bilinear form X⊤AX′X^\top A X'X⊤AX′ in an independent copy X′X'X′, which genuinely does become a sum of independent terms once one of the two vectors is conditioned on. The price is a universal constant factor of 444 and the restriction to diagonal-free matrices, which is exactly why the full Hanson-Wright proof must separate the diagonal contribution to E X⊤AX\mathbb E\,X^\top A XEX⊤AX (handled directly by Bernstein's inequality, Chapter 2) before decoupling can be applied to what remains.

Formalization scope

Random variables and vectors are real-valued on an explicit probability space (Ω,F,P)(\Omega, \mathcal F, P)(Ω,F,P). The sub-gaussian norm is HighDimProb.Concentration.subgaussianNorm, the Orlicz-ψ2\psi_2ψ2​-norm definition already published for this series (01-concentration), reused here as a reference item rather than redefined. K=max⁡i∥Xi∥ψ2K = \max_i \|X_i\|_{\psi_2}K=maxi​∥Xi​∥ψ2​​ is written as a finite supremum over the coordinate index, ⨆ i, subgaussianNorm P (X i); because the index type is always a Fintype (Fin n), this supremum is well-defined and, at the degenerate index n=0n=0n=0, reduces to a true (if content-free) instance of the inequality rather than a vacuous or false one. The Frobenius and operator norms of AAA are this mission's own frobeniusNorm and opNorm, stated directly from their defining formulas rather than through Mathlib's scoped matrix-norm typeclass instances, which are deliberately not global defaults (to avoid a diamond between the two norms) and so are unsuitable for a statement that needs both simultaneously. Every place the goal or a milestone integrates a quantity, that quantity is required Integrable, guarding against Mathlib's convention of returning 0 for the Bochner integral of a non-integrable function — without these hypotheses, a mean-zero or expectation hypothesis could hold vacuously, or a conclusion could hold trivially, for reasons having nothing to do with the book's mathematics.

The formalization deliberately does not restrict AAA's diagonal in the goal theorem: doing so would collapse Hanson-Wright to a restatement of Bernstein's inequality for the special case of a diagonal matrix, discarding the chapter's actual content, which is handling the off-diagonal, genuinely quadratic dependence between coordinates. The diagonal-free restriction does appear, correctly, in the Decoupling theorem (6.1.1), whose proof needs it.

Reusable beyond this mission: frobeniusNorm and opNorm are needed by any future chapter using matrix norms (Chapter 4's random matrix norms, Chapter 9's matrix deviation inequality); the decoupling theorem and convex decoupling lemma are the standard entry point for any later formalization of chaos concentration; the contraction principle is reused throughout the book's chaining chapters (7 and 8). Welcome contributions include the Gaussian MGF and comparison lemmas (6.2.2–6.2.3) needed to complete a full proof of the goal theorem, and the two-sided version of Bernstein's inequality needed for the diagonal part of that proof.

Selected references

  • R. Vershynin, High-Dimensional Probability: An Introduction with Applications in Data Science, Cambridge University Press, 2018. DOI: 10.1017/9781108231596.
  • D. L. Hanson, F. T. Wright, "A bound on tail probabilities for quadratic forms in independent random variables," Annals of Mathematical Statistics 42 (1971), 1079–1083.
  • M. Rudelson, R. Vershynin, "Hanson-Wright inequality and sub-gaussian concentration," Electronic Communications in Probability 18 (2013), no. 82, 1–9. https://arxiv.org/abs/1306.2872
7 thms4 active usersReviewed
🏆Completed
ProbabilityStatistics·Captain: mikedeng1

High-Dimensional Statistics I: Gaussian Concentration of Lipschitz FunctionsTextbook

Motivation

A recurring question in high-dimensional statistics is how tightly a scalar quantity built from many random inputs concentrates around its mean, even as the number of inputs grows without bound. Two classical answers organize the whole toolkit: martingale methods, which control a sum of dependent increments one conditional step at a time, and Gaussian-specific isoperimetry, which shows that essentially any regular (Lipschitz) function of a high-dimensional Gaussian vector concentrates as tightly as a single Gaussian coordinate, regardless of dimension. This mission formalizes one representative theorem from each line: the general martingale Bernstein bound (Wainwright, High-Dimensional Statistics, 2019, Theorem 2.19) and the Gaussian concentration of Lipschitz functions (Theorem 2.26), following Chapter 2 of the same book.

Setting

A random variable XXX with mean μ=E[X]\mu=\mathbb E[X]μ=E[X] is sub-Gaussian with parameter σ\sigmaσ (Definition 2.2) if E[eλ(X−μ)]≤eσ2λ2/2\mathbb E[e^{\lambda(X-\mu)}]\le e^{\sigma^2\lambda^2/2}E[eλ(X−μ)]≤eσ2λ2/2 for all λ∈R\lambda\in\mathbb Rλ∈R; it is sub-exponential with parameters (ν,α)(\nu,\alpha)(ν,α) (Definition 2.7, a strictly milder condition) if the same bound holds only for ∣λ∣<1/α|\lambda|<1/\alpha∣λ∣<1/α, with the convention 1/0=+∞1/0=+\infty1/0=+∞ so that α=0\alpha=0α=0 recovers the sub-Gaussian case exactly.

A sequence {Dk}k≥1\{D_k\}_{k\ge1}{Dk​}k≥1​, adapted to a filtration {Fk}\{\mathcal F_k\}{Fk​}, is a martingale difference sequence if each DkD_kDk​ is Fk\mathcal F_kFk​-measurable and E[Dk∣Fk−1]=0\mathbb E[D_k\mid\mathcal F_{k-1}]=0E[Dk​∣Fk−1​]=0. Such sequences arise throughout statistics via the Doob martingale construction: given a function fff of independent variables X1,…,XnX_1,\dots,X_nX1​,…,Xn​, setting Dk:=E[f(X)∣X1,…,Xk]−E[f(X)∣X1,…,Xk−1]D_k:=\mathbb E[f(X)\mid X_1,\dots,X_k]-\mathbb E[f(X)\mid X_1,\dots,X_{k-1}]Dk​:=E[f(X)∣X1​,…,Xk​]−E[f(X)∣X1​,…,Xk−1​] telescopes to f(X)−E[f(X)]=∑kDkf(X)-\mathbb E[f(X)]=\sum_k D_kf(X)−E[f(X)]=∑k​Dk​, converting a deviation question about f(X)f(X)f(X) into a martingale concentration question.

A function f:Rn→Rf:\mathbb R^n\to\mathbb Rf:Rn→R is LLL-Lipschitz with respect to the Euclidean norm if ∣f(x)−f(y)∣≤L∥x−y∥2|f(x)-f(y)|\le L\|x-y\|_2∣f(x)−f(y)∣≤L∥x−y∥2​ for all x,yx,yx,y (Eq. (2.38)).

Formalization targets

Goal — Theorem 2.26 (Gaussian concentration of Lipschitz functions)

Let (X1,…,Xn)(X_1,\dots,X_n)(X1​,…,Xn​) be i.i.d. standard Gaussian and fff be LLL-Lipschitz with respect to the Euclidean norm. Then f(X)−E[f(X)]f(X)-\mathbb E[f(X)]f(X)−E[f(X)] is sub-Gaussian with parameter at most LLL, and hence

P[∣f(X)−E[f(X)]∣≥t]  ≤  2e−t2/2L2for all t≥0.\mathbb P[|f(X)-\mathbb E[f(X)]|\ge t] \;\le\; 2e^{-t^2/2L^2} \qquad \text{for all } t\ge 0.P[∣f(X)−E[f(X)]∣≥t]≤2e−t2/2L2for all t≥0.

The bound is dimension-free: it depends on nnn only through fff's Lipschitz constant, not the ambient dimension itself.

Milestone — Lemma 2.27 (Gaussian interpolation identity)

For any differentiable fff and convex φ\varphiφ, E[φ(f(X)−E[f(X)])]≤E[φ(π2⟨∇f(X),Y⟩)]\mathbb E[\varphi(f(X)-\mathbb E[f(X)])] \le \mathbb E[\varphi(\tfrac\pi2\langle\nabla f(X),Y\rangle)]E[φ(f(X)−E[f(X)])]≤E[φ(2π​⟨∇f(X),Y⟩)] for X,Y∼N(0,In)X,Y\sim N(0,I_n)X,Y∼N(0,In​) independent — the interpolation identity Theorem 2.26's proof is built on.

Milestone — Theorem 2.19 (martingale Bernstein bound)

Given a martingale difference sequence with a per-index sub-exponential conditional moment-generating-function bound E[eλDk∣Fk−1]≤eλ2νk2/2\mathbb E[e^{\lambda D_k}\mid\mathcal F_{k-1}]\le e^{\lambda^2\nu_k^2/2}E[eλDk​∣Fk−1​]≤eλ2νk2​/2 for ∣λ∣<1/αk|\lambda|<1/\alpha_k∣λ∣<1/αk​, the sum ∑kDk\sum_k D_k∑k​Dk​ is itself sub-exponential with parameters (∑kνk2, max⁡kαk)\big(\sqrt{\sum_k\nu_k^2},\ \max_k\alpha_k\big)(∑k​νk2​​, maxk​αk​), and satisfies the two-regime concentration inequality of Eq. (2.28): sub-Gaussian for small deviations, sub-exponential for large ones. This is the chapter's central general-purpose martingale concentration tool.

Significance

Theorem 2.19 is the source of two of the most-cited concentration inequalities in the field — the Azuma–Hoeffding inequality (Corollary 2.20) and the bounded-differences/McDiarmid inequality (Corollary 2.21), both already faithfully covered elsewhere on the platform (azuma_hoeffding_two_sided, bounded_diff_martingale_two_sided) and included here as kind: reference milestones rather than redrafted. Theorem 2.26's Gaussian Lipschitz concentration is separately significant: it is the tool behind dimension-free operator-norm bounds for random matrices, concentration of the empirical spectral distribution, and much of the machinery of Chapters 5 and 6 of the same book.

Formalizing it. No faithful prior art exists on the platform for either the martingale Bernstein bound or Lipschitz-Gaussian concentration itself (a fresh search for "martingale Bernstein," "sub-exponential martingale," "Gaussian interpolation," and "Lipschitz concentration" returned no hits; the existing Vershynin-book item HighDimProb.Isoperimetry.lipschitz_concentration_sphere concentrates a Lipschitz function on the sphere, a different underlying space and a different proof from Theorem 2.26's Gaussian vector). Both goal-adjacent theorems and the Gaussian interpolation lemma are drafted here as open goals (:= by sorry); the two Azuma–Hoeffding/bounded-differences corollaries are reused from the platform's existing, already-proved formalizations.

Difficulty

The naive approach to Theorem 2.26 — try to bound f(X)−E[f(X)]f(X)-\mathbb E[f(X)]f(X)−E[f(X)] directly via a Lipschitz-type argument in Rn\mathbb R^nRn — has no obvious route to a dimension-free bound, since a union bound over coordinates (or over an ε\varepsilonε-net of the domain) picks up a factor that grows with nnn. The resolution, Lemma 2.27's interpolation identity, instead exploits a special structural fact about the Gaussian distribution — its rotation invariance — to replace the nonlinear quantity f(X)−E[f(X)]f(X)-\mathbb E[f(X)]f(X)−E[f(X)] with the linear, and hence exactly computable, Gaussian quantity ⟨∇f(X),Y⟩\langle\nabla f(X),Y\rangle⟨∇f(X),Y⟩, at the mild cost of a non-optimal constant. Theorem 2.19's difficulty is bookkeeping rather than a conceptual obstruction: the recursive conditioning step (Eq. (2.29)) must be iterated exactly nnn times while keeping track of the interplay between the two parameters νk,αk\nu_k,\alpha_kνk​,αk​ per difference, and Proposition 2.9's two-regime tail bound (small-deviation sub-Gaussian behavior, large-deviation sub-exponential behavior) must be carried through unchanged into the final statement — dropping either regime understates what the theorem proves.

Formalization scope

Expectations are Bochner integrals against an explicit probability measure, with integrability required as an explicit hypothesis in IsSubGaussian and IsSubExponential (Mathlib's Bochner integral silently returns 000 for a non-integrable function, which this mission's definitions rule out as a trivializing formalization). The sub-exponential condition's domain restriction |λ| < 1/α is realized as the disjunction α = 0 ∨ |λ| < 1/α, since Lean's real division convention 1/0 = 0 is exactly backwards from the book's own stated 1/0 = +\infty convention for the degenerate sub-Gaussian case.

"X,Y∼N(0,In)X,Y\sim N(0,I_n)X,Y∼N(0,In​) independent" (Lemma 2.27, Theorem 2.26) is formalized via Mathlib's HasGaussianLaw predicate together with explicit coordinatewise mean-zero and identity-covariance hypotheses, which together pin down the standard multivariate normal law, plus IndepFun. The inner product ⟨∇f(X),Y⟩\langle\nabla f(X),Y\rangle⟨∇f(X),Y⟩ is realized as fderiv ℝ f (X ω) (Y ω), the Fréchet derivative applied to Y(ω)Y(\omega)Y(ω) — equal to ⟨∇f(X(ω)),Y(ω)⟩\langle\nabla f(X(\omega)),Y(\omega)\rangle⟨∇f(X(ω)),Y(ω)⟩ by the Riesz representation of the gradient on a Hilbert space, avoiding the need to separately construct a gradient vector field.

Theorem 2.19's printed parameter pair for part (a), "(∑kνk2,α∗)(\sum_k\nu_k^2,\alpha_*)(∑k​νk2​,α∗​)," is formalized as (∑kνk2,α∗)(\sqrt{\sum_k\nu_k^2},\alpha_*)(∑k​νk2​​,α∗​): Definition 2.7 parametrizes the sub-exponential MGF bound by ν\nuν (with ν2\nu^2ν2 appearing in the exponent), so a literal transcription of the printed pair's first entry would silently square the effective parameter and make part (a), read literally, inconsistent with part (b)'s own tail-bound formula (which the book derives from part (a) via the general sub-exponential tail bound, Proposition 2.9). The corrected pairing is the one the book's own proof actually establishes; see MODERATION_NOTES.md for the full derivation.

Out of scope for this mission: Proposition 2.5 (plain Hoeffding for a sum of independent sub-Gaussians), used in the book only as background for Theorem 2.26's proof and not redrafted, since the goal theorem's own statement does not depend on it once Lemma 2.27 is in hand.

Selected references

  • M. J. Wainwright, High-Dimensional Statistics: A Non-Asymptotic Viewpoint, Cambridge University Press, 2019. DOI: 10.1017/9781108627771. Chapter 2.
  • K. Azuma, "Weighted sums of certain dependent random variables," Tôhoku Mathematical Journal, 19:357–367, 1967.
  • W. Hoeffding, "Probability inequalities for sums of bounded random variables," Journal of the American Statistical Association, 58:13–30, 1963.
8 thms4 active usersReviewed
🏆Completed
Reinforcement LearningStatistics·Captain: mikedeng1

Foundations of Reinforcement Learning III: Structured Bandits and the Decision-Estimation CoefficientTextbook

Motivation

Every algorithm in the first three chapters of Foster and Rakhlin's Foundations of Reinforcement Learning and Interactive Decision Making — ε-Greedy and UCB for the multi-armed bandit, Inverse Gap Weighting and SquareCB for contextual bandits — is a special case of the same two-step recipe: estimate a model of the world with an online regression oracle, then convert the estimate into a decision that trades exploration against exploitation. Chapter 4 asks whether this recipe can be made generic: given any structured decision-making problem, specified only by a function class FFF and a decision space Π\PiΠ, is there a single quantity that governs the best achievable regret, the way A/γ\sqrt{A/\gamma}A/γ​ governs the multi-armed bandit and d/γ\sqrt{d/\gamma}d/γ​ governs the linear bandit? The chapter's answer is the Decision-Estimation Coefficient (DEC), introduced by Foster, Kakade, Qian, and Rakhlin [40] as a complexity measure that both upper- and lower-bounds achievable regret for a general decision-making protocol, unifying results that were previously proved from scratch, case by case, for each structured setting. This mission formalizes the chapter's central upper bound (Proposition 13) together with the machinery that makes it computable in two concrete cases — the multi-armed bandit (Proposition 14) and the linear bandit (Propositions 16–17).

Setting

Fix a finite decision space Π\PiΠ and a class F⊆RΠF \subseteq \mathbb{R}^\PiF⊆RΠ of candidate mean-reward functions, with a ground-truth f⋆∈Ff^\star \in Ff⋆∈F (realizability). Over TTT rounds, at each round ttt the learner observes an estimate f^t\hat f_tf^​t​ produced by an online regression oracle, plays a decision distribution pt∈Δ(Π)p_t \in \Delta(\Pi)pt​∈Δ(Π) (possibly depending on f^t\hat f_tf^​t​ and the history), and the regret is

Reg:=∑t=1Tf⋆(π⋆)−∑t=1TEπ∼pt[f⋆(π)],\mathrm{Reg} := \sum_{t=1}^T f^\star(\pi^\star) - \sum_{t=1}^T \mathbb{E}_{\pi \sim p_t}[f^\star(\pi)],Reg:=t=1∑T​f⋆(π⋆)−t=1∑T​Eπ∼pt​​[f⋆(π)],

where π⋆=arg⁡max⁡πf⋆(π)\pi^\star = \arg\max_\pi f^\star(\pi)π⋆=argmaxπ​f⋆(π). The oracle's cumulative estimation error is assumed bounded: ∑t=1TEπ∼pt[(f^t(π)−f⋆(π))2]≤EstSq(F,T,δ)\sum_{t=1}^T \mathbb{E}_{\pi \sim p_t}[(\hat f_t(\pi) - f^\star(\pi))^2] \le \mathrm{EstSq}(F,T,\delta)∑t=1T​Eπ∼pt​​[(f^​t​(π)−f⋆(π))2]≤EstSq(F,T,δ) with probability at least 1−δ1-\delta1−δ (Definition 7). Writing πf:=arg⁡max⁡πf(π)\pi_f := \arg\max_\pi f(\pi)πf​:=argmaxπ​f(π), the DEC game value at a reference model f^\hat ff^​ and scale γ>0\gamma > 0γ>0 is the min-max quantity

decγ(F,f^):=min⁡p∈Δ(Π)max⁡f∈F  Eπ∼p[f(πf)−f(π)−γ(f(π)−f^(π))2],\mathrm{dec}_\gamma(F, \hat f) := \min_{p \in \Delta(\Pi)} \max_{f \in F} \; \mathbb{E}_{\pi \sim p}\bigl[f(\pi_f) - f(\pi) - \gamma(f(\pi) - \hat f(\pi))^2\bigr],decγ​(F,f^​):=p∈Δ(Π)min​f∈Fmax​Eπ∼p​[f(πf​)−f(π)−γ(f(π)−f^​(π))2],

and the DEC of FFF itself is decγ(F):=sup⁡f^∈co(F)decγ(F,f^)\mathrm{dec}_\gamma(F) := \sup_{\hat f \in \mathrm{co}(F)} \mathrm{dec}_\gamma(F, \hat f)decγ​(F):=supf^​∈co(F)​decγ​(F,f^​). The Estimation-to-Decisions (E2D) algorithm plays, at each round, a ptp_tpt​ certifying (i.e. attaining or beating) the value of this min-max game at f^t\hat f_tf^​t​.

Formalization targets

Goal — Proposition 13 (E2D regret bound)

Reg≤decγ(F)⋅T+γ⋅EstSq(F,T,δ)\mathrm{Reg} \le \mathrm{dec}_\gamma(F) \cdot T + \gamma \cdot \mathrm{EstSq}(F, T, \delta)Reg≤decγ​(F)⋅T+γ⋅EstSq(F,T,δ)

with probability at least 1−δ1-\delta1−δ, for any exploration parameter γ>0\gamma > 0γ>0. This is the weakest stable statement the chapter proves about E2D: it holds for an arbitrary function class and an arbitrary regression oracle, with no structural assumption on FFF beyond realizability, and the chapter's later sections instantiate it rather than strengthen it.

Milestones

  • Lemma 9 (Decoupling), general form: for any distribution ν\nuν over a finite model class and any fˉ\bar ffˉ​, Ef∼ν[f(πf)−fˉ(πf)]≤A⋅Ef∼νEπ∼p[(f(π)−fˉ(π))2]\mathbb{E}_{f\sim\nu}[f(\pi_f) - \bar f(\pi_f)] \le \sqrt{A \cdot \mathbb{E}_{f\sim\nu}\mathbb{E}_{\pi\sim p}[(f(\pi)-\bar f(\pi))^2]}Ef∼ν​[f(πf​)−fˉ​(πf​)]≤A⋅Ef∼ν​Eπ∼p​[(f(π)−fˉ​(π))2]​ — the estimation-to-decisions bridge the whole chapter's approach rests on, decoupling the model index from the played decision.
  • Proposition 14 (IGW minimizes the DEC): for the multi-armed bandit (Π=[A]\Pi=[A]Π=[A], F=RAF=\mathbb{R}^AF=RA), Inverse Gap Weighting is the exact minimizer of the DEC game, giving decγ(F)=(A−1)/(4γ)\mathrm{dec}_\gamma(F) = (A-1)/(4\gamma)decγ​(F)=(A−1)/(4γ) — the first concrete computation of an abstract quantity, recovering Chapter 3's rate from Proposition 13 alone.
  • Proposition 16 (G-optimal design): existence, for any compact full-dimensional-span set Z⊆RdZ \subseteq \mathbb{R}^dZ⊆Rd, of a distribution ppp with sup⁡z∈Z⟨Σp−1z,z⟩≤d\sup_{z\in Z}\langle \Sigma_p^{-1}z,z\rangle \le dsupz∈Z​⟨Σp−1​z,z⟩≤d — the classical convex-analysis primitive Proposition 17 needs.
  • Proposition 17 (DEC for linear bandits): combining the G-optimal design with inverse gap weighting gives decγ(F)≲d/γ\mathrm{dec}_\gamma(F) \lesssim d/\gammadecγ​(F)≲d/γ for the linear bandit function class, leading via Proposition 13 to a dT\sqrt{dT}dT​ regret bound.

Significance

The Decision-Estimation Coefficient is, in the book's own words, "the main result" of this line of work: Foster, Kakade, Qian, and Rakhlin [40] show it is not merely an upper bound but (in a suitable localized form, developed further in Chapter 6) a tight characterization of the minimax regret for structured bandits and, more generally, for the interactive decision-making protocol the rest of the book studies. Proposition 13 is the mechanism that makes this useful in practice: it reduces regret analysis for a new structured problem to a single, purely convex-analytic computation of decγ(F)\mathrm{dec}_\gamma(F)decγ​(F), in place of a bespoke exploration argument. Propositions 14–17 are the demonstration that this reduction is not vacuous — they recompute, via the DEC alone, the two rates (multi-armed and linear bandit) that earlier chapters of the book derived by direct, setting-specific arguments, and the match is exact. Formalizing this chapter therefore captures the book's unifying abstraction itself, not just one more instance of it. No formalization of the Decision-Estimation Coefficient, in any form, currently exists on the platform (see Formalization scope).

Difficulty

The obvious formalization mistake is to state Proposition 13's conclusion with decγ(F)\mathrm{dec}_\gamma(F)decγ​(F) left as an unconstrained free real-number parameter satisfying only the inequality the theorem asserts — a formalization under which the "theorem" would be a triviality about an arbitrary real number, since nothing about the actual min-max game would ever be checked. The chapter's content is precisely the opposite: that this specific minimax quantity can be computed (Proposition 14) or bounded via a concrete strategy (Proposition 17), and — as Chapter 6 shows for a lower bound outside this chunk's scope — that no smaller quantity would do. A second difficulty is proof-theoretic rather than notational: the book's own proof of Proposition 13 bounds regret by an unconstrained supremum over all reference functions f^:Π→R\hat f : \Pi \to \mathbb{R}f^​:Π→R, and only identifies this with the official, co(F)\mathrm{co}(F)co(F)-restricted decγ(F)\mathrm{dec}_\gamma(F)decγ​(F) of Eq. (4.16) via Proposition 24 — a fact stated on p. 80, outside this chapter's numbered range, whose own proof the book defers to an exercise. A formalization that quietly imports Proposition 24 to close this gap would rest the goal theorem on an unverified fact; this mission instead states the hypothesis the book's own text uses to motivate restricting to co(F)\mathrm{co}(F)co(F) in the first place (online estimation algorithms produce f^t∈co(F)\hat f_t \in \mathrm{co}(F)f^​t​∈co(F)), so the goal is faithful to what is actually established within the chapter's own pages.

Formalization scope

Every item fixes a finite decision space (Fin A, Fin n, or a generic Fintype S) and states the DEC as the literal sInf-of-sSup transcription of the min-max game (Eqs. (4.15)–(4.16)), never as an opaque bound — this is the trivializing formalization the chunk's own reading of the chapter rules out (see Difficulty). piStar : (S → ℝ) → S is a hypothesized global maximizer selector throughout, constrained to be a genuine argmax only on the function class in scope (F or Set.univ), matching how the book treats πf\pi_fπf​ as a fixed but arbitrary tie-breaking choice. The goal theorem (Proposition 13) adds the explicit hypothesis hfhat : ∀ t, fhat t ∈ convexHull ℝ F, replacing an appeal to the out-of-range Proposition 24 (see Difficulty); this is the one place this mission's statement is not a line-by-line transcription of the book's own displayed proof steps, and it is recorded here and in MODERATION_NOTES.md. Proposition 14's and Proposition 17's ≲\lesssim≲ are replaced by the explicit constants the book's own proofs establish ((A−1)/(4γ)(A-1)/(4\gamma)(A−1)/(4γ) exactly, and (4d+1)/(2γ)(4d+1)/(2\gamma)(4d+1)/(2γ) respectively — the latter obtained by summing the three terms the proof of Proposition 17 isolates). Proposition 14's Lean statement splits the book's single equality decγ(F,f^)=(A−1)/(4γ)\mathrm{dec}_\gamma(F,\hat f) = (A-1)/(4\gamma)decγ​(F,f^​)=(A−1)/(4γ) into an upper bound on the literal decGf, a lower bound restricted to full-support distributions, and IGW's own exact game value, because the book's min over the whole simplex is not provable as a literal Lean equality: a distribution with a zero-weight arm makes the inner supremum genuinely unbounded, and Lean's total Real.sSup returns a junk value smaller than (A−1)/(4γ)(A-1)/(4\gamma)(A−1)/(4γ) there (caught in moderation, MODERATION_NOTES.md); the three-conjunct statement recovers exactly the book's real content without asserting that false literal equality. Lemma 9 is restated inside FoundationsRL.Structured rather than imported from the Chapter 2 mission, since draft items across chunks cannot import one another; its source citation still points to its original location (p. 32). Proposition 16 is not drafted: the platform's existing BanditAlgorithm.kiefer_wolfowitz_equivalence (Lattimore & Szepesvári, Theorem 21.1) states the identical existence claim — compact set with full-dimensional span, a design with G-value at most ddd — as one clause of a larger equivalence, and is reused as a reference item rather than redrafted. Proposition 22 (primal/dual DEC equivalence, §4.4) is deliberately excluded: the book states it "under mild regularity conditions" it does not pin down in the statement itself, which is exactly the kind of unquantified hypothesis this series' faithfulness standard excludes from a goal or milestone. Contributions extending this mission with Chapter 6's lower bound (matching decγ(F)\mathrm{dec}_\gamma(F)decγ​(F) from below, establishing tightness) or with a formalization of Proposition 24 itself (removing this mission's hfhat hypothesis) are welcome.

Selected references

  • D. Foster, S. Kakade, J. Qian, and A. Rakhlin, The Statistical Complexity of Interactive Decision Making, arXiv:2112.13487, 2021. https://arxiv.org/abs/2112.13487
  • D. Foster and A. Rakhlin, Foundations of Reinforcement Learning and Interactive Decision Making, arXiv:2312.16730, 2023. https://arxiv.org/abs/2312.16730
  • T. Lattimore and C. Szepesvári, Bandit Algorithms, Cambridge University Press, 2020.
  • J. Kiefer and J. Wolfowitz, The Equivalence of Two Extremum Problems, Canadian Journal of Mathematics, 1960.
9 thms4 active usersReviewed
🏆Completed
Convex OptimizationOptimization·Captain: mikedeng1

Introduction to Online Convex Optimization I: Learning from Expert Advice and the Hedge AlgorithmTextbook

Motivation

Consider a decision maker who must choose, at each of TTT rounds, between two actions on the advice of NNN "experts," none of which is known in advance to be reliable. This is the prediction-from-expert-advice problem, introduced by Littlestone and Warmuth [Littlestone & Warmuth, The Weighted Majority Algorithm, FOCS 1989/Inf. Comput. 1994] and generalized to real-valued losses by Freund and Schapire's Hedge algorithm [Freund & Schapire, A decision-theoretic generalization of on-line learning and an application to boosting, JCSS 1997]. It is one of the two founding problems of online learning (the other being universal portfolio selection, also introduced in this book's first chapter) and the historical origin of the multiplicative-weights update method, later recognized as a single algorithmic idea underlying results across game theory, optimization, and computational complexity [Arora, Hazan & Kale, The Multiplicative Weights Update Method: a Meta-Algorithm and Applications, Theory of Computing 2012]. This mission formalizes the chapter's three central guarantees: a matching deterministic lower bound, the Weighted Majority mistake bound, and Hedge's loss bound — the earliest instance, in the book's own development, of the "online convex optimization" phenomenon that its later chapters generalize to arbitrary convex losses.

Setting

At each round t=1,…,Tt = 1, \dots, Tt=1,…,T, a decision maker chooses one of two actions, AAA or BBB. After the choice, the true outcome for that round is revealed, and any action that disagrees with it is charged a mistake. NNN experts also each commit to a prediction every round, and the decision maker may consult their record.

The Weighted Majority (WM) algorithm maintains a weight Wt(i)W_t(i)Wt​(i) for each expert iii, initialized to W1(i)=1W_1(i) = 1W1​(i)=1. It predicts whichever action currently carries at least half the total weight, and after seeing the outcome, multiplies the weight of every expert who erred by (1−ε)(1-\varepsilon)(1−ε) for a fixed parameter ε∈(0,1/2)\varepsilon \in (0, 1/2)ε∈(0,1/2), leaving correct experts' weights unchanged. MTM_TMT​ denotes the algorithm's own mistake count through round TTT, and MT(i)M_T(i)MT​(i) expert iii's.

The Randomized Weighted Majority (RWM) algorithm uses the same weights, but instead of following the majority it samples an expert with probability proportional to its weight, pt(i)=Wt(i)/∑jWt(j)p_t(i) = W_t(i) / \sum_j W_t(j)pt​(i)=Wt​(i)/∑j​Wt​(j), and follows that expert's prediction; E[MT]\mathbb E[M_T]E[MT​] is its expected mistake count.

Hedge generalizes further, from binary mistakes to arbitrary non-negative real-valued losses ℓt(i)≥0\ell_t(i) \ge 0ℓt​(i)≥0 suffered by expert iii at round ttt. It samples expert iti_tit​ with probability xt(i)=Wt(i)/∑jWt(j)x_t(i) = W_t(i)/\sum_j W_t(j)xt​(i)=Wt​(i)/∑j​Wt​(j) from weights updated multiplicatively in the loss, Wt+1(i)=Wt(i) e−εℓt(i)W_{t+1}(i) = W_t(i) \, e^{-\varepsilon \ell_t(i)}Wt+1​(i)=Wt​(i)e−εℓt​(i). Writing losses and the mixed strategy as vectors, the algorithm's expected loss at round ttt is xt⊤ℓtx_t^\top \ell_txt⊤​ℓt​.

Formalization targets

Goal — Theorem 1.5 (Hedge's loss bound)

∑t=1Txt⊤ℓt  ≤  ∑t=1Tℓt(i⋆)  +  ε∑t=1Txt⊤ℓt2  +  log⁡Nε,∀ i⋆∈[N],\sum_{t=1}^T x_t^\top \ell_t \;\le\; \sum_{t=1}^T \ell_t(i^\star) \;+\; \varepsilon \sum_{t=1}^T x_t^\top \ell_t^2 \;+\; \frac{\log N}{\varepsilon}, \qquad \forall\, i^\star \in [N],t=1∑T​xt⊤​ℓt​≤t=1∑T​ℓt​(i⋆)+εt=1∑T​xt⊤​ℓt2​+εlogN​,∀i⋆∈[N],

where ℓt2(i):=ℓt(i)2\ell_t^2(i) := \ell_t(i)^2ℓt2​(i):=ℓt​(i)2. This is the chapter's most general result and the one the book reuses later on; it leaves ε\varepsilonε free (no asymptotic tuning), so it survives whatever later chapters do with ε\varepsilonε.

Milestones

  • Theorem 1.1 (deterministic lower bound). With L≤T/2L \le T/2L≤T/2 the best expert's mistake count, no deterministic algorithm can guarantee fewer than 2L2L2L mistakes on every instance.
  • Lemma 1.3 (Weighted Majority): MT≤2(1+ε)MT(i)+2log⁡N/εM_T \le 2(1+\varepsilon) M_T(i) + 2\log N/\varepsilonMT​≤2(1+ε)MT​(i)+2logN/ε for every expert iii.
  • Lemma 1.4 (Randomized Weighted Majority): E[MT]≤(1+ε)MT(i)+log⁡N/ε\mathbb E[M_T] \le (1+\varepsilon) M_T(i) + \log N /\varepsilonE[MT​]≤(1+ε)MT​(i)+logN/ε for every expert iii.

Significance

Theorem 1.1 shows the mistake-bound question has no trivial answer: even against only two maximally simple experts, any deterministic strategy is beaten by a factor of 222 by an adversary who knows its code. Lemmas 1.3 and 1.4 show this factor is essentially removable — first by relaxing "guarantee" to "guarantee in expectation" (RWM halves the deterministic penalty from 2(1+ε)2(1+\varepsilon)2(1+ε) to (1+ε)(1+\varepsilon)(1+ε)), then Theorem 1.5 removes the binary-mistake restriction altogether, replacing it with an explicit second-moment correction term ε∑txt⊤ℓt2\varepsilon \sum_t x_t^\top \ell_t^2ε∑t​xt⊤​ℓt2​ that vanishes as losses shrink. Together they trace the chapter's own narrative arc from "no algorithm beats 2L2L2L" to "an explicit, parameter-free family of algorithms gets within (1+ε)(1+\varepsilon)(1+ε) of the best expert for any ε\varepsilonε." All four results are proved by the book via the same device — a potential function Φt=∑iWt(i)\Phi_t = \sum_i W_t(i)Φt​=∑i​Wt​(i) — one of the first instances of the potential-function method that recurs throughout the rest of the book (e.g. Online Gradient Descent's regret proof) and throughout online learning generally. None of these four statements, in this exact form, has a formalized proof on Prove2Me or (to the extent searchable) elsewhere: the platform's closest existing result, BanditAlgorithm.ftrl_simplex_exp_weights_regret (see Formalization scope below), proves an asymptotically similar bound by an entirely different route and under a different loss model.

Difficulty

The natural first attempt at any of these bounds is to track MTM_TMT​ (or E[MT]\mathbb E[M_T]E[MT​], or ∑txt⊤ℓt\sum_t x_t^\top \ell_t∑t​xt⊤​ℓt​) directly and induct on TTT; this fails because the quantity itself has no useful recursive structure — knowing the algorithm's mistake count through round ttt says nothing about round t+1t+1t+1's outcome, which the adversary chooses to inflict maximum damage. The proofs instead introduce an auxiliary potential Φt=∑iWt(i)\Phi_t = \sum_i W_t(i)Φt​=∑i​Wt​(i) that is not the quantity being bounded, track it in two directions — an upper bound in terms of the algorithm's own performance (using 1+x≤ex1+x \le e^x1+x≤ex, or, for Hedge, e−x≤1−x+x2e^{-x} \le 1-x+x^2e−x≤1−x+x2 for x≥0x \ge 0x≥0) and a lower bound via the single best expert's weight, WT(i⋆)≤ΦTW_T(i^\star) \le \Phi_TWT​(i⋆)≤ΦT​ — and only convert back to the mistake/loss bound at the very end via one logarithm. Getting the direction of every inequality right (each of the four proofs chains four or five inequalities, each valid only in the stated parameter range) is the entire difficulty; there is no shortcut that avoids introducing Φt\Phi_tΦt​.

Formalization scope

Each algorithm is represented as a Prop-valued run predicate parametrizing over the weight sequence, the input (expert predictions/losses and true outcomes), and the algorithm's own output (predictions or mixed strategy), rather than as an executable program: IsHedgeRun fixes W 0 i = 1, the update W (t+1) i = W t i * exp(-ε * ℓ t i), and x t i = W t i / ∑ j, W t j; IsWeightedMajorityRun additionally fixes the majority-vote prediction rule explicitly (per the triage rubric, the algorithm is part of the audited statement here, not a black box the proof is free to instantiate). Randomization in RWM and Hedge is captured exactly as the book itself does — as a deterministic expectation, i.e. the inner product of the probability vector with the {0,1}-mistake or loss vector — rather than as a measure-theoretic random variable; the book's own Section 1.3.3 makes this identification explicit ("denote in vector notation the expected loss of the algorithm by E[ℓt(it)]=xt⊤ℓt\mathbb E[\ell_t(i_t)] = x_t^\top \ell_tE[ℓt​(it​)]=xt⊤​ℓt​"), so no probability space is introduced. Theorem 1.1's "deterministic algorithm" is a causal map from an outcome history to a prediction (prediction at round ttt depends only on outcomes before ttt), instantiated at the book's own two-expert construction (one expert always predicts AAA, the other always BBB) rather than a fully general NNN-expert adversary argument — a strictly weaker instance of the general claim, but the exact one the book's proof establishes, so no scope is lost relative to what is proved. ε\varepsilonε is kept as an explicit free parameter throughout, per the book's own presentation (no substitution of the corollary's optimized ε⋆=log⁡N/MT(i⋆)\varepsilon^\star = \sqrt{\log N / M_T(i^\star)}ε⋆=logN/MT​(i⋆)​ into the milestone statements).

A trivializing formalization to rule out: fixing N=1N = 1N=1 (a single expert) would make Lemmas 1.3–1.5 hold vacuously with MT=MT(i)M_T = M_T(i)MT​=MT​(i) regardless of the potential-function argument; every formal statement here quantifies over an unconstrained N:NN : \mathbb NN:N with N>0N > 0N>0, not a hard-coded small case.

The mission needs no Mathlib infrastructure beyond finite sums, Real.log, and Real.exp; the book's own OCO protocol and regret definition (§1.1) are not needed, since this chapter's proofs work directly with mistake/loss counts (per the chunk brief). BanditAlgorithm.ftrl_simplex_exp_weights_regret (Bandit Algorithms XII, Prop. 28.7, arXiv:2003.05963 §28) proves Rn≤2nlog⁡dR_n \le \sqrt{2n\log d}Rn​≤2nlogd​ for exponential weights on the simplex against [0,1][0,1][0,1]-valued losses, via an FTRL/mirror-descent instantiation — the same asymptotic phenomenon as Theorem 1.5, but a different proof technique, a different (bounded, not merely non-negative) loss assumption, and stated for simplex-comparator regret rather than the per-expert loss comparator here; it is listed as a reference/comparison point, not reused.

Selected references

  • N. Littlestone, M. Warmuth, The Weighted Majority Algorithm, FOCS 1989 / Information and Computation 108(2), 1994. https://doi.org/10.1006/inco.1994.1009
  • Y. Freund, R. Schapire, A Decision-Theoretic Generalization of On-Line Learning and an Application to Boosting, Journal of Computer and System Sciences 55(1), 1997. https://doi.org/10.1006/jcss.1997.1504
  • S. Arora, E. Hazan, S. Kale, The Multiplicative Weights Update Method: a Meta-Algorithm and Applications, Theory of Computing 8(1), 2012. https://doi.org/10.4086/toc.2012.v008a006
  • E. Hazan, Introduction to Online Convex Optimization, 2nd ed., arXiv:1909.05207v3, Chapter
    1. https://arxiv.org/abs/1909.05207
9 thms4 active usersReviewed
🏆Completed
Control TheoryFunctional Analysis·Captain: olivier

Universal Reservoir Computers from Non-Homogeneous State-Affine SystemsResearch Paper

Motivation

A reservoir computer learns a dynamical input/output relation with a recurrent network whose internal weights are fixed once and never trained; only a linear readout on the state is fitted. The method works in practice — it is a standard tool for learning chaotic dynamics — but its justification requires an approximation theorem: the family of reservoirs used must be rich enough to reach any reasonable target system.

The target class is fixed by fading memory, the continuity notion Boyd and Chua introduced in 1985 for the approximation of nonlinear operators: a filter has fading memory when inputs that agree on the recent past produce nearby present outputs, however much they differ long ago. The question is then which reservoir families are dense in that class.

Non-homogeneous state-affine systems are the family that answers it. They are affine in the state, with coefficients depending polynomially on the input, and the density result proved for them is what every later universality theorem for reservoir computing rests on — including the one for echo state networks, whose proof approximates a target filter by a state-affine system first and only then by a network.

Timeline.

  • 1985 — Boyd and Chua identify fading memory as the right continuity notion, and prove a universality result for Volterra series.
  • 2018 — Grigoryeva and Ortega prove that non-homogeneous state-affine systems with linear readouts are universal in the fading memory category, in discrete time and with uniformly bounded inputs.
  • 2018 — The same authors use that density result to prove that echo state networks are universal.

Setting

Time is indexed by the nonpositive integers, so an input has an infinite past and a present. Inputs are real-valued and bounded by one: the set IZ−I^{\mathbb{Z}_-}IZ−​ of sequences with zt∈[−1,1]z_t \in [-1,1]zt​∈[−1,1].

A non-homogeneous state-affine system is the reservoir

xt=p(zt) xt−1+q(zt),yt=W⊤xt,x_t = p(z_t)\,x_{t-1} + q(z_t), \qquad y_t = W^{\top} x_t ,xt​=p(zt​)xt−1​+q(zt​),yt​=W⊤xt​,

where ppp is a polynomial with N×NN \times NN×N matrix coefficients, qqq a polynomial with NNN-vector coefficients, and W∈RNW \in \mathbb{R}^NW∈RN the linear readout. Writing p(z)=∑jzjPjp(z) = \sum_j z^j P_jp(z)=∑j​zjPj​, the system is affine in the state and polynomial in the input.

Two constants govern it: Mp=max⁡z∈I∥p(z)∥2M_p = \max_{z \in I} \lVert p(z) \rVert_2Mp​=maxz∈I​∥p(z)∥2​ and Mq=max⁡z∈I∥q(z)∥2M_q = \max_{z \in I} \lVert q(z) \rVert_2Mq​=maxz∈I​∥q(z)∥2​. When Mp<1M_p < 1Mp​<1 the state map contracts, the system has the echo state property — exactly one bounded state sequence per input — and the states obey ∥xt∥≤Mq/(1−Mp)\lVert x_t \rVert \le M_q/(1 - M_p)∥xt​∥≤Mq​/(1−Mp​). The induced map from input history to present output is the SAS functional HWp,qH^{p,q}_WHWp,q​.

Formalization targets

Goal — state-affine systems are universal

∀ H with fading memory, ∀ε∈(0,1), ∃ p,q,W with Mp,Mq<1−ε:sup⁡z∣H(z)−HWp,q(z)∣<ε.\forall\, H \text{ with fading memory},\ \forall \varepsilon \in (0,1),\ \exists\, p,q,W \text{ with } M_p, M_q < 1-\varepsilon:\quad \sup_{z} \bigl| H(z) - H^{p,q}_W(z) \bigr| < \varepsilon .∀H with fading memory, ∀ε∈(0,1), ∃p,q,W with Mp​,Mq​<1−ε:zsup​​H(z)−HWp,q​(z)​<ε.

Any fading memory filter on uniformly bounded scalar inputs is approximated, uniformly over all such inputs, by a state-affine system read out linearly.

Supporting — the echo state property under a contracting polynomial

max⁡z∈I∥p(z)∥2<1  ⟹  exactly one bounded state sequence, with ∥xt∥≤Mq/(1−Mp).\max_{z \in I} \lVert p(z) \rVert_2 < 1 \;\Longrightarrow\; \text{exactly one bounded state sequence, with } \lVert x_t \rVert \le M_q/(1-M_p).z∈Imax​∥p(z)∥2​<1⟹exactly one bounded state sequence, with ∥xt​∥≤Mq​/(1−Mp​).

Significance

The result itself. It is the density theorem of reservoir computing. Without it, nothing guarantees that a reservoir family can represent the system one is trying to learn, and the practice of fitting only a linear readout has no theoretical backing. It is also the input to the universality theorem for echo state networks: that proof replaces the target filter by a state-affine system before replacing it by a network, so the present result is a prerequisite rather than a parallel statement.

Formalizing it. The supporting target is a specialization of a result already published on this platform: a state-affine system is a contracting reservoir map, so its echo state property follows from the abstract contraction theorem rather than from a new argument. What this mission adds beyond that is the density statement itself, which is of a different nature — an approximation theorem in a function space, not a fixed point argument.

Difficulty

The obvious approach to the goal is to exhibit an approximating system directly, and it fails: the target is an arbitrary fading memory filter, given by no formula, so no construction can be read off it. The proof is not constructive in that sense. It proceeds instead by showing that the family of SAS functionals is a polynomial algebra which separates points and contains the constants, and by applying a Stone-Weierstrass argument on a space of input sequences made compact by the weighted topology.

Two points resist. The compactness is not that of the supremum norm — the space of uniformly bounded sequences is not compact for it — but of the weighted norm, and it is that topology in which the approximation is obtained. And the algebra property is delicate: the product of two SAS functionals must again be one, which is what forces the non-homogeneous form. The corresponding statement fails for linear reservoirs, whose products leave the family.

Formalization scope

Time is indexed by N\mathbb{N}N, index kkk denoting the instant kkk steps into the past and k=0k = 0k=0 the present; the system equation reads xk=p(zk)xk+1+q(zk)x_k = p(z_k) x_{k+1} + q(z_k)xk​=p(zk​)xk+1​+q(zk​). This is a relabelling of the source's indexing, not a weakening.

Inputs are scalar, as in the source's Section 3, where the restriction is made explicit and the multidimensional extension deferred to a remark. Polynomials are given by their coefficient families, and evaluated as ∑jzjPj\sum_j z^j P_j∑j​zjPj​; the bounds MpM_pMp​ and MqM_qMq​ are stated as explicit operator and norm bounds valid on [−1,1][-1,1][−1,1] rather than through a maximum, so that any valid bound may be supplied.

The fading memory property of the target is the one already published on this platform, stated for a functional rather than a filter: the two are in linear bijection, so nothing is lost and causality and time-invariance need not be formalized separately.

One trivialization is ruled out. The goal quantifies over state sequences satisfying the system equation, and the supporting target is what guarantees such a sequence exists and is unique under the stated bounds; without it, the approximation claim could be read as vacuous.

A complete development needs the Stone-Weierstrass theorem, available in Mathlib, together with compactness of the weighted sequence space, which is not and has to be built. Contributions are welcome on both targets.

Selected references

  • L. Grigoryeva, J.-P. Ortega, Universal discrete-time reservoir computers with stochastic inputs and linear readouts using non-homogeneous state-affine systems, Journal of Machine Learning Research 19(24) (2018), 1–40. https://jmlr.org/papers/v19/18-020.html · https://arxiv.org/abs/1712.00754
  • L. Grigoryeva, J.-P. Ortega, Echo state networks are universal, Neural Networks 108 (2018), 495–508. https://doi.org/10.1016/j.neunet.2018.08.025 · https://arxiv.org/abs/1806.00797
  • S. Boyd, L. Chua, Fading memory and the problem of approximating nonlinear operators with Volterra series, IEEE Transactions on Circuits and Systems 32 (1985), 1150–1161. https://doi.org/10.1109/TCS.1985.1085649
8 thms4 active usersReviewed
🏆Completed
Operations ResearchOptimizationStatistics·Captain: Shuze Chen

Matrix Completion has No Spurious Local MinimumResearch Paper

Matrix completion — recovering a low-rank matrix M=ZZ⊤M = ZZ^\topM=ZZ⊤ from a small random subset of its entries — powers recommender systems and collaborative filtering. In practice it is solved by running (stochastic) gradient descent on the non-convex objective

f(X)=min⁡X12∥PΩ(M−XX⊤)∥F2+λR(X)f(X)=\min_X\frac12\|P_\Omega(M-XX^\top)\|_F^2+\lambda R(X)f(X)=Xmin​21​∥PΩ​(M−XX⊤)∥F2​+λR(X)

where Ω={(i,j)∣Mi,j is observed}\Omega=\{(i,j)|M_{i,j} \text{ is observed}\}Ω={(i,j)∣Mi,j​ is observed} and R(X)R(X)R(X) is a certain regularizer. from a random starting point, and it just works.

Ge, Lee and Ma (NeurIPS 2016 Best student paper award) explained why: the regularized objective has no spurious local minima — every local minimum is global and exactly recovers MMM. This mission formalizes that landmark theorem in Lean 4, in its strongest known form and along its simplest known proof: the unified landscape analysis of Ge–Jin–Zheng (ICML 2017) and an improved sampling bound in Chen–Li (JMLR 2019). Conditional on an explicit good-sample predicate (which holds with high probability under Bernoulli sampling), every local minimum XXX of fff satisfies XX⊤=ZZ⊤XX^\top = ZZ^\topXX⊤=ZZ⊤.

14 thms4 active users
🏆Completed
Bandit AlgorithmsOperations Research·Captain: Shuze Chen

Bandit Algorithms XV: Partial MonitoringTextbook

Bandit feedback is only one point on a spectrum: a learner might see more than its own loss (full information) or less (a spam filter never learns what happened to mail it deleted). Chapter 37 of Lattimore–Szepesvári studies finite adversarial games G=(L,Φ)G = (\mathcal{L}, \Phi)G=(L,Φ) where the loss matrix and the feedback matrix are decoupled. The goal theorem is the celebrated classification theorem: every finite partial-monitoring game has minimax regret exactly 000, Θ(n)\Theta(\sqrt{n})Θ(n​), Θ(n2/3)\Theta(n^{2/3})Θ(n2/3) or Ω(n)\Omega(n)Ω(n) — determined by two purely combinatorial conditions, global and local observability, on the game's neighbourhood structure. A single geometric dichotomy thus governs the price of information in every online decision problem with finite actions and feedback.

16 thms4 active users
🏆Completed
Bandit AlgorithmsOperations Research·Captain: Shuze Chen

Bandit Algorithms X: Stochastic Linear Bandits and LinUCBTextbook

When actions are feature vectors and the mean reward is linear — Xt=⟨θ∗,At⟩+ηtX_t = \langle \theta_*, A_t\rangle + \eta_tXt​=⟨θ∗​,At​⟩+ηt​ — a bandit can generalize across arms: pulling one arm reveals information about all of them. Chapter 19 of Lattimore–Szepesvári carries the optimism principle into this setting: LinUCB (a.k.a. OFUL) plays the action maximizing max⁡θ∈Ct⟨θ,a⟩\max_{\theta\in\mathcal{C}_t}\langle\theta, a\ranglemaxθ∈Ct​​⟨θ,a⟩ over the confidence ellipsoid Ct\mathcal{C}_tCt​ of Mission IX. The goal theorem: with probability 1−δ1-\delta1−δ, R^n≤8nβnlog⁡det⁡Vndet⁡V0≤8dnβnlog⁡dλ+nL2dλ\hat R_n \le \sqrt{8n\beta_n \log\frac{\det V_n}{\det V_0}} \le \sqrt{8dn\beta_n\log\frac{d\lambda + nL^2}{d\lambda}}R^n​≤8nβn​logdetV0​detVn​​​≤8dnβn​logdλdλ+nL2​​ — regret O~(dn)\tilde O(d\sqrt{n})O~(dn​) independent of the number of actions. The combinatorial engine is the elliptical potential lemma, bounding how many times adaptively chosen directions can be surprising. Chapter 22's phased elimination with G-optimal design (Mission IX) sharpens this to O~(dnlog⁡k)\tilde O(\sqrt{dn\log k})O~(dnlogk​) for finite action sets.

7 thms4 active usersReviewed
🏆Completed
Bandit AlgorithmsOperations Research·Captain: Shuze Chen

Bandit Algorithms IX: Self-Normalized Concentration and Optimal DesignTextbook

Least-squares estimation from adaptively collected data is the statistical heart of linear bandits: the actions AtA_tAt​ depend on past noise, so classical fixed-design theory does not apply. Chapter 20 of Lattimore–Szepesvári resolves this with the method of mixtures: the process Mt(x)=exp⁡(⟨x,St⟩−12∥x∥Vt(λ)2)M_t(x) = \exp(\langle x, S_t\rangle - \frac{1}{2}\|x\|^2_{V_t(\lambda)})Mt​(x)=exp(⟨x,St​⟩−21​∥x∥Vt​(λ)2​) is a supermartingale, and integrating over a Gaussian mixture yields the self-normalized bound — the goal theorem — P(∃t:∥St∥Vt(λ)−12≥2log⁡1δ+log⁡det⁡Vt(λ)λd)≤δ\mathbb{P}\big(\exists t : \|S_t\|^2_{V_t(\lambda)^{-1}} \ge 2\log\frac{1}{\delta} + \log\frac{\det V_t(\lambda)}{\lambda^d}\big) \le \deltaP(∃t:∥St​∥Vt​(λ)−12​≥2logδ1​+logλddetVt​(λ)​)≤δ, valid uniformly over all times. The resulting confidence ellipsoids for the regularized least-squares estimator (Abbasi-Yadkori et al.) calibrate every algorithm of Mission X. The mission also formalizes the Kiefer–Wolfowitz theorem of Chapter 21: G-optimal and D-optimal experimental designs coincide, with optimal value exactly ddd — the classical equivalence theorem of optimal design theory.

9 thms4 active usersReviewed
Linear OptimizationProbabilityStatistics·Captain: mikedeng1

The Dantzig Selector: Statistical Estimation When p Is Much Larger than n 2: Oracle Inequality within a Logarithmic Factor of the Ideal Mean Squared ErrorResearch Paper

Motivation

Many regression problems have far more unknown coefficients ppp than observations nnn: gene expression studies with tens of samples and thousands of genes, imaging from few measurements, nonparametric curve recovery from a finite number of noisy samples. Estimation is hopeless in general, but becomes possible when the parameter is sparse, that is, has few nonzero entries. Candès and Tao (arXiv:math/0506081; Ann. Statist. 35(6), 2007, doi:10.1214/009053606000001523) proposed the Dantzig selector, an estimator computed by a single linear program, and showed that its squared error is within a logarithmic factor of what an oracle that knew which coefficients matter could achieve.

The estimator became one of the two standard ℓ1\ell_1ℓ1​ methods for high-dimensional regression, alongside the Lasso; the comparison of the two by Bickel, Ritov and Tsybakov (arXiv:0801.1095, 2009) is built on it. This mission targets the paper's main result, the oracle inequality (Theorem 1.2). A companion mission covers the simpler ℓ2\ell_2ℓ2​ bound for sparse parameters (Theorem 1.1).

Setting

Observations follow the linear model

y=Xβ+z,y = X\beta + z,y=Xβ+z,

where X∈Rn×pX\in\mathbb R^{n\times p}X∈Rn×p is a deterministic design matrix with columns X1,…,XpX_1,\dots,X_pX1​,…,Xp​, each of Euclidean norm ∥Xj∥ℓ2=1\|X_j\|_{\ell_2}=1∥Xj​∥ℓ2​​=1; β∈Rp\beta\in\mathbb R^pβ∈Rp is an unknown deterministic parameter; and z=(z1,…,zn)z=(z_1,\dots,z_n)z=(z1​,…,zn​) has independent N(0,σ2)N(0,\sigma^2)N(0,σ2) coordinates, σ>0\sigma>0σ>0. The vector β\betaβ is SSS-sparse if at most SSS of its entries are nonzero.

Two constants of XXX measure how close sparse sets of columns are to being orthonormal. The restricted isometry constant δS\delta_SδS​ is the smallest δ≥0\delta\ge0δ≥0 such that (1−δ)∥c∥ℓ22≤∥Xc∥ℓ22≤(1+δ)∥c∥ℓ22(1-\delta)\|c\|_{\ell_2}^2\le\|Xc\|_{\ell_2}^2\le(1+\delta)\|c\|_{\ell_2}^2(1−δ)∥c∥ℓ2​2​≤∥Xc∥ℓ2​2​≤(1+δ)∥c∥ℓ2​2​ for every ccc supported on at most SSS indices. The restricted orthogonality constant θS,S′\theta_{S,S'}θS,S′​ (defined for S+S′≤pS+S'\le pS+S′≤p) is the smallest θ≥0\theta\ge0θ≥0 with ∣⟨Xc,Xc′⟩∣≤θ∥c∥ℓ2∥c′∥ℓ2|\langle Xc,Xc'\rangle|\le\theta\|c\|_{\ell_2}\|c'\|_{\ell_2}∣⟨Xc,Xc′⟩∣≤θ∥c∥ℓ2​​∥c′∥ℓ2​​ whenever c,c′c,c'c,c′ are supported on disjoint sets of sizes at most SSS and S′S'S′. Below δ:=δ2S\delta:=\delta_{2S}δ:=δ2S​ and θ:=θS,2S\theta:=\theta_{S,2S}θ:=θS,2S​.

For a tuning level λp>0\lambda_p>0λp​>0, a Dantzig selector β^\hat\betaβ^​ is any solution of

min⁡β~∈Rp∥β~∥ℓ1subject to∥X∗(y−Xβ~)∥ℓ∞=sup⁡1≤j≤p∣⟨y−Xβ~,Xj⟩∣≤λpσ.\min_{\tilde\beta\in\mathbb R^p}\|\tilde\beta\|_{\ell_1}\quad\text{subject to}\quad\|X^*(y-X\tilde\beta)\|_{\ell_\infty}=\sup_{1\le j\le p}|\langle y-X\tilde\beta,X_j\rangle|\le\lambda_p\sigma .β~​∈Rpmin​∥β~​∥ℓ1​​subject to∥X∗(y−Xβ~​)∥ℓ∞​​=1≤j≤psup​∣⟨y−Xβ~​,Xj​⟩∣≤λp​σ.

The ideal mean squared error is ∑i=1pmin⁡(βi2,σ2)\sum_{i=1}^p\min(\beta_i^2,\sigma^2)∑i=1p​min(βi2​,σ2): the risk of an oracle that keeps exactly the coordinates above the noise level.

Formalization targets

Goal: Theorem 1.2 (pp. 8–9)

Let t>0t>0t>0, a≥0a\ge0a≥0, and λp:=(1+a+t−1)2log⁡p\lambda_p:=(\sqrt{1+a}+t^{-1})\sqrt{2\log p}λp​:=(1+a​+t−1)2logp​. If β\betaβ is SSS-sparse and δ2S+θS,2S<1−t\delta_{2S}+\theta_{S,2S}<1-tδ2S​+θS,2S​<1−t, then with probability exceeding 1−(πlog⁡p⋅pa)−11-(\sqrt{\pi\log p}\cdot p^a)^{-1}1−(πlogp​⋅pa)−1 every Dantzig selector obeys

∥β^−β∥ℓ22≤C22⋅λp2⋅(σ2+∑i=1pmin⁡(βi2,σ2)),\|\hat\beta-\beta\|_{\ell_2}^2\le C_2^2\cdot\lambda_p^2\cdot\Big(\sigma^2+\sum_{i=1}^p\min(\beta_i^2,\sigma^2)\Big),∥β^​−β∥ℓ2​2​≤C22​⋅λp2​⋅(σ2+i=1∑p​min(βi2​,σ2)),

with the explicit constant (1.14)

C2=2C01−δ−θ+2θ(1+δ)(1−δ−θ)2+1+δ1−δ−θ,C0=22(1+1−δ21−δ−θ)+(1+12)(1+δ)21−δ−θ.C_2=\frac{2C_0}{1-\delta-\theta}+\frac{2\theta(1+\delta)}{(1-\delta-\theta)^2}+\frac{1+\delta}{1-\delta-\theta},\qquad C_0=2\sqrt2\Big(1+\frac{1-\delta^2}{1-\delta-\theta}\Big)+\Big(1+\frac1{\sqrt2}\Big)\frac{(1+\delta)^2}{1-\delta-\theta}.C2​=1−δ−θ2C0​​+(1−δ−θ)22θ(1+δ)​+1−δ−θ1+δ​,C0​=22​(1+1−δ−θ1−δ2​)+(1+2​1​)1−δ−θ(1+δ)2​.

Milestones

  1. Lemma 3.2: ∥Xβ∥ℓ2≤1+δ (∥β∥ℓ2+(2S)−1/2∥β∥ℓ1)\|X\beta\|_{\ell_2}\le\sqrt{1+\delta}\,(\|\beta\|_{\ell_2}+(2S)^{-1/2}\|\beta\|_{\ell_1})∥Xβ∥ℓ2​​≤1+δ​(∥β∥ℓ2​​+(2S)−1/2∥β∥ℓ1​​) for every β\betaβ.
  2. Lemma A.1 (dual sparse reconstruction, ℓ2\ell_2ℓ2​ version): for ccc supported on ∣T∣≤2S|T|\le2S∣T∣≤2S, a vector β\betaβ on TTT whose correlations ⟨Xβ,Xj⟩\langle X\beta,X_j\rangle⟨Xβ,Xj​⟩ equal cjc_jcj​ on TTT and are small off TTT except on an exceptional set of size at most SSS, with bounds (6.1)–(6.6).
  3. Corollary A.2 (ℓ∞\ell_\inftyℓ∞​ version): the same without exceptional set, constants 1/(1−δ−θ)1/(1-\delta-\theta)1/(1−δ−θ).
  4. Corollary A.3 (constrained thresholding): an SSS-sparse β\betaβ with ∥β∥ℓ2<λS\|\beta\|_{\ell_2}<\lambda\sqrt S∥β∥ℓ2​​<λS​ splits as β′+β′′\beta'+\beta''β′+β′′ with β′\beta'β′ small in ℓ2\ell_2ℓ2​ and ℓ1\ell_1ℓ1​ and ∥X∗Xβ′′∥ℓ∞<1−δ21−δ−θλ\|X^*X\beta''\|_{\ell_\infty}<\frac{1-\delta^2}{1-\delta-\theta}\lambda∥X∗Xβ′′∥ℓ∞​​<1−δ−θ1−δ2​λ.
  5. Gaussian tail bound (Section 3, p. 15): P(sup⁡j∣⟨z,Xj⟩∣>u)≤2p φ(u)/uP(\sup_j|\langle z,X_j\rangle|>u)\le2p\,\varphi(u)/uP(supj​∣⟨z,Xj​⟩∣>u)≤2pφ(u)/u for standard Gaussian noise.
  6. Lemma 3.1: the ℓ2\ell_2ℓ2​ mass of hhh on T0T_0T0​ and its top SSS positions outside T0T_0T0​ is controlled by ∥XT01TXh∥ℓ2\|X^T_{T_{01}}Xh\|_{\ell_2}∥XT01​T​Xh∥ℓ2​​ and ∥h∥ℓ1(T0c)\|h\|_{\ell_1(T_0^c)}∥h∥ℓ1​(T0c​)​.

Significance

The result. Theorem 1.2 says that a single linear program, which knows neither the support of β\betaβ nor which coefficients exceed the noise, matches the oracle risk ∑imin⁡(βi2,σ2)\sum_i\min(\beta_i^2,\sigma^2)∑i​min(βi2​,σ2) up to a factor O(log⁡p)O(\log p)O(logp), uniformly over SSS-sparse parameters and with explicit, nonasymptotic constants. For coefficients well below the noise level it is far sharper than the σ2Slog⁡p\sigma^2 S\log pσ2Slogp bound of Theorem 1.1. It is the template for later oracle inequalities for ℓ1\ell_1ℓ1​-penalized estimators under restricted isometry or restricted eigenvalue conditions.

Formalizing it. The theorem is proved in the paper, but parts of the argument are only sketched: Corollary A.2 refers to the 2005 Decoding by Linear Programming paper for its convergence argument, and Corollary A.3's ℓ1\ell_1ℓ1​ bound is printed with a constant its own proof does not deliver. A machine-checked proof settles these steps. The restricted isometry and orthogonality constants used here are already published on the platform from the decoding series; the appendix lemmas on dual vectors are reusable for any compressed-sensing result in that framework. No formalization of the Dantzig selector's oracle inequality is known to us.

Difficulty

The natural proof compares β^\hat\betaβ^​ with the hard-thresholded parameter β(1)\beta^{(1)}β(1) that keeps only the large coefficients: if β(1)\beta^{(1)}β(1) were feasible for the Dantzig constraint, the analysis of Theorem 1.1 would apply directly. It is not feasible in general, because the small coefficients β(2)\beta^{(2)}β(2), though individually below the noise level, can add up to a large correlation X∗Xβ(2)X^*X\beta^{(2)}X∗Xβ(2). The central difficulty is to split β(2)\beta^{(2)}β(2) into a part with controlled ℓ1\ell_1ℓ1​ and ℓ2\ell_2ℓ2​ norm and a part invisible to the constraint; this requires constructing dual vectors with prescribed correlations (Lemma A.1, Corollary A.2), via an iterative, geometrically convergent correction. The probabilistic part is a Gaussian tail estimate plus a union bound, and the bookkeeping of constants must be carried through exactly.

Formalization scope

Vectors are functions Fin p → ℝ, the design is Matrix (Fin n) (Fin p) ℝ, and the noise is a family z : Fin n → Ω → ℝ of mutually independent random variables (iIndepFun) each with law gaussianReal 0 σ². δ2S\delta_{2S}δ2S​ and θS,2S\theta_{S,2S}θS,2S​ are the published CandesTao.Decoding.restrictedIsometryConst X (2*S) and restrictedOrthogonalityConst X S (2*S) (infima, absolute value in the orthogonality condition). Domain: S≥1S\ge1S≥1 and 3S≤p3S\le p3S≤p (the paper defines θS,S′\theta_{S,S'}θS,S′​ for S+S′≤pS+S'\le pS+S′≤p), which forces p≥3p\ge3p≥3 and log⁡p>0\log p>0logp>0. A Dantzig selector is any ℓ1\ell_1ℓ1​ minimizer over the feasible set; the ℓ∞\ell_\inftyℓ∞​ constraint is a bound on every coordinate.

The goal bounds from above the (outer) probability of the bad event "no Dantzig selector exists, or some Dantzig selector violates (1.13)". Because the event includes non-existence, a definition no vector satisfies cannot make the theorem vacuous; and the constant C2C_2C2​ is the printed (1.14), evaluated at δ2S\delta_{2S}δ2S​, θS,2S\theta_{S,2S}θS,2S​ of XXX, not a free constant chosen after the fact.

Corrected constant: Corollary A.3 is stated with ∥β′∥ℓ1≤21+δ1−δ−θ∥β∥ℓ22/λ\|\beta'\|_{\ell_1}\le2\frac{1+\delta}{1-\delta-\theta}\|\beta\|_{\ell_2}^2/\lambda∥β′∥ℓ1​​≤21−δ−θ1+δ​∥β∥ℓ2​2​/λ, the bound its proof gives once Corollary A.2 is applied at an integer sparsity level; the printed statement omits the factor 222. Corollary A.2 carries Lemma A.1's standing hypothesis δ+θ<1\delta+\theta<1δ+θ<1. The deterministic lemmas (3.1, 3.2, A.1–A.3) assume nothing about column norms, since their statements do not need it.

Useful infrastructure: monotonicity of δS\delta_SδS​ and θS,S′\theta_{S,S'}θS,S′​ in their indices (the proof applies the lemmas at a smaller sparsity level), the Gaussian tail bound 1−Φ(u)<φ(u)/u1-\Phi(u)<\varphi(u)/u1−Φ(u)<φ(u)/u, existence of minimizers of the Dantzig linear program, and a sorting/blocking toolkit for "the SSS largest positions". Proofs of individual milestones are welcome independently.

Selected references

  • E. Candès and T. Tao, The Dantzig selector: statistical estimation when p is much larger than n, Ann. Statist. 35(6):2313–2351, 2007. arXiv:math/0506081v3, doi:10.1214/009053606000001523
  • E. Candès and T. Tao, Decoding by linear programming, IEEE Trans. Inform. Theory 51(12):4203–4215, 2005. arXiv:math/0502327, doi:10.1109/TIT.2005.858979
  • P. Bickel, Y. Ritov and A. Tsybakov, Simultaneous analysis of Lasso and Dantzig selector, Ann. Statist. 37(4):1705–1732, 2009. arXiv:0801.1095, doi:10.1214/08-AOS620
  • D. Donoho and I. Johnstone, Ideal spatial adaptation by wavelet shrinkage, Biometrika 81(3):425–455, 1994. doi:10.1093/biomet/81.3.425
11 thms3 active usersReviewed
Linear OptimizationProbabilityStatistics·Captain: mikedeng1

The Dantzig Selector: Statistical Estimation When p Is Much Larger than n 1: ℓ2 Error Bound for Sparse Parameters under the Uniform Uncertainty PrincipleResearch Paper

Motivation

In many statistical applications the number of unknown parameters ppp is far larger than the number of observations nnn: gene-expression studies with tens of samples and thousands of genes, imaging problems with fewer measurements than pixels, and nonparametric curve estimation from finitely many noisy samples. Least squares is useless in this regime, since the system Xβ=yX\beta=yXβ=y is underdetermined. If the parameter is sparse (only a few of its entries are nonzero), estimation becomes possible, and the question is how accurate a computationally tractable estimator can be.

Candès and Tao (arXiv:math/0506081; Ann. Statist. 35(6), 2007, doi:10.1214/009053606000001523) introduced the Dantzig selector, an estimator computed by a linear program, and proved that its squared error is within a factor of order log⁡p\log plogp of the error of an oracle that knows where the nonzero entries are. The paper, with its discussion in the same issue, is one of the founding results of high-dimensional sparse regression, alongside the Lasso analysis of Bickel, Ritov and Tsybakov (arXiv:0801.1095).

Timeline. Candès and Tao (2005, arXiv:math/0502327) showed that ℓ1\ell_1ℓ1​ minimization recovers a sparse vector exactly from noiseless data when the restricted isometry constants of the design satisfy δS+θS,S+θS,2S<1\delta_S+\theta_{S,S}+\theta_{S,2S}<1δS​+θS,S​+θS,2S​<1. The Dantzig selector paper (first posted 2005, published 2007) carried this to Gaussian noise, with the ℓ2\ell_2ℓ2​ error bound formalized here (Theorem 1.1) and an oracle inequality (Theorem 1.2). Bickel, Ritov and Tsybakov (2009) replaced the restricted isometry hypothesis by weaker restricted eigenvalue conditions and showed that the Lasso and the Dantzig selector behave alike.

Setting

Observe y∈Rny\in\mathbb R^ny∈Rn from the linear model

y=Xβ+z,y=X\beta+z ,y=Xβ+z,

where X∈Rn×pX\in\mathbb R^{n\times p}X∈Rn×p is a deterministic design matrix with columns X1,…,XpX_1,\dots,X_pX1​,…,Xp​, each of Euclidean norm ∥Xj∥ℓ2=1\|X_j\|_{\ell_2}=1∥Xj​∥ℓ2​​=1; β∈Rp\beta\in\mathbb R^pβ∈Rp is an unknown deterministic parameter; and z=(z1,…,zn)z=(z_1,\dots,z_n)z=(z1​,…,zn​) is a vector of independent N(0,σ2)N(0,\sigma^2)N(0,σ2) random variables with σ>0\sigma>0σ>0. The vector β\betaβ is SSS-sparse if at most SSS of its entries are nonzero.

For T⊆{1,…,p}T\subseteq\{1,\dots,p\}T⊆{1,…,p} let XTX_TXT​ be the submatrix of the columns indexed by TTT. The restricted isometry constant δS\delta_SδS​ is the smallest δ≥0\delta\ge0δ≥0 with

(1−δ)∥c∥ℓ22≤∥XTc∥ℓ22≤(1+δ)∥c∥ℓ22(1-\delta)\|c\|_{\ell_2}^2\le\|X_Tc\|_{\ell_2}^2\le(1+\delta)\|c\|_{\ell_2}^2(1−δ)∥c∥ℓ2​2​≤∥XT​c∥ℓ2​2​≤(1+δ)∥c∥ℓ2​2​

for all ∣T∣≤S|T|\le S∣T∣≤S and all coefficient vectors ccc; the restricted orthogonality constant θS,S′\theta_{S,S'}θS,S′​ (for S+S′≤pS+S'\le pS+S′≤p) is the smallest θ≥0\theta\ge0θ≥0 with ∣⟨XTc,XT′c′⟩∣≤θ∥c∥ℓ2∥c′∥ℓ2|\langle X_Tc,X_{T'}c'\rangle|\le\theta\|c\|_{\ell_2}\|c'\|_{\ell_2}∣⟨XT​c,XT′​c′⟩∣≤θ∥c∥ℓ2​​∥c′∥ℓ2​​ for all disjoint T,T′T,T'T,T′ with ∣T∣≤S|T|\le S∣T∣≤S, ∣T′∣≤S′|T'|\le S'∣T′∣≤S′.

Given a tuning parameter λp>0\lambda_p>0λp​>0, the Dantzig selector β^\hat\betaβ^​ is any solution of

min⁡β~∈Rp∥β~∥ℓ1subject to∥X∗(y−Xβ~)∥ℓ∞=max⁡1≤j≤p∣⟨y−Xβ~,Xj⟩∣≤λp⋅σ.\min_{\tilde\beta\in\mathbb R^p}\|\tilde\beta\|_{\ell_1}\quad\text{subject to}\quad\|X^*(y-X\tilde\beta)\|_{\ell_\infty}=\max_{1\le j\le p}|\langle y-X\tilde\beta,X_j\rangle|\le\lambda_p\cdot\sigma .β~​∈Rpmin​∥β~​∥ℓ1​​subject to∥X∗(y−Xβ~​)∥ℓ∞​​=1≤j≤pmax​∣⟨y−Xβ~​,Xj​⟩∣≤λp​⋅σ.

Formalization targets

Goal: Theorem 1.1

Let S≥1S\ge1S≥1, 3S≤p3S\le p3S≤p, β\betaβ SSS-sparse, and δ2S+θS,2S<1\delta_{2S}+\theta_{S,2S}<1δ2S​+θS,2S​<1. For every a≥0a\ge0a≥0, with λp=2(1+a)log⁡p\lambda_p=\sqrt{2(1+a)\log p}λp​=2(1+a)logp​, with probability exceeding 1−(πlog⁡p⋅pa)−11-(\sqrt{\pi\log p}\cdot p^a)^{-1}1−(πlogp​⋅pa)−1 the program has a solution and every solution satisfies

∥β^−β∥ℓ22≤C12⋅λp2⋅S⋅σ2,C1=41−δ2S−θS,2S.\|\hat\beta-\beta\|_{\ell_2}^2\le C_1^2\cdot\lambda_p^2\cdot S\cdot\sigma^2,\qquad C_1=\frac{4}{1-\delta_{2S}-\theta_{S,2S}} .∥β^​−β∥ℓ2​2​≤C12​⋅λp2​⋅S⋅σ2,C1​=1−δ2S​−θS,2S​4​.

For a=0a=0a=0 this is ∥β^−β∥ℓ22≤C12⋅(2log⁡p)⋅S⋅σ2\|\hat\beta-\beta\|_{\ell_2}^2\le C_1^2\cdot(2\log p)\cdot S\cdot\sigma^2∥β^​−β∥ℓ2​2​≤C12​⋅(2logp)⋅S⋅σ2, display (1.10) of the paper. The constant is the one the paper's proof establishes (see Formalization scope).

Milestones

  1. The cone constraint (3.2): if ∥β+h∥ℓ1≤∥β∥ℓ1\|\beta+h\|_{\ell_1}\le\|\beta\|_{\ell_1}∥β+h∥ℓ1​​≤∥β∥ℓ1​​ and β\betaβ vanishes off T0T_0T0​, then ∥hT0c∥ℓ1≤∥hT0∥ℓ1\|h_{T_0^c}\|_{\ell_1}\le\|h_{T_0}\|_{\ell_1}∥hT0c​​∥ℓ1​​≤∥hT0​​∥ℓ1​​.
  2. The tube constraint (3.3): with unit-normed columns, if ∣⟨z,Xj⟩∣≤λp|\langle z,X_j\rangle|\le\lambda_p∣⟨z,Xj​⟩∣≤λp​ for all jjj and β^\hat\betaβ^​ is feasible, then ∥X∗X(β^−β)∥ℓ∞≤2λp\|X^*X(\hat\beta-\beta)\|_{\ell_\infty}\le2\lambda_p∥X∗X(β^​−β)∥ℓ∞​​≤2λp​.
  3. Lemma 3.1 (under the section’s unit-column assumption): an ℓ2\ell_2ℓ2​ bound on hhh over T0∪T1T_0\cup T_1T0​∪T1​ (T1T_1T1​ the SSS largest entries of hhh off T0T_0T0​) in terms of ∥XT01TXh∥ℓ2\|X_{T_{01}}^TXh\|_{\ell_2}∥XT01​T​Xh∥ℓ2​​ and ∥h∥ℓ1(T0c)\|h\|_{\ell_1(T_0^c)}∥h∥ℓ1​(T0c​)​, and ∥h∥ℓ22≤∥h∥ℓ2(T01)2+S−1∥h∥ℓ1(T0c)2\|h\|_{\ell_2}^2\le\|h\|_{\ell_2(T_{01})}^2+S^{-1}\|h\|_{\ell_1(T_0^c)}^2∥h∥ℓ2​2​≤∥h∥ℓ2​(T01​)2​+S−1∥h∥ℓ1​(T0c​)2​.
  4. The deterministic core: with σ=1\sigma=1σ=1, on the event ∣⟨z,Xj⟩∣≤λp|\langle z,X_j\rangle|\le\lambda_p∣⟨z,Xj​⟩∣≤λp​ for all jjj, every Dantzig selector satisfies ∥β^−β∥ℓ22≤C12λp2S\|\hat\beta-\beta\|_{\ell_2}^2\le C_1^2\lambda_p^2S∥β^​−β∥ℓ2​2​≤C12​λp2​S.
  5. The Gaussian tail bound: for standard normal zzz and Zj=⟨z,Xj⟩Z_j=\langle z,X_j\rangleZj​=⟨z,Xj​⟩, P(sup⁡j∣Zj∣>u)≤2p φ(u)/u\mathbb P(\sup_j|Z_j|>u)\le2p\,\varphi(u)/uP(supj​∣Zj​∣>u)≤2pφ(u)/u with φ(u)=(2π)−1/2e−u2/2\varphi(u)=(2\pi)^{-1/2}e^{-u^2/2}φ(u)=(2π)−1/2e−u2/2.

Significance

The result. Theorem 1.1 shows that an estimator computable by linear programming reaches, up to the factor 2log⁡p2\log p2logp and the constant C12C_1^2C12​, the squared error Sσ2S\sigma^2Sσ2 that least squares would attain if the support of β\betaβ were known in advance, even when p≫np\gg np≫n. The factor log⁡p\log plogp is the price of not knowing the support; the paper argues (p. 5) that, apart from this factor, (1.10) is unimprovable in general. The bound is non-asymptotic, with an explicit constant and an explicit failure probability, and it holds for every SSS-sparse β\betaβ simultaneously in the sense that the good event (the noise being nearly orthogonal to every column) does not depend on β\betaβ. Its deterministic part, Lemma 3.1, is reused verbatim in the proof of the paper's oracle inequality (Theorem 1.2) and became a standard tool in compressed sensing.

Formalizing it. The result is proved, and to our knowledge no machine-checked proof exists. A formalization produces a checked version of the cone-and-tube argument behind most ℓ1\ell_1ℓ1​-recovery guarantees, a Lean statement of the restricted isometry machinery for noisy data, and a checked Gaussian maximal inequality usable for other high-dimensional estimators. It also settles the exact constant: the paper prints C1=4/(1−δS−θS,2S)C_1=4/(1-\delta_S-\theta_{S,2S})C1​=4/(1−δS​−θS,2S​), while its proof gives δ2S\delta_{2S}δ2S​ in place of δS\delta_SδS​.

Difficulty

Lemma 3.1 is the main obstacle. The obvious approach bounds ∥h∥ℓ2\|h\|_{\ell_2}∥h∥ℓ2​​ directly through restricted isometry, and it fails because the error hhh is not sparse: it spreads over all ppp coordinates, and restricted isometry controls XXX only on vectors with at most 2S2S2S nonzero entries. The two constraints (3.2) and (3.3) only say that hhh is concentrated in ℓ1\ell_1ℓ1​ on the SSS coordinates of T0T_0T0​ and that X∗XhX^*XhX∗Xh is small coordinatewise, and turning that into an ℓ2\ell_2ℓ2​ bound on all of hhh is where the work lies. In Lean this requires bookkeeping that is routine on paper: ordering the coordinates of hhh off T0T_0T0​ by magnitude, with ties and a possibly incomplete last group of coordinates, and working with the span of a selected set of columns. On the probabilistic side, the tail bound needs the law of ⟨z,Xj⟩\langle z,X_j\rangle⟨z,Xj​⟩ (a weighted sum of independent Gaussians), a sharp Gaussian tail estimate of Mills-ratio type, and a union over ppp events. A cruder sub-Gaussian bound 2e−u2/22e^{-u^2/2}2e−u2/2 would not give the stated failure probability.

Formalization scope

Indices are Fin n and Fin p; vectors are functions into ℝ. The norms, the column XjX_jXj​ and the constants δS\delta_SδS​, θS,S′\theta_{S,S'}θS,S′​ are the published definitions CandesTao_Decoding_Norms and CandesTao_Decoding_RestrictedIsometry (the smallest admissible constants, via sInf), from the formalization of Candès and Tao's Decoding by Linear Programming. The noise is a family z : Fin n → Ω → ℝ on a probability space, mutually independent (iIndepFun), each coordinate with law gaussianReal 0 σ². The ℓ∞\ell_\inftyℓ∞​ constraint is coordinatewise. A Dantzig selector is any minimizer; uniqueness is not assumed. Section 3 works with σ=1\sigma=1σ=1; the goal is stated for general σ>0\sigma>0σ>0.

Committed conventions and corrections:

  • Corrected constant. Theorem 1.1 is printed with C1=4/(1−δS−θS,2S)C_1=4/(1-\delta_S-\theta_{S,2S})C1​=4/(1−δS​−θS,2S​), but the proof (pp. 18–19) applies Lemma 3.1, whose δ\deltaδ is δ2S\delta_{2S}δ2S​. Since δS≤δ2S\delta_S\le\delta_{2S}δS​≤δ2S​, the printed constant is stronger than what is proved. The goal and the deterministic core are stated with C1=4/(1−δ2S−θS,2S)C_1=4/(1-\delta_{2S}-\theta_{S,2S})C1​=4/(1−δ2S​−θS,2S​).
  • Domain. 1≤S1\le S1≤S and 3S≤p3S\le p3S≤p, because θS,2S\theta_{S,2S}θS,2S​ is defined only for S+2S≤pS+2S\le pS+2S≤p. This forces p≥3p\ge3p≥3 and log⁡p>0\log p>0logp>0.
  • Failure event. The probability bounded is that of the set where no Dantzig selector exists or some Dantzig selector violates the bound. A version that only constrains existing solutions, or that assumes the feasible set is nonempty, would be weaker. The bound is strict, as in the paper's "exceeding", and is on the outer measure, so no measurability of the event is assumed.
  • Standing assumptions are binders: unit-normed columns, independent Gaussian noise, deterministic XXX and β\betaβ.

A trivializing formalization is excluded: the hypothesis δ2S+θS,2S<1\delta_{2S}+\theta_{S,2S}<1δ2S​+θS,2S​<1 is on the actual least constants of XXX, not on free parameters, and it is satisfiable (for instance by X=IpX=I_pX=Ip​, where both constants vanish).

Needed infrastructure: sums of independent real Gaussians (Mathlib has gaussianReal and its convolution), a Mills-ratio tail bound, a sorting-based block decomposition of a Finset, and orthogonal projection onto the span of finitely many columns. The block decomposition and the tail bound are reusable beyond this mission. Proofs of any milestone are welcome, as are alternative proofs of Lemma 3.1.

Selected references

  • E. Candès and T. Tao, The Dantzig selector: statistical estimation when p is much larger than n, Ann. Statist. 35(6) (2007), 2313–2351. arXiv:math/0506081, doi:10.1214/009053606000001523
  • E. Candès and T. Tao, Decoding by linear programming, IEEE Trans. Inform. Theory 51(12) (2005), 4203–4215. arXiv:math/0502327
  • P. Bickel, Y. Ritov and A. Tsybakov, Simultaneous analysis of Lasso and Dantzig selector, Ann. Statist. 37(4) (2009), 1705–1732. arXiv:0801.1095
9 thms3 active usersReviewed
CombinatoricsOperations Research·Captain: mikedeng1

How Much Data Is Sufficient to Learn High-Performing Algorithms? Generalization Guarantees for Data-Driven Algorithm Design 1: Pseudo-Dimension Bound from a Piecewise-Decomposable Dual ClassResearch Paper

Motivation

Many algorithms in operations research and computer science have tunable parameters: sequence-alignment weights, clustering linkage interpolations, branch-and-bound branching rules, auction reserve prices. In data-driven algorithm design the parameters are chosen by optimizing average performance over a training set of problem instances drawn from an unknown application-specific distribution. The question this mission is about is statistical: how many training instances suffice for the empirical average performance of every parameter setting to be close to its expected performance?

Classical learning theory answers this through the pseudo-dimension of the class of utility functions (Pollard, 1984): a bound on the pseudo-dimension gives a uniform convergence bound of order H(Pdim+ln⁡(1/δ))/NH\sqrt{(\mathrm{Pdim} + \ln(1/\delta))/N}H(Pdim+ln(1/δ))/N​. The difficulty is that utility functions of combinatorial algorithms are wildly discontinuous in the parameters, so standard tools (Lipschitz arguments, linear classes) do not apply. Balcan, DeBlasio, Dick, Kingsford, Sandholm and Vitercik (arXiv:1908.02894v4, STOC 2021) observed that for a large family of algorithms the utility on each fixed instance is a piecewise-structured function of the parameters, and proved a single general theorem converting that structure into a pseudo-dimension bound. Earlier analyses (for example Gupta and Roughgarden 2017; Balcan, Nagarajan, Vitercik and White 2017) derived such bounds one algorithm family at a time; Theorem 3.3 unifies them.

Setting

Let X\mathcal XX be a set of problem instances and U⊆RX\mathcal U \subseteq \mathbb R^{\mathcal X}U⊆RX a class of utility functions; in the paper U={uρ:ρ∈P}\mathcal U = \{u_\rho : \rho \in \mathcal P\}U={uρ​:ρ∈P} for a parameter space P⊆Rd\mathcal P \subseteq \mathbb R^dP⊆Rd, with uρ(x)u_\rho(x)uρ​(x) the performance of the algorithm with parameter ρ\rhoρ on instance xxx.

Pseudo-dimension. A class H\mathcal HH of real functions on a domain Y\mathcal YY shatters points y1,…,yNy_1, \dots, y_Ny1​,…,yN​ if there are targets z1,…,zN∈Rz_1, \dots, z_N \in \mathbb Rz1​,…,zN​∈R such that every one of the 2N2^N2N patterns of "above / not above ziz_izi​" at the points yiy_iyi​ is realized by some h∈Hh \in \mathcal Hh∈H. The pseudo-dimension Pdim(H)\mathrm{Pdim}(\mathcal H)Pdim(H) is the largest NNN for which some NNN points are shattered. For {0,1}\{0,1\}{0,1}-valued classes it is the VC-dimension VCdim(H)\mathrm{VCdim}(\mathcal H)VCdim(H).

Dual class (Definition 3.1). For H⊆RY\mathcal H \subseteq \mathbb R^{\mathcal Y}H⊆RY, each y∈Yy \in \mathcal Yy∈Y gives an evaluation map hy∗:H→Rh^*_y : \mathcal H \to \mathbb Rhy∗​:H→R, hy∗(h)=h(y)h^*_y(h) = h(y)hy∗​(h)=h(y), and H∗={hy∗:y∈Y}\mathcal H^* = \{h^*_y : y \in \mathcal Y\}H∗={hy∗​:y∈Y}. For utility functions, ux∗(uρ)=uρ(x)u^*_x(u_\rho) = u_\rho(x)ux∗​(uρ​)=uρ​(x): the dual function of instance xxx records performance on xxx as the algorithm varies.

Piecewise decomposability (Definition 3.2). Given a class G⊆{0,1}Y\mathcal G \subseteq \{0,1\}^{\mathcal Y}G⊆{0,1}Y of boundary functions, a class F⊆RY\mathcal F \subseteq \mathbb R^{\mathcal Y}F⊆RY of piece functions and k∈Nk \in \mathbb Nk∈N, a class H⊆RY\mathcal H \subseteq \mathbb R^{\mathcal Y}H⊆RY is (F,G,k)(\mathcal F, \mathcal G, k)(F,G,k)-piecewise decomposable if every h∈Hh \in \mathcal Hh∈H admits g(1),…,g(k)∈Gg^{(1)}, \dots, g^{(k)} \in \mathcal Gg(1),…,g(k)∈G and, for each bit vector b∈{0,1}k\boldsymbol b \in \{0,1\}^kb∈{0,1}k, some fb∈Ff_{\boldsymbol b} \in \mathcal Ffb​∈F, with h(y)=fby(y)h(y) = f_{\boldsymbol b_y}(y)h(y)=fby​​(y) where by=(g(1)(y),…,g(k)(y))\boldsymbol b_y = (g^{(1)}(y), \dots, g^{(k)}(y))by​=(g(1)(y),…,g(k)(y)). The theorem applies this to H=U∗\mathcal H = \mathcal U^*H=U∗, so F⊆RU\mathcal F \subseteq \mathbb R^{\mathcal U}F⊆RU and G⊆{0,1}U\mathcal G \subseteq \{0,1\}^{\mathcal U}G⊆{0,1}U, and their duals F∗\mathcal F^*F∗, G∗\mathcal G^*G∗ are classes of functions on F\mathcal FF and G\mathcal GG.

Formalization targets

Goal: Theorem 3.3, explicit form

Suppose U∗\mathcal U^*U∗ is (F,G,k)(\mathcal F, \mathcal G, k)(F,G,k)-piecewise decomposable, k≥1k \ge 1k≥1, dF=Pdim(F∗)d_F = \mathrm{Pdim}(\mathcal F^*)dF​=Pdim(F∗), dG=VCdim(G∗)d_G = \mathrm{VCdim}(\mathcal G^*)dG​=VCdim(G∗) and D=dF+dGD = d_F + d_GD=dF​+dG​. With a=D/ln⁡2a = D/\ln 2a=D/ln2 and b=(D+dGln⁡k)/ln⁡2b = (D + d_G\ln k)/\ln 2b=(D+dG​lnk)/ln2,

Pdim(U)≤4aln⁡(2a)+2b=O(Dln⁡D+dGln⁡k).\mathrm{Pdim}(\mathcal U) \le 4a\ln(2a) + 2b = O\bigl(D\ln D + d_G \ln k\bigr).Pdim(U)≤4aln(2a)+2b=O(DlnD+dG​lnk).

This is the explicit bound behind the printed O(⋅)O(\cdot)O(⋅); it is what the paper's proof establishes.

Milestones, in the order the proof uses them

  1. Lemma 3.4. For h1,…,hNh_1, \dots, h_Nh1​,…,hN​ in a {0,1}\{0,1\}{0,1}-valued class H\mathcal HH (N≥1N \ge 1N≥1),
∣{(h1(y),…,hN(y)):y∈Y}∣≤(eN)VCdim(H∗).|\{(h_1(y), \dots, h_N(y)) : y \in \mathcal Y\}| \le (eN)^{\mathrm{VCdim}(\mathcal H^*)}.∣{(h1​(y),…,hN​(y)):y∈Y}∣≤(eN)VCdim(H∗).
  1. Claim 3.5. For instances x1,…,xNx_1, \dots, x_Nx1​,…,xN​, the class U\mathcal UU splits into M≤(ekN)dGM \le (ekN)^{d_G}M≤(ekN)dG​ cells (strictly fewer when dG≥1d_G \ge 1dG​≥1) on each of which every uxi∗u^*_{x_i}uxi​∗​ coincides with one fixed piece function fi∈Ff_i \in \mathcal Ffi​∈F.
  2. Eq. (7). On any cell, fixed piece functions f1,…,fNf_1, \dots, f_Nf1​,…,fN​ realize at most (eN)dF(eN)^{d_F}(eN)dF​ label vectors (1[fi(u)>zi])i(\mathbb 1[f_i(u) > z_i])_i(1[fi​(u)>zi​])i​.
  3. Eq. (5). The whole class realizes at most (ekN)dG(eN)dF(ekN)^{d_G}(eN)^{d_F}(ekN)dG​(eN)dF​ label vectors (1[u(xi)>zi])i(\mathbb 1[u(x_i) > z_i])_i(1[u(xi​)>zi​])i​.
  4. Shattering inequality. If U\mathcal UU shatters x1,…,xNx_1, \dots, x_Nx1​,…,xN​ (N≥1N \ge 1N≥1), then 2N≤(ekN)dG(eN)dF2^N \le (ekN)^{d_G}(eN)^{d_F}2N≤(ekN)dG​(eN)dF​.
  5. Lemma A.1. For a≥1a \ge 1a≥1, b>0b > 0b>0: y<aln⁡y+by < a\ln y + by<alny+b implies y<4aln⁡(2a)+2by < 4a\ln(2a) + 2by<4aln(2a)+2b.

Significance

Theorem 3.3 is the engine behind every generalization guarantee in the paper. It is instantiated for piecewise-constant and piecewise-linear duals over Rd\mathbb R^dRd (Lemmas 3.8–3.10), and through them for sequence alignment, RNA folding, hierarchical clustering, integer programming (branch-and-bound), greedy algorithms and auction design. Combined with the classical uniform convergence bound, it says that O~(H2(D+dGln⁡k)/ε2)\tilde O(H^2(D + d_G\ln k)/\varepsilon^2)O~(H2(D+dG​lnk)/ε2) training instances suffice to tune any such algorithm to within ε\varepsilonε of its optimal expected performance. The matching lower bounds in the paper (Theorems 4.3 and 5.2) show that the bound is tight up to logarithmic factors.

The result is proved in the paper; to the best of available records it has not been machine-checked. The mission formalizes the known proof, including the dual-class version of Sauer's lemma and the counting argument over the partition induced by the boundary functions. The published Sauer's lemma FoundationsML.RademacherVC.sauer_lemma is included as a reference item, as it is the tool Lemma 3.4 cites.

Difficulty

The obvious approach, bounding the pseudo-dimension of U\mathcal UU directly from the complexity of F\mathcal FF and G\mathcal GG, fails: the piecewise structure lives on the dual side, and nothing about F\mathcal FF or G\mathcal GG themselves controls how U\mathcal UU labels instances. The bound has to pass through dual classes twice and through the dual of a dual once, and Sauer's lemma, which counts labelings of fixed points by varying functions, must be applied in the transposed direction. Formally, the counting step needs bookkeeping of label vectors under a partition indexed by kNkNkN boundary functions, and a conversion from a pseudo-dimension bound on F∗\mathcal F^*F∗ to a VC-dimension bound on the thresholded class {(f,z)↦1[f(u)>z]}\{(f, z) \mapsto \mathbb 1[f(u) > z]\}{(f,z)↦1[f(u)>z]}, which needs the observation that a shattered tuple of pairs has distinct first coordinates.

Formalization scope

  • Pseudo- and VC-dimension are the published FoundationsML predicates Shatters, PseudoDim, GrowthFunction, HasVCDim. The exact-value predicates fix finite dimensions dFd_FdF​, dGd_GdG​, which the paper's bound presupposes. "Pdim(U)≤B\mathrm{Pdim}(\mathcal U) \le BPdim(U)≤B" is stated as "every shattered tuple has length at most BBB". {0,1}\{0,1\}{0,1} is Bool.
  • Sign convention. Shattering uses strict thresholds u(xi)>ziu(x_i) > z_iu(xi​)>zi​; the paper leaves sign(0)\mathrm{sign}(0)sign(0) unspecified, and strict and non-strict thresholds shatter the same tuples, so the dimension is unchanged. Label vectors in the counting milestones use the same reading.
  • Domains. The dual classes are classes of functions on the subtype of the primal class. Parameters ρ\rhoρ are indexed by the functions uρu_\rhouρ​ themselves, and Claim 3.5's partition of P\mathcal PP becomes a partition of U\mathcal UU; nothing in the theorem depends on ρ\rhoρ except through uρu_\rhouρ​.
  • Corrections of the printed statements. (i) Theorem 3.3's O(⋅)O(\cdot)O(⋅) is replaced by the explicit bound 4aln⁡(2a)+2b4a\ln(2a) + 2b4aln(2a)+2b derived from the paper's own last step and Lemma A.1, with k≥1k \ge 1k≥1 added (the printed ln⁡k\ln klnk is undefined at k=0k = 0k=0); the case D=0D = 0D=0 is covered, where the bound is 000. (ii) Lemma 3.4 and the counting milestones assume N≥1N \ge 1N≥1; at N=0N = 0N=0 the printed bounds read 1≤01 \le 01≤0. (iii) Claim 3.5's strict M<(ekN)VCdim(G∗)M < (ekN)^{\mathrm{VCdim}(\mathcal G^*)}M<(ekN)VCdim(G∗) is kept for VCdim(G∗)≥1\mathrm{VCdim}(\mathcal G^*) \ge 1VCdim(G∗)≥1 and weakened to ≤\le≤ only when VCdim(G∗)=0\mathrm{VCdim}(\mathcal G^*) = 0VCdim(G∗)=0, where the strict form is false (M=1M = 1M=1). The milestone texts are quoted verbatim.
  • Dropped hypothesis. The range [0,H][0, H][0,H] of the utility functions is not used by the theorem or its proof and is omitted, which makes the statement more general.
  • Ruling out trivializations. The goal carries the explicit constant, never an O(⋅)O(\cdot)O(⋅) with a constant chosen after the classes; the hypotheses are jointly satisfiable on a nontrivial example (one instance, uρ(x)=ρu_\rho(x) = \rhouρ​(x)=ρ, k=1k = 1k=1, dF=1d_F = 1dF​=1, dG=0d_G = 0dG​=0, in which U\mathcal UU does shatter one point), checked by a sorry-free local verification file; all counts are of subsets of {0,1}N\{0,1\}^N{0,1}N, so no cardinality silently defaults to zero.
  • Contributions welcome: proofs of each milestone; a dual-class Sauer lemma reusable for other data-driven design papers; the passage from pseudo-dimension of F∗\mathcal F^*F∗ to the VC-dimension of its thresholded class.

Selected references

  • M.-F. Balcan, D. DeBlasio, T. Dick, C. Kingsford, T. Sandholm, E. Vitercik, How Much Data Is Sufficient to Learn High-Performing Algorithms? Generalization Guarantees for Data-Driven Algorithm Design, STOC 2021; arXiv:1908.02894v4, 2021. https://arxiv.org/abs/1908.02894
  • P. Assouad, Densité et dimension, Annales de l'Institut Fourier 33(3), 1983. https://doi.org/10.5802/aif.938
  • D. Pollard, Convergence of Stochastic Processes, Springer, 1984. https://doi.org/10.1007/978-1-4612-5254-2
  • N. Sauer, On the density of families of sets, Journal of Combinatorial Theory A 13(1), 1972. https://doi.org/10.1016/0097-3165(72)90019-2
  • S. Shalev-Shwartz, S. Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press, 2014. https://doi.org/10.1017/CBO9781107298019
  • R. Gupta, T. Roughgarden, A PAC approach to application-specific algorithm selection, SIAM Journal on Computing 46(3), 2017. https://doi.org/10.1137/15M1050276
14 thms3 active usersReviewed
🏆Completed
AnalysisFunctional Analysis·Captain: mikedeng1

Theory of Reproducing Kernels III: The Product of Two Reproducing Kernels Is the Kernel of the Diagonal Restrictions of the Direct ProductResearch Paper

Motivation

A reproducing kernel is the function K(x,y)K(x,y)K(x,y) that represents point evaluation in a Hilbert space of functions: f(y)=(f,K(⋅,y))f(y) = (f, K(\cdot, y))f(y)=(f,K(⋅,y)). Kernels are combined all the time. In machine learning, a kernel on pairs of objects is routinely built as the pointwise product of two simpler kernels, and in complex analysis the product ∣K(x,y)∣2=K(x,y)K(y,x)|K(x,y)|^2 = K(x,y)K(y,x)∣K(x,y)∣2=K(x,y)K(y,x) of a kernel with its conjugate appears naturally. That the pointwise product of two positive matrices is again a positive matrix goes back to I. Schur (1911). What Schur's theorem does not say is which space of functions the product kernel belongs to and what its norm is.

N. Aronszajn answered this in §8 of Theory of Reproducing Kernels (Trans. Amer. Math. Soc. 68 (1950), 337–404, doi:10.1090/S0002-9947-1950-0051437-7), the paper that fixed the general theory of reproducing kernel Hilbert spaces. He notes (p. 358, footnote 7) that the idea of the proof was found independently by R. Godement, who applied it only to positive definite functions. The answer has three ingredients developed in the same paper: the functional completion of an incomplete class of functions (§4), the restriction of a kernel to a subset (§5), and the direct product F1⊗F2F_1 \otimes F_2F1​⊗F2​ of two classes of functions (§8).

Setting

Let EEE be an arbitrary set. A class with a reproducing kernel is a complex Hilbert space FFF of functions f:E→Cf : E \to \mathbb{C}f:E→C such that every point evaluation f↦f(y)f \mapsto f(y)f↦f(y) is continuous. Its reproducing kernel K:E×E→CK : E \times E \to \mathbb{C}K:E×E→C is characterized by: K(⋅,y)∈FK(\cdot, y) \in FK(⋅,y)∈F for each yyy, and f(y)=(f,K(⋅,y))f(y) = (f, K(\cdot, y))f(y)=(f,K(⋅,y)) for all f∈Ff \in Ff∈F, where the scalar product (f,g)(f, g)(f,g) is linear in fff and conjugate-linear in ggg.

Functional completion. Suppose FFF is a linear class of functions on EEE with a scalar product satisfying every Hilbert-space axiom except completeness. A functional completion of FFF is a Hilbert space of functions on EEE, with continuous point evaluations, that contains FFF isometrically as a dense subset.

Restriction. For E1⊆EE_1 \subseteq EE1​⊆E, the restriction of fff is f∣E1f|_{E_1}f∣E1​​, and F∣E1F|_{E_1}F∣E1​​ is the class of all restrictions.

Direct product. Given classes F1F_1F1​, F2F_2F2​ on EEE with kernels K1K_1K1​, K2K_2K2​ and norms ∥⋅∥1\|\cdot\|_1∥⋅∥1​, ∥⋅∥2\|\cdot\|_2∥⋅∥2​, consider on E′=E×EE' = E \times EE′=E×E the functions

f′(x1,x2)=∑k=1nf1(k)(x1)f2(k)(x2),f1(k)∈F1, f2(k)∈F2,f'(x_1,x_2) = \sum_{k=1}^n f_1^{(k)}(x_1) f_2^{(k)}(x_2), \qquad f_1^{(k)} \in F_1,\ f_2^{(k)} \in F_2,f′(x1​,x2​)=k=1∑n​f1(k)​(x1​)f2(k)​(x2​),f1(k)​∈F1​, f2(k)​∈F2​,

with scalar product (f′,g′)′=∑k,l(f1(k),g1(l))1(f2(k),g2(l))2(f', g')' = \sum_{k,l} (f_1^{(k)}, g_1^{(l)})_1 (f_2^{(k)}, g_2^{(l)})_2(f′,g′)′=∑k,l​(f1(k)​,g1(l)​)1​(f2(k)​,g2(l)​)2​. Their functional completion is the direct product F′=F1⊗F2F' = F_1 \otimes F_2F′=F1​⊗F2​, with norm ∥⋅∥′\|\cdot\|'∥⋅∥′.

In Lean, kernelFn H x y is the scalar kernel K(x,y)K(x,y)K(x,y) of a space H, IsFunctionalCompletion ι H says H is a functional completion of the class presented by ι, and IsDirectProduct H₁ H₂ H' says H' is F1⊗F2F_1 \otimes F_2F1​⊗F2​.

Formalization targets

Goal: §8, Theorem II

The kernel K(x,y)=K1(x,y)K2(x,y)K(x,y) = K_1(x,y) K_2(x,y)K(x,y)=K1​(x,y)K2​(x,y) is the reproducing kernel of the class FFF of restrictions of the functions of F1⊗F2F_1 \otimes F_2F1​⊗F2​ to the diagonal {(x,x)}\{(x,x)\}{(x,x)}, and

∥f∥=min⁡{∥g′∥′:g′∈F1⊗F2, g′(x,x)=f(x) ∀x∈E}.\|f\| = \min\{\|g'\|' : g' \in F_1 \otimes F_2,\ g'(x,x) = f(x)\ \forall x \in E\}.∥f∥=min{∥g′∥′:g′∈F1​⊗F2​, g′(x,x)=f(x) ∀x∈E}.

Milestones

  1. §4, Theorem. A functional completion of FFF exists if and only if every evaluation f↦f(y)f \mapsto f(y)f↦f(y) is bounded on FFF and every Cauchy sequence (fm)⊂F(f_m) \subset F(fm​)⊂F with fm(y)→0f_m(y) \to 0fm​(y)→0 for every yyy satisfies ∥fm∥→0\|f_m\| \to 0∥fm​∥→0; the functional completion, when it exists, is unique.
  2. §8, Theorem I. F1⊗F2F_1 \otimes F_2F1​⊗F2​ has reproducing kernel
K′(x1,x2,y1,y2)=K1(x1,y1) K2(x2,y2).K'(x_1,x_2,y_1,y_2) = K_1(x_1,y_1)\,K_2(x_2,y_2).K′(x1​,x2​,y1​,y2​)=K1​(x1​,y1​)K2​(x2​,y2​).
  1. §5, Theorem. K∣E1×E1K|_{E_1 \times E_1}K∣E1​×E1​​ is the reproducing kernel of F∣E1F|_{E_1}F∣E1​​, with ∥f1∥1=min⁡{∥f∥:f∣E1=f1}\|f_1\|_1 = \min\{\|f\| : f|_{E_1} = f_1\}∥f1​∥1​=min{∥f∥:f∣E1​​=f1​}.
  2. §8, Remark. For a complete orthonormal system {g1(k)}\{g_1^{(k)}\}{g1(k)​} of F1F_1F1​, every fff in the class of K1K2K_1K_2K1​K2​ is f=∑kf2(k)g1(k)f = \sum_k f_2^{(k)} g_1^{(k)}f=∑k​f2(k)​g1(k)​ with f2(k)∈F2f_2^{(k)} \in F_2f2(k)​∈F2​, ∑k∥f2(k)∥22<∞\sum_k \|f_2^{(k)}\|_2^2 < \infty∑k​∥f2(k)​∥22​<∞; exactly one such representation minimizes ∑k∥f2(k)∥22\sum_k \|f_2^{(k)}\|_2^2∑k​∥f2(k)​∥22​, and the minimum is ∥f∥2\|f\|^2∥f∥2.

Significance

The result. Theorem II turns the Schur product theorem from a statement about matrices into a statement about function spaces: it says which functions the product kernel can represent and how their norms are computed, through a minimal decomposition. It is the standard description of the reproducing kernel Hilbert space of a product kernel, used to reason about which functions product kernels can express and with what norm, and the Remark gives a concrete series description of the same space. §5 (restriction) and §4 (functional completion) are general tools in their own right: restriction underlies every comparison of kernels on nested domains, and §4 is the criterion for when an incomplete space of functions can be completed without leaving the world of functions.

Formalizing it. All four results are classical and proved on paper. Mathlib has reproducing kernel Hilbert spaces (RKHS, RKHS.kernel, the construction RKHS.OfKernel from a positive semidefinite kernel) and Schur's product theorem (Matrix.PosSemidef.hadamard, for an arbitrary index type), but no restriction theorem, no functional completion and no tensor product of reproducing kernel Hilbert spaces. None of these statements has a machine-checked proof that the mission is aware of.

Difficulty

The kernel identity is the easy part: by Schur's theorem K1K2K_1K_2K1​K2​ is positive, so some space with kernel K1K2K_1K_2K1​K2​ exists. The content is the identification of that space and its norm. The direct product has to be constructed before anything can be said about it: the class of finite sums of products is not complete, the scalar product (2) must be shown independent of the representation and positive definite, and the completion must stay a class of functions, which is exactly the question §4 answers and which can fail (p. 349 gives a class satisfying the first condition but not the second). The norm formula is an attained minimum over an infinite-dimensional affine set of preimages, not merely an infimum.

Formalization scope

Scalars are complex throughout ("From now on … we shall consider only complex Hilbert spaces", p. 343). The underlying set EEE is an arbitrary type X, with no topology, measure or nonemptiness assumption. A class with a reproducing kernel is a complex Hilbert space H with Mathlib's RKHS ℂ H X ℂ structure; its functions are the coercions ⇑f. The scalar kernel is kernelFn H x y = RKHS.kernel H x y 1. Mathlib's inner product ⟨u,v⟩\langle u, v\rangle⟨u,v⟩ is conjugate-linear in uuu, so Aronszajn's (f,g)(f,g)(f,g) is ⟨g,f⟩\langle g, f\rangle⟨g,f⟩.

Conventions and reading decisions:

  • Statements of the form "KKK is the reproducing kernel of the class C\mathcal{C}C with norm NNN" assert that a space with kernel KKK exists and that every space with kernel KKK has exactly the functions C\mathcal{C}C and the norm NNN. They never define the space as RKHS.OfKernel K, which would make the kernel identity true by construction.
  • The direct product is characterized by its elementary products f1(x1)f2(x2)f_1(x_1)f_2(x_2)f1​(x1​)f2​(x2​), the scalar product (2) on them, and density of their span (IsDirectProduct); it is never defined through its kernel. With that, Theorem I is not a definitional identity and Theorem II is not a restatement of §5.
  • "min" is an attained minimum (IsLeast). In Theorem II and §5 it is the minimum of the norm, not its square; in the Remark it is the minimum of the sum of squared norms, as printed.
  • The diagonal of E×EE\times EE×E is identified with EEE through x↦(x,x)x \mapsto (x,x)x↦(x,x), and the restriction of g′g'g′ is x↦g′(x,x)x \mapsto g'(x,x)x↦g′(x,x).
  • §4's "incomplete" Hilbert space is a complex inner product space, not assumed complete; completeness is not excluded either.
  • The complete orthonormal system of the Remark is a Mathlib HilbertBasis over an arbitrary index set, and the series converges unconditionally at each point.

Results already in Mathlib are not restated: Schur's product theorem (Matrix.PosSemidef.hadamard, the first sentence of §8 and the sentence after Theorem I), positivity of a kernel (RKHS.posSemidef_kernel) and existence of a space for a positive kernel (RKHS.OfKernel, RKHS.kernel_ofKernel).

A complete development needs a Hilbert tensor product of reproducing kernel Hilbert spaces realized as functions on E×EE\times EE×E, the restriction construction (quotient by the subspace of functions vanishing on E1E_1E1​), and uniqueness of a reproducing kernel Hilbert space with given kernel. The restriction theorem and the functional completion theorem are reusable well beyond this mission; contributions of either, or of a Hilbert tensor product for RKHS, are welcome.

Selected references

  • N. Aronszajn, Theory of Reproducing Kernels, Trans. Amer. Math. Soc. 68 (1950), 337–404. https://doi.org/10.1090/S0002-9947-1950-0051437-7
  • I. Schur, Bemerkungen zur Theorie der beschränkten Bilinearformen mit unendlich vielen Veränderlichen, J. Reine Angew. Math. 140 (1911), 1–28. https://doi.org/10.1515/crll.1911.140.1
  • J. von Neumann and F. J. Murray, On rings of operators, Ann. of Math. 37 (1936), 116–229 (direct products of Hilbert spaces). https://doi.org/10.2307/1968693
  • V. I. Paulsen and M. Raghupathi, An Introduction to the Theory of Reproducing Kernel Hilbert Spaces, Cambridge Univ. Press, 2016. https://doi.org/10.1017/CBO9781316219232
8 thms3 active usersReviewed
🏆Completed
AnalysisFunctional Analysis·Captain: mikedeng1

Theory of Reproducing Kernels I: The Sum of Two Reproducing Kernels Is the Kernel of the Sum Class with the Minimal-Decomposition NormResearch Paper

Motivation

Reproducing kernel Hilbert spaces are Hilbert spaces of functions in which evaluation at a point is a continuous linear functional. They appear wherever a space of functions carries a natural quadratic norm: Bergman and Hardy spaces of analytic functions, spaces of harmonic functions and solutions of elliptic equations, Sobolev spaces in one dimension, and, since the 1990s, the hypothesis classes of kernel methods in machine learning (support vector machines, Gaussian process regression, kernel ridge regression). In all of these settings, kernels are routinely combined: a sum of kernels is used to model a function as a sum of components, and the question is which space of functions, and which norm, the combined kernel describes.

N. Aronszajn's Theory of Reproducing Kernels (Trans. Amer. Math. Soc. 68 (1950), 337–404) organised the subject as a calculus of operations on kernels. Its §6 answers the question for sums.

Timeline. E. H. Moore (Bull. Amer. Math. Soc. 1916; General Analysis, 1935) introduced positive Hermitian matrices on arbitrary sets and their associated function classes. S. Bergman (1920s–1930s) studied the kernel of square-integrable analytic functions of a domain. R. Godement (C. R. Acad. Sci. Paris notes, 1945–1946) found the sum theorem for positive definite functions on a group (footnote 6 of the paper). Aronszajn (1950) proved it for arbitrary kernels on arbitrary sets, with the description of the norm as a minimum over decompositions.

Setting

Let EEE be an arbitrary set. A class of functions FFF on EEE is a complex vector space of functions f:E→Cf:E\to\mathbb Cf:E→C carrying a norm ∥⋅∥\|\cdot\|∥⋅∥ that makes it a complex Hilbert space. A function K:E×E→CK:E\times E\to\mathbb CK:E×E→C is the reproducing kernel (r.k.) of FFF if, for every y∈Ey\in Ey∈E, the function K(⋅,y)K(\cdot,y)K(⋅,y) belongs to FFF and

f(y)=(f,K(⋅,y))for every f∈F,f(y)=(f,K(\cdot,y))\qquad\text{for every } f\in F,f(y)=(f,K(⋅,y))for every f∈F,

where (f,g)(f,g)(f,g) is the scalar product, linear in fff. A kernel exists exactly when every evaluation f↦f(y)f\mapsto f(y)f↦f(y) is continuous.

A function K:E×E→CK:E\times E\to\mathbb CK:E×E→C is a positive matrix if ∑i,j=1nK(yi,yj)ξˉiξj≥0\sum_{i,j=1}^n K(y_i,y_j)\bar\xi_i\xi_j\ge 0∑i,j=1n​K(yi​,yj​)ξˉ​i​ξj​≥0 for all finite families of points yi∈Ey_i\in Eyi​∈E and complex numbers ξi\xi_iξi​. Every reproducing kernel is a positive matrix.

A class F1F_1F1​ is a subclass of F2F_2F2​ if every function of F1F_1F1​ belongs to F2F_2F2​, and a subspace if moreover the two norms agree on F1F_1F1​. Two classes F1F_1F1​, F2F_2F2​ with kernels K1K_1K1​, K2K_2K2​ have a sum class F1+F2={f1+f2:fi∈Fi}F_1+F_2=\{f_1+f_2: f_i\in F_i\}F1​+F2​={f1​+f2​:fi​∈Fi​}, a set of functions; a function of it may have many decompositions f=f1+f2f=f_1+f_2f=f1​+f2​, since F1F_1F1​ and F2F_2F2​ may share functions.

Formalization targets

Goal: the sum theorem (§6, Theorem, p. 353)

For complex Hilbert spaces F1F_1F1​, F2F_2F2​ of functions on EEE with kernels K1K_1K1​, K2K_2K2​: the kernel K=K1+K2K=K_1+K_2K=K1​+K2​ is the reproducing kernel of the class of all f=f1+f2f=f_1+f_2f=f1​+f2​, with

∥f∥2=min⁡[∥f1∥12+∥f2∥22],\|f\|^2=\min\big[\|f_1\|_1^2+\|f_2\|_2^2\big],∥f∥2=min[∥f1​∥12​+∥f2​∥22​],

the minimum taken over all decompositions f=f1+f2f=f_1+f_2f=f1​+f2​, fi∈Fif_i\in F_ifi​∈Fi​. The goal asserts that a space with kernel K1+K2K_1+K_2K1​+K2​ exists, and that every such space consists exactly of the sums and has exactly this norm, the minimum being attained.

Milestones

  1. §2 (4), Moore's theorem (p. 344): a positive matrix is the kernel of one and only one class of functions with a uniquely determined norm. This makes "the class with kernel K1+K2K_1+K_2K1​+K2​" well defined.
  2. §2 (7) (p. 345): every closed subspace F′F'F′ of FFF has a kernel K′K'K′, and for the orthogonal complement F′′F''F′′, K′+K′′=KK'+K''=KK′+K′′=K.
  3. §3, Theorem (p. 347): KKK is the kernel of a finite-dimensional class if and only if K(x,y)=∑i,jβijwi(x)wj(y)‾K(x,y)=\sum_{i,j}\beta_{ij}w_i(x)\overline{w_j(y)}K(x,y)=∑i,j​βij​wi​(x)wj​(y)​ with {βij}\{\beta_{ij}\}{βij​} positive definite and the wkw_kwk​ linearly independent; the class is then spanned by the wkw_kwk​, with norm given by the inverse of {βˉij}\{\bar\beta_{ij}\}{βˉ​ij​}.
  4. §6, p. 354, the disjoint case: when F1∩F2={0}F_1\cap F_2=\{0\}F1​∩F2​={0}, ∥f∥2=∥f1∥12+∥f2∥22\|f\|^2=\|f_1\|_1^2+\|f_2\|_2^2∥f∥2=∥f1​∥12​+∥f2​∥22​, and this happens if and only if F1F_1F1​ and F2F_2F2​ are complementary closed subspaces of FFF.
  5. §6, p. 354, Eq. (1): the class of conjugates Fˉ\bar FFˉ has kernel K(y,x)K(y,x)K(y,x), and Re⁡K=2−1(K(x,y)+K(y,x))\operatorname{Re}K=2^{-1}(K(x,y)+K(y,x))ReK=2−1(K(x,y)+K(y,x)) is the kernel of the class of all f+gˉf+\bar gf+gˉ​, with ∥φ∥02=2min⁡[∥f∥2+∥g∥2]\|\varphi\|_0^2=2\min[\|f\|^2+\|g\|^2]∥φ∥02​=2min[∥f∥2+∥g∥2].

Significance

The result itself. The sum theorem is the first operation of Aronszajn's calculus and the base of the next ones: the order K1≪KK_1\ll KK1​≪K between kernels and the inclusion theorem of §7 are derived from it, as are the kernel Re⁡K\operatorname{Re}KReK of the class of all f+gˉf+\bar gf+gˉ​ and the characterisation of kernels of real spaces (§6, p. 354). In machine learning, it is the statement behind additive kernels and multiple-kernel learning: the hypothesis class of K1+K2K_1+K_2K1​+K2​ is the set of sums, and the regulariser is the infimal convolution of the two squared norms. In complex analysis, it describes the space attached to a sum of Bergman-type kernels.

Formalizing it. The results are classical and proved in the paper; none of them is formalized in Mathlib beyond the existence half of Moore's theorem. Mathlib (2026) has reproducing kernel Hilbert spaces with operator-valued kernels (RKHS, RKHS.kernel, RKHS.kerFun, RKHS.posSemidef_kernel) and the construction of a space from a positive semidefinite matrix (RKHS.OfKernel, RKHS.kernel_ofKernel). This mission adds uniqueness, the sum theorem, kernels of closed subspaces, the finite-dimensional case and the conjugate class.

Difficulty

The kernel K1+K2K_1+K_2K1​+K2​ is the kernel of some space by Moore's existence theorem, so the content is the identification of that space. The obvious candidate, the external direct sum F1⊕F2F_1\oplus F_2F1​⊕F2​ mapped to functions by (f1,f2)↦f1+f2(f_1,f_2)\mapsto f_1+f_2(f1​,f2​)↦f1​+f2​, is not injective as soon as F1F_1F1​ and F2F_2F2​ share a nonzero function; the class of sums is the image of a quotient, and its norm is the norm of a minimal representative, which has to be shown to exist and to make the class complete. Proving that the resulting space has kernel K1+K2K_1+K_2K1​+K2​ and that every other space with this kernel coincides with it requires the uniqueness half of Moore's theorem, which is not in Mathlib. The disjoint case needs, in addition, that an isometric image of a complete space is closed, and the converse direction of its "only in this case".

Formalization scope

  • Scalars and sets. Complex scalars throughout (the paper's convention from §1 on). EEE is an arbitrary type X with no topology, measure, or nonemptiness assumption.
  • Spaces. A class with a kernel is a Mathlib RKHS ℂ H X ℂ on a complex Hilbert space H; its functions are Set.range (⇑ : H → X → ℂ).
  • Kernel. The scalar kernel kernelFn H x y is RKHS.kernel H x y 1.
  • Scalar products. The paper's (f,g)(f,g)(f,g), linear in fff, is Mathlib's ⟪g, f⟫_ℂ.
  • Positivity. A positive matrix is (Matrix.of K).PosSemidef, and "positive definite" is Matrix.PosDef.
  • Decompositions are of functions: f=f1+f2f=f_1+f_2f=f1​+f2​ pointwise with fif_ifi​ in FiF_iFi​.
  • Minima. "min" is an attained minimum (IsLeast), never an infimum.
  • Quantification. Statements about "the" class with a given kernel quantify over every RKHS with that kernel, in any universe, and assert separately that one exists.

Reading decisions, recorded in the item notes:

  • In §2 (7), "complementary subspaces" means a closed subspace and its orthogonal complement, and the kernels of the two subspaces are any kernels with the reproducing property there, not projections of KKK.
  • In §3, {βˉij}\{\bar\beta_{ij}\}{βˉ​ij​} is the entrywise conjugate of {βij}\{\beta_{ij}\}{βij​} (consistent with §3 (5), ∑jαijβˉjk=δik\sum_j\alpha_{ij}\bar\beta_{jk}=\delta_{ik}∑j​αij​βˉ​jk​=δik​), not its conjugate transpose.
  • In §6, p. 354, "subspace" is the paper's §1 notion (norms agree), and the scalar-product remark on Fˉ\bar FFˉ follows from the norm statement by polarization.

Trivialization ruled out. The goal does not define the sum class as RKHS.OfKernel (K₁ + K₂) and assert that its kernel is K1+K2K_1+K_2K1​+K2​, which is Mathlib's kernel_ofKernel. Its content is the description of the functions (exactly the sums) and of the norm (the attained minimum) for every space with that kernel.

Infrastructure. A complete development needs:

  • uniqueness of an RKHS given its kernel (milestone 1);
  • orthogonal projections onto closed subspaces (Mathlib Submodule.starProjection);
  • quotients of Hilbert spaces by closed subspaces, or the orthogonal complement of the kernel of the sum map;
  • for §3, Gram matrices and their inverses.

Milestone 1 and the RKHS structure on a closed subspace are reusable beyond this mission and are natural Mathlib contributions. Independent proofs of any milestone are welcome.

Selected references

  • N. Aronszajn, Theory of Reproducing Kernels, Trans. Amer. Math. Soc. 68 (1950), no. 3, 337–404. https://doi.org/10.1090/S0002-9947-1950-0051437-7
  • E. H. Moore, General Analysis, Part I, Memoirs of the American Philosophical Society 1, 1935.
  • R. Godement, Sur les fonctions de type positif, C. R. Acad. Sci. Paris 221 (1945), 69; and further notes in vols. 221–222 (1945–1946), as cited by Aronszajn [Godement 1].
  • E. H. Moore, On properly positive Hermitian matrices, Bull. Amer. Math. Soc. 23 (1916), 59.
  • V. I. Paulsen and M. Raghupathi, An Introduction to the Theory of Reproducing Kernel Hilbert Spaces, Cambridge Univ. Press, 2016. https://doi.org/10.1017/CBO9781316219232
8 thms3 active usersReviewed
ProbabilityStatistics·Captain: mikedeng1

On the Uniform Convergence of Relative Frequencies of Events to Their Probabilities III: Uniform Convergence and the Entropy per ObservationResearch Paper

Motivation

Estimating a probability by the relative frequency of the event in an independent sample is justified for one event by the law of large numbers. Statistics and learning theory need more: the frequencies of a whole class of events SSS must approach their probabilities simultaneously, so that a quantity chosen after looking at the data (the empirical risk minimizer, the empirical distribution function) is still close to its expectation. Glivenko's theorem on the empirical distribution function is the classical instance; empirical risk minimization rests on the same property for the class of loss sets of a model.

Vapnik and Chervonenkis, On the Uniform Convergence of Relative Frequencies of Events to Their Probabilities, Theory Probab. Appl. 16 (1971), treat this question in two parts. The first gives a distribution-free sufficient condition through the growth function (Theorems 1–3). The second, which this mission formalizes, gives a condition that is necessary and sufficient for a fixed distribution: Theorem 4, the entropy criterion.

Timeline. 1933: Glivenko and Cantelli prove uniform convergence for the class of rays {x≤a}\{x \le a\}{x≤a} on the line. 1968: Vapnik and Chervonenkis announce the results in Dokl. Akad. Nauk SSSR 181. 1971: the full paper appears, with the growth-function bound and the entropy criterion. Later work (Talagrand 1987; Dudley, Giné and Zinn 1991) recasts such criteria as the theory of Glivenko–Cantelli classes.

Setting

Let XXX be a set carrying a probability measure PPP, and SSS a collection of measurable subsets of XXX (events). A sample of size lll is a sequence x1,…,xlx_1, \dots, x_lx1​,…,xl​ of independent draws from PPP; repetitions are allowed. For A∈SA \in SA∈S the relative frequency νA(l)\nu_A^{(l)}νA(l)​ is the fraction of sample terms lying in AAA, and PA=P(A)P_A = P(A)PA​=P(A). The maximal deviation is

π(l)(x1,…,xl)=sup⁡A∈S∣νA(l)−PA∣.\pi^{(l)}(x_1, \dots, x_l) = \sup_{A \in S} \bigl|\nu_A^{(l)} - P_A\bigr| .π(l)(x1​,…,xl​)=A∈Ssup​​νA(l)​−PA​​.

The relative frequencies converge in probability to the probabilities uniformly over SSS when P{π(l)>ε}→0\mathbf{P}\{\pi^{(l)} > \varepsilon\} \to 0P{π(l)>ε}→0 as l→∞l \to \inftyl→∞ for every ε>0\varepsilon > 0ε>0.

Each A∈SA \in SA∈S induces in a sample the subsample of terms lying in AAA. The index ΔS(x1,…,xl)\Delta^S(x_1, \dots, x_l)ΔS(x1​,…,xl​) is the number of different subsamples induced by the sets of SSS; it lies between 000 and 2l2^l2l. The entropy of SSS in samples of size lll is

HS(l)=Elog⁡2ΔS(x1,…,xl).H^S(l) = \mathbf{E} \log_2 \Delta^S(x_1, \dots, x_l) .HS(l)=Elog2​ΔS(x1​,…,xl​).

For a sample of size 2l2l2l, split into halves x1,…,xlx_1, \dots, x_lx1​,…,xl​ and xl+1,…,x2lx_{l+1}, \dots, x_{2l}xl+1​,…,x2l​ with relative frequencies νA′\nu'_AνA′​ and νA′′\nu''_AνA′′​, the semi-sample deviation is ρ(l)=sup⁡A∈S∣νA′−νA′′∣\rho^{(l)} = \sup_{A \in S} |\nu'_A - \nu''_A|ρ(l)=supA∈S​∣νA′​−νA′′​∣. Finally Φ(n,r)\Phi(n, r)Φ(n,r) is defined by the recurrence Φ(n,r)=Φ(n,r−1)+Φ(n−1,r−1)\Phi(n, r) = \Phi(n, r-1) + \Phi(n-1, r-1)Φ(n,r)=Φ(n,r−1)+Φ(n−1,r−1), Φ(0,r)=Φ(n,0)=1\Phi(0, r) = \Phi(n, 0) = 1Φ(0,r)=Φ(n,0)=1.

Formalization targets

Goal: Theorem 4 (p. 275)

(∀ε>0: lim⁡l→∞P{π(l)>ε}=0)  ⟺  lim⁡l→∞HS(l)l=0.\Bigl(\forall \varepsilon > 0:\ \lim_{l\to\infty} \mathbf{P}\{\pi^{(l)} > \varepsilon\} = 0\Bigr) \iff \lim_{l \to \infty} \frac{H^S(l)}{l} = 0 .(∀ε>0: l→∞lim​P{π(l)>ε}=0)⟺l→∞lim​lHS(l)​=0.

Milestones

  1. Entropy rate. (12) ΔS(x1,…,xl)≤ΔS(x1,…,xk)ΔS(xk+1,…,xl)\Delta^S(x_1, \dots, x_l) \le \Delta^S(x_1, \dots, x_k)\Delta^S(x_{k+1}, \dots, x_l)ΔS(x1​,…,xl​)≤ΔS(x1​,…,xk​)ΔS(xk+1​,…,xl​); the subadditivity HS(l1+l2)≤HS(l1)+HS(l2)H^S(l_1 + l_2) \le H^S(l_1) + H^S(l_2)HS(l1​+l2​)≤HS(l1​)+HS(l2​); Lemma 3, HS(l)/l→c∈[0,1]H^S(l)/l \to c \in [0, 1]HS(l)/l→c∈[0,1]; Lemma 4, P(∣l−1log⁡2ΔS−c∣>ε)→0\mathbf{P}(|l^{-1}\log_2 \Delta^S - c| > \varepsilon) \to 0P(∣l−1log2​ΔS−c∣>ε)→0.
  2. Sufficiency. Lemma 2, P{π(l)>ε}≤2 P{ρ(l)≥ε/2}\mathbf{P}\{\pi^{(l)} > \varepsilon\} \le 2\,\mathbf{P}\{\rho^{(l)} \ge \varepsilon/2\}P{π(l)>ε}≤2P{ρ(l)≥ε/2} for l≥2/ε2l \ge 2/\varepsilon^2l≥2/ε2; the per-sample permutation bound 2ΔS(x1,…,x2l)e−ε2l/82\Delta^S(x_1, \dots, x_{2l}) e^{-\varepsilon^2 l/8}2ΔS(x1​,…,x2l​)e−ε2l/8; and
P{ρ(l)≥ε2}≤2(2e)ε2l/8+P{12llog⁡2ΔS(x1,…,x2l)>ε216}.\mathbf{P}\{\rho^{(l)} \ge \tfrac{\varepsilon}{2}\} \le 2\Bigl(\frac{2}{e}\Bigr)^{\varepsilon^2 l/8} + \mathbf{P}\Bigl\{\tfrac{1}{2l}\log_2 \Delta^S(x_1, \dots, x_{2l}) > \tfrac{\varepsilon^2}{16}\Bigr\} .P{ρ(l)≥2ε​}≤2(e2​)ε2l/8+P{2l1​log2​ΔS(x1​,…,x2l​)>16ε2​}.
  1. Necessity. Lemma 1 (Sauer–Shelah in sequence form); step 1°, 1−P(C′)≥(1−P(Q))21 - \mathbf{P}(C') \ge (1 - \mathbf{P}(Q))^21−P(C′)≥(1−P(Q))2 with C′={ρ(l)>2ε}C' = \{\rho^{(l)} > 2\varepsilon\}C′={ρ(l)>2ε}; (26), P{ΔS>Φ([ql],l)}→1\mathbf{P}\{\Delta^S > \Phi([ql], l)\} \to 1P{ΔS>Φ([ql],l)}→1 when 0<q<140 < q < \frac140<q<41​ and qlog⁡2(2e/q)<cq\log_2(2e/q) < cqlog2​(2e/q)<c; and (29), P{π(l)>ε}→1\mathbf{P}\{\pi^{(l)} > \varepsilon\} \to 1P{π(l)>ε}→1 when moreover 0<ε<q/70 < \varepsilon < q/70<ε<q/7.

Significance

Theorem 4 characterizes uniform convergence for a given distribution exactly, with no gap between the necessary and the sufficient condition. It separates the cases the growth-function bound cannot: a class may have mS(l)=2lm^S(l) = 2^lmS(l)=2l for every lll (all open subsets of [0,1][0,1][0,1]) and still satisfy HS(l)/l→0H^S(l)/l \to 0HS(l)/l→0 under a particular PPP, or fail it. The entropy HS(l)H^S(l)HS(l) is the distribution-dependent quantity from which later work on Glivenko–Cantelli classes and on consistency of empirical risk minimization proceeds; the 1981 paper of the same authors extends the criterion to classes of functions. The quantitative form (29) states more than the negation of convergence: when the entropy rate is positive, the maximal deviation stays above a fixed ε\varepsilonε with probability tending to one.

The result has been proved since 1971; it has not been formalized. The platform holds Sauer–Shelah variants over sets of distinct points and PAC bounds with other constants, but no statement of the VC entropy or of Theorem 4. The mission produces machine-checked statements of the entropy criterion and of its supporting lemmas with the paper's own constants (l≥2/ε2l \ge 2/\varepsilon^2l≥2/ε2, 2e−ε2l/82e^{-\varepsilon^2 l/8}2e−ε2l/8, δ=ε2/16\delta = \varepsilon^2/16δ=ε2/16, ε<q/7\varepsilon < q/7ε<q/7).

Difficulty

The sufficiency half is a variant of the proof of the growth-function bound; its new ingredient is the concentration of l−1log⁡2ΔSl^{-1} \log_2 \Delta^Sl−1log2​ΔS (Lemma 4), which needs subadditivity and a law of large numbers over independent blocks of the sample rather than a single mean estimate. The hypergeometric tail estimate behind the permutation bound is omitted in the paper ("a simple but long computation").

Necessity is harder. The obvious attempt, bounding P{π(l)>ε}\mathbf{P}\{\pi^{(l)} > \varepsilon\}P{π(l)>ε} from below by exhibiting a single bad event, fails: SSS may be uncountable and no single AAA deviates with non-vanishing probability. A positive entropy rate has to be converted into a combinatorial statement about typical samples ((26) combines Lemma 4 with an estimate of Φ([ql],l)\Phi([ql], l)Φ([ql],l)), and that statement back into a lower bound on a probability over the product measure; the constants q<14q < \frac14q<41​ and ε<q/7\varepsilon < q/7ε<q/7 must be tracked through both conversions, and the conclusion lim⁡P{π(l)>ε}=1\lim \mathbf{P}\{\pi^{(l)} > \varepsilon\} = 1limP{π(l)>ε}=1 needs the unweakened inequality of step 1°.

Formalization scope

A sample of size lll is a function Fin l → X (positions 0,…,l−10, \dots, l-10,…,l−1) and its law is the product measure Measure.pi (fun _ => P), with P a probability measure. A subsample is a set of positions, so the index counts distinct Finset (Fin l) of the form {i:xi∈A}\{i : x_i \in A\}{i:xi​∈A}. The halves of x : Fin (l + l) → X are x ∘ Fin.castAdd l and x ∘ Fin.natAdd l. PAP_APA​ is P.real A; the suprema π(l)\pi^{(l)}π(l) and ρ(l)\rho^{(l)}ρ(l) are real suprema over the subtype of SSS (values in [0,1][0,1][0,1]; 000 for S=∅S = \emptysetS=∅). HS(l)H^S(l)HS(l) is a Bochner integral of Real.logb 2 of the index, and [ql][ql][ql] is ⌊q * l⌋₊. Probabilities are values in [0,∞][0, \infty][0,∞], except in the inequalities between probabilities (step 1°, the sufficiency estimate), which use Measure.real.

Measurability. The paper assumes, and the statements carry as hypotheses, that the events of SSS are measurable (p. 264), that π(l)\pi^{(l)}π(l) is a random variable (p. 265), that ρ(l)\rho^{(l)}ρ(l) is measurable (p. 268), and that the index is measurable in the sample (p. 273). Each statement carries the ones its proof uses. Without them the Bochner integral defining HS(l)H^S(l)HS(l) can be the junk value 000 and the equivalence can fail; replacing them by "SSS countable" would weaken the theorem. The goal is not trivialized by degenerate cases: the equivalence is not vacuous for any class, and S=∅S = \emptysetS=∅ gives the true instance HS=0H^S = 0HS=0, π(l)=0\pi^{(l)} = 0π(l)=0.

Corrections of the printed text. Lemma 2 is printed for l>2/ε2l > 2/\varepsilon^2l>2/ε2; its proof gives l≥2/ε2l \ge 2/\varepsilon^2l≥2/ε2, which is stated. On p. 275 Lemma 2 is recalled as "2P(C)≥12P(Q)2\mathbf{P}(C) \ge \frac12 P(Q)2P(C)≥21​P(Q)", meaning P(C)≥12P(Q)\mathbf{P}(C) \ge \frac12\mathbf{P}(Q)P(C)≥21​P(Q). On p. 276 the first display carries a stray upper limit "4" on the integral, and the region of integration is printed {log⁡2ΔS≤2δ}\{\log_2 \Delta^S \le 2\delta\}{log2​ΔS≤2δ} where {log⁡2ΔS≤2δl}\{\log_2\Delta^S \le 2\delta l\}{log2​ΔS≤2δl} is meant. The event C′C'C′ is defined with ">2ε> 2\varepsilon>2ε" (p. 276) but integrated in step 3° as θ(⋅−2ε)\theta(\cdot - 2\varepsilon)θ(⋅−2ε), which counts "≥2ε\ge 2\varepsilon≥2ε"; the strict form is stated, and the estimate of step 3° is itself strict. Step 1° is stated unweakened. Milestone texts are verbatim.

Contributions welcome: a reusable development of the index and its submultiplicativity, the hypergeometric tail bound for sampling without replacement, a block law of large numbers for subadditive functionals of i.i.d. samples, and the permutation-invariance argument for product measures on Fin (l + l) → X.

Selected references

  • V. N. Vapnik and A. Ya. Chervonenkis, On the uniform convergence of relative frequencies of events to their probabilities, Theory of Probability and Its Applications 16(2) (1971), 264–280. https://doi.org/10.1137/1116025
  • V. N. Vapnik and A. Ya. Chervonenkis, Necessary and sufficient conditions for the uniform convergence of means to their expectations, Theory of Probability and Its Applications 26(3) (1981), 532–553. https://doi.org/10.1137/1126059
  • M. Talagrand, The Glivenko–Cantelli problem, Annals of Probability 15(3) (1987), 837–870. https://doi.org/10.1214/aop/1176992069
  • R. M. Dudley, E. Giné and J. Zinn, Uniform and universal Glivenko–Cantelli classes, Journal of Theoretical Probability 4(3) (1991), 485–510. https://doi.org/10.1007/BF01210321
16 thms3 active usersReviewed
🏆Completed
ProbabilityStatistics·Captain: mikedeng1

On the Uniform Convergence of Relative Frequencies of Events to Their Probabilities II: The Uniform Deviation BoundResearch Paper

Motivation

Bernoulli's law of large numbers says that the relative frequency of a single event AAA in lll independent trials converges in probability to P(A)P(A)P(A). Statistics and learning theory need more: the probabilities of a whole class SSS of events are judged from one and the same sample, so the frequencies must converge uniformly over the class. Uniform convergence can fail even for simple classes (all open subsets of [0,1][0,1][0,1]), so one needs a criterion that says when it holds and how fast.

Vapnik and Chervonenkis gave the first distribution-free answer in On the Uniform Convergence of Relative Frequencies of Events to Their Probabilities (Theory Probab. Appl. 16 (1971) 264–280, doi:10.1137/1116025). Its Theorem 2, now called the VC inequality, bounds the probability of a uniform deviation larger than ε\varepsilonε by a combinatorial quantity of the class times an exponentially small factor.

Timeline:

  • 1933: Glivenko and Cantelli prove uniform almost-sure convergence of the empirical distribution function on the line (the class of rays {x≤a}\{x \le a\}{x≤a}).
  • 1971: Vapnik and Chervonenkis publish the growth function, the VC inequality (Theorem 2), almost-sure convergence under polynomial growth (Theorem 3) and the entropy criterion (Theorem 4).
  • 1972: Sauer and Shelah independently prove the polynomial bound on the growth function (the paper's Lemma 1).
  • From the late 1970s: the inequality is sharpened in its constants and extended to empirical processes (Dudley, Pollard, Talagrand).

Setting

Let (X,P)(X, P)(X,P) be a probability space and SSS a collection of measurable events A⊆XA \subseteq XA⊆X, with probabilities PAP_APA​. A sample of size lll is a sequence x1,…,xlx_1, \dots, x_lx1​,…,xl​ of points of XXX drawn independently with law PPP, so the sample has the product law PlP^lPl on XlX^lXl. The relative frequency of AAA in the sample is νA(l)=nA/l\nu_A^{(l)} = n_A / lνA(l)​=nA​/l, where nAn_AnA​ is the number of sample terms in AAA. The uniform deviation is

π(l)=sup⁡A∈S∣νA(l)−PA∣.\pi^{(l)} = \sup_{A \in S} \bigl|\nu_A^{(l)} - P_A\bigr|.π(l)=A∈Ssup​​νA(l)​−PA​​.

Each A∈SA \in SA∈S induces in a sample x1,…,xrx_1, \dots, x_rx1​,…,xr​ the subsample of terms lying in AAA. The index ΔS(x1,…,xr)\Delta^S(x_1, \dots, x_r)ΔS(x1​,…,xr​) is the number of different subsamples so induced (at most 2r2^r2r), and the growth function is mS(r)=max⁡ΔS(x1,…,xr)m^S(r) = \max \Delta^S(x_1, \dots, x_r)mS(r)=maxΔS(x1​,…,xr​) over all samples of size rrr.

For a double sample x1,…,x2lx_1, \dots, x_{2l}x1​,…,x2l​ let νA′\nu'_AνA′​ and νA′′\nu''_AνA′′​ be the frequencies of AAA in the two semi-samples x1,…,xlx_1, \dots, x_lx1​,…,xl​ and xl+1,…,x2lx_{l+1}, \dots, x_{2l}xl+1​,…,x2l​, and let

ρ(l)=sup⁡A∈S∣νA′−νA′′∣.\rho^{(l)} = \sup_{A \in S} \bigl|\nu'_A - \nu''_A\bigr|.ρ(l)=A∈Ssup​​νA′​−νA′′​​.

Following the paper, π(l)\pi^{(l)}π(l) and ρ(l)\rho^{(l)}ρ(l) are assumed to be measurable functions of the sample for every lll.

Formalization targets

Goal: Theorem 2 (p. 269)

For every ε>0\varepsilon > 0ε>0 and every l≥2/ε2l \ge 2/\varepsilon^2l≥2/ε2,

P(π(l)>ε)≤4 mS(2l) e−ε2l/8.P\bigl(\pi^{(l)} > \varepsilon\bigr) \le 4\, m^S(2l)\, e^{-\varepsilon^2 l/8}.P(π(l)>ε)≤4mS(2l)e−ε2l/8.

The constants 444 and 1/81/81/8 and the growth function at 2l2l2l are the paper's.

Milestones, in the order of the proof

  1. Lemma 2 (p. 268): for l≥2/ε2l \ge 2/\varepsilon^2l≥2/ε2, P{ρ(l)≥ε/2}≥12P{π(l)>ε}P\{\rho^{(l)} \ge \varepsilon/2\} \ge \tfrac12 P\{\pi^{(l)} > \varepsilon\}P{ρ(l)≥ε/2}≥21​P{π(l)>ε}.
  2. Eq. (11) (p. 270): P{ρ(l)≥ε/2}=∫1(2l)!∑Tθ(ρ(l)(TX2l)−ε/2) dPP\{\rho^{(l)} \ge \varepsilon/2\} = \int \frac{1}{(2l)!} \sum_{T} \theta\bigl(\rho^{(l)}(T X_{2l}) - \varepsilon/2\bigr)\, dPP{ρ(l)≥ε/2}=∫(2l)!1​∑T​θ(ρ(l)(TX2l​)−ε/2)dP, the sum over all permutations TTT of the 2l2l2l positions (θ\thetaθ the indicator of [0,∞)[0, \infty)[0,∞)).
  3. The Γ\GammaΓ estimate (p. 271): for 0≤m≤2l0 \le m \le 2l0≤m≤2l,
Γ=∑k:∣2k/l−m/l∣≥ε/2(mk)(2l−ml−k)(2ll)≤2e−ε2l/8.\Gamma = \sum_{k : |2k/l - m/l| \ge \varepsilon/2} \frac{\binom{m}{k}\binom{2l-m}{l-k}}{\binom{2l}{l}} \le 2e^{-\varepsilon^2 l/8}.Γ=k:∣2k/l−m/l∣≥ε/2∑​(l2l​)(km​)(l−k2l−m​)​≤2e−ε2l/8.
  1. The per-sample permutation bound (p. 271): for every fixed double sample, 1(2l)!∑Tθ(ρ(l)(TX2l)−ε/2)≤2ΔS(x1,…,x2l) e−ε2l/8\frac{1}{(2l)!}\sum_T \theta\bigl(\rho^{(l)}(T X_{2l}) - \varepsilon/2\bigr) \le 2\Delta^S(x_1, \dots, x_{2l})\, e^{-\varepsilon^2 l/8}(2l)!1​∑T​θ(ρ(l)(TX2l​)−ε/2)≤2ΔS(x1​,…,x2l​)e−ε2l/8.
  2. The semi-sample bound (p. 271): P{ρ(l)≥ε/2}≤2 mS(2l) e−ε2l/8P\{\rho^{(l)} \ge \varepsilon/2\} \le 2\, m^S(2l)\, e^{-\varepsilon^2 l/8}P{ρ(l)≥ε/2}≤2mS(2l)e−ε2l/8 for every l≥1l \ge 1l≥1.

Further items (consequences, not milestones)

  • Corollary (p. 269): if mS(l)≤ln+1m^S(l) \le l^n + 1mS(l)≤ln+1 for all lll and some finite nnn, then P(π(l)>ε)→0P(\pi^{(l)} > \varepsilon) \to 0P(π(l)>ε)→0 for every ε>0\varepsilon > 0ε>0.
  • Theorem 3 (p. 271): under the same condition, P(π(l)→0)=1P(\pi^{(l)} \to 0) = 1P(π(l)→0)=1 for an infinite i.i.d. sequence.

Significance

The bound holds for every distribution PPP and depends on the class only through mS(2l)m^S(2l)mS(2l). Together with the paper's Theorem 1 (the growth function is either 2r2^r2r for every rrr or bounded by rn+1r^n + 1rn+1), it shows that every class whose growth function is not identically 2r2^r2r enjoys uniform convergence at an exponential rate in probability and almost surely. The Glivenko–Cantelli theorem is the special case of rays on the line. The inequality underlies sample-complexity bounds for empirical risk minimization, the "finite VC dimension implies learnability" direction of the fundamental theorem of statistical learning, and the theory of empirical processes indexed by sets.

The result has been proved for more than fifty years; what is missing is a machine-checked proof of it in its original form. Formal libraries contain Hoeffding-type inequalities for independent variables and textbook uniform-convergence statements with other constants, stated for hypothesis classes and loss functions. This mission produces the 1971 statement itself, with its constants and its sequence-based index, together with the combinatorial tail bound for sampling without replacement that the paper states without proof.

Difficulty

The obvious argument applies Hoeffding's inequality to each A∈SA \in SA∈S and takes a union bound. This fails as soon as SSS is infinite, and the classes of interest are uncountable. The growth function can only enter after the probabilities PAP_APA​ have been removed from the event, because only then does the event depend on the finitely many subsamples that SSS induces on a finite sample. Lemma 2 does this at the price of the condition l≥2/ε2l \ge 2/\varepsilon^2l≥2/ε2 and a factor 222.

The second difficulty is combinatorial. Under a random rearrangement of a fixed double sample, the number of points of an event that fall into the first half is hypergeometric, not binomial. The paper states the required tail bound Γ≤2e−ε2l/8\Gamma \le 2e^{-\varepsilon^2 l/8}Γ≤2e−ε2l/8 and omits the "simple but long computation". Mathlib has no tail bound for sampling without replacement.

Formalization scope

Samples are functions Fin l → X with 0-based positions; repetitions are allowed. The subsample induced by AAA is the set of positions {i | x i ∈ A}, so the index counts distinct sets of positions and the growth function maximizes over sequences, not finite point sets (the paper's model; the two differ when XXX has fewer than rrr points). The sample law is Measure.pi (fun _ : Fin l => P). The double sample is Fin (l + l) → X, read through Fin.castAdd and Fin.natAdd, and mS(2l)m^S(2l)mS(2l) is growth S (2 * l). Suprema are real suprema over the events of SSS (values in [0,1][0, 1][0,1]; 000 for S=∅S = \emptysetS=∅). Probabilities are values in [0,∞][0, \infty][0,∞] and the bounds enter through ENNReal.ofReal. Theorem 3 uses the infinite product Measure.infinitePi and evaluates π(l)\pi^{(l)}π(l) on the first lll coordinates.

The measurability of π(l)\pi^{(l)}π(l) (p. 265) and of ρ(l)\rho^{(l)}ρ(l) (p. 268) are the paper's own assumptions and are carried as hypotheses. Without them Theorem 2 can fail for uncountable classes; replacing them by a stronger condition such as countability of SSS would weaken the theorem.

A trivializing formalization is ruled out as follows: ε>0\varepsilon > 0ε>0 is stated, which forces l≥1l \ge 1l≥1 and so avoids the value 0/0=00/0 = 00/0=0 of the frequency. The supremum runs over the events of SSS, not over all subsets. The index counts distinct subsamples, not sets.

Corrections of the printed text:

  1. Lemma 2 is printed for l>2/ε2l > 2/\varepsilon^2l>2/ε2, but its proof concludes for l≥2/ε2l \ge 2/\varepsilon^2l≥2/ε2, and Theorem 2 uses l=2/ε2l = 2/\varepsilon^2l=2/ε2. The ≥\ge≥ form is stated, which is the stronger statement.
  2. The text before the permutation bound describes the averaged quantity as counting arrangements with ∣νA′−νA′′∣≤12ε|\nu'_A - \nu''_A| \le \tfrac12\varepsilon∣νA′​−νA′′​∣≤21​ε; the indicator and the index set of Γ\GammaΓ count those with ≥12ε\ge \tfrac12\varepsilon≥21​ε, which is what is stated.
  3. Slips in the proof of Lemma 2 that do not affect any statement: ε/3\varepsilon/3ε/3 printed for ε/2\varepsilon/2ε/2 on p. 269, and <<<, >>> where Chebyshev's inequality gives ≤\le≤, ≥\ge≥.
  4. Theorem 2 prints "more then" for "more than".

Needed infrastructure:

  • the invariance of Measure.pi under permutations of coordinates;
  • the splitting of Fin (l + l) into two halves under the product measure;
  • Chebyshev's inequality for binomial frequencies;
  • a hypergeometric (sampling without replacement) tail bound.

The last two are reusable beyond this mission. Proofs of any milestone are welcome.

Selected references

  • V. N. Vapnik and A. Ya. Chervonenkis, On the uniform convergence of relative frequencies of events to their probabilities, Theory Probab. Appl. 16(2) (1971) 264–280. https://doi.org/10.1137/1116025
  • W. Hoeffding, Probability inequalities for sums of bounded random variables, J. Amer. Statist. Assoc. 58 (1963) 13–30. https://doi.org/10.1080/01621459.1963.10500830
  • N. Sauer, On the density of families of sets, J. Combin. Theory Ser. A 13 (1972) 145–147. https://doi.org/10.1016/0097-3165(72)90019-2
  • S. Shalev-Shwartz and S. Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press, 2014, Ch. 6 and 28. https://doi.org/10.1017/CBO9781107298019
9 thms3 active usersReviewed
PreviousPage 2 of 11Next

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