Corollary 3.3 — expected suboptimality Q(β)/k for the SQN method (corrected constant)
ProvedStochQuasiNewton.SQN.sqn_expected_suboptimalityLet be functions on , , and let minimize . Let , , , , , and assume for all and all samples of size (3.3). Then there are constants , depending only on these data, such that:
- along every run of Algorithm 1 with gradient samples of size and Hessian samples of size whose correction vectors () are nonzero, the matrix applied at every iteration (the identity for , otherwise ) lies strictly between and ;
- for every , every and every : if, on every sample history, the correction vectors are nonzero and at every iterate, then Algorithm 1 with satisfies, for every ,
where the expectation is over independent samples , uniform among the -element subsets, and , uniform among the -element subsets.
This is the paper's main convergence result: the SQN method attains the same expected suboptimality rate as stochastic gradient descent.
Formalization Note Corrected constant: the paper's (3.24) lacks the middle entry and the bound is false with it (see Theorem 3.2). Assumption 1(3) is imposed at the iterates, with uniform over the training set as in (1.1)–(1.3). is undefined in the paper's corollary; it is Lemma 3.1's constant, and both constants also cover the stochastic gradient steps () that Algorithm 1 takes for ; the paper's "" is implied by clause 1. is assumed because Algorithm 2 is undefined otherwise. The proof in the paper refers to "step 10 of Algorithm 1"; the iteration is step 8.
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
namespace StochQuasiNewton.SQN
/-- Corollary 3.3 (corrected constant): for the finite-sum problem (1.3) with `C²` losses whose
subsampled Hessians of size `b_H` satisfy `λ I ≺ ∇²F_{S_H}(w) ≺ Λ I` (3.3), and a minimizer `w*`
of `F`, there are constants `0 < μ₁ ≤ μ₂`, depending only on the problem data, such that
(a) along every run of Algorithm 1 whose correction vectors `s_t` (`t ≥ 1`) are nonzero, every
matrix applied at an iteration `k ≥ 1` (the identity or `H_t`) satisfies `μ₁ I ≺ · ≺ μ₂ I`; and
(b) for every `β > 1/(2 μ₁ λ)`, every `γ` and every `w¹`: if on every sample history the
correction vectors are nonzero and `(1/N) ∑_i ‖∇f_i(w^k)‖² ≤ γ²` at every iterate, then with
`α^k = β/k`, `E[F(w^k) − F(w*)] ≤ Q_c(β)/k` for every `k ≥ 1`, the expectation being over
independent uniform samples `S_k` of size `b` and `S_{H,t}` of size `b_H`. -/
theorem sqn_expected_suboptimality {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) ≤
rateConstant Lam lam μ₁ μ₂ β γ (objective f w1 - objective f wstar) / k) := by sorry
end StochQuasiNewton.SQN
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.