# Reproducing kernel Hilbert space

Figure illustrates related but varying approaches to viewing RKHS

In functional analysis (a branch of mathematics), a reproducing kernel Hilbert space (RKHS) is a Hilbert space of functions in which point evaluation is a continuous linear functional. Roughly speaking, this means that if two functions ${\displaystyle f}$ and ${\displaystyle g}$ in the RKHS are close in norm, i.e., ${\displaystyle \|f-g\|}$ is small, then ${\displaystyle f}$ and ${\displaystyle g}$ are also pointwise close, i.e., ${\displaystyle |f(x)-g(x)|}$ is small for all ${\displaystyle x}$. The reverse does not need to be true.

It is not entirely straightforward to construct a Hilbert space of functions which is not an RKHS.[1] Note that L2 spaces are not Hilbert spaces of functions (and hence not RKHSs), but rather Hilbert spaces of equivalence classes of functions (for example, the functions ${\displaystyle f}$ and ${\displaystyle g}$ defined by ${\displaystyle f(x)=0}$ and ${\displaystyle g(x)=1_{\mathbb {Q} }}$ are equivalent in L2). However, there are RKHSs in which the norm is an L2-norm, such as the space of band-limited functions (see the example below).

An RKHS is associated with a kernel that reproduces every function in the space in the sense that for any ${\displaystyle x}$ in the set on which the functions are defined, "evaluation at ${\displaystyle x}$" can be performed by taking an inner product with a function determined by the kernel. Such a reproducing kernel exists if and only if every evaluation functional is continuous.

The reproducing kernel was first introduced in the 1907 work of Stanisław Zaremba concerning boundary value problems for harmonic and biharmonic functions. James Mercer simultaneously examined functions which satisfy the reproducing property in the theory of integral equations. The idea of the reproducing kernel remained untouched for nearly twenty years until it appeared in the dissertations of Gábor Szegő, Stefan Bergman, and Salomon Bochner. The subject was eventually systematically developed in the early 1950s by Nachman Aronszajn and Stefan Bergman.[2]

These spaces have wide applications, including complex analysis, harmonic analysis, and quantum mechanics. Reproducing kernel Hilbert spaces are particularly important in the field of statistical learning theory because of the celebrated representer theorem which states that every function in an RKHS that minimises an empirical risk functional can be written as a linear combination of the kernel function evaluated at the training points. This is a practically useful result as it effectively simplifies the empirical risk minimization problem from an infinite dimensional to a finite dimensional optimization problem.

For ease of understanding, we provide the framework for real-valued Hilbert spaces. The theory can be easily extended to spaces of complex-valued functions and hence include the many important examples of reproducing kernel Hilbert spaces that are spaces of analytic functions.[3]

## Definition

Let ${\displaystyle X}$ be an arbitrary set and ${\displaystyle H}$ a Hilbert space of real-valued functions on ${\displaystyle X}$. The evaluation functional over the Hilbert space of functions ${\displaystyle H}$ is a linear functional that evaluates each function at a point ${\displaystyle x}$,

${\displaystyle L_{x}:f\mapsto f(x){\text{ }}\forall f\in H.}$

We say that H is a reproducing kernel Hilbert space if, for all ${\displaystyle x}$ in ${\displaystyle X}$, ${\displaystyle L_{x}}$ is continuous at any ${\displaystyle f}$ in ${\displaystyle H}$ or, equivalently, if ${\displaystyle L_{x}}$ is a bounded operator on ${\displaystyle H}$, i.e. there exists some ${\displaystyle M_{x}>0}$ such that

${\displaystyle |L_{x}(f)|:=|f(x)|\leq M_{x}\,\|f\|_{H}\qquad \forall f\in H.\,}$

(1)

Although ${\displaystyle M_{x}<\infty }$ is assumed for all ${\displaystyle x\in X}$, it might still be the case that ${\textstyle \sup _{x}M_{x}=\infty }$.

