Talagrand's contraction lemma for Rademacher complexity #
Composing a bounded family of vectors a : ι → Fin m → ℝ coordinatewise with K-Lipschitz
functions φ i : ℝ → ℝ multiplies its Rademacher average by at most K:
rademacherAverage (fun j i => φ i (a j i)) ≤ K * rademacherAverage a
[MohriRostamizadehTalwalkar2018, Lemma 5.7]; cf. [LedouxTalagrand1991, Theorem 4.12, pp. 112–114]
and [ShalevShwartzBenDavid2014, Lemma 26.9]. No centering assumption φ i 0 = 0 is required:
shifting φ i by a constant changes every vector by a fixed coordinate offset, which cancels in
expectation against a symmetric sign.
The proof follows [MohriRostamizadehTalwalkar2018, Lemma 5.7], replacing (K : ℝ) * a j i by
φ i (a j i) one coordinate at a time. At coordinate i₀, pairing each sign vector σ with its
flip at i₀ reduces the step to the elementary two-branch inequality
(⨆ j, (u j + g (x j))) + (⨆ j, (u j - g (x j))) ≤ (⨆ j, (u j + K * x j)) + ⨆ j, (u j - K * x j)
for a K-Lipschitz map g.
Specializing to restrictions of a uniformly bounded hypothesis class F : Set (X → ℝ) yields
contraction bounds for empirical and expected Rademacher complexities, both for direct composition
(φ ∘ ·) '' F and for sample-dependent per-example losses (fun f z => φ z (f (g z))) '' F such
as margin losses on labeled examples.
Main results #
Cslib.MachineLearning.rademacherAverage_comp_le: Talagrand's contraction lemma in vector form [MohriRostamizadehTalwalkar2018, Lemma 5.7].Cslib.MachineLearning.rademacherAverage_comp_le_empiricalRademacherComplexity: per-index contraction against the empirical Rademacher complexity of a bounded class.Cslib.MachineLearning.empiricalRademacherComplexity_image_comp_le_of_map,Cslib.MachineLearning.rademacherComplexity_image_comp_le_of_map: contraction of empirical and population Rademacher complexities under example-dependent Lipschitz mapsz ↦ φ z (f (g z)).Cslib.MachineLearning.empiricalRademacherComplexity_image_comp_le,Cslib.MachineLearning.rademacherComplexity_image_comp_le: contraction for(φ ∘ ·) '' F.
References #
- M. Mohri, A. Rostamizadeh, A. Talwalkar, Foundations of Machine Learning, 2nd ed., Section 5.4, Lemma 5.7
- M. Ledoux, M. Talagrand, Probability in Banach Spaces: Isoperimetry and Processes, Theorem 4.12, pp. 112–114
- S. Shalev-Shwartz, S. Ben-David, Understanding Machine Learning: From Theory to Algorithms, Lemma 26.9
Single-coordinate contraction helpers #
Vector contraction #
Talagrand's contraction lemma [MohriRostamizadehTalwalkar2018, Lemma 5.7]
(cf. [LedouxTalagrand1991, Theorem 4.12, pp. 112–114]): for a bounded family of vectors
a : ι → Fin m → ℝ and K-Lipschitz functions φ i : ℝ → ℝ (i : Fin m),
rademacherAverage (fun j i => φ i (a j i)) ≤ K * rademacherAverage a. No centering condition
φ i 0 = 0 is needed.
Function-class contraction #
Talagrand's contraction lemma for a function class
[MohriRostamizadehTalwalkar2018, Lemma 5.7]: for a uniformly bounded class F : Set (Z → ℝ), a
sample S : Fin m → Z, and K-Lipschitz maps φ i : ℝ → ℝ,
rademacherAverage (fun (f : F) i => φ i (f (S i))) ≤ K * empiricalRademacherComplexity F S.
Empirical Rademacher contraction under example-dependent Lipschitz maps: if F is a
uniformly bounded set of functions X → ℝ, g : Z → X extracts features from examples, and
φ z : ℝ → ℝ is K-Lipschitz for every z : Z, then on any sample S : Fin m → Z the induced
class {(z ↦ φ z (f (g z))) | f ∈ F} has empirical Rademacher complexity at most K times that of
F on g ∘ S.
Empirical Rademacher contraction for (φ ∘ ·) '' F
[MohriRostamizadehTalwalkar2018, Lemma 5.7]: composing a uniformly bounded class F : Set (Z → ℝ)
with a K-Lipschitz function φ : ℝ → ℝ multiplies its empirical Rademacher complexity by at most
K.
Population Rademacher contraction under example-dependent Lipschitz maps: under a
distribution D : PMF Z on a finite domain, the class {(z ↦ φ z (f (g z))) | f ∈ F} has
Rademacher complexity at most K times that of F under D.map g.
Population Rademacher contraction for (φ ∘ ·) '' F
[MohriRostamizadehTalwalkar2018, Lemma 5.7]: composing a uniformly bounded class F : Set (Z → ℝ)
with a K-Lipschitz function φ : ℝ → ℝ multiplies its Rademacher complexity under D by at most
K.