Lemma 15 consequence — Convex and strongly convex convergence
ProvedSCAFFOLD.ConvexFiniteRoundConvergenceLet and . Set , for , and . Then and
The case has uniform weights and ; gives geometric weights. No division by is used, and zero noise or zero initial distance is allowed.
Formalization note: a paper-derived finite-round formulation, obtained by weighted telescoping of Lemma 15, specialized to deterministic initial controls. It keeps all constants and the initial-control term, rather than transcribing the ambiguous asymptotic summary in Theorem VII. The statement itself does not assume Lemma 15 or any control-lag recurrence.
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 E.1, PDF p. 30, Lemma 15; PDF p. 31, first unnumbered averaging display; source-backed parent Section 5, PDF p. 5, Theorem III.
Notation and probability model
There are clients, a model space (including ), differentiable client losses with -Lipschitz gradients, , and . The starting point is deterministic and bounds within-client stochastic-gradient standard deviation. A run has rounds, local steps, clients per round, local step , global step , and . All random variables live on a standard Borel probability space 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 , 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 :
Then an -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 ; other controls persist. The server update is . 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, minimizes , and the client losses obey
The initial client controls are arbitrary deterministic vectors and the server control is their average. Define
For nonconvex targets, for all ; a minimizer need not exist. Each is instead initialized by averaging fresh stochastic gradients at , with the same conditional oracle assumptions. These full-client initialization queries are additional to the optimization rounds.
The output is a sampled pre-round server iterate among , 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.
import Definitions.Def_SCAFFOLD_Model open MeasureTheory universe u
namespace SCAFFOLD
theorem ConvexFiniteRoundConvergence :
∀ (d N : ℕ) (P : Problem d N) (Ω : Type u) [MeasurableSpace Ω]
[StandardBorelSpace Ω] (ν : Measure Ω) [IsProbabilityMeasure ν]
(S K T : ℕ) (ηl ηg μ : ℝ) (c0 : Fin N → Space d) (xstar : Space d),
Convexity P μ → IsMinimizer P xstar → 0 < ηl → 1 ≤ ηg →
effectiveStep K ηl ηg ≤ 1 / (81 * P.β) →
μ * effectiveStep K ηl ηg ≤ (S : ℝ) / (15 * (N : ℝ)) →
∀ A : Run P ν S K T ηl ηg (some c0),
weightedGap A xstar μ ≤ convexRHS P S K T ηl ηg μ c0 xstar := by sorry
end SCAFFOLDRead-back
What the Lean code literally says, in plain math · gpt-6
Auditor model: gpt-6.
For every pair of natural numbers , let with its Euclidean inner product and norm, and let the client indices be . Consider any collection of functions , constants , and point satisfying , , , existence of the gradient at every for every client, and for every client and every . Set . For every standard Borel measurable space (of any universe size), every probability measure on it, every , every , every deterministic collection , and every , suppose and, for every client and all ,
suppose for every , and suppose, writing ,
The assertion applies to every run with the following data and properties. It requires , , and . Its data consist of an increasing filtration of sub--algebras of the measurable structure on ; vector-valued maps for all natural time indices and all clients; and maps for all . Write , write for conditional expectation with respect to , and interpret each equality or inequality of random variables below as holding -almost surely. For every and every client, is strongly -measurable and belongs to , and
For every , the family is conditionally independent given . For every , and each are strongly -measurable and belong to . For every , every , and every client, is strongly -measurable and belongs to . For every , every , and every client, is strongly -measurable and belongs to , and
For every and every , the family is conditionally independent given . Here membership in means almost-everywhere strong measurability and finite integral of the squared norm; the stated conditional independence is across clients at each fixed indicated time. For every , almost surely. For every and every subset , the indicator is strongly -measurable and satisfies
The initialization is and for every client. For every and every client, ; for every such and every ,
For every and every client,
All these initialization and update identities are almost-sure identities; their displayed random variables are evaluated at the same sample point. Define the real weights and their sum by
Then every such run satisfies
All natural numbers appearing in real-valued formulas are interpreted as real numbers. The averaged objective gaps concern rounds , including the initial point and excluding . There is no requirement that be the unique minimizer and no restriction on the deterministic initial controls beyond being vectors in . The warm variables still have to satisfy all the stated conditions although the supplied controls, rather than their averages, initialize this run. The maps are defined for all natural indices, but the displayed regularity, sampling, and update requirements apply only in their specified ranges. Dimension is included, giving the one-element zero-dimensional vector space. No problem data exist with ; for , , , or , no run of the required kind exists, so the universal assertion over runs is vacuous. In any existing run, , , , and , so all displayed denominators are nonzero. The case is included and gives and ; zero noise and full participation are also included. The theorem asserts this bound for every run satisfying its requirements and does not assert that such a run exists.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.