Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Theorem 4.2 — with nk≥akn_k \ge a^knk​≥ak, dynamic batch steepest descent satisfies E[J(wk)−J(w∗)]≤CρkE[J(w_k)-J(w^*)] \le C\rho^kE[J(wk​)−J(w∗)]≤Cρk

Proved
DynSampleSize.Stoch.theorem_4_2

by mikedeng1 · Oct 7, 2026 · Mathlib 0df444a (Lean v4.33.1)

linear-convergencemini-batchp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1sample-sizestochastic-optimization

Let (Z,P)(Z,P)(Z,P) be a probability space of data points, ℓ(w;z)\ell(w;z)ℓ(w;z) a per-sample loss on Rm\mathbb R^mRm with gradient ∇ℓ(w;z)\nabla\ell(w;z)∇ℓ(w;z), and J(w)=∫ℓ(w;z) dP(z)J(w)=\int\ell(w;z)\,dP(z)J(w)=∫ℓ(w;z)dP(z) the expected loss (2.1), under the stochastic model of §4.2 (integrable loss, jointly measurable gradient with finite second moment, and ∇J(w)=∫∇ℓ(w;z) dP(z)\nabla J(w)=\int\nabla\ell(w;z)\,dP(z)∇J(w)=∫∇ℓ(w;z)dP(z)). Assume:

  1. JJJ is twice continuously differentiable and uniformly convex: λ∥d∥2≤dT∇2J(w)d≤L∥d∥2\lambda\|d\|^2\le d^T\nabla^2J(w)d\le L\|d\|^2λ∥d∥2≤dT∇2J(w)d≤L∥d∥2 for all w,dw,dw,d, with 0<λ<L0<\lambda<L0<λ<L (4.2); w∗w^*w∗ is a minimizer of JJJ;
  2. there is a constant ω\omegaω with ∥Var(∇ℓ(w;⋅))∥1≤ω\|\mathrm{Var}(\nabla\ell(w;\cdot))\|_1\le\omega∥Var(∇ℓ(w;⋅))∥1​≤ω for all www (4.22);
  3. the sample sizes satisfy nk≥akn_k\ge a^knk​≥ak for all kkk, for some a>1a>1a>1.

Let {wk}\{w_k\}{wk​} be generated by the dynamic batch algorithm (4.24), wk+1=wk−1Lgkw_{k+1}=w_k-\frac1L g_kwk+1​=wk​−L1​gk​, where gkg_kgk​ is the mean of ∇ℓ(wk;⋅)\nabla\ell(w_k;\cdot)∇ℓ(wk​;⋅) over a batch of nkn_knk​ independent draws from PPP, drawn independently across iterations, starting from w0w_0w0​. Then

E[J(wk)−J(w∗)]  ≤  Cρkfor all k,\mathbb E[J(w_k)-J(w^*)]\;\le\;C\rho^k\qquad\text{for all }k,E[J(wk​)−J(w∗)]≤Cρkfor all k,

where

ρ=max⁡{1−λ/(4L), 1/a}<1andC=max⁡{J(w0)−J(w∗), 2ω/λ}.\rho=\max\{1-\lambda/(4L),\,1/a\}<1\qquad\text{and}\qquad C=\max\{J(w_0)-J(w^*),\,2\omega/\lambda\}.ρ=max{1−λ/(4L),1/a}<1andC=max{J(w0​)−J(w∗),2ω/λ}.

The statement also asserts that J(wk)J(w_k)J(wk​) is integrable for every kkk, so the expectation exists.

Geometric growth of the batch size thus buys linear convergence in expectation, at a rate set by the slower of the deterministic contraction 1−λ/(4L)1-\lambda/(4L)1−λ/(4L) and the batch growth 1/a1/a1/a.

Formalization Note Draw iii of iteration kkk is ξk,i\xi_{k,i}ξk,i​, and all draws are independent with law PPP (Measure.infinitePi over N×N\mathbb N\times\mathbb NN×N); the paper's sampling without replacement from NNN points is replaced by its N→∞N\to\inftyN→∞ limit, sampling with replacement (p. 5). The loss is a general differentiable ℓ\ellℓ; the paper's linear predictor and convex lll are not used by the theorem. λ is written lam.

Preamble
import Mathlib
import Definitions.Def_DynSampleSize_Stoch_UniformConvexity
import Definitions.Def_DynSampleSize_Stoch_Model
import Definitions.Def_DynSampleSize_Stoch_Run

open MeasureTheory
Formal statement
namespace DynSampleSize.Stoch

/-- Theorem 4.2, p. 12: if the sample sizes satisfy `n_k ≥ a^k` for some `a > 1` and (4.22) holds,
the dynamic batch run (4.24) satisfies `E[J(w_k) − J(w*)] ≤ C ρ^k` for all `k`, with
`ρ = max{1 − λ/(4L), 1/a} < 1` and `C = max{J(w₀) − J(w*), 2ω/λ}` (4.28)–(4.29). -/
theorem theorem_4_2 {m : ℕ} {Z : Type*} [MeasurableSpace Z] (P : Measure Z)
    [IsProbabilityMeasure P]
    (ℓ : EuclideanSpace ℝ (Fin m) → Z → ℝ)
    (gradℓ : EuclideanSpace ℝ (Fin m) → Z → EuclideanSpace ℝ (Fin m))
    (hmodel : StochModel P ℓ gradℓ) (lam L : ℝ) (hJ : UniformlyConvex (objective P ℓ) lam L)
    (wstar : EuclideanSpace ℝ (Fin m)) (hwstar : ∀ w, objective P ℓ wstar ≤ objective P ℓ w)
    (ω : ℝ) (hω : ∀ w, vecVar P (gradℓ w) ≤ ω)
    (a : ℝ) (ha : 1 < a) (n : ℕ → ℕ) (hn : ∀ k, a ^ k ≤ (n k : ℝ))
    (w0 : EuclideanSpace ℝ (Fin m)) :
    max (1 - lam / (4 * L)) (1 / a) < 1 ∧
      ∀ k : ℕ,
        Integrable (fun ξ => objective P ℓ (run L gradℓ n w0 ξ k)) (sampleLaw P) ∧
          ∫ ξ, (objective P ℓ (run L gradℓ n w0 ξ k) - objective P ℓ wstar) ∂(sampleLaw P) ≤
            max (objective P ℓ w0 - objective P ℓ wstar) (2 * ω / lam) *
              (max (1 - lam / (4 * L)) (1 / a)) ^ k := by sorry

end DynSampleSize.Stoch
Source
Byrd, Chin, Nocedal, Wu, Sample size selection in optimization methods for machine learning, Math. Program. (2012), doi:10.1007/s10107-012-0572-5 — authors' version of 18 Oct 2011, p. 12, Theorem 4.2, (4.28)–(4.29)
Human review
  • Endorsed by Shuze Chen · Oct 7, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 7, 2026

    Confirmed by the mission captain (proposal self-audit).

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