Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Equation (9) — Gradient growth around a common objective minimizer

Proved
SCAFFOLD.GradientGrowth

by Minghui · Sep 23, 2026 · Mathlib c5ea003 (Lean v4.30.0)

federated-learningprobabilitystochastic-optimization

For convex client functions and any minimizer x⋆x^\starx⋆ of their average, every x∈Rdx\in\mathbb R^dx∈Rd satisfies

1N∑i∥∇fi(x)−∇fi(x⋆)∥2≤2β(f(x)−f(x⋆)).\frac1N\sum_i\|\nabla f_i(x)-\nabla f_i(x^\star)\|^2 \le2\beta(f(x)-f(x^\star)).N1​i∑​∥∇fi​(x)−∇fi​(x⋆)∥2≤2β(f(x)−f(x⋆)).

Formalization note: direct source inequality, multiplied by 2β2\beta2β; individual client minimizers need not coincide. No stochastic run is required.

Source: Sai Praneeth Karimireddy, Satyen Kale, Mehryar Mohri, Sashank J. Reddi, Sebastian U. Stich, and Ananda Theertha Suresh, SCAFFOLD: Stochastic Controlled Averaging for Federated Learning, ICML 2020; arXiv:1910.06378v4, https://arxiv.org/abs/1910.06378v4; Appendix B.1, PDF p. 14, equation (9), setup used in Section 5.

Notation and probability model

There are N≥1N\ge1N≥1 clients, a model space Rd\mathbb R^dRd (including d=0d=0d=0), differentiable client losses fif_ifi​ with β\betaβ-Lipschitz gradients, β>0\beta>0β>0, and f=N−1∑ifif=N^{-1}\sum_i f_if=N−1∑i​fi​. The starting point x0x^0x0 is deterministic and σ≥0\sigma\ge0σ≥0 bounds within-client stochastic-gradient standard deviation. A run has T≥1T\ge1T≥1 rounds, K≥1K\ge1K≥1 local steps, 1≤S≤N1\le S\le N1≤S≤N clients per round, local step ηl>0\eta_l>0ηl​>0, global step ηg≥1\eta_g\ge1ηg​≥1, and h=Kηlηgh=K\eta_l\eta_gh=Kηl​ηg​. All random variables live on a standard Borel probability space (Ω,A,ν)(\Omega,\mathcal A,\nu)(Ω,A,ν) with a filtration containing the full history. States and gradient samples are square integrable; gradient samples are conditionally unbiased, have conditional squared error at most σ2\sigma^2σ2, and are independent across clients conditional on each step's history. These are explicit fresh-oracle and finite-moment conventions.

Every round first defines virtual paths for all clients, starting at yi,0r=xry_{i,0}^r=x^ryi,0r​=xr:

yi,k+1r=yi,kr−ηl(gi,kr−cir+cr),cr=N−1∑icir.y_{i,k+1}^r=y_{i,k}^r-\eta_l(g_{i,k}^r-c_i^r+c^r),\qquad c^r=N^{-1}\sum_i c_i^r.yi,k+1r​=yi,kr​−ηl​(gi,kr​−cir​+cr),cr=N−1i∑​cir​.

Then an SSS-element subset is sampled uniformly, conditionally independently of these paths given the past. Equivalently, its conditional distribution given the entire completed virtual-path history is uniform. Only selected clients update their controls to K−1∑k=0K−1gi,krK^{-1}\sum_{k=0}^{K-1}g_{i,k}^rK−1∑k=0K−1​gi,kr​; other controls persist. The server update is xr+1=xr+(ηg/S)∑i∈Sr(yi,Kr−xr)x^{r+1}=x^r+(\eta_g/S)\sum_{i\in\mathcal S_r}(y_{i,K}^r-x^r)xr+1=xr+(ηg​/S)∑i∈Sr​​(yi,Kr​−xr). This is option II of Algorithm 1, with the average-gradient form of Appendix E. The model contains the algorithm and oracle laws, not any convergence inequality.

For convex targets, x⋆x^\starx⋆ minimizes fff, and the client losses obey

fi(y)≥fi(x)+⟨∇fi(x),y−x⟩+μ2∥y−x∥2,μ≥0.f_i(y)\ge f_i(x)+\langle\nabla f_i(x),y-x\rangle +\frac\mu2\|y-x\|^2,\qquad \mu\ge0.fi​(y)≥fi​(x)+⟨∇fi​(x),y−x⟩+2μ​∥y−x∥2,μ≥0.

The initial client controls ci0c_i^0ci0​ are arbitrary deterministic vectors and the server control is their average. Define

C0=1N∑i∥ci0−∇fi(x⋆)∥2,V0=∥x0−x⋆∥2+9Nh2SC0.C_0=\frac1N\sum_i\|c_i^0-\nabla f_i(x^\star)\|^2,\qquad V_0=\|x^0-x^\star\|^2+\frac{9Nh^2}{S}C_0.C0​=N1​i∑​∥ci0​−∇fi​(x⋆)∥2,V0​=∥x0−x⋆∥2+S9Nh2​C0​.

For nonconvex targets, flow≤f(x)f_{\rm low}\le f(x)flow​≤f(x) for all xxx; a minimizer need not exist. Each ci0c_i^0ci0​ is instead initialized by averaging KKK fresh stochastic gradients at x0x^0x0, with the same conditional oracle assumptions. These full-client initialization queries are additional to the TTT optimization rounds.

