Alphabeta Math
Pipeline-generated
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 — Examples

1 · Prerequisites

2 · Logical flowchart

3 · Definitions, theorems and proofs

None yet.

4 · Examples, counterexamples and false statements

ExampleConstruction: AI-generatedVerification: AI-generatedjudge pass (gpt-6-luna)Open item page →

The convex constant-step stability bound is linear in the step count

Example

Let n,T,d≥1, L,β>0, and let (X,ΣX), (Y,ΣY), and (A,ΣA) be measurable spaces. Let P be a probability measure on X×Y, let ℓ:A×Y→[0,+∞) be measurable, and let fw:X→A be measurable for every w∈Rd. For z=(x,y) put g(w,z)=ℓ(fw(x),y) and assume g and ∇wg are jointly measurable. For every z, assume g(⋅,z) is totally differentiable and convex, its gradient is β-Lipschitz, and its values satisfy ∣g(w,z)−g(v,z)∣≤L∥w−v∥2. Let S=(Z1,…,Zn) be IID with law P, and define RP(fw)=∫g(w,z) P(dz) and R^S(fw)=n−1∑i=1ng(w,Zi). Let I1,…,IT be independent of S with P(It=i)=1/n for each t,i; dependence across times is allowed. From fixed w0∈Rd, run wt=wt−1−αt∇wg(wt−1,ZIt) and assume the resulting loss and risk maps are measurable and integrable. For the constant schedule αt=1/β, the stability and absolute expected-generalization upper bound is 2L2T/(βn), which is linear in T as a bound. This is an upper-bound calculation, not a lower bound on the actual stability or generalization gap.

Example references

Expected generalization of convex stochastic gradient training supplies the convex SGD stability and expected-gap bound.

Hardt, Recht, and Singer, arXiv-version Theorem 3.8 (conference Theorem 3.7): full arXiv paper.

Facts & Assumptions

Given: n,T≥1, L,β>0, the convex theorem hypotheses, and the constant schedule αt=1/β.

[F1]

Expected generalization of convex stochastic gradient training: for admissible deterministic steps, stability and the absolute expected-generalization gap are at most 2L2n∑t=1Tαt.

Verification

1.1givenF1algebra

Since αt=1/β≤2/β, every step meets the convex theorem's step-size condition. The sum of the T equal steps is T/β.

2.1F1step 1.1algebra

Substituting this sum into [F1] gives εstab≤2L2nTβ=2L2Tβn.

3.1givenstep 2.1algebra∎

For fixed positive L,β,n, the displayed right-hand side is a constant multiple of T. It bounds the stability and expected gap from above and yields no corresponding lower bound.

ExampleConstruction: AI-generatedVerification: AI-generatedjudge pass (gpt-6-luna)Open item page →

Constant and inverse-time schedules give different stability bounds

Example

For each r∈{1,2}, let (Xr,ΣXr), (Yr,ΣYr), and (Ar,ΣAr) be measurable spaces, let Pr be a probability measure on Xr×Yr, let ℓr:Ar×Yr→[0,+∞) be measurable, and let fw(r):Xr→Ar be measurable for w∈Rd, where d≥1. Put gr(w,(x,y))=ℓr(fw(r)(x),y) and assume gr and ∇wgr are jointly measurable. Let n=1000, T=100, let Sr=(Z1(r),…,Zn(r)) be IID with law Pr, and define RPr(fw(r))=∫gr(w,z) Pr(dz) and R^Sr(fw(r))=n−1∑i=1ngr(w,Zi(r)). For each regime, let I1(r),…,IT(r) be independent of Sr with P(It(r)=i)=1/n for every t,i; dependence between times is allowed. Start from fixed w0(r)∈Rd and use wt(r)=wt−1(r)−αt(r)∇wgr(wt−1(r),ZIt(r)(r)). In regime r=1, assume each g1(⋅,z) is totally differentiable and convex, has 1-Lipschitz gradient, and is 1-Lipschitz in values; use αt(1)=1. In regime r=2, assume each g2(⋅,z) is totally differentiable, takes values in [0,1], has 1-Lipschitz gradient and is 1-Lipschitz in values, with no convexity assumption; use αt(2)=1/t. Assume the displayed output risk variables are measurable and integrable. The convex theorem's stability and absolute expected-generalization upper bound is 1/5. The nonconvex theorem's upper bound is 202/999. This comparison concerns only these theorem certificates under their distinct loss hypotheses, not the actual stability or generalization gaps of arbitrary training problems.

Example references

