Contents
Rademacher complexity
In computational learning theory (machine learning and theory of computation), Rademacher complexity, named after Hans Rademacher, measures richness of a class of sets with respect to a probability distribution. The concept can also be extended to real valued functions.
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 A is symmetric this makes no difference.
Rademacher complexity of a function class
Let be a sample of points and consider a function class \mathcal{F} of real-valued functions over Z. Then, the empirical Rademacher complexity of \mathcal{F} given S is defined as: This can also be written using the previous definition: where denotes function composition, i.e.: Let P be a probability distribution over Z. The Rademacher complexity of the function class \mathcal{F} with respect to P for sample size m is: where the above expectation is taken over an identically independently distributed (i.i.d.) sample generated according to P.
Intuition
The Rademacher complexity is typically applied on a function class of models that are used for classification, with the goal of measuring their ability to classify points drawn from a probability space under arbitrary labellings. When the function class is rich enough, it contains functions that can appropriately adapt for each arrangement of labels, simulated by the random draw of \sigma_i under the expectation, so that this quantity in the sum is maximised.
Examples
- A contains a single vector, e.g.,. Then: The same is true for every singleton hypothesis class.
- A 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 S. This can be quantified using the notion of representativeness. Denote by P the probability distribution from which the samples are drawn. Denote by H the set of hypotheses (potential classifiers) and denote by F the corresponding set of error functions, i.e., for every hypothesis h\in H, there is a function f_h\in F, that maps each training sample (features,label) to the error of the classifier h (note in this case hypothesis and classifier are used interchangeably). For example, in the case that h represents a binary classifier, the error function is a 0–1 loss function, i.e. the error function f_h returns 0 if h correctly classifies a sample and 1 else. We omit the index and write f instead of f_h when the underlying hypothesis is irrelevant. Define: The representativeness of the sample S, with respect to P and F, 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, (with binary error function), for every \delta>0, with probability at least 1-\delta, for every hypothesis h\in H:
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.
- If all vectors in A are translated by a constant vector, then Rad(A) does not change.
- If all vectors in A are multiplied by a scalar, then Rad(A) is multiplied by |c|. 3..
- (Kakade & Tewari Lemma) If all vectors in A are operated by a Lipschitz function, then Rad(A) is (at most) multiplied by the Lipschitz constant of the function. In particular, if all vectors in A are operated by a contraction mapping, then Rad(A) strictly decreases.
- The Rademacher complexity of the convex hull of A equals Rad(A).
- (Massart Lemma) The Rademacher complexity of a finite set grows logarithmically with the set size. Formally, let A be a set of N vectors in, and let \bar{a} be the mean of the vectors in A. Then: In particular, if A is a set of binary vectors, the norm is at most \sqrt{m}, so:
Bounds related to the VC dimension
Let H be a set family whose VC dimension is d. It is known that the growth function of H is bounded as: This means that, for every set h with at most m elements,. The set-family H\cap h can be considered as a set of binary vectors over. Substituting this in Massart's lemma gives: With more advanced techniques (Dudley's entropy bound and Haussler's upper bound ) one can show, for example, that there exists a constant C, such that any class of {0,1}-indicator functions with Vapnik–Chervonenkis dimension d has Rademacher complexity upper-bounded by.
Bounds related to linear classes
The following bounds are related to linear operations on S – a constant set of m vectors in.
- Define the set of dot-products of the vectors in S with vectors in the unit ball. Then:
- Define the set of dot-products of the vectors in S 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 A to its external covering number – the number of balls of a given radius r whose union contains A. The bound is attributed to Dudley. Suppose is a set of vectors whose length (norm) is at most c. Then, for every integer M>0: In particular, if A 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 g_i instead of \sigma_i, where g_i 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.
Equivalence of Rademacher and Gaussian complexity
Given a set then it holds that : Where G(A) is the Gaussian Complexity of A. As an example, consider the rademacher and gaussian complexities of the L1 ball. The Rademacher complexity is given by exactly 1, whereas the Gaussian complexity is on the order of (which can be shown by applying known properties of suprema of a set of subgaussian random variables).
This article is derived from Wikipedia and licensed under CC BY-SA 4.0. View the original article.
Wikipedia® is a registered trademark of the
Wikimedia Foundation, Inc.
Bliptext is not
affiliated with or endorsed by Wikipedia or the
Wikimedia Foundation.