Corollary 3.3 — expected suboptimality Q(β)/k for the SQN method, with the paper's constant (3.24)
ProvedByrdHansenNocedalSinger2016.cor3_3_paper_constant_faithfulLet be twice continuously differentiable functions on and let be their average. For a subset of size , write for the subsampled Hessian. Fix a memory size , an update period , batch sizes and constants such that for every point and every subset of size , and let be a minimizer of . Let be the iterates of the stochastic quasi-Newton method of Algorithm 1, with the limited-memory BFGS matrices of Algorithm 2, where the gradient samples have size and the Hessian samples have size . Then there are constants such that:
- on every run whose correction vectors are all nonzero, every matrix used by the method satisfies ;
- for every , every and every starting point , if on every sample history the correction vectors are nonzero and the second moment of the sampled gradient is at most at every iterate, that is , then the method with step sizes satisfies, for every ,
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 . The goal result of this mission proves the same bound with a larger constant, which has the additional entry 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.
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
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