Rademacher complexity of bounded-norm linear predictors #
For a feature map φ : Z → E into a real inner product space, linearPredictors φ B is the class
of linear predictors z ↦ ⟪w, φ z⟫ with ‖w‖ ≤ B. Its empirical Rademacher complexity on a
sample S : Fin m → Z is at most B √(∑ i, ‖φ (S i)‖²) / m, hence at most B R / √m when every
sample point has ‖φ (S i)‖ ≤ R [MohriRostamizadehTalwalkar2018, Theorem 5.10]
[ShalevShwartzBenDavid2014, Lemma 26.10]. The proof is the textbook one: for a fixed sign vector
σ, Cauchy–Schwarz bounds the supremum over the ball by B ‖∑ i, σ_i φ (S i)‖; Jensen's
inequality moves the average inside a square root; and distinct Rademacher signs are uncorrelated
(Cslib.BitString.expect_norm_sum_signVal_smul_sq). The bound does not depend on the dimension of
E; taking φ = id gives the class {x ↦ ⟪w, x⟫ : ‖w‖ ≤ B} of the sources.
Combined with the fixed-margin bounds of CslibFrontier.MachineLearning.Rademacher.Margin, this
gives the margin bound for linear classifiers [MohriRostamizadehTalwalkar2018, Corollary 5.11,
(5.44)]: with probability at least 1 - δ, every w with ‖w‖ ≤ B has
Pr_D[signVal y * ⟪w, φ x⟫ ≤ 0] ≤ R̂_{S, ρ}(w) + 2 B R / (ρ √m) + √(log (1 / δ) / (2 m)).
The Rademacher API works on finite domains, so the population statements assume Z finite (the
sources allow any distribution supported on the ball of radius R); φ and E are arbitrary.
Labels follow Rademacher/Margin: the signed margin of (x, y) is signVal y * h x.
Main definitions #
Cslib.MachineLearning.linearPredictors: the predictorsz ↦ ⟪w, φ z⟫with‖w‖ ≤ B.
Main results #
Cslib.MachineLearning.empiricalRademacherComplexity_linearPredictors_le_sqrt: the boundB √(∑ i, ‖φ (S i)‖²) / m.Cslib.MachineLearning.empiricalRademacherComplexity_linearPredictors_le: the boundB R / √m[MohriRostamizadehTalwalkar2018, Theorem 5.10].Cslib.MachineLearning.rademacherComplexity_linearPredictors_le: the population form.Cslib.MachineLearning.linearPredictors_margin_bound: the margin bound [MohriRostamizadehTalwalkar2018, Corollary 5.11].Cslib.MachineLearning.linearPredictors_empirical_margin_bound: the data-dependent margin bound, with2 B √(∑ i, ‖φ (S i).1‖²) / (ρ m)and the confidence term of [MohriRostamizadehTalwalkar2018, Theorem 5.8, (5.40)].
References #
- M. Mohri, A. Rostamizadeh, A. Talwalkar, Foundations of Machine Learning, 2nd ed., Section 5.4, Theorem 5.10 and Corollary 5.11
- S. Shalev-Shwartz, S. Ben-David, Understanding Machine Learning: From Theory to Algorithms, Section 26.2, Lemma 26.10
The class of linear predictors z ↦ ⟪w, φ z⟫ with weight vector of norm at most B, for a
feature map φ : Z → E into a real inner product space.
A linear predictor with ‖w‖ ≤ B on features of norm at most R is bounded by B R.
Rademacher complexity of bounded-norm linear predictors, trace form: for B ≥ 0, the
empirical Rademacher complexity of linearPredictors φ B on S is at most
B √(∑ i, ‖φ (S i)‖²) / m. This is the intermediate bound in the proof of
[MohriRostamizadehTalwalkar2018, Theorem 5.10].
Rademacher complexity of bounded-norm linear predictors
[MohriRostamizadehTalwalkar2018, Theorem 5.10] [ShalevShwartzBenDavid2014, Lemma 26.10]: for
B ≥ 0 and a sample whose features have norm at most R, the empirical Rademacher complexity of
linearPredictors φ B is at most B R / √m.
The Rademacher complexity of linearPredictors φ B on a finite domain whose features have norm
at most R is at most B R / √m.
Margin bound for linear classifiers [MohriRostamizadehTalwalkar2018, Corollary 5.11,
(5.44)]: on a finite domain with features φ of norm at most R, for B ≥ 0, margin ρ > 0
and m > 0 independent draws from D : PMF (Z × Bool), with probability at least 1 - δ every
weight vector with ‖w‖ ≤ B satisfies
Pr_D[signVal y * ⟪w, φ x⟫ ≤ 0] ≤ R̂_{S, ρ}(w) + 2 B R / (ρ √m) + √(log (1 / δ) / (2 m)).
Data-dependent margin bound for linear classifiers: on a finite domain, for B ≥ 0,
margin ρ > 0 and m > 0 independent draws from D : PMF (Z × Bool), with probability at least
1 - δ every weight vector with ‖w‖ ≤ B satisfies
`Pr_D[signVal y * ⟪w, φ x⟫ ≤ 0] ≤ R̂_{S, ρ}(w) + 2 B √(∑ i, ‖φ (S i).1‖²) / (ρ m)
- 3 √(log (2 / δ) / (2 m))
. This combines the trace form of [MohriRostamizadehTalwalkar2018, Theorem 5.10] with (5.40) of their Theorem 5.8; no boundR` on the features is assumed.