# Representer theorem

Jump to: navigation, search

In statistical learning theory, a representer theorem is any of several related results stating that a minimizer ${\displaystyle f^{*}}$ of a regularized empirical risk function defined over a reproducing kernel Hilbert space can be represented as a finite linear combination of kernel products evaluated on the input points in the training set data.

## Formal Statement

The following Representer Theorem and its proof are due to Schölkopf, Herbrich, and Smola:

Theorem: Let ${\displaystyle {\mathcal {X}}}$ be a nonempty set and ${\displaystyle k}$ a positive-definite real-valued kernel on ${\displaystyle {\mathcal {X}}\times {\mathcal {X}}}$ with corresponding reproducing kernel Hilbert space ${\displaystyle H_{k}}$. Given a training sample ${\displaystyle (x_{1},y_{1}),\dotsc ,(x_{n},y_{n})\in {\mathcal {X}}\times \mathbb {R} }$, a strictly monotonically increasing real-valued function ${\displaystyle g\colon [0,\infty )\to \mathbb {R} }$, and an arbitrary empirical risk function ${\displaystyle E\colon ({\mathcal {X}}\times \mathbb {R} ^{2})^{n}\to \mathbb {R} \cup \lbrace \infty \rbrace }$, then for any ${\displaystyle f^{*}\in H_{k}}$ satisfying

${\displaystyle f^{*}=\operatorname {argmin} _{f\in H_{k}}\left\lbrace E\left((x_{1},y_{1},f(x_{1})),...,(x_{n},y_{n},f(x_{n}))\right)+g\left(\lVert f\rVert \right)\right\rbrace ,\quad (*)}$

${\displaystyle f^{*}}$ admits a representation of the form:

${\displaystyle f^{*}(\cdot )=\sum _{i=1}^{n}\alpha _{i}k(\cdot ,x_{i}),}$

where ${\displaystyle \alpha _{i}\in \mathbb {R} }$ for all ${\displaystyle 1\leq i\leq n}$.

Proof: Define a mapping

{\displaystyle {\begin{aligned}\varphi \colon {\mathcal {X}}&\to \mathbb {R} ^{\mathcal {X}}\\\varphi (x)&=k(\cdot ,x)\end{aligned}}}

(so that ${\displaystyle \varphi (x)=k(\cdot ,x)}$ is itself a map ${\displaystyle {\mathcal {X}}\to \mathbb {R} }$). Since ${\displaystyle k}$ is a reproducing kernel, then

