How do you prove Massart's finite class lemma: for a finite set A⊂Rm with ∥a∥2≤r for all a∈A, Eσsup⁡a∈A1m∑iσiai≤r2ln⁡∣A∣m. How do you use it with Sauer's lemma to bound the Rademacher complexity of a class of VC dimension d?

Learning theory, Rademacher complexity
Level L5 Expert. Length Long. Nature Mat Mathematical.

What's being asked

Whether you can use the moment generating function trick and connect it to the growth function.

Key idea

Bound exp⁡(λ Esup⁡) by the sum of moment generating functions, use cosh⁡x≤ex2/2, then optimise λ. For binary vectors, ∣A∣≤τH(m)≤(em/d)d.

Steps

  1. For λ>0, Jensen gives exp⁡(λ Esup⁡a∑iσiai)≤Eexp⁡(λsup⁡a∑iσiai)≤∑a∈AEexp⁡(λ∑iσiai).
  2. By independence, Eexp⁡(λ∑iσiai)=∏icosh⁡(λai)≤∏ieλ2ai2/2=eλ2∥a∥2/2≤eλ2r2/2, using cosh⁡x≤ex2/2.
  3. So exp⁡(λ Esup⁡)≤∣A∣eλ2r2/2. Take logs and divide by λ: Esup⁡a∑iσiai≤ln⁡∣A∣λ+λr22.
  4. Choose λ=2ln⁡∣A∣r to balance the two terms: the bound becomes r2ln⁡∣A∣. Divide by m to get the lemma.
  5. Apply to H with VC dimension d and a sample S: let A={(h(x1),…,h(xm)):h∈H}⊂{±1}m. Then r=m and, by Sauer's lemma (and ∑i≤d(mi)≤(em/d)d for m≥d), ∣A∣≤(em/d)d.
  6. Result: R^S(H)≤m2dln⁡(em/d)m=2dln⁡(em/d)m. Inserting into the Rademacher generalisation bound gives a gap of order dln⁡(m/d)m, which matches the VC bound up to the logarithm.

Common mistakes

How long your answer should be

One page; 8–10 minutes.

Last checked on 4 December 2026.

Read this

Previous in Learning theory: How do you prove that for a class of functions F with values in [0,1], with probability at least 1−δ over a sample S of size m, every f∈F satisfies E[f]≤E^S[f]+2Rm(F)+ln⁡(1/δ)2m, where Rm is the expected Rademacher complexity?
Next in Learning theory: How do you show that no online algorithm can guarantee regret o(T) against even N=2 experts, by constructing a loss sequence for which every algorithm has expected regret at least T/8?