The output is a sampled pre-round server iterate among x0,…,xT−1x^0,\ldots,x^{T-1}x0,…,xT−1, represented by its expected loss or squared-gradient statistic. No last-iterate or pathwise guarantee is asserted. Sources: Section 2, PDF p. 2; Algorithm 1, PDF p. 4; Appendix B.1, PDF p. 14, assumptions A3–A5; Appendix E, PDF pp. 25–26, equations (18)–(22), Remark 10; Appendix E.2, PDF pp. 31 and 35, equations (26)–(27) and final warm-start paragraph. Primary reference: Karimireddy et al., SCAFFOLD: Stochastic Controlled Averaging for Federated Learning, ICML 2020, https://arxiv.org/abs/1910.06378v4.

Preamble
import Definitions.Def_SCAFFOLD_Model
open MeasureTheory
universe u
Formal statement
namespace SCAFFOLD
theorem GradientGrowth :
  ∀ (d N : ℕ) (P : Problem d N) (xstar : Space d),
    Convexity P 0 → IsMinimizer P xstar → ∀ x,
      (N : ℝ)⁻¹ * ∑ i, ‖gradient (P.f i) x - gradient (P.f i) xstar‖ ^ 2 ≤
        2 * P.β * (objective P.f x - objective P.f xstar) := by sorry
end SCAFFOLD
Source
Sai Praneeth Karimireddy, Satyen Kale, Mehryar Mohri, Sashank J. Reddi, Sebastian U. Stich, and Ananda Theertha Suresh, SCAFFOLD: Stochastic Controlled Averaging for Federated Learning, ICML 2020; arXiv:1910.06378v4, https://arxiv.org/abs/1910.06378v4; Appendix B.1, PDF p. 14, equation (9), setup used in Section 5.
Read-back

What the Lean code literally says, in plain math · gpt-6

For every pair of natural numbers d,Nd,Nd,N, consider the Euclidean space E=RdE=\mathbb{R}^{d}E=Rd with its usual real inner product and norm, and data PPP consisting of NNN real-valued functions fi:E→Rf_i:E\to\mathbb{R}fi​:E→R indexed by i∈{0,…,N−1}i\in\{0,\ldots,N-1\}i∈{0,…,N−1}, real numbers β,σ\beta,\sigmaβ,σ, and a point x0∈Ex_0\in Ex0​∈E. The data are required to satisfy N>0N>0N>0, β>0\beta>0β>0, and σ≥0\sigma\ge 0σ≥0; each fif_ifi​ has a gradient at every point of EEE, and for every index iii and every u,v∈Eu,v\in Eu,v∈E its gradients satisfy ∥∇fi(u)−∇fi(v)∥≤β∥u−v∥\|\nabla f_i(u)-\nabla f_i(v)\|\le\beta\|u-v\|∥∇fi​(u)−∇fi​(v)∥≤β∥u−v∥. Define F(z)=1N∑i=0N−1fi(z)F(z)=\frac1N\sum_{i=0}^{N-1}f_i(z)F(z)=N1​∑i=0N−1​fi​(z). For every x⋆∈Ex_\star\in Ex⋆​∈E, assume that the convexity condition at parameter zero holds: 0≤00\le00≤0 and, for every iii and u,v∈Eu,v\in Eu,v∈E, fi(u)+⟨∇fi(u),v−u⟩≤fi(v)f_i(u)+\langle\nabla f_i(u),v-u\rangle\le f_i(v)fi​(u)+⟨∇fi​(u),v−u⟩≤fi​(v) (the additional quadratic term in that condition has coefficient 0/20/20/2). Also assume that x⋆x_\starx⋆​ is a global minimizer of the average objective, meaning F(x⋆)≤F(z)F(x_\star)\le F(z)F(x⋆​)≤F(z) for every z∈Ez\in Ez∈E. Then, for every x∈Ex\in Ex∈E, 1N∑i=0N−1∥∇fi(x)−∇fi(x⋆)∥2≤2β(F(x)−F(x⋆))\frac1N\sum_{i=0}^{N-1}\|\nabla f_i(x)-\nabla f_i(x_\star)\|^2\le 2\beta\bigl(F(x)-F(x_\star)\bigr)N1​∑i=0N−1​∥∇fi​(x)−∇fi​(x⋆​)∥2≤2β(F(x)−F(x⋆​)). The minimizer is assumed, rather than asserted to exist or to be unique; it need not minimize each individual fif_ifi​. The parameters σ\sigmaσ and x0x_0x0​ are part of the universally quantified data, but beyond σ≥0\sigma\ge0σ≥0 they impose no further hypothesis here and do not occur in the conclusion. The case N=0N=0N=0 is excluded by the data requirements, while N=1N=1N=1, σ=0\sigma=0σ=0, and d=0d=0d=0 are included. In dimension zero, EEE consists of a single point and the conclusion is 0≤00\le00≤0; the conclusion also reduces to 0≤00\le00≤0 whenever x=x⋆x=x_\starx=x⋆​. There is no assumption of a strictly positive convexity parameter.

Human review
  • Endorsed by Shuze Chen · Sep 24, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Minghui · Sep 24, 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