How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Algorithmic stability of stochastic training
1 · Prerequisites
- Absolute and Conditional Convergence; Rearrangement; Products
- Binary Operations, Monoids, Groups and Subgroups
- Compactness in Metric Spaces
- Completeness, Completion, and Uniform Continuity
- Conditional Distributions and Regular Conditional Probability
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Continuity, IVT, EVT, and Uniform Continuity
- Convex and Semicontinuous Functions on Rⁿ
- Cosets, Index and Lagrange's Theorem
- Countability and Uncountability
- Divisibility, Euclidean Domains, Principal Ideal Domains and Unique Factorisation
- Estimators and Randomized Procedures
- Federated averaging, local SGD, and SCAFFOLD
- Filters and Ultrafilters
- Finite Counting, Factorials and Binomial Coefficients
- Finite Probability and the Probabilistic Method
- Foundations of the Real Numbers for Analysis
- Ideals, Quotient Rings and the Isomorphism Theorems for Rings
- Independence Borel Cantelli and Zero One Laws
- Limits of Real Functions
- limsup, liminf, and Subsequential Limits
- Linear Independence, Bases and Dimension
- Linear Transformations, Rank-Nullity and Quotient Spaces
- Loss, Risk and Decision Theory
- Measurable Functions and Simple Approximation
- Measures and Their Basic Properties
- Metric Spaces
- Monotone Functions, Discontinuities, and Continuity Sets
- Monotone Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Normal Subgroups and Quotient Groups
- Order, Zorn's Lemma, and the Axiom of Choice
- Polynomial Rings, the Division Algorithm and Roots
- Power Series and Real-Analytic Functions
- Prediction problems, risks, and empirical minimization
- Probability Spaces Random Variables and Expectation
- Product Measures and the Fubini Tonelli Theorems
- Properties of the Integral and the Working FTC
- Proximal gradient and accelerated composite optimization
- Relations, Functions, and Quotients
- Rings, Subrings, Integral Domains and Fields
- Rⁿ as a Normed Space; Vector-Valued Functions
- Roots, Rational Powers, and Classical Inequalities
- Sequences and Limits
- Sequences and Series of Functions; Uniform Convergence
- Series: Convergence and the Nonnegative Tests
- Sigma Algebras and Borel Sets
- Simple Field Extensions and the Construction of the Complex Numbers
- Statistical Experiments, Models and Identifiability
- Suprema and Infima
- The Derivative and the Mean Value Theorems
- The Exponential Function
- The Lebesgue Integral and the Convergence Theorems
- The Logarithm and General Powers
- The Riemann Integral: Definition and Integrability
- The Total Derivative in ℝᵐ → ℝⁿ
- The ZFC Axioms and the Basic Set Constructions
- Topological Spaces and Continuity
- Topology of ℝ
- Vector Spaces, Linear Subspaces, Span and Direct Sums
- Weak Laws and Series of Independent Random Variables
2 · Logical flowchart
3 · Definitions, theorems and proofs
An IID sample and ghost point are exchangeable
Statement
Let be a measurable space, let be a probability measure on it, and let . If are IID random elements with law , define and, for , let be with coordinate replaced by . Then the random vectors and have the same distribution on the finite product measurable space .
Statement references
Hardt, Recht, and Singer, §2.2, proof of Theorem 2.2: full arXiv paper.
Matni, Lecture 16, §3.1, proof of Theorem 2: full lecture notes.
Facts & Assumptions
Given: A common measurable target, a probability law , and the IID random elements in the Statement.
Identical distribution and IID families: IID means mutual independence together with equality of all coordinate laws.
Independent sigma-algebras and independent events: for any finite selection of coordinate events, their intersection has probability equal to the product of their probabilities.
The product sigma-algebra and its finite iterates: finite product sigma-algebras are generated recursively by coordinate measurable rectangles.
For sigma-finite factors, the product measure exists, has the rectangle formula, is sigma-finite, and is unique: a finite product measure is uniquely determined by its values on coordinate rectangles; this follows by iterating the stated two-factor uniqueness theorem.
Proof
Fix and a measurable rectangle . By [F1] and [F2], its probability under is . The vector swaps coordinates and , so the same rectangle has probability under that vector as well.
Each vector is measurable: the preimage of a coordinate rectangle is a finite intersection of measurable coordinate events, and [F3] says these rectangles generate . Thus both vector laws are probability measures on that product sigma-algebra. They agree on its generating coordinate rectangles by step 1.1; iterating [F4] along the recursive finite product in [F3] identifies both with the same product measure. Hence their distributions agree.
Uniform stability for randomized learning rules
Definition
Fix a supervised prediction problem with observation space , measurable predictor class , and nonnegative measurable loss . Write for . Fix a sample size . A randomized learning rule at this sample size consists of internal randomness with law , independent of the sample, and an output for every ordered sample . Assume the expected test losses below are finite. For , the rule has uniform replacement stability at level if, for every pair differing in at most one coordinate, and every test observation ,
The absolute value is outside expectation over the internal randomness. No permutation-invariance condition is imposed on the learning rule.
Definition references
Hardt, Recht, and Singer, Definition 2.1: full arXiv paper.
Matni, Lecture 16, Definition 1: full lecture notes.
Uniform stability implies expected generalization
Statement
Let and consider a supervised prediction problem with measurable observation space , probability law , measurable predictor class , and nonnegative measurable loss . For and , write , , and, for , . Let be IID with law , and let be internal randomness independent of the sample. Suppose the randomized learning rule takes values in , the joint loss map is measurable, and all displayed risks are integrable. If has uniform replacement stability at level , then
The expectation is over both the IID sample and the algorithm's internal randomness. No permutation-invariance assumption on is required.
Statement references
Hardt, Recht, and Singer, Theorem 2.2 and proof: full arXiv paper.
Matni, Lecture 16, Theorem 2 and proof: full lecture notes.
Facts & Assumptions
Given: The supervised prediction problem, IID sample, independent algorithmic randomness, measurable and integrable loss maps, and uniform replacement stability in the Statement.
Supervised prediction problems: the joint observation law is a probability measure and the loss is nonnegative and measurable.
Population and empirical risk: population risk is the nonnegative integral of test loss and empirical risk is its finite sample average.
Identical distribution and IID families: the observations are mutually independent and have common law .
An IID sample and ghost point are exchangeable: if is an independent observation with law , then and have the same law for each , where replaces coordinate by .
Fubini's theorem for L^1 functions on a sigma-finite product: for the integrable joint loss map, its product integral equals either iterated integral, including integration over the independent algorithm seed and test observation.
The Lebesgue integral is linear on : the integral of a finite sum of integrable functions is the sum of their integrals.
The modulus of an integral is bounded by the integral of the modulus: the absolute value of an integral is at most the integral of the absolute value.
Uniform stability for randomized learning rules: for every fixed adjacent pair of ordered samples and test observation, the difference of their expected losses over has absolute value at most .
The joint loss map is measurable and integrable, as required in the Statement, so Fubini and every displayed expectation are defined.
Proof
Extend the sample by an independent ghost observation . By [F1], [F2], and [F5], . For each , [F4] and independence of imply .
By [F2] and [F6], subtracting the expected empirical risk and averaging the equalities in step 1.1 gives For every fixed , the samples and differ in one coordinate, so [F8] bounds the absolute value of the inner expectation over by . Applying [F7] to the outer expectations and then averaging gives the claimed absolute bound.
Expected generalization of convex stochastic gradient training
Statement
Let , let and , and let , , and be measurable spaces. Let be a probability measure on , let be a measurable loss, and let be a measurable predictor for every . For set and assume this map and are jointly measurable. For every observation , assume is totally differentiable and convex, its Euclidean gradient is -Lipschitz, and its values are -Lipschitz in the sense that for all . Let be IID with law , and abbreviate and . Let be random indices in , independent of and satisfying for every and ; dependence between indices at different times is allowed. From a fixed , set
where the deterministic steps satisfy . Assume the displayed sample-dependent loss and risk maps are measurable and integrable. Then this randomized procedure has uniform replacement stability at level
and its expected population-minus-empirical risk gap satisfies
The result concerns the specified uniform-marginal sample-selection updates, including independent sampling with replacement and uniform random-permutation passes. It does not assert generalization for every stochastic-gradient oracle.
Statement references
Hardt, Recht, and Singer, arXiv-version Theorem 3.8 and proof (conference Theorem 3.7): full arXiv paper.
Matni, Lecture 16, Lemma 2 and Theorem 3 with proof: full lecture notes.
Facts & Assumptions
Given: The IID supervised sample, independent uniform-marginal indices, fixed initialization, loss hypotheses, and integrability conditions in the Statement.
Convex and strictly convex functions on Euclidean convex sets: convexity is the segment inequality on a convex Euclidean domain.
The total (Fréchet) derivative as the linear first-order approximation with remainder and The Jacobian matrix of partial derivatives and the gradient in the scalar-valued case: total differentiability means a linear first-order approximation with normwise remainder, and the scalar gradient is the vector of its partial derivatives.
The Euclidean inner product on : is the Euclidean inner product and .
For a differentiable scalar field, and the unit direction of steepest ascent is the normalized gradient: for a totally differentiable scalar field, .
Cauchy-Schwarz with its equality case, the triangle inequality for , the parallelogram law and polarisation: the Euclidean norm satisfies the triangle inequality and every normalized nonzero vector has norm .
Gradient steps of smooth convex functions are nonexpansive: for a differentiable convex loss with -Lipschitz gradient, the update is nonexpansive when .
Uniform stability for randomized learning rules: stability compares expected test losses for every fixed neighboring ordered sample pair and every fixed test observation.
Uniform stability implies expected generalization: uniform replacement stability at level implies an absolute expected generalization gap at most when the sample, algorithm, and risk maps satisfy its measurability and integrability hypotheses.
Supervised prediction problems and Population and empirical risk: the test loss, population risk, and empirical risk use the stated measurable loss and law .
Identical distribution and IID families: the observations are mutually independent and have the common law .
The random index vector is independent of the sample and each coordinate is uniform; no independence between different indices is assumed.
The population-risk and empirical-risk random variables are measurable and integrable, as required in the Statement.
Proof
Fix and suppose . Put , which is a unit vector by [F3] and [F5]. The directional derivative of at is by [F2] and [F4]. The -Lipschitz inequality in the Statement bounds every difference quotient by , so passage to the derivative gives ; the same bound is immediate when the gradient is zero.
Fix neighboring samples differing at coordinate and couple their runs using the same index vector. Put , so . If , both runs apply the same convex-loss gradient step and [F6] gives . If , the triangle inequality from [F5] and step 1.1 give . Thus, pathwise, .
Taking expectation in the pathwise inequality and using only yields . Summing from to gives .
For every test observation , the value-Lipschitz hypothesis gives . Hence the absolute difference of the two expected losses is at most this value, proving the stated uniform stability.
The sample is IID by [F10], the index vector is independent of it by [A1], and the risk maps and are measurable and integrable by [A2]; they use the loss and risk conventions of [F9]. Apply [F8] with the stability level from step 4.1 to obtain the expected generalization bound.
Expected generalization of nonconvex stochastic gradient training
Statement
Let , , and let and . Let , , and be measurable spaces, let be a probability measure on , let be a measurable loss, and let be a measurable predictor for every . For set . Assume and are jointly measurable. For every , assume is totally differentiable, takes values in , is -Lipschitz in values, and has a -Lipschitz Euclidean gradient; these mean, respectively,
for all . No convexity is assumed. Let be IID with law , and abbreviate and . Let be random indices in , independent of and satisfying for every and ; dependence between indices at different times is allowed. From a fixed , define
where and . Assume the resulting random variables and are measurable; they are integrable because . Then the randomized procedure has uniform replacement stability and absolute expected population-minus-empirical risk gap at most
If , the right side is interpreted as . The conclusion concerns only this expected gap for the stated random sample-selection procedure; it does not assert generalization for every stochastic-gradient oracle.
Statement references
Hardt, Recht, and Singer, arXiv-version Theorem 3.12 and complete proof (conference Theorem 3.8): full arXiv paper.
Matni, Lecture 16, §4: full lecture notes.
Facts & Assumptions
Given: The supervised IID sample, independent uniform-marginal indices, fixed initialization, loss range/Lipschitz/smoothness assumptions, nonincreasing steps, and integrable risk maps in the Statement.
The total (Fréchet) derivative as the linear first-order approximation with remainder and The Jacobian matrix of partial derivatives and the gradient in the scalar-valued case: total differentiability means a linear first-order approximation with normwise remainder, and the scalar gradient is the vector of its partial derivatives.
The Euclidean inner product on : is the Euclidean inner product and .
For a differentiable scalar field, and the unit direction of steepest ascent is the normalized gradient: for a totally differentiable scalar field, .
Cauchy-Schwarz with its equality case, the triangle inequality for , the parallelogram law and polarisation: the Euclidean norm satisfies the triangle inequality and every normalized nonzero vector has norm .
Uniform stability for randomized learning rules: uniform replacement stability bounds the absolute difference of expected test losses for every fixed adjacent sample pair and test observation.
Uniform stability implies expected generalization: such a stability bound implies the same absolute expected population-minus-empirical risk gap under its IID, measurability, and integrability conditions.
for every real , hence , The exponential function is strictly increasing, and The exponential addition formula : , the exponential is increasing, and exponentials multiply by addition of exponents.
The second fundamental theorem: if is differentiable on with and is integrable, then : for , if is differentiable on and is integrable there, then .
For : is integrable on if and only if it is integrable on and on , and then ; with the oriented form for arbitrary and If on and both are integrable then ; and : finite adjacent interval integrals add, and pointwise ordered integrands have ordered integrals.
Identical distribution and IID families: the observations are mutually independent and have the common law .
Supervised prediction problems and Population and empirical risk: the loss, population risk, and empirical risk use the stated measurable observation law and loss.
A continuous function on is Riemann integrable, by Heine-Cantor and Riemann's criterion: every continuous real function on a compact interval with is Riemann integrable there.
The joint loss and gradient maps and the displayed population-risk and empirical-risk random variables are measurable. The loss range makes all these risks integrable.
Each sample index is uniform and the whole index vector is independent of the sample; no cross-time independence is assumed.
Proof
For any with , take , which is a unit vector by [F2] and [F4]. The directional derivative of at zero is by [F1] and [F3], while the value-Lipschitz condition bounds the absolute difference quotient by . Thus ; the zero-gradient case is immediate.
Put . By [F7], , and finite multiplication, If , the product is empty and equals . If , then for each and , , so [F11] gives . Additivity over these nondegenerate intervals and [F8] yield . Therefore the product is at most by [F8] and [F9].
Fix neighboring samples that differ at coordinate and couple their runs using the same index vector. Let , with . If , the same example is used in both updates, so gradient smoothness gives . If , add and subtract ; smoothness for the common example, the triangle inequality from [F4], and step 1.1 give . Thus, for every update,
Iterating the finite recurrence in step 2.1 from yields The loss difference at any fixed test point is at most by the range hypothesis and at most by value-Lipschitzness. For nonnegative , : if any the right side is at least , and otherwise it equals . Applying this to the displayed kicks and using gives
If , step 1.1 gives zero gradients, so the output is independent of the sample and stability is zero; set . Suppose and put By step 1.2 and , the th summand in step 3.1 is at most , where for . This function is continuous by [F9]. If , it equals up to and then decreases; if , it decreases throughout, since has negative derivative. Thus it is nonincreasing. If , the sum is . If , [F14] makes integrable on ; for each integer , [F11] gives . Additivity over these adjacent intervals then yields .
If , step 4.1 gives stability zero. Suppose . When and , ; when and , . Now let . The displayed integrands are continuous on their compact intervals and hence integrable by [F14]. If , then . For , on and . For , on , so [F9] and [F10] give . For , split at using [F11] and integrate on and on to get . In each case . If , then and [F9]–[F10] give , so . In every case, step 4.1 now bounds the sum in step 3.1 by . Therefore the right side of step 3.1 is at most .
Steps 3.1, 4.1, and 5.1 show that every neighboring sample pair and test point has expected absolute loss change at most . This implies uniform replacement stability at that level by [F5]. Since , . The sample is IID by [F12], the risk conventions are [F13], and the measurable, integrable risks meet [A1]. Apply [F6] and substitute and the value of to obtain the stated expected-gap bound.
4 · Examples, counterexamples and false statements
None yet.
Sources
- Moritz Hardt, Benjamin Recht, and Yoram Singer, Train faster, generalize better: Stability of stochastic gradient descent, §2.2, proof of Theorem 2.2
- Nikolai Matni, ESE680 Lecture 16: Algorithmic Stability and Stochastic Gradient Descent, §3.1
- Moritz Hardt, Benjamin Recht, and Yoram Singer, Train faster, generalize better: Stability of stochastic gradient descent, Definition 2.1
- Nikolai Matni, ESE680 Lecture 16: Algorithmic Stability and Stochastic Gradient Descent, Definition 1
- Moritz Hardt, Benjamin Recht, and Yoram Singer, Train faster, generalize better: Stability of stochastic gradient descent, Theorem 2.2 and proof
- Nikolai Matni, ESE680 Lecture 16: Algorithmic Stability and Stochastic Gradient Descent, Theorem 2 and proof
- Moritz Hardt, Benjamin Recht, and Yoram Singer, Train faster, generalize better: Stability of stochastic gradient descent, arXiv-version Theorem 3.8 and proof (conference Theorem 3.7)
- Nikolai Matni, ESE680 Lecture 16: Algorithmic Stability and Stochastic Gradient Descent, Theorem 3 and proof
- Moritz Hardt, Benjamin Recht, and Yoram Singer, Train faster, generalize better: Stability of stochastic gradient descent, arXiv-version Theorem 3.12 and complete proof (conference Theorem 3.8)
- Nikolai Matni, ESE680 Lecture 16: Algorithmic Stability and Stochastic Gradient Descent, §4