While property (1) is the weakest condition that ensures both the existence of an inner product and the evaluation of every function in ${\displaystyle H}$ at every point in the domain, it does not lend itself to easy application in practice. A more intuitive definition of the RKHS can be obtained by observing that this property guarantees that the evaluation functional can be represented by taking the inner product of ${\displaystyle f}$ with a function ${\displaystyle K_{x}}$ in ${\displaystyle H}$. This function is the so-called reproducing kernel for the Hilbert space ${\displaystyle H}$ from which the RKHS takes its name. More formally, the Riesz representation theorem implies that for all ${\displaystyle x}$ in ${\displaystyle X}$ there exists a unique element ${\displaystyle K_{x}}$ of ${\displaystyle H}$ with the reproducing property,

${\displaystyle f(x)=L_{x}(f)=\langle f,\ K_{x}\rangle _{H}\quad \forall f\in H.}$

(2)

Since ${\displaystyle K_{x}}$ is itself a function defined on ${\displaystyle X}$ with values in the field ${\displaystyle \mathbb {R} }$ (or ${\displaystyle \mathbb {C} }$ in the case of complex Hilbert spaces) and as ${\displaystyle K_{x}}$ is in ${\displaystyle H}$ we have that

${\displaystyle K_{x}(y)=L_{y}(K_{x})=\langle K_{x},\ K_{y}\rangle _{H},}$

where ${\displaystyle K_{y}\in H}$ is the element in ${\displaystyle H}$ associated to ${\displaystyle L_{y}}$.

This allows us to define the reproducing kernel of ${\displaystyle H}$ as a function ${\displaystyle K:X\times X\to \mathbb {R} }$ by

${\displaystyle K(x,y)=\langle K_{x},\ K_{y}\rangle _{H}.}$

From this definition it is easy to see that ${\displaystyle K:X\times X\to \mathbb {R} }$ (or ${\displaystyle \mathbb {C} }$ in the complex case) is both symmetric (resp. sesquilinear) and positive definite, i.e.

${\displaystyle \sum _{i,j=1}^{n}c_{i}c_{j}K(x_{i},x_{j})=\sum _{i=1}^{n}c_{i}\left\langle K_{x_{i}},\sum _{j=1}^{n}c_{j}K_{x_{j}}\right\rangle _{H}=\left\langle \sum _{i=1}^{n}c_{i}K_{x_{i}},\sum _{j=1}^{n}c_{j}K_{x_{j}}\right\rangle _{H}=\left\|\sum _{i=1}^{n}c_{i}K_{x_{i}}\right\|_{H}^{2}\geq 0}$

for any ${\displaystyle n\in \mathbb {N} ,x_{1},\dots ,x_{n}\in X,{\text{ and }}c_{1},\dots ,c_{n}\in \mathbb {R} .}$[4] The Moore–Aronszajn theorem (see below) is a sort of converse to this: if a function ${\displaystyle K}$ satisfies these conditions then there is a Hilbert space of functions on ${\displaystyle X}$ for which it is a reproducing kernel.

## Example

