GO-V.ORG
As seen in

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. Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.

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. = \frac{1}{m} \mathbb{E}_\sigma \left[ \sup_{a \in A} \sum_{i=1}^m \sigma_i a_i \right] where \sigma_1, \sigma_2, \dots, \sigma_m are independent random variables drawn from the Rademacher distribution i.e. \Pr(\sigma_i = +1) = \Pr(\sigma_i = -1) = 1/2 for i \in \{1,2,\dots,m\} , and a=(a_1, \ldots, a_m) \in A . Some authors take the absolute value of the sum before taking the supremum, but if A is symmetric this makes no difference. Let S=\{z_1, z_2, \dots, z_m\} \subseteq Z 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: \operatorname{Rad}_S(\mathcal{F}) = \frac{1}{m} \mathbb{E}_\sigma \left[ \sup_{f \in \mathcal{F}} \left|\sum_{i=1}^m \sigma_i f(z_i) \right| \right] This can also be written using the previous definition: \operatorname{Rad}_S(\mathcal{F}) = \operatorname{Rad}(\mathcal{F} \circ S) where \mathcal{F} \circ S denotes function composition, i.e.: \mathcal{F} \circ S := \{ (f(z_1),\ldots,f(z_m))\mid f\in \mathcal{F}\} The worst case empirical Rademacher complexity is \overline{\operatorname{Rad}}_m(\mathcal{F}) = \mathbb{E}_{S\sim P^m} \left[ \operatorname{Rad}_S(\mathcal{F}) \right] where the above expectation is taken over an identically independently distributed (i.i.d.) sample S=(z_1, z_2, \dots, z_m) generated according to P . can be rewritten as \operatorname{Rad}(A) := \frac{1}{m} \mathbb{E}_\sigma \left[ \sup_{a \in A} \sum_{i=1}^m \sigma_i a_i \right] = \frac{1}{\sqrt m 2^m} \sum_{\sigma \in \{-1/\sqrt m , +1/\sqrt m \}^m} \left[ \sup_{a \in A} \langle\sigma, a \rangle \right] . Each term in the summation is the farthest distance of the set A from the origin, along a unit-length direction \sigma . The directions are along the vertices of a hypercube. Thus, we can also write it as \operatorname{Rad}(A) = \frac{1}{2\sqrt m} \frac{1}{2^{m-1}}\sum_{\sigma \in \{-1/\sqrt m , +1/\sqrt m \}^m/\{-1, +1\}} \left[ \sup_{a \in A} \langle\sigma, a \rangle - \inf_{a \in A} \langle\sigma, a \rangle \right] Here, the set \{-1/\sqrt m , +1/\sqrt m \}^m/\{-1, +1\} denotes half of the vertices of a hypercube, selected so that each diagonal has exactly one vertex selected. .]] In words, this states that 2\sqrt{m}\operatorname{Rad}(A) is precisely the average width of the set A along all diagonal directions of a hypercube. The set A = \{(1,1),(1,2)\} \subseteq \mathbb{R}^2 has average width 1/\sqrt 2 along the two diagonal directions of the square, so it has Rademacher complexity 1/4 . The unit cube [0, 1]^m has constant width \sqrt m along the diagonal directions, so it has Rademacher complexity 1/2 . Similarly, the unit cross-polytope \{x\in\mathbb R^m : \|x\|_1 \le 1\} has constant width 2/\sqrt m along the diagonal directions, so it has Rademacher complexity 1/m . L_P(f) := \mathbb E_{z\sim P}[f(z)] – the expected error of some error function f\in \mathcal F on the real distribution P ; L_S(f) := {1\over m} \sum_{i=1}^m f(z_i) – the estimated error of some error function f\in \mathcal F on the sample S . The representativeness of the sample S , with respect to P and \mathcal F , is defined as: \operatorname{Rep}_P(\mathcal F,S) := \sup_{f\in F} (L_P(f) - L_S(f)) 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: If \mathcal F is a set of functions with range within [0, 1] , then \operatorname{Rad}_{P,m}(\mathcal{F}) - \sqrt{\frac{\ln 2}{2 m}} \leq \mathbb E_{S\sim P^m} [\operatorname{Rep}_P(\mathcal F,S)] \leq 2 \operatorname{Rad}_{P,m}(\mathcal{F}) Furthermore, the representativeness is concentrated around its expectation: For any \epsilon , with probability \geq 1 - 2e^{-2\epsilon^2 m} , \operatorname{Rep}_P(\mathcal F,S) \in \mathbb E_{S\sim P^m} [\operatorname{Rep}_P(\mathcal F,S)] \pm \epsilon There exists a constant c > 0 , such that when the error function is squared \ell(\hat y, y) := (\hat y - y)^2 , and the function class \mathcal F consists of functions with range within [-1, +1] , then for any \delta > 0 L_P(f) - L_S(f) \leq c\left[ L_S(f) + (\ln m)^4\overline{\operatorname{Rad}}_m(\mathcal F)^2 + \frac{\ln (1/\delta)}{m} \right], \quad \forall f \in \mathcal F with probability at least 1-\delta . Let the Bayes risk L^* = \inf_f L_P(f) , where f can be any measurable function. Let the function class \mathcal F be split into "complexity classes" \mathcal F_r , where r \in \R are levels of complexity. Let p_r be real numbers. Let the complexity measure function p be defined such that p(f) := \min \{p_r : f \in \mathcal F_r\} . For any dataset S , let \hat f be a minimizer of L_S(f) + p(f) . If \sup_{f \in \mathcal F_r}|L_P(f) - L_S(f)| \leq p_r, \quad \forall r then we have the oracle inequality L(\hat f) - L^* \leq \inf _r\left(\inf _{f \in \mathcal{F}_r} L(f)- L^*+2 p_r\right) Define f_r^* \in \arg \min _{f \in \mathcal{F}_r} L(f) . If we further assume r \leq s \text { implies } \mathcal{F}_r \subseteq \mathcal{F}_s \text { and } p_r \leq p_s and \begin{aligned} \forall r, \sup _{f \in \mathcal{F}_r}\left(L_P(f)-L_P\left(f_r^*\right)-2\left(L_S(f)-L_S\left(f_r^*\right)\right)\right) &\leq 2 p_r / 7 \\ \sup _{f \in \mathcal{F}_r}\left(L_S(f)-L_S\left(f_r^*\right)-2\left(L_P(f)-L_P\left(f_r^*\right)\right)\right) &\leq 2 p_r / 7 \end{aligned} then we have the oracle inequality L_P(\widehat{f})- L^* \leq \inf _r\left(\inf _{f \in \mathcal{F}_r} L_P (f)- L^* +3 p_r\right) \operatorname{Rad}(A+B) = \operatorname{Rad}(A) + \operatorname{Rad}(B) . (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 \mathbb{R}^m , and let \bar{a} be the mean of the vectors in A . Then: \operatorname{Rad}(A) \leq \max_{a\in A} \|a-\bar{a}\| \cdot {\sqrt{2\log N}\over m} In particular, if A is a set of binary vectors, the norm is at most \sqrt{m} , so: \operatorname{Rad}(A) \leq \sqrt{2\log N \over m} Define A_2 = \{(w\cdot x_1,\ldots,w\cdot x_m) \mid \|w\|_2\leq 1\} = the set of dot-products of the vectors in S with vectors in the unit ball. Then: \operatorname{Rad}(A_2) \leq {\max_i\|x_i\|_2 \over \sqrt{m}} Define A_1 = \{(w\cdot x_1,\ldots,w\cdot x_m) \mid \|w\|_1\leq 1\} = the set of dot-products of the vectors in S with vectors in the unit ball of the 1-norm. Then: \operatorname{Rad}(A_1) \leq \max_i\|x_i\|_\infty\cdot \sqrt{2\log(2n) \over m} \sum_{i=1}^M 2^{-i}\sqrt{\log\left(N^{\text{ext}}_{c\cdot 2^{-i}}(A)\right)} In particular, if A lies in a d-dimensional subspace of \mathbb{R}^m , then: \forall r>0: N^{\text{ext}}_r(A) \leq (2 c \sqrt{d}/r)^d Substituting this in the previous bound gives the following bound on the Rademacher complexity: \operatorname{Rad}(A) \leq {6c \over m}\cdot \bigg(\sqrt{d\log(2\sqrt{d})} + 2\sqrt{d}\bigg) = O\bigg({c\sqrt{d\log(d)}\over m}\bigg) ==References== Peter L. Bartlett, Shahar Mendelson (2002) Rademacher and Gaussian Complexities: Risk Bounds and Structural Results. Journal of Machine Learning Research 3 463–482 Giorgio Gnecco, Marcello Sanguineti (2008) Approximation Error Bounds via Rademacher's Complexity. Applied Mathematical Sciences, Vol. 2, 2008, no. 4, 153–176

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Rademacher complexity". 1782836636. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1361892671

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·