Rademacher complexity


In computational learning theory, Rademacher complexity, named after Hans Rademacher, measures richness of a class of real-valued functions with respect to a probability distribution.

Definitions

Rademacher complexity of a set

Given a set, the Rademacher complexity of A is defined as follows:
where are independent random variables drawn from the Rademacher distribution i.e. for, and. Some authors take the absolute value of the sum before taking the supremum, but if is symmetric this makes no difference.

Rademacher complexity of a function class

Given a sample, and a class of real-valued functions defined on a domain space, the empirical Rademacher complexity of given is defined as:
This can also be written using the previous definition:
where denotes function composition, i.e.:
Let be a probability distribution over.
The Rademacher complexity of the function class with respect to for sample size is:
where the above expectation is taken over an identically independently distributed sample generated according to.

Examples

1. contains a single vector, e.g.,. Then:
The same is true for every singleton hypothesis class.
2. contains two vectors, e.g.,. Then:

Using the Rademacher complexity

The Rademacher complexity can be used to derive data-dependent upper-bounds on the learnability of function classes. Intuitively, a function-class with smaller Rademacher complexity is easier to learn.

Bounding the representativeness

In machine learning, it is desired to have a training set that represents the true distribution of some sample data. This can be quantified using the notion of representativeness. Denote by the probability distribution from which the samples are drawn. Denote by the set of hypotheses and denote by the corresponding set of error functions, i.e., for every hypothesis, there is a function, that maps each training sample to the error of the classifier . For example, in the case that represents a binary classifier, the error function is a 0–1 loss function, i.e. the error function returns 1 if correctly classifies a sample and 0 else. We omit the index and write instead of when the underlying hypothesis is irrelevant. Define:
The representativeness of the sample, with respect to and, is defined as:
Smaller representativeness is better, since it provides a way to avoid overfitting: it means that the true error of a classifier is not much higher than its estimated error, and so selecting a classifier that has low estimated error will ensure that the true error is also low. Note however that the concept of representativeness is relative and hence can not be compared across distinct samples.
The expected representativeness of a sample can be bounded above by the Rademacher complexity of the function class:

Bounding the generalization error

When the Rademacher complexity is small, it is possible to learn the hypothesis class H using empirical risk minimization.
For example,, for every, with probability at least, for every hypothesis :

Bounding the Rademacher complexity

Since smaller Rademacher complexity is better, it is useful to have upper bounds on the Rademacher complexity of various function sets. The following rules can be used to upper-bound the Rademacher complexity of a set.
1. If all vectors in are translated by a constant vector, then Rad does not change.
2. If all vectors in are multiplied by a scalar, then Rad is multiplied by.
3. Rad = Rad + Rad.
4. If all vectors in are operated by a Lipschitz function, then Rad is multiplied by the Lipschitz constant of the function. In particular, if all vectors in are operated by a contraction mapping, then Rad strictly decreases.
5. The Rademacher complexity of the convex hull of equals Rad.
6. The Rademacher complexity of a finite set grows logarithmically with the set size. Formally, let be a set of vectors in, and let be the mean of the vectors in. Then:
In particular, if is a set of binary vectors, the norm is at most, so:

Bounds related to the VC dimension

Let be a set family whose VC dimension is. It is known that the growth function of is bounded as:
This means that, for every set with at most elements,. The set-family can be considered as a set of binary vectors over. Substituting this in Massart's lemma gives:
With more advanced techniques one can show, for example, that there exists a constant, such that any class of -indicator functions with Vapnik–Chervonenkis dimension has Rademacher complexity upper-bounded by.

Bounds related to linear classes

The following bounds are related to linear operations on – a constant set of vectors in.
1. Define the set of dot-products of the vectors in with vectors in the unit ball. Then:
2. Define the set of dot-products of the vectors in with vectors in the unit ball of the 1-norm. Then:

Bounds related to covering numbers

The following bound relates the Rademacher complexity of a set to its external covering number – the number of balls of a given radius whose union contains. The bound is attributed to Dudley.
Suppose is a set of vectors whose length is at most. Then, for every integer :
In particular, if lies in a d-dimensional subspace of, then:
Substituting this in the previous bound gives the following bound on the Rademacher complexity:

Gaussian complexity

Gaussian complexity is a similar complexity with similar physical meanings, and can be obtained from the Rademacher complexity using the random variables instead of, where are Gaussian i.i.d. random variables with zero-mean and variance 1, i.e.. Gaussian and Rademacher complexities are known to be equivalent up to logarithmic factors.