Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Corollary 3.3 — expected suboptimality Q(β)/k for the SQN method, with the paper's constant (3.24)

Proved
ByrdHansenNocedalSinger2016.cor3_3_paper_constant_faithful

by Shuze Chen · Oct 23, 2026 · Mathlib 0df444a (Lean v4.33.1)

convergence-ratel-bfgsquasi-newtonstochastic-optimization

Let f1,…,fNf_1, \dots, f_Nf1​,…,fN​ be twice continuously differentiable functions on Rn\mathbb{R}^nRn and let F=1N∑i=1NfiF = \frac{1}{N} \sum_{i=1}^{N} f_iF=N1​∑i=1N​fi​ be their average. For a subset SH⊆{1,…,N}S_H \subseteq \{1, \dots, N\}SH​⊆{1,…,N} of size bHb_HbH​, write ∇2FSH(w)=1bH∑i∈SH∇2fi(w)\nabla^2 F_{S_H}(w) = \frac{1}{b_H} \sum_{i \in S_H} \nabla^2 f_i(w)∇2FSH​​(w)=bH​1​∑i∈SH​​∇2fi​(w) for the subsampled Hessian. Fix a memory size M≥1M \ge 1M≥1, an update period L≥1L \ge 1L≥1, batch sizes 1≤b,bH≤N1 \le b, b_H \le N1≤b,bH​≤N and constants λ,Λ>0\lambda, \Lambda > 0λ,Λ>0 such that λI≺∇2FSH(w)≺ΛI\lambda I \prec \nabla^2 F_{S_H}(w) \prec \Lambda IλI≺∇2FSH​​(w)≺ΛI for every point www and every subset SHS_HSH​ of size bHb_HbH​, and let w∗w^\astw∗ be a minimizer of FFF. Let w1,w2,…w^1, w^2, \dotsw1,w2,… be the iterates of the stochastic quasi-Newton method of Algorithm 1, with the limited-memory BFGS matrices HtH_tHt​ of Algorithm 2, where the gradient samples have size bbb and the Hessian samples have size bHb_HbH​. Then there are constants 0<μ1≤μ20 < \mu_1 \le \mu_20<μ1​≤μ2​ such that:

  1. on every run whose correction vectors sts_tst​ are all nonzero, every matrix HHH used by the method satisfies μ1I≺H≺μ2I\mu_1 I \prec H \prec \mu_2 Iμ1​I≺H≺μ2​I;
  2. for every β>12μ1λ\beta > \frac{1}{2 \mu_1 \lambda}β>2μ1​λ1​, every γ\gammaγ and every starting point w1w^1w1, if on every sample history the correction vectors are nonzero and the second moment of the sampled gradient is at most γ2\gamma^2γ2 at every iterate, that is 1N∑i=1N∥∇fi(wk)∥2≤γ2\frac{1}{N} \sum_{i=1}^{N} \| \nabla f_i(w^k) \|^2 \le \gamma^2N1​∑i=1N​∥∇fi​(wk)∥2≤γ2, then the method with step sizes αk=βk\alpha^k = \frac{\beta}{k}αk=kβ​ satisfies, for every k≥1k \ge 1k≥1,
E[F(wk)−F(w∗)]≤Q(β)k,Q(β)=max⁡{Λμ22β2γ22(2μ1λβ−1), F(w1)−F(w∗)},\mathbb{E}\big[F(w^k) - F(w^\ast)\big] \le \frac{Q(\beta)}{k}, \qquad Q(\beta) = \max\left\{ \frac{\Lambda \mu_2^2 \beta^2 \gamma^2}{2 (2 \mu_1 \lambda \beta - 1)},\ F(w^1) - F(w^\ast) \right\},E[F(wk)−F(w∗)]≤kQ(β)​,Q(β)=max{2(2μ1​λβ−1)Λμ22​β2γ2​, F(w1)−F(w∗)},

where the expectation is over independent, uniformly random samples.

This is Corollary 3.3 of Byrd, Hansen, Nocedal and Singer with the paper's own constant (3.24): the expected suboptimality of the stochastic quasi-Newton method decays like 1k\frac{1}{k}k1​. The goal result of this mission proves the same bound with a larger constant, which has the additional entry Λμ22β2γ2\Lambda \mu_2^2 \beta^2 \gamma^2Λμ22​β2γ2 inside the maximum.

