Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

(3.28) — the mini-batch gradient Ḡ_k is conditionally unbiased with E‖Ḡ_k − ∇Ψ(x^md_k)‖² ≤ σ²/m_k

Proved
NonconvexAG.StochComposite.eq_3_28

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

accelerated-gradientcomposite-optimizationp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1stochastic-approximation

Consider the stochastic composite problem: Ψ=f+h\Psi=f+hΨ=f+h with fff having LfL_fLf​-Lipschitz gradient, hhh convex with LhL_hLh​-Lipschitz gradient, X\mathcal XX convex with domain KKK and prox map P\mathcal PP. Run Algorithm 4 with mini-batch gradients Gˉk=1mk∑i=1mkG(xkmd,ξk,i)\bar G_k=\frac1{m_k}\sum_{i=1}^{m_k}G(x^{md}_k,\xi_{k,i})Gˉk​=mk​1​∑i=1mk​​G(xkmd​,ξk,i​), the oracle GGG being jointly measurable. Number the oracle calls consecutively and let Fs\mathcal F_sFs​ be a filtration to which the call samples are adapted. Suppose Assumption 1 holds for every call s≥1s\ge1s≥1 in conditional form: the output at the call's query point qsq_sqs​ is integrable with E[G(qs,ξs)∣Fs−1]=∇Ψ(qs)\mathbb E[G(q_s,\xi_s)\mid\mathcal F_{s-1}]=\nabla\Psi(q_s)E[G(qs​,ξs​)∣Fs−1​]=∇Ψ(qs​) and E∥G(qs,ξs)−∇Ψ(qs)∥2≤σ2\mathbb E\|G(q_s,\xi_s)-\nabla\Psi(q_s)\|^2\le\sigma^2E∥G(qs​,ξs​)−∇Ψ(qs​)∥2≤σ2. Then for every k≥1k\ge1k≥1, with Sk−1=m1+⋯+mk−1S_{k-1}=m_1+\dots+m_{k-1}Sk−1​=m1​+⋯+mk−1​,

E[Gˉk ∣ FSk−1]=∇Ψ(xkmd) a.s.,E[∥Gˉk−∇Ψ(xkmd)∥2]≤σ2mk,\mathbb E\big[\bar G_k\,\big|\,\mathcal F_{S_{k-1}}\big]=\nabla\Psi(x^{md}_k)\ \text{a.s.},\qquad \mathbb E\big[\|\bar G_k-\nabla\Psi(x^{md}_k)\|^2\big]\le\frac{\sigma^2}{m_k},E[Gˉk​​FSk−1​​]=∇Ψ(xkmd​) a.s.,E[∥Gˉk​−∇Ψ(xkmd​)∥2]≤mk​σ2​,

and Gˉk\bar G_kGˉk​ and ∥Gˉk−∇Ψ(xkmd)∥2\|\bar G_k-\nabla\Psi(x^{md}_k)\|^2∥Gˉk​−∇Ψ(xkmd​)∥2 are integrable.

Averaging mkm_kmk​ oracle outputs divides the variance of the gradient estimate by mkm_kmk​; this is what lets the batch sizes control the noise terms in Theorem 4.

Formalization Note The paper writes the first identity as E[Gˉk]=∇Ψ(xkmd)\mathbb E[\bar G_k]=\nabla\Psi(x^{md}_k)E[Gˉk​]=∇Ψ(xkmd​); since xkmdx^{md}_kxkmd​ is random, it is stated conditionally on the samples drawn before iteration kkk. The paper states Assumption 1 unconditionally ("for any xxx and kkk") and cites [13, p. 11] for the variance bound; that bound needs the cross terms between calls of one batch to vanish, which is what the conditional form GhadimiLan.RSG.AssumptionA1 along the query points (querySeq) provides. It holds in the paper's i.i.d. setting. The bound is a conclusion, not a hypothesis.

