Pick a concrete input and say what the equation should give before you read the math.
Foundation reference
Reproducing Kernel Hilbert Spaces
A reproducing kernel Hilbert space is a space of functions in which evaluating a function at a point x is an inner product with the kernel centered at x. Support vector machines, kernel ridge regression and Gaussian-process regression all fit predictors that are finite combinations of kernels centered on the training points (for Gaussian-process regression, the posterior mean), plus any explicit intercept or prior mean. The coefficients are computed from the n × n matrix of kernel values on the training data (Schölkopf & Smola, 2002).
Study guide
Where to start
How can the Gaussian kernel correspond to an infinite-dimensional feature space when every computation uses only a finite matrix of kernel values?
How to study this pagePredict · Check · Generalize · Continue
Work through the math, then read the cited papers for the original argument.
Identify the part of the idea that survives a change of notation or model, so you can recognize it in another paper or system.
Use the prerequisites and related concepts at the end of the page to fill the next gap.
Why It Matters for Modern Models
- A reproducing kernel Hilbert space is a space of functions in which evaluating a function at a point x is an inner product with the kernel centered at x. Support vector machines, kernel ridge regression and Gaussian-process regression all fit predictors that are finite combinations of kernels centered on the training points (for Gaussian-process regression, the posterior mean), plus any explicit intercept or prior mean. The coefficients are computed from the n × n matrix of kernel values on the training data (Schölkopf & Smola, 2002).
- It explains why a similarity function used as a kernel must be symmetric and positive semidefinite: those are exactly the conditions under which it is an inner product in some feature space.
- In the infinite-width limit, a network trained by gradient descent behaves like kernel regression with the neural tangent kernel, so RKHS tools describe that limit (Jacot, Gabriel & Hongler, 2018).
Questions to Think About
- Why is positive semidefiniteness exactly the condition for a function k(x, x′) to be an inner product of some feature map?
- Attention can be read as a kernel smoother over tokens, with weights proportional to exp(qᵀk/√d); why is that kernel generally not symmetric, and so not a reproducing kernel in the strict sense (Tsai et al., 2019)?
Core Math
A reproducing kernel Hilbert space is a space of functions in which evaluating a function at a point is an inner product with a fixed function , the kernel centred at :
This is the reproducing property. Every symmetric, positive semidefinite kernel defines exactly one such space (the Moore–Aronszajn theorem; Aronszajn, 1950).
Kernel trick. The kernel is an inner product of feature vectors, , so an algorithm that uses only inner products can work in a very high- or infinite-dimensional feature space while computing only kernel values.
Mercer decomposition. A continuous kernel on a compact domain has an expansion in eigenfunctions with non-negative eigenvalues :
Representer theorem. If the training objective is a loss on the training points plus an increasing function of , a minimizer is a combination of kernels centred at the training points (Schölkopf & Smola, 2002):