Expected generalization of convex stochastic gradient training supplies the convex bound.

Expected generalization of nonconvex stochastic gradient training supplies the nonconvex bound.

Hardt, Recht, and Singer, arXiv-version Theorems 3.8 and 3.12 (conference Theorems 3.7 and 3.8): full arXiv paper.

Facts & Assumptions

Given: n=1000, T=100, L=β=1, constant convex-regime steps αt=1, and nonconvex-regime steps αt=1/t with c=1.

[F1]

Expected generalization of convex stochastic gradient training: for admissible convex-regime steps, the bound is 2L2n−1∑tαt.

[F2]

Expected generalization of nonconvex stochastic gradient training: for n≥2 and nonincreasing αt≤c/t, the bound is (1+1/(βc))(2cL2)1/(βc+1)Tβc/(βc+1)/(n−1).

Verification

1.1givenF1algebra

For the convex schedule, 1≤2/β=2 and ∑t=1100αt=100. Substitution in [F1] gives 2⋅100/1000=1/5.

1.2givenF2algebra

The nonconvex schedule is nonincreasing, satisfies αt=c/t, and q=βc=1. Substitution in [F2] gives 22100/999=202/999.

2.1step 1.1step 1.2algebra∎

Both denominators are positive. The comparison 202/999<1/5 is equivalent to 1002<999; squaring these positive quantities reduces it to 20000<998001. This compares only the stated upper bounds.

ExampleConstruction: AI-generatedVerification: AI-generatedjudge pass (gpt-6-luna)Open item page →

A smooth quadratic loss without global Lipschitzness has unbounded stability

Example

Let the instance space be {∗} with its full sigma-algebra, let the label and action spaces be R with their Borel sigma-algebras, take P to be the point mass at 0, use predictors fw(∗)=w, and use loss ℓ(u,y)=12(u−y)2. For w,y∈R, write g(w,(∗,y))=ℓ(fw(∗),y)=12(w−y)2. For sample size n=1, start at w0=0, use I1=1 and α1=1/2, and set w1=w0−α1∂wg(w0,ZI1). For every a∈R, compare the neighboring samples Sa=((∗,a)) and S0=((∗,0)) at test observation z0=(∗,0). Their output losses differ by a2/8. Since a is arbitrary, this procedure has no finite uniform replacement stability coefficient. The loss is convex and its gradient is 1-Lipschitz but its values are not globally Lipschitz in w, so this example lies outside the convex SGD theorem's hypotheses and is not a counterexample to that theorem.

Example references

Uniform stability for randomized learning rules defines the finite replacement-stability requirement.

Expected generalization of convex stochastic gradient training requires global Lipschitzness of the per-example loss.

Hardt, Recht, and Singer, arXiv-version Theorem 3.8 (conference Theorem 3.7): full arXiv paper.

Facts & Assumptions

Given: The singleton instance space, quadratic loss, one-step update, neighboring samples, and test observation in the Example.

[F1]

Uniform stability for randomized learning rules: a finite stability coefficient must bound the expected test-loss difference for every pair of samples differing in at most one coordinate and every test observation.

[F2]

Expected generalization of convex stochastic gradient training: the convex SGD guarantee requires a finite global value-Lipschitz constant for every per-example loss.

Verification

1.1givenconstructalgebra

For any w,y and increment h, g(w+h,(∗,y))−g(w,(∗,y))=h(w−y)+h2/2, so the difference quotient tends to w−y and ∂wg(w,(∗,y))=w−y. Thus for Sa=((∗,a)) the first update is w1(Sa)=0−12(0−a)=a/2, while for S0 it is w1(S0)=0.

2.1F1step 1.1givenalgebra

At test observation z0=(∗,0), g(w1(Sa),z0)=12(a/2)2=a2/8 and g(w1(S0),z0)=0. As ∣a∣→∞ the absolute difference is unbounded, contradicting any finite uniform coefficient by [F1].

3.1F2givenstep 1.1algebra∎

By step 1.1, ∣∂wg(w,(∗,y))−∂wg(v,(∗,y))∣=∣w−v∣, so its gradient is 1-Lipschitz. For 0≤t≤1, direct expansion gives (1−t)g(w,(∗,y))+tg(v,(∗,y))−g((1−t)w+tv,(∗,y))=t(1−t)(w−v)2/2≥0, so it is convex. But for y=0, ∣g(w,(∗,0))−g(0,(∗,0))∣/∣w∣=∣w∣/2 for w≠0, which is unbounded. Thus no finite global Lipschitz constant exists, and [F2] does not apply.

Sources