Preamble
import Mathlib
import Definitions.Def_ConvexOptAlg_SmoothGD_Defs
import Definitions.Def_GhadimiLan_RSG_Model
import Definitions.Def_NonconvexAG_StochComposite_ProxMap
import Definitions.Def_NonconvexAG_StochComposite_RSAG
open MeasureTheory ProbabilityTheory
open scoped InnerProductSpace
Formal statement
namespace NonconvexAG.StochComposite

open GhadimiLan.RSG (E)
open ConvexOptAlg.SmoothGD

/-- (3.28), p. 21 (outer ends of both lines), for Algorithm 4: under Assumption 1 imposed on the
oracle calls in their order (conditional form, along the query points), for every `k ≥ 1` the
mini-batch gradient `Ḡₖ` (3.25) is integrable and conditionally unbiased given the first
`S_{k−1} = m₁ + ⋯ + m_{k−1}` oracle calls, `E[Ḡₖ | ℱ_{S_{k−1}}] = ∇Ψ(x^md_k)` a.s., and
`E‖Ḡₖ − ∇Ψ(x^md_k)‖² ≤ σ²/mₖ` (with `‖Ḡₖ − ∇Ψ(x^md_k)‖²` integrable). -/
theorem eq_3_28 {n : ℕ} (f h : E n → ℝ) (gf gh : E n → E n) (Lf Lh : ℝ)
    (hf : IsBetaSmooth f gf Lf) (hh : IsBetaSmooth h gh Lh) (hhc : ConvexOn ℝ Set.univ h)
    (Ψ : E n → ℝ) (gΨ : E n → E n) (LΨ : ℝ) (hΨ : Ψ = fun x => f x + h x)
    (hgΨ : gΨ = fun x => gf x + gh x) (hLΨ : LΨ = Lf + Lh)
    (K : Set (E n)) (X : E n → ℝ) (hX : ConvexOn ℝ K X)
    (P : E n → E n → ℝ → E n) (hP : IsProxMap K X P)
    {Ξ : Type*} [MeasurableSpace Ξ] (G : E n → Ξ → E n) (hG : Measurable (Function.uncurry G))
    {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ]
    (ℱ : Filtration ℕ ‹MeasurableSpace Ω›) (ξ : ℕ → Ω → Ξ) (σ : ℝ)
    (α β lam : ℕ → ℝ) (m : ℕ → ℕ) (hstep : RSAGStepsizes α β lam m) (x0 : E n)
    (hA1 : GhadimiLan.RSG.AssumptionA1 μ ℱ gΨ G ξ (querySeq G P α β lam m x0 ξ) σ) :
    let xk : ℕ → Ω → E n := xSeq G P α β lam m x0 ξ
    let xag : ℕ → Ω → E n := xagSeq G P α β lam m x0 ξ
    let xmd : ℕ → Ω → E n := xmdSeq G P α β lam m x0 ξ
    let Gb : ℕ → Ω → E n := Gbar G P α β lam m x0 ξ
    let δ : ℕ → Ω → E n := deltaBar G gΨ P α β lam m x0 ξ
    ∀ k, 1 ≤ k →
      Integrable (Gb k) μ ∧
      μ[Gb k | ℱ (batchEnd m (k - 1))] =ᵐ[μ] (fun ω => gΨ (xmd k ω)) ∧
      Integrable (fun ω => ‖δ k ω‖ ^ 2) μ ∧
      ∫ ω, ‖δ k ω‖ ^ 2 ∂μ ≤ σ ^ 2 / (m k : ℝ) := by sorry

end NonconvexAG.StochComposite
Source
Ghadimi & Lan, Accelerated Gradient Methods for Nonconvex Nonlinear and Stochastic Programming, arXiv:1310.3787v1, p. 3, Assumption 1; p. 21, (3.25) and (3.28)
Human review
  • Endorsed by Shuze Chen · Oct 9, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 9, 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