Arthur Gretton 2026-11-05
Arthur Gretton coauthored an exposition of Reproducing kernel Hilbert spaces with Dino Sejdinovic. Their notes explain how a positive-definite kernel determines a Hilbert space and how Mercer's theorem supplies an eigenfunction expansion under compactness assumptions. This makes it possible to represent functions through kernel evaluations or spectral coordinates.[ref]
Dino Sejdinovic 2026-11-05
Dino Sejdinovic coauthored notes on Reproducing kernel Hilbert spaces with Arthur Gretton. They develop the correspondence between positive-definite kernels and Hilbert spaces of functions, including Mercer's theorem. The reproducing property turns point evaluation into an inner product, connecting function-space geometry with computable kernel values.[ref]
Mercer kernel Created 2026-10-06 Updated 2026-10-25
In the compact-domain spectral setting, a Mercer kernel is a continuous symmetric positive-semidefinite kernel on a compact space equipped with a finite full-support measure. Mercer's theorem yields nonnegative eigenvalues and an expansion , giving features in . The finite-Gram positivity condition on arbitrary domains is more general than these spectral hypotheses; all such kernels still have a Reproducing kernel Hilbert space realization.
Mercer's theorem Created 2026-09-28 Updated 2026-11-05
Let be a compact metric space, let be a finite Borel measure whose support of a measure is all of , and let be a continuous Hermitian positive-semidefinite kernel. The integral operator
is a positive compact operator on . Its strictly positive eigenvalues have orthonormal eigenfunctions with continuous representatives , and Mercer's theorem gives
The series converges uniformly on and absolutely at every pair of points. These measure and support assumptions specify where the eigenfunction expansion reconstructs the original kernel.[ref]
For why full support of a measure matters, take , , and with all other values zero. This continuous positive-semidefinite kernel gives the zero integral operator on , so its eigenfunctions cannot recover the value at the unmeasured point1. For a full-support measure, integration of the diagonal expansion instead gives . This connects the trace-class operator trace to the diagonal of its continuous integral kernel.
A kernel support vector machine constructs a large-margin classifier in a feature Hilbert space. Given training points and labels , choose a feature map and an affine score . Prediction is the sign of the score. Normalizing the functional margin to one makes the closest separating geometric margin , and the full margin between the two supporting hyperplanes is . Maximizing that margin therefore minimizes .
For separable data, the hard-margin support vector machine primal is
Noisy or nonseparable data use slack variables and the soft-margin support vector machine:
Eliminating gives the equivalent hinge loss objective . The parameter balances margin size against violations; it is not a hard bound on their number. The bias is unpenalized here, which determines the equality constraint in the dual.
Attach multipliers to and to . The Lagrangian is
Stationarity gives , and . Eliminating yields
where is a positive-definite kernel, meaning positive semidefinite Gram matrices. The hard-margin dual is the same objective with only , without the upper bound. Soft-margin strict feasibility follows by taking and all , so strong duality and the Karush-Kuhn-Tucker conditions apply. For separable hard-margin data a separator can be rescaled to give strict margins, supplying the analogous qualification. Although the feature space may be infinite dimensional, projecting onto the finite span of the training feature vectors preserves scores and cannot increase its norm, so this optimization reduces to a finite span.
The complementary slackness relations are
Points with are support vectors. If , then and ; such a point gives . A point with can lie inside the margin or be misclassified, while contributes no term to . If no coefficient lies strictly between the bounds, an admissible bias must be obtained from the KKT inequalities, rather than dividing by a nonexistent margin vector. Bias and dual coefficients can be nonunique even when the optimal feature-space weight is unique.
The kernel trick operates both during training and prediction. The dual optimization uses only the Gram matrix , so the feature vectors need not be formed. Prediction likewise uses
A nonlinear kernel therefore makes a linear separator in feature space represent a nonlinear boundary in input space. For example, on the degree-two polynomial kernel corresponds to . Gaussian kernels yield infinite-dimensional feature spaces. An arbitrary similarity is not automatically a valid kernel: for every finite collection and real coefficients , one needs . This makes the dual quadratic form positive semidefinite and the maximization concave.
Mercer's theorem gives a spectral realization under its additional analytic hypotheses. For a continuous symmetric positive-semidefinite kernel on a compact domain with a finite full-support measure, the integral operator is compact, self-adjoint and positive. The Mercer expansion is
with the standard uniform convergence conclusions under these hypotheses. Since , the nonlinear feature map
is well defined. This explains the connection of Mercer kernels to Hilbert space features, rather than treating the kernel trick as a purely formal substitution.
The finite-Gram positivity condition is more general than this compact-domain spectral theorem. Every such kernel generates a Reproducing kernel Hilbert space: on finite sums of kernel sections define
quotient out zero-norm elements, and complete. The resulting space satisfies the reproducing property . Its canonical feature map is , whose inner product is exactly . A feature map need not be injective; calling it an embedding does not by itself prove distinct inputs remain distinct. The kernel support vector machine uses this geometry together with convex duality to fit and evaluate a maximum-margin classifier while accessing the geometry only through kernel evaluations.
The Karhunen–Loève expansion has the following Hilbert-space form. Let be a square-integrable Random element of a Hilbert space , with mean and covariance operator . There are nonnegative eigenvalues and orthonormal eigenvectors spanning the closure of the range of such that
in . The functional principal component scores
satisfy
If is a Gaussian random element, the scores are independent normal random variables.
For the proof, is positive, self-adjoint, and trace-class, with
It is therefore compact, so the spectral theorem for compact Hermitian operators supplies the eigenpairs. Their score covariance is
For the residual , Parseval identity and the trace formula give
The centered variable's projection onto has zero second moment and is therefore zero almost surely, which completes the mean-square expansion. When has a continuous covariance kernel, Mercer's theorem additionally expands that kernel as .