The space of bandlimited continuous functions ${\displaystyle H}$ is a RKHS, as we now show. Formally, fix some cutoff frequency ${\displaystyle 0 and define the Hilbert space

${\displaystyle H=\{f\in C(\mathbb {R} )\mid \operatorname {supp} (F)\subset [-a,a]\}}$

where ${\displaystyle C(\mathbb {R} )}$ is the set of continuous functions, and ${\textstyle F(\omega )=\int _{-\infty }^{\infty }f(t)e^{-i\omega t}dt}$ is the Fourier transform of ${\displaystyle f}$.

From the Fourier inversion theorem, we have

${\displaystyle f(x)={\frac {1}{2\pi }}\int _{-a}^{a}F(\omega )e^{ix\omega }d\omega .}$

It then follows by the Cauchy–Schwarz inequality and Plancherel's theorem that, for all ${\displaystyle x}$,

${\displaystyle |f(x)|\leq {\frac {1}{2\pi }}{\sqrt {\int _{-a}^{a}2a|F(\omega )|^{2}d\omega }}={\frac {1}{\pi }}{\sqrt {{\frac {a}{2}}\int _{-\infty }^{\infty }|F(\omega )|^{2}d\omega }}={\sqrt {\frac {a}{\pi }}}\|f\|_{L^{2}}.}$

This inequality shows that the evaluation functional is bounded, proving that ${\displaystyle H}$ is indeed a RKHS.

The kernel function ${\displaystyle K_{x}}$ in this case is given by

${\displaystyle K_{x}(y)={\frac {a}{\pi }}\operatorname {sinc} (a(y-x))={\frac {\sin(a(y-x))}{\pi (y-x)}}.}$

To see this, we first note that the Fourier transform of ${\displaystyle K_{x}(y)}$ defined above is given by

${\displaystyle \int _{-\infty }^{\infty }K_{x}(y)e^{-i\omega y}dy={\begin{cases}e^{-i\omega x}&{\text{if }}\omega \in [-a,a],\\0&{\text{if }}{\textrm {otherwise}},\end{cases}}}$

which is a consequence of the time-shifting property of the Fourier transform. Consequently, using Plancherel's theorem, we have

${\displaystyle \langle f,K_{x}\rangle _{L^{2}}=\int _{-\infty }^{\infty }f(y)\cdot {\overline {K_{x}(y)}}dy={\frac {1}{2\pi }}\int _{-a}^{a}F(\omega )\cdot e^{i\omega x}d\omega =f(x).}$

Thus we obtain the reproducing property of the kernel.

Note that ${\displaystyle K_{x}}$ in this case is the "bandlimited version" of the Dirac delta function, and that ${\displaystyle K_{x}(y)}$ converges to ${\displaystyle \delta (y-x)}$ in the weak sense as the cutoff frequency ${\displaystyle a}$ tends to infinity.

## Moore–Aronszajn theorem

We have seen how a reproducing kernel Hilbert space defines a reproducing kernel function that is both symmetric and positive definite. The Moore–Aronszajn theorem goes in the other direction; it states that every symmetric, positive definite kernel defines a unique reproducing kernel Hilbert space. The theorem first appeared in Aronszajn's Theory of Reproducing Kernels, although he attributes it to E. H. Moore.

Theorem. Suppose K is a symmetric, positive definite kernel on a set X. Then there is a unique Hilbert space of functions on X for which K is a reproducing kernel.

Proof. For all x in X, define Kx = K(x, ⋅ ). Let H0 be the linear span of {Kx : xX}. Define an inner product on H0 by

${\displaystyle \left\langle \sum _{j=1}^{n}b_{j}K_{y_{j}},\sum _{i=1}^{m}a_{i}K_{x_{i}}\right\rangle _{H_{0}}=\sum _{i=1}^{m}\sum _{j=1}^{n}{a_{i}}b_{j}K(y_{j},x_{i}),}$

which implies ${\displaystyle K(x,y)=\left\langle K_{x},K_{y}\right\rangle _{H_{0}}}$. The symmetry of this inner product follows from the symmetry of K and the non-degeneracy follows from the fact that K is positive definite.

Let H be the completion of H0 with respect to this inner product. Then H consists of functions of the form

${\displaystyle f(x)=\sum _{i=1}^{\infty }a_{i}K_{x_{i}}(x)\quad {\text{where}}\quad \lim _{n\to \infty }\sup _{p\geq 0}\left\|\sum _{i=n}^{n+p}a_{i}K_{x_{i}}\right\|_{H_{0}}=0.}$

Now we can check the reproducing property (2):

${\displaystyle \langle f,K_{x}\rangle _{H}=\sum _{i=1}^{\infty }a_{i}\left\langle K_{x_{i}},K_{x}\right\rangle _{H_{0}}=\sum _{i=1}^{\infty }a_{i}K(x_{i},x)=f(x).}$

To prove uniqueness, let G be another Hilbert space of functions for which K is a reproducing kernel. For any x and y in X, (2) implies that

${\displaystyle \langle K_{x},K_{y}\rangle _{H}=K(x,y)=\langle K_{x},K_{y}\rangle _{G}.}$

By linearity, ${\displaystyle \langle \cdot ,\cdot \rangle _{H}=\langle \cdot ,\cdot \rangle _{G}}$ on the span of ${\displaystyle \{K_{x}:x\in X\}}$. Then ${\displaystyle H\subset G}$ because G is complete and contains H0 and hence contains its completion.

Now we need to prove that every element of G is in H. Let ${\displaystyle f}$ be an element of G. Since H is a closed subspace of G, we can write ${\displaystyle f=f_{H}+f_{H^{\bot }}}$ where ${\displaystyle f_{H}\in H}$ and ${\displaystyle f_{H^{\bot }}\in H^{\bot }}$. Now if ${\displaystyle x\in X}$ then, since K is a reproducing kernel of G and H:

${\displaystyle f(x)=\langle K_{x},f\rangle _{G}=\langle K_{x},f_{H}\rangle _{G}+\langle K_{x},f_{H^{\bot }}\rangle _{G}=\langle K_{x},f_{H}\rangle _{G}=\langle K_{x},f_{H}\rangle _{H}=f_{H}(x),}$

where we have used the fact that ${\displaystyle K_{x}}$ belongs to H so that its inner product with ${\displaystyle f_{H^{\bot }}}$ in G is zero. This shows that ${\displaystyle f=f_{H}}$ in G and concludes the proof.

## Integral operators and Mercer's theorem

We may characterize a symmetric positive definite kernel ${\displaystyle K}$ via the integral operator using Mercer's theorem and obtain an additional view of the RKHS. Let ${\displaystyle X}$ be a compact space equipped with a strictly positive finite Borel measure ${\displaystyle \mu }$ and ${\displaystyle K:X\times X\to \mathbb {R} }$ a continuous, symmetric, and positive definite function. Define the integral operator ${\displaystyle T_{K}:L_{2}(X)\to L_{2}(X)}$ as

${\displaystyle [T_{K}f](\cdot )=\int _{X}K(\cdot ,t)f(t)\,d\mu (t)}$

where ${\displaystyle L_{2}(X)}$ is the space of square integrable functions with respect to ${\displaystyle \mu }$.

Mercer's theorem states that the spectral decomposition of the integral operator ${\displaystyle T_{K}}$ of ${\displaystyle K}$ yields a series representation of ${\displaystyle K}$ in terms of the eigenvalues and eigenfunctions of ${\displaystyle T_{K}}$. This then implies that ${\displaystyle K}$ is a reproducing kernel so that the corresponding RKHS can be defined in terms of these eigenvalues and eigenfunctions. We provide the details below.

Under these assumptions ${\displaystyle T_{K}}$ is a compact, continuous, self-adjoint, and positive operator. The spectral theorem for self-adjoint operators implies that there is an at most countable decreasing sequence ${\displaystyle (\sigma _{i})_{i}\geq 0}$ such that ${\textstyle \lim _{i\to \infty }\sigma _{i}=0}$ and ${\displaystyle T_{K}\phi _{i}(x)=\sigma _{i}\phi _{i}(x)}$, where the ${\displaystyle \{\phi _{i}\}}$ form an orthonormal basis of ${\displaystyle L_{2}(X)}$. By the positivity of ${\displaystyle T_{K},\sigma _{i}>0}$ for all ${\displaystyle i.}$ One can also show that ${\displaystyle T_{K}}$ maps continuously into the space of continuous functions ${\displaystyle C(X)}$ and therefore we may choose continuous functions as the eigenvectors, that is, ${\displaystyle \phi _{i}\in C(X)}$ for all ${\displaystyle i.}$ Then by Mercer's theorem ${\displaystyle K}$ may be written in terms of the eigenvalues and continuous eigenfunctions as

${\displaystyle K(x,y)=\sum _{j=1}^{\infty }\sigma _{j}\,\phi _{j}(x)\,\phi _{j}(y)}$

for all ${\displaystyle x,y\in X}$ such that

${\displaystyle \lim _{n\to \infty }\sup _{u,v}\left|K(u,v)-\sum _{j=1}^{n}\sigma _{j}\,\phi _{j}(u)\,\phi _{j}(v)\right|=0.}$

This above series representation is referred to as a Mercer kernel or Mercer representation of ${\displaystyle K}$.

Furthermore, it can be shown that the RKHS ${\displaystyle H}$ of ${\displaystyle K}$ is given by

${\displaystyle H=\left\{f\in L_{2}(X)\left|\sum _{i=1}^{\infty }{\frac {\left\langle f,\phi _{i}\right\rangle _{L_{2}}^{2}}{\sigma _{i}}}<\infty \right.\right\}}$

where the inner product of ${\displaystyle H}$ given by

${\displaystyle \left\langle f,g\right\rangle _{H}=\sum _{i=1}^{\infty }{\frac {\left\langle f,\phi _{i}\right\rangle _{L_{2}}\left\langle g,\phi _{i}\right\rangle _{L_{2}}}{\sigma _{i}}}.}$

This representation of the RKHS has application in probability and statistics, for example to the Karhunen-Loève representation for stochastic processes and kernel PCA.

## Feature maps

A feature map is a map ${\displaystyle \varphi \colon X\rightarrow F}$, where ${\displaystyle F}$ is a Hilbert space which we will call the feature space. The first sections presented the connection between bounded/continuous evaluation functions, positive definite functions, and integral operators and in this section we provide another representation of the RKHS in terms of feature maps.

We first note that every feature map defines a kernel via

${\displaystyle K(x,y)=\langle \varphi (x),\varphi (y)\rangle _{F}.}$

(3)

Clearly ${\displaystyle K}$ is symmetric and positive definiteness follows from the properties of inner product in ${\displaystyle F}$. Conversely, every positive definite function and corresponding reproducing kernel Hilbert space has infinitely many associated feature maps such that (3) holds.

For example, we can trivially take ${\displaystyle F=H}$ and ${\displaystyle \varphi (x)=K_{x}}$ for all ${\displaystyle x\in X}$. Then (3) is satisfied by the reproducing property. Another classical example of a feature map relates to the previous section regarding integral operators by taking ${\displaystyle F=\ell ^{2}}$ and ${\displaystyle \varphi (x)=({\sqrt {\sigma _{i}}}\phi _{i}(x))_{i}}$.

This connection between kernels and feature maps provides us with a new way to understand positive definite functions and hence reproducing kernels as inner products in ${\displaystyle H}$. Moreover, every feature map can naturally define a RKHS by means of the definition of a positive definite function.

Lastly, feature maps allow us to construct function spaces that reveal another perspective on the RKHS. Consider the linear space

${\displaystyle H_{\varphi }=\{f:X\to \mathbb {R} |\exists w\in F,f(x)=\langle w,\varphi (x)\rangle _{F},\forall {\text{ }}x\in X\}.}$

We can define a norm on ${\displaystyle H_{\varphi }}$ by

${\displaystyle \|f\|_{\varphi }=\inf\{\|w\|_{F}:w\in F,f(x)=\langle w,\varphi (x)\rangle _{F},\forall {\text{ }}x\in X\}.}$

It can be shown that ${\displaystyle H_{\varphi }}$ is a RKHS with kernel defined by ${\displaystyle K(x,y)=\langle \varphi (x),\varphi (y)\rangle _{F}}$. This representation implies that the elements of the RKHS are inner products of elements in the feature space and can accordingly be seen as hyperplanes. This view of the RKHS is related to the kernel trick in machine learning.[5]

## Properties

The following properties of RKHSs may be useful to readers.

• Let ${\displaystyle (X_{i})_{i=1}^{p}}$ be a sequence of sets and ${\displaystyle (K_{i})_{i=1}^{p}}$ be a collection of corresponding positive definite functions on ${\displaystyle (X_{i})_{i=1}^{p}.}$ It then follows that
${\displaystyle K((x_{1},\ldots ,x_{p}),(y_{1},\ldots ,y_{p}))=K_{1}(x_{1},y_{1})\cdots K_{p}(x_{p},y_{p})}$
is a kernel on ${\displaystyle X=X_{1}\times \dots \times X_{p}.}$
• Let ${\displaystyle X_{0}\subset X,}$ then the restriction of ${\displaystyle K}$ to ${\displaystyle X_{0}\times X_{0}}$ is also a reproducing kernel.
• Consider a normalized kernel ${\displaystyle K}$ such that ${\displaystyle K(x,x)=1}$ for all ${\displaystyle x\in X}$. Define a pseudo-metric on X as
${\displaystyle d_{K}(x,y)=\|K_{x}-K_{y}\|_{H}^{2}=2(1-K(x,y))\qquad \forall x\in X.}$
By the Cauchy–Schwarz inequality,
${\displaystyle K(x,y)^{2}\leq K(x,x)K(y,y)=1\qquad \forall x,y\in X.}$
This inequality allows us to view ${\displaystyle K}$ as a measure of similarity between inputs. If ${\displaystyle x,y\in X}$ are similar then ${\displaystyle K(x,y)}$ will be closer to 1 while if ${\displaystyle x,y\in X}$ are dissimilar then ${\displaystyle K(x,y)}$ will be closer to 0.
• The closure of the span of ${\displaystyle \{K_{x}\mid x\in X\}}$ coincides with ${\displaystyle H}$.[6]

## Common examples

### Bilinear kernels

${\displaystyle K(x,y)=\langle x,y\rangle }$

The RKHS ${\displaystyle H}$ corresponding to this kernel is the dual space, consisting of functions ${\displaystyle f(x)=\langle x,\beta \rangle }$ satisfying ${\displaystyle \|f\|_{H}^{2}=\|\beta \|^{2}}$.

### Polynomial kernels

${\displaystyle K(x,y)=(\alpha \langle x,y\rangle +1)^{d},\qquad \alpha \in \mathbb {R} ,d\in \mathbb {N} }$

These are another common class of kernels which satisfy ${\displaystyle K(x,y)=K(\|x-y\|)}$. Some examples include:

• Gaussian or squared exponential kernel:
${\displaystyle K(x,y)=e^{-{\frac {\|x-y\|^{2}}{2\sigma ^{2}}}},\qquad \sigma >0}$
• Laplacian Kernel:
${\displaystyle K(x,y)=e^{-{\frac {\|x-y\|}{\sigma }}},\qquad \sigma >0}$
The squared norm of a function ${\displaystyle f}$ in the RKHS ${\displaystyle H}$ with this kernel is:[7]
${\displaystyle \|f\|_{H}^{2}=\int f(x)^{2}dx+\int f'(x)^{2}dx}$.

### Bergman kernels

We also provide examples of Bergman kernels. Let X be finite and let H consist of all complex-valued functions on X. Then an element of H can be represented as an array of complex numbers. If the usual inner product is used, then Kx is the function whose value is 1 at x and 0 everywhere else, and ${\displaystyle K(x,y)}$ can be thought of as an identity matrix since

${\displaystyle K(x,y)={\begin{cases}1&x=y\\0&x\neq y\end{cases}}}$

In this case, H is isomorphic to ${\displaystyle \mathbb {C} ^{n}}$.

The case of ${\displaystyle X=\mathbb {D} }$ (where ${\displaystyle \mathbb {D} }$ denotes the unit disc) is more sophisticated. Here the Bergman space ${\displaystyle H^{2}(\mathbb {D} )}$ is the space of square-integrable holomorphic functions on ${\displaystyle \mathbb {D} }$. It can be shown that the reproducing kernel for ${\displaystyle H^{2}(\mathbb {D} )}$ is

${\displaystyle K(x,y)={\frac {1}{\pi }}{\frac {1}{(1-x{\overline {y}})^{2}}}.}$

Lastly, the space of band limited functions in ${\displaystyle L^{2}(\mathbb {R} )}$ with bandwidth ${\displaystyle 2a}$ are a RKHS with reproducing kernel

${\displaystyle K(x,y)={\frac {\sin a(x-y)}{\pi (x-y)}}.}$

## Extension to vector-valued functions

In this section we extend the definition of the RKHS to spaces of vector-valued functions as this extension is particularly important in multi-task learning and manifold regularization. The main difference is that the reproducing kernel ${\displaystyle \Gamma }$ is a symmetric function that is now a positive semi-definite matrix for any ${\displaystyle x,y}$ in ${\displaystyle X}$. More formally, we define a vector-valued RKHS (vvRKHS) as a Hilbert space of functions ${\displaystyle f:X\to \mathbb {R} ^{T}}$ such that for all ${\displaystyle c\in \mathbb {R} ^{T}}$ and ${\displaystyle x\in X}$

${\displaystyle \Gamma _{x}c(y)=\Gamma (x,y)c\in H{\text{ for }}y\in X}$

and

${\displaystyle \langle f,\Gamma _{x}c\rangle _{H}=f(x)^{\intercal }c.}$

This second property parallels the reproducing property for the scalar-valued case. We note that this definition can also be connected to integral operators, bounded evaluation functions, and feature maps as we saw for the scalar-valued RKHS. We can equivalently define the vvRKHS as a vector-valued Hilbert space with a bounded evaluation functional and show that this implies the existence of a unique reproducing kernel by the Riesz Representation theorem. Mercer's theorem can also be extended to address the vector-valued setting and we can therefore obtain a feature map view of the vvRKHS. Lastly, it can also be shown that the closure of the span of ${\displaystyle \{\Gamma _{x}c:x\in X,c\in \mathbb {R} ^{T}\}}$ coincides with ${\displaystyle H}$, another property similar to the scalar-valued case.

We can gain intuition for the vvRKHS by taking a component-wise perspective on these spaces. In particular, we find that every vvRKHS is isometrically isomorphic to a scalar-valued RKHS on a particular input space. Let ${\displaystyle \Lambda =\{1,\dots ,T\}}$. Consider the space ${\displaystyle X\times \Lambda }$ and the corresponding reproducing kernel

${\displaystyle \gamma :X\times \Lambda \times X\times \Lambda \to \mathbb {R} .}$

(4)

As noted above, the RKHS associated to this reproducing kernel is given by the closure of the span of ${\displaystyle \{\gamma _{(x,t)}:x\in X,t\in \Lambda \}}$ where ${\displaystyle \gamma _{(x,t)}(y,s)=\gamma ((x,t),(y,s))}$ for every set of pairs ${\displaystyle (x,t),(y,s)\in X\times \Lambda }$.

The connection to the scalar-valued RKHS can then be made by the fact that every matrix-valued kernel can be identified with a kernel of the form of (4) via

${\displaystyle \Gamma (x,y)_{(t,s)}=\gamma ((x,t),(y,s)).}$

Moreover, every kernel with the form of (4) defines a matrix-valued kernel with the above expression. Now letting the map ${\displaystyle D:H_{\Gamma }\to H_{\gamma }}$ be defined as

${\displaystyle (Df)(x,t)=\langle f(x),e_{t}\rangle _{\mathbb {R} ^{T}}}$

where ${\displaystyle e_{t}}$ is the ${\displaystyle t^{th}}$ component of the canonical basis for ${\displaystyle \mathbb {R} ^{T}}$, one can show that ${\displaystyle D}$ is bijective and an isometry between ${\displaystyle H_{\Gamma }}$ and ${\displaystyle H_{\gamma }}$.

While this view of the vvRKHS can be useful in multi-task learning, this isometry does not reduce the study of the vector-valued case to that of the scalar-valued case. In fact, this isometry procedure can make both the scalar-valued kernel and the input space too difficult to work with in practice as properties of the original kernels are often lost.[8][9][10]

An important class of matrix-valued reproducing kernels are separable kernels which can factorized as the product of a scalar valued kernel and a ${\displaystyle T}$-dimensional symmetric positive semi-definite matrix. In light of our previous discussion these kernels are of the form

${\displaystyle \gamma ((x,t),(y,s))=K(x,y)K_{T}(t,s)}$

for all ${\displaystyle x,y}$ in ${\displaystyle X}$ and ${\displaystyle t,s}$ in ${\displaystyle T}$. As the scalar-valued kernel encodes dependencies between the inputs, we can observe that the matrix-valued kernel encodes dependencies among both the inputs and the outputs.

We lastly remark that the above theory can be further extended to spaces of functions with values in function spaces but obtaining kernels for these spaces is a more difficult task.[11]

## Connection between RKHS with ReLU function

The ReLU function is commonly defined as ${\displaystyle f(x)=\max(0,x)}$ and is a mainstay in the architecture of neural networks where it is used as an activation function. One can construct a ReLU-like nonlinear function using the theory of reproducing kernel hilbert spaces. Below, we derive this construction and show how it implies the representation power of neural networks with ReLU activations.

We will work with the Hilbert space ${\displaystyle {\mathcal {H}}=C^{1}[0,\infty )}$ of absolutely continuous functions with inner product

${\displaystyle \langle f,g\rangle _{\mathcal {H}}=\int _{0}^{\infty }f'(x)g'(x)dx.}$

Let ${\displaystyle f\in C^{1}[0,\infty )}$ and ${\displaystyle f(0)=0}$. We begin by constructing the reproducing kernel via the Fundamental Theorem of Calculus,

${\displaystyle f(y)=\int _{0}^{y}f'(x)dx=\int _{0}^{\infty }G(x,y)f'(x)dx=\langle K_{y}(\cdot ),f\rangle }$

where

${\displaystyle G(x,y)={\begin{cases}1,&x

and

${\displaystyle K_{y}^{\prime }(x)=G(x,y),K_{y}(0)=0}$

This implies ${\displaystyle K_{y}=K(\cdot ,y)}$ reproduces ${\displaystyle f}$, and we can write down its general form as

${\displaystyle K(x,y)=K_{y}(x)=\int _{0}^{x}G(z,y)dz={\begin{cases}x,&0\leq x

By taking the limit ${\displaystyle y\to \infty }$, we obtain the ReLU function,

${\displaystyle K_{\infty }(x)={\begin{cases}x,&{\text{if }}x\geq 0\\0,&{\text{otherwise}}\end{cases}}=\operatorname {ReLU} (x)}$

Using this formulation, we can apply the Representer theorem to the RKHS, letting one prove the optimality of using ReLU activations in neural network settings.

## Notes

1. ^ Alpay, D., and T. M. Mills. "A family of Hilbert spaces which are not reproducing kernel Hilbert spaces." J. Anal. Appl. 1.2 (2003): 107–111.
2. ^ Okutmustur
3. ^ Paulson
4. ^ Durrett
5. ^ Rosasco
6. ^ Rosasco
7. ^ Berlinet, Alain and Thomas, Christine. Reproducing kernel Hilbert spaces in Probability and Statistics, Kluwer Academic Publishers, 2004
8. ^ De Vito
9. ^ Zhang
10. ^ Alvarez
11. ^ Rosasco

## References

• Alvarez, Mauricio, Rosasco, Lorenzo and Lawrence, Neil, “Kernels for Vector-Valued Functions: a Review,” https://arxiv.org/abs/1106.6251, June 2011.
• Aronszajn, Nachman (1950). "Theory of Reproducing Kernels". Transactions of the American Mathematical Society. 68 (3): 337–404. doi:10.1090/S0002-9947-1950-0051437-7. JSTOR 1990404. MR 0051437.
• Berlinet, Alain and Thomas, Christine. Reproducing kernel Hilbert spaces in Probability and Statistics, Kluwer Academic Publishers, 2004.
• 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.
• De Vito, Ernest, Umanita, Veronica, and Villa, Silvia. "An extension of Mercer theorem to vector-valued measurable kernels," arXiv:1110.4017, June 2013.
• Durrett, Greg. 9.520 Course Notes, Massachusetts Institute of Technology, https://www.mit.edu/~9.520/scribe-notes/class03_gdurett.pdf, February 2010.
• Kimeldorf, George; Wahba, Grace (1971). "Some results on Tchebycheffian Spline Functions" (PDF). Journal of Mathematical Analysis and Applications. 33 (1): 82–95. doi:10.1016/0022-247X(71)90184-3. MR 0290013.
• Okutmustur, Baver. “Reproducing Kernel Hilbert Spaces,” M.S. dissertation, Bilkent University, http://www.thesis.bilkent.edu.tr/0002953.pdf, August 2005.
• Paulsen, Vern. “An introduction to the theory of reproducing kernel Hilbert spaces,” http://www.math.uh.edu/~vern/rkhs.pdf.
• Steinwart, Ingo; Scovel, Clint (2012). "Mercer's theorem on general domains: On the interaction between measures, kernels, and RKHSs". Constr. Approx. 35 (3): 363–417. doi:10.1007/s00365-012-9153-3. MR 2914365.
• Rosasco, Lorenzo and Poggio, Thomas. "A Regularization Tour of Machine Learning – MIT 9.520 Lecture Notes" Manuscript, Dec. 2014.
• Wahba, Grace, Spline Models for Observational Data, SIAM, 1990.
• Zhang, Haizhang; Xu, Yuesheng; Zhang, Qinghui (2012). "Refinement of Operator-valued Reproducing Kernels" (PDF). Journal of Machine Learning Research. 13: 91–136.