Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 1, p. 11 — under Assumptions 1–2 and inf f > −∞, the DASGD iterates satisfy E[‖∇f(X_n)‖²₂] → 0

Proved
LargeDelaySGD.MeanSquare.theorem_1

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

asynchronous-optimizationdelaysmean-square-convergencep2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1stochastic-gradient-descent

Throughout, d≥0d \ge 0d≥0, X=RdX=\mathbb R^dX=Rd with the Euclidean norm ∥⋅∥2\|\cdot\|_2∥⋅∥2​; the random function F(x;ξ)F(x;\xi)F(x;ξ) lives on a probability space (Ξ,μ)(\Xi,\mu)(Ξ,μ) and f(x)=Eμ[F(x;ξ)]f(x)=\mathbb E_\mu[F(x;\xi)]f(x)=Eμ​[F(x;ξ)]; the noise sequence (ωn)n≥0(\omega_n)_{n\ge0}(ωn​)n≥0​ lives on a second probability space (Ω,P)(\Omega,\mathbb P)(Ω,P), is i.i.d. with law μ\muμ, and XnX_nXn​ are the DASGD iterates X0=x0X_0=x_0X0​=x0​, Xn+1=Xn−αn+1∇F(Xs(n),ωn+1)X_{n+1}=X_n-\alpha_{n+1}\nabla F(X_{s(n)},\omega_{n+1})Xn+1​=Xn​−αn+1​∇F(Xs(n)​,ωn+1​) with a deterministic delay schedule s(n)≤ns(n)\le ns(n)≤n. Assumption 1 is taken with a bound B≥sup⁡xE∥∇F(x;ξ)∥22B\ge\sup_x\mathbb E\|\nabla F(x;\xi)\|_2^2B≥supx​E∥∇F(x;ξ)∥22​ and a Lipschitz constant LLL of x↦E[∇F(x;ξ)]x\mapsto\mathbb E[\nabla F(x;\xi)]x↦E[∇F(x;ξ)]. Let XnX_nXn​ be the DASGD iterates generated by Algorithm 3. Under Assumptions 1 and 2, if inf⁡x∈Rdf(x)>−∞\inf_{x\in\mathbb R^d}f(x)>-\inftyinfx∈Rd​f(x)>−∞, then fff is differentiable, each ∥∇f(Xn)∥22\|\nabla f(X_n)\|_2^2∥∇f(Xn​)∥22​ is integrable, and

lim⁡n→∞E[∥∇f(Xn)∥22]=0.\lim_{n\to\infty}\mathbb E\big[\|\nabla f(X_n)\|_2^2\big]=0.n→∞lim​E[∥∇f(Xn​)∥22​]=0.

Assumption 2 is the disjunction of four delay regimes, so the theorem covers bounded delays, delays growing like npn^pnp (p<1p<1p<1), linearly growing delays and delays growing like any polynomial nqn^qnq, each with its own step-size law. For a general nonconvex smooth objective, the gradient of the asynchronous SGD iterates vanishes in mean square.

Formalization Note. The conjuncts "fff is differentiable" (Remark 1) and "each ∥∇f(Xn)∥22\|\nabla f(X_n)\|_2^2∥∇f(Xn​)∥22​ is integrable" (presupposed by the expectation in (5)) are part of the paper's claim, made explicit because Lean's gradient is 000 at non-differentiable points and the integral of a non-integrable function is 000. "inf⁡f>−∞\inf f>-\inftyinff>−∞" is BddBelow (Set.range f).

Preamble
import Mathlib
import Definitions.Def_LargeDelaySGD_MeanSquare_Model
Formal statement
namespace LargeDelaySGD.MeanSquare

open MeasureTheory ProbabilityTheory

theorem theorem_1 {d : ℕ} {Ξ Ω : Type*} [MeasurableSpace Ξ] [MeasurableSpace Ω]
    (μ : Measure Ξ) [IsProbabilityMeasure μ] (P : Measure Ω) [IsProbabilityMeasure P]
    (F : EuclideanSpace ℝ (Fin d) → Ξ → ℝ) (B : ℝ) (L : NNReal) (hA1 : Assumption1 F μ B L)
    (α : ℕ → ℝ) (s : ℕ → ℕ) (hA2 : Assumption2 α s)
    (hinf : BddBelow (Set.range (objective F μ)))
    (ω : ℕ → Ω → Ξ) (hω : IIDNoise P μ ω) (x₀ : EuclideanSpace ℝ (Fin d))
    (X : ℕ → Ω → EuclideanSpace ℝ (Fin d)) (hX : IsDASGD F α s ω x₀ X) :
    Differentiable ℝ (objective F μ) ∧
      (∀ n, Integrable (fun a => ‖gradient (objective F μ) (X n a)‖ ^ 2) P) ∧
      Filter.Tendsto (fun n => ∫ a, ‖gradient (objective F μ) (X n a)‖ ^ 2 ∂P)
        Filter.atTop (nhds 0) := by sorry

end LargeDelaySGD.MeanSquare
Source
Z. Zhou, P. Mertikopoulos, N. Bambos, P. W. Glynn, Y. Ye, Distributed Stochastic Optimization with Large Delays, arXiv:2107.02919v1, p. 11, Theorem 1, eq. (5)
Human review
  • Endorsed by Shuze Chen · Oct 22, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 22, 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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me