# Representer theorem

Jump to navigation Jump to search

In statistical learning theory, a representer theorem is any of several related results stating that a minimizer $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 ${\mathcal {X}}$ be a nonempty set and $k$ a positive-definite real-valued kernel on ${\mathcal {X}}\times {\mathcal {X}}$ with corresponding reproducing kernel Hilbert space $H_{k}$ . Given a training sample $(x_{1},y_{1}),\dotsc ,(x_{n},y_{n})\in {\mathcal {X}}\times \mathbb {R}$ , a strictly monotonically increasing real-valued function $g\colon [0,\infty )\to \mathbb {R}$ , and an arbitrary empirical risk function $E\colon ({\mathcal {X}}\times \mathbb {R} ^{2})^{n}\to \mathbb {R} \cup \lbrace \infty \rbrace$ , then for any $f^{*}\in H_{k}$ satisfying

$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 (*)$ $f^{*}$ admits a representation of the form:

$f^{*}(\cdot )=\sum _{i=1}^{n}\alpha _{i}k(\cdot ,x_{i}),$ where $\alpha _{i}\in \mathbb {R}$ for all $1\leq i\leq n$ .

Proof: Define a mapping

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

$\varphi (x)(x')=k(x',x)=\langle \varphi (x'),\varphi (x)\rangle ,$ where $\langle \cdot ,\cdot \rangle$ is the inner product on $H_{k}$ .

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

$f=\sum _{i=1}^{n}\alpha _{i}\varphi (x_{i})+v,$ where $\langle v,\varphi (x_{i})\rangle =0$ for all $i$ .

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

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

{\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 $v=0$ does not affect the first term of (*), while it strictly decreasing the second term. Consequently, any minimizer $f^{*}$ in (*) must have $v=0$ , i.e., it must be of the form

$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

{\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 $\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 $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

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

${\tilde {f}}^{*}(\cdot )=\sum _{i=1}^{n}\alpha _{i}k(\cdot ,x_{i})+\sum _{p=1}^{M}\beta _{p}\psi _{p}(\cdot )$ where $\alpha _{i},\beta _{p}\in \mathbb {R}$ and the $\beta _{p}$ are all uniquely determined.

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

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

$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

$f^{*}(\cdot )=\sum _{i=1}^{n}\alpha _{i}k(\cdot ,x_{i}),$ where $\alpha _{i}\in \mathbb {R}$ for all $1\leq i\leq n$ , if and only if there exists a nondecreasing function $h\colon [0,\infty )\to \mathbb {R}$ for which

$R(f)=h(\lVert f\rVert ).$ Effectively, this result provides a necessary and sufficient condition on a differentiable regularizer $R(\cdot )$ under which the corresponding regularized empirical risk minimization $(\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 $(\ddagger )$ . In most interesting applications, the search domain $H_{k}$ for the minimization will be an infinite-dimensional subspace of $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 $f^{*}(\cdot )$ afforded by a representer theorem reduces the original (infinite-dimensional) minimization problem to a search for the optimal $n$ -dimensional vector of coefficients $\alpha =(\alpha _{1},...,\alpha _{n})\in \mathbb {R} ^{n}$ ; $\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.