Lemma 9, eq. (8):
ProvedStabGen.Hypothesis.lemma9_empiricalalgorithmic-stabilitylearning-theoryp2o-batch-pfp1ap2o-gran-per-chapterp2o-plan-paperp2o-v1
Let be a probability distribution on , let the cost satisfy , and let be a symmetric deterministic learning algorithm whose losses are measurable. Let with , let be independent of , and let be with replaced by . Then for every index ,
The right-hand expectation measures how much the loss at a training point changes once that point is replaced by a fresh one. Together with Chebyshev's inequality this bound gives the empirical half of Theorem 11.
Formalization Note Lemma 9 is stated for with , which presupposes ; this is a hypothesis here. Inequality (8) involves only . The expectation is the integral against , with = replaceAt S i z'.
Preamble
import Mathlib import Definitions.Def_FoundationsML_Stability_Loss import Definitions.Def_FoundationsML_Stability_EmpiricalError import Definitions.Def_FoundationsML_Stability_GeneralizationError import Definitions.Def_StabGen_Hypothesis_Setting open MeasureTheory
Formal statement
namespace StabGen.Hypothesis
open FoundationsML.Stability
theorem lemma9_empirical {X Y Y' : Type*} [MeasurableSpace X] [MeasurableSpace Y]
(D : Measure (X × Y)) [IsProbabilityMeasure D] (L : Y' → Y → ℝ) (M : ℝ)
(hL : ∀ (y' : Y') (y : Y), 0 ≤ L y' y ∧ L y' y ≤ M)
(A : LearningAlgorithm X Y Y')
(hA : ∀ n : ℕ, Measurable (fun p : (Fin n → X × Y) × (X × Y) =>
Loss L (A (trainingSet p.1)) p.2))
(m : ℕ) (hm : 2 ≤ m) (i : Fin m) :
∫ S : Fin m → X × Y,
(GeneralizationError D L (A (trainingSet S)) - EmpiricalError L S (A (trainingSet S))) ^ 2
∂(Measure.pi fun _ : Fin m => D)
≤ M ^ 2 / (2 * (m : ℝ))
+ 3 * M * ∫ p : (Fin m → X × Y) × (X × Y),
|Loss L (A (trainingSet p.1)) (p.1 i)
- Loss L (A (trainingSet (replaceAt p.1 i p.2))) (p.1 i)|
∂((Measure.pi fun _ : Fin m => D).prod D) := by sorry
end StabGen.Hypothesis
Source
Bousquet & Elisseeff, Stability and Generalization, JMLR 2 (2002), p. 505, Lemma 9, eq. (8); proof in Appendix A, pp. 520–523
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.