Lemma 25 (leave-one-out error): second-moment expansion of
ProvedStabGen.Hypothesis.lemma25_looalgorithmic-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 , and let be independent of each other and of . Write , , and . Then for any indices ,
This is the leave-one-out half of the generalized Rogers–Wagner lemma used to prove Lemma 9.
Formalization Note As printed. The lemma is printed "for any learning algorithm", but its proof uses the standing assumptions of §2.1 (symmetry, measurability) and ; these are hypotheses here, and is implicit in . Expectations over and are integrals against and .
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 lemma25_loo {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 j : Fin m) (hij : i ≠ j) :
∫ S : Fin m → X × Y,
(GeneralizationError D L (A (trainingSet S)) - looError L A S) ^ 2
∂(Measure.pi fun _ : Fin m => D)
≤ ∫ p : ((Fin m → X × Y) × (X × Y)) × (X × Y),
Loss L (A (trainingSet p.1.1)) p.1.2 * Loss L (A (trainingSet p.1.1)) p.2
∂(((Measure.pi fun _ : Fin m => D).prod D).prod D)
- 2 * ∫ p : (Fin m → X × Y) × (X × Y),
Loss L (A (trainingSet p.1)) p.2 * Loss L (A (removeAt p.1 i)) (p.1 i)
∂((Measure.pi fun _ : Fin m => D).prod D)
+ ∫ S : Fin m → X × Y,
Loss L (A (removeAt S i)) (S i) * Loss L (A (removeAt S j)) (S j)
∂(Measure.pi fun _ : Fin m => D)
+ M / (m : ℝ) * ∫ S : Fin m → X × Y, GeneralizationError D L (A (removeAt S i))
∂(Measure.pi fun _ : Fin m => D)
- 1 / (m : ℝ) * ∫ S : Fin m → X × Y,
Loss L (A (removeAt S i)) (S i) * Loss L (A (removeAt S j)) (S j)
∂(Measure.pi fun _ : Fin m => D) := by sorry
end StabGen.Hypothesis
Source
Bousquet & Elisseeff, Stability and Generalization, JMLR 2 (2002), p. 520, Lemma 25 (second inequality)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.