${\displaystyle \varphi (x)(x')=k(x',x)=\langle \varphi (x'),\varphi (x)\rangle ,}$

where ${\displaystyle \langle \cdot ,\cdot \rangle }$ is the inner product on ${\displaystyle H_{k}}$.

Given any ${\displaystyle x_{1},...,x_{n}}$, one can use orthogonal projection to decompose any ${\displaystyle f\in H_{k}}$ into a sum of two functions, one lying in ${\displaystyle \operatorname {span} \left\lbrace \varphi (x_{1}),...,\varphi (x_{n})\right\rbrace }$, and the other lying in the orthogonal complement:

${\displaystyle f=\sum _{i=1}^{n}\alpha _{i}\varphi (x_{i})+v,}$

where ${\displaystyle \langle v,\varphi (x_{i})\rangle =0}$ for all ${\displaystyle i}$.

The above orthogonal decomposition and the reproducing property together show that applying ${\displaystyle f}$ to any training point ${\displaystyle x_{j}}$ produces

${\displaystyle f(x_{j})=\left\langle \sum _{i=1}^{n}\alpha _{i}\varphi (x_{i})+v,\varphi (x_{j})\right\rangle =\sum _{i=1}^{n}\alpha _{i}\langle \varphi (x_{i}),\varphi (x_{j})\rangle ,}$

which we observe is independent of ${\displaystyle v}$. Consequently, the value of the empirical risk ${\displaystyle E}$ in (*) is likewise independent of ${\displaystyle v}$. For the second term (the regularization term), since ${\displaystyle v}$ is orthogonal to ${\displaystyle \sum _{i=1}^{n}\alpha _{i}\varphi (x_{i})}$ and ${\displaystyle g}$ is strictly monotonic, we have

{\displaystyle {\begin{aligned}g\left(\lVert f\rVert \right)&=g\left(\lVert \sum _{i=1}^{n}\alpha _{i}\varphi (x_{i})+v\rVert \right)\\&=g\left({\sqrt {\lVert \sum _{i=1}^{n}\alpha _{i}\varphi (x_{i})\rVert ^{2}+\lVert v\rVert ^{2}}}\right)\\&\geq g\left(\lVert \sum _{i=1}^{n}\alpha _{i}\varphi (x_{i})\rVert \right).\end{aligned}}}

Therefore setting ${\displaystyle v=0}$ does not affect the first term of (*), while it strictly decreasing the second term. Consequently, any minimizer ${\displaystyle f^{*}}$ in (*) must have ${\displaystyle v=0}$, i.e., it must be of the form

${\displaystyle f^{*}(\cdot )=\sum _{i=1}^{n}\alpha _{i}\varphi (x_{i})=\sum _{i=1}^{n}\alpha _{i}k(\cdot ,x_{i}),}$

which is the desired result.

## Generalizations

The Theorem stated above is a particular example of a family of results that are collectively referred to as "representer theorems"; here we describe several such.

The first statement of a representer theorem was due to Kimeldorf and Wahba for the special case in which

{\displaystyle {\begin{aligned}E\left((x_{1},y_{1},f(x_{1})),...,(x_{n},y_{n},f(x_{n}))\right)&={\frac {1}{n}}\sum _{i=1}^{n}(f(x_{i})-y_{i})^{2},\\g(\lVert f\rVert )&=\lambda \lVert f\rVert ^{2}\end{aligned}}}

for ${\displaystyle \lambda >0}$. Schölkopf, Herbrich, and Smola generalized this result by relaxing the assumption of the squared-loss cost and allowing the regularizer to be any strictly monotonically increasing function ${\displaystyle g(\cdot )}$ of the Hilbert space norm.

It is possible to generalize further by augmenting the regularized empirical risk function through the addition of unpenalized offset terms. For example, Schölkopf, Herbrich, and Smola also consider the minimization

${\displaystyle {\tilde {f}}^{*}=\operatorname {argmin} \left\lbrace E\left((x_{1},y_{1},{\tilde {f}}(x_{1})),...,(x_{n},y_{n},{\tilde {f}}(x_{n}))\right)+g\left(\lVert f\rVert \right)\mid {\tilde {f}}=f+h\in H_{k}\oplus \operatorname {span} \lbrace \psi _{p}\mid 1\leq p\leq M\rbrace \right\rbrace ,\quad (\dagger )}$

i.e., we consider functions of the form ${\displaystyle {\tilde {f}}=f+h}$, where ${\displaystyle f\in H_{k}}$ and ${\displaystyle h}$ is an unpenalized function lying in the span of a finite set of real-valued functions ${\displaystyle \lbrace \psi _{p}\colon {\mathcal {X}}\to \mathbb {R} \mid 1\leq p\leq M\rbrace }$. Under the assumption that the ${\displaystyle m\times M}$ matrix ${\displaystyle \left(\psi _{p}(x_{i})\right)_{ip}}$ has rank ${\displaystyle M}$, they show that the minimizer ${\displaystyle {\tilde {f}}^{*}}$ in ${\displaystyle (\dagger )}$ admits a representation of the form

${\displaystyle {\tilde {f}}^{*}(\cdot )=\sum _{i=1}^{n}\alpha _{i}k(\cdot ,x_{i})+\sum _{p=1}^{M}\beta _{p}\psi _{p}(\cdot )}$

where ${\displaystyle \alpha _{i},\beta _{p}\in \mathbb {R} }$ and the ${\displaystyle \beta _{p}}$ are all uniquely determined.

The conditions under which a representer theorem exists were investigated by Argyriou, Miccheli, and Pontil, who proved the following:

Theorem: Let ${\displaystyle {\mathcal {X}}}$ be a nonempty set, ${\displaystyle k}$ a positive-definite real-valued kernel on ${\displaystyle {\mathcal {X}}\times {\mathcal {X}}}$ with corresponding reproducing kernel Hilbert space ${\displaystyle H_{k}}$, and let ${\displaystyle R\colon H_{k}\to \mathbb {R} }$ be a differentiable regularization function. Then given a training sample ${\displaystyle (x_{1},y_{1}),...,(x_{n},y_{n})\in {\mathcal {X}}\times \mathbb {R} }$ and an arbitrary empirical risk function ${\displaystyle E\colon ({\mathcal {X}}\times \mathbb {R} ^{2})^{m}\to \mathbb {R} \cup \lbrace \infty \rbrace }$, a minimizer

${\displaystyle f^{*}=\operatorname {argmin} _{f\in H_{k}}\left\lbrace E\left((x_{1},y_{1},f(x_{1})),...,(x_{n},y_{n},f(x_{n}))\right)+R(f)\right\rbrace \quad (\ddagger )}$

of the regularized empirical risk minimization problem admits a representation of the form

${\displaystyle f^{*}(\cdot )=\sum _{i=1}^{n}\alpha _{i}k(\cdot ,x_{i}),}$

where ${\displaystyle \alpha _{i}\in \mathbb {R} }$ for all ${\displaystyle 1\leq i\leq n}$, if and only if there exists a nondecreasing function ${\displaystyle h\colon [0,\infty )\to \mathbb {R} }$ for which

${\displaystyle R(f)=h(\lVert f\rVert ).}$

Effectively, this result provides a necessary and sufficient condition on a differentiable regularizer ${\displaystyle R(\cdot )}$ under which the corresponding regularized empirical risk minimization ${\displaystyle (\ddagger )}$ will have a representer theorem. In particular, this shows that a broad class of regularized risk minimizations (much broader than those originally considered by Kimeldorf and Wahba) have representer theorems.

## Applications

Representer theorems are useful from a practical standpoint because they dramatically simplify the regularized empirical risk minimization problem ${\displaystyle (\ddagger )}$. In most interesting applications, the search domain ${\displaystyle H_{k}}$ for the minimization will be an infinite-dimensional subspace of ${\displaystyle L^{2}({\mathcal {X}})}$, and therefore the search (as written) does not admit implementation on finite-memory and finite-precision computers. In contrast, the representation of ${\displaystyle f^{*}(\cdot )}$ afforded by a representer theorem reduces the original (infinite-dimensional) minimization problem to a search for the optimal ${\displaystyle n}$-dimensional vector of coefficients ${\displaystyle \alpha =(\alpha _{1},...,\alpha _{n})\in \mathbb {R} ^{n}}$; ${\displaystyle \alpha }$ can then be obtained by applying any standard function minimization algorithm. Consequently, representer theorems provide the theoretical basis for the reduction of the general machine learning problem to algorithms that can actually be implemented on computers in practice.

## References

• Argyriou, Andreas; Micchelli, Charles A.; Pontil, Massimiliano (2009). "When Is There a Representer Theorem? Vector Versus Matrix Regularizers". Journal of Machine Learning Research. 10 (Dec): 2507–2529.
• Cucker, Felipe; Smale, Steve (2002). "On the Mathematical Foundations of Learning". Bulletin of the American Mathematical Society. 39 (1): 1–49. doi:10.1090/S0273-0979-01-00923-5. MR 1864085.
• Kimeldorf, George S.; Wahba, Grace (1970). "A correspondence between Bayesian estimation on stochastic processes and smoothing by splines". The Annals of Mathematical Statistics. 41 (2): 495–502. doi:10.1214/aoms/1177697089.
• Schölkopf, Bernhard; Herbrich, Ralf; Smola, Alex J. (2001). "A Generalized Representer Theorem". Computational Learning Theory. Lecture Notes in Computer Science. 2111: 416–426. doi:10.1007/3-540-44581-1_27. ISBN 978-3-540-42343-0.