Formalization Note. The expectation is the exact average over all finitely many sample histories. The second-moment bound (3.5) of the paper is required at the iterates, with the random sample uniform over the training set. Requiring nonzero correction vectors excludes only the runs on which Algorithm 2 would divide by zero.

Preamble
import Mathlib
import Definitions.Def_StochQuasiNewton_SQN_FiniteSum
import Definitions.Def_StochQuasiNewton_SQN_LBFGS
import Definitions.Def_StochQuasiNewton_SQN_Algorithm
import Definitions.Def_StochQuasiNewton_SQN_NewtonLike

open scoped RealInnerProductSpace
open StochQuasiNewton.SQN
Formal statement
theorem ByrdHansenNocedalSinger2016.cor3_3_paper_constant_faithful {n N : ℕ}
    (f : Fin N → EuclideanSpace ℝ (Fin n) → ℝ)
    (hf : ∀ i, ContDiff ℝ 2 (f i)) (lam Lam : ℝ) (hlam : 0 < lam) (hLam : 0 < Lam)
    (M L b bH : ℕ) (hM : 1 ≤ M) (hL : 1 ≤ L) (hb : 1 ≤ b) (hbN : b ≤ N) (hbH : 1 ≤ bH)
    (hbHN : bH ≤ N)
    (hHess : ∀ SH : Finset (Fin N), SH.card = bH → ∀ w : EuclideanSpace ℝ (Fin n),
      StrictLoewnerBounds lam Lam (subsampledHessian f SH w))
    (wstar : EuclideanSpace ℝ (Fin n)) (hwstar : IsMinOn (objective f) Set.univ wstar) :
    ∃ μ₁ μ₂ : ℝ, 0 < μ₁ ∧ μ₁ ≤ μ₂ ∧
      (∀ (α : ℕ → ℝ) (w1 : EuclideanSpace ℝ (Fin n)) (S SH : ℕ → Finset (Fin N)),
        (∀ k, (S k).card = b) → (∀ t, (SH t).card = bH) →
        (∀ t, 1 ≤ t → sqnPairS f M L α w1 S SH t ≠ 0) →
        ∀ k, 1 ≤ k →
          (sqnAppliedMatrix f M L α w1 S SH k -
              μ₁ • (1 : Matrix (Fin n) (Fin n) ℝ)).PosDef ∧
          (μ₂ • (1 : Matrix (Fin n) (Fin n) ℝ) -
              sqnAppliedMatrix f M L α w1 S SH k).PosDef) ∧
      (∀ (β γ : ℝ) (w1 : EuclideanSpace ℝ (Fin n)), 1 / (2 * μ₁ * lam) < β →
        (∀ S SH : ℕ → Finset (Fin N), (∀ k, (S k).card = b) → (∀ t, (SH t).card = bH) →
          ∀ t, 1 ≤ t → sqnPairS f M L (fun k => β / k) w1 S SH t ≠ 0) →
        (∀ S SH : ℕ → Finset (Fin N), (∀ k, (S k).card = b) → (∀ t, (SH t).card = bH) →
          ∀ k, 1 ≤ k →
            (1 / (N : ℝ)) * ∑ i, ‖gradient (f i) (sqnIterate f M L (fun k => β / k) w1 S SH k)‖ ^ 2
              ≤ γ ^ 2) →
        ∀ k, 1 ≤ k →
          sampleExpectation N b bH k (fun S SH =>
              objective f (sqnIterate f M L (fun k => β / k) w1 S SH k) - objective f wstar) ≤
            max (Lam * μ₂ ^ 2 * β ^ 2 * γ ^ 2 / (2 * (2 * μ₁ * lam * β - 1)))
                (objective f w1 - objective f wstar) / k) := by sorry
Source
Byrd, Hansen, Nocedal, Singer, A Stochastic Quasi-Newton Method for Large-Scale Optimization, SIAM J. Optim. 26(2) (2016) 1008-1031, doi:10.1137/140954362, p. 1018, Corollary 3.3, Eqs. (3.23)-(3.24); Assumption 1 and Lemma 3.1, p. 1015

View graph

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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me