Reproducing Kernel Hilbert Space, Mercer's Theorem, Eigenfunctions, Nyström Method, and Use of Kernels in Machine Learning: Tutorial and Survey

Benyamin Ghojogh, Ali Ghodsi, Fakhri Karray, Mark CrowleyarXiv 2021

Introduction

In machine learning, the "kernel trick" is frequently used as a "black box" to handle non-linear data by implicitly mapping it to a higher-dimensional space. However, the underlying mathematical machinery—Reproducing Kernel Hilbert Spaces (RKHS), eigenfunctions, and integral operators—is often buried in dense functional analysis textbooks. This paper serves as a comprehensive tutorial and survey, bridging the gap between abstract functional analysis and practical machine learning. It provides a unified mathematical framework for understanding how kernels allow us to operate in high-dimensional (often infinite) feature spaces.

Methods and Mathematical Framework

The paper synthesizes several key mathematical frameworks to explain the power of kernels:

  • Mercer’s Theorem: The core proof showing that any continuous, symmetric, positive semi-definite kernel can be decomposed into a series of eigenfunctions and eigenvalues.
  • Representer Theorem: A critical result explaining why, even in infinite-dimensional spaces, the optimal solution to a learning problem can be expressed as a finite linear combination of the training data.
  • Kernelization Techniques: The paper distinguishes between the "Kernel Trick" (replacing inner products) and "Representation Theory" (pulling solutions into the RKHS), showing how to transform linear algorithms (like PCA or FDA) into non-linear ones.
  • Nyström Method: A technique for approximating the kernel matrix by selecting a small subset of "landmark" points, allowing kernel methods to scale to much larger datasets by overcoming the $O(n^2)$ computational bottleneck.

Key Insights and Ideas

The Geometry of Similarity

A kernel is essentially a measure of similarity. Mercer’s Theorem tells us that this similarity corresponds to an inner product in a "feature space." We don't need to know the exact coordinates of points in that space; we only need to know their relative similarity to perform learning.

Illustration of mapping data points from an input space to a high-dimensional feature space (RKHS) via a mapping function $\phi$.

Universal Kernels and Centering

The authors highlight "universal" kernels, such as the Radial Basis Function (RBF). These are powerful because their associated RKHS is "dense" in the space of continuous functions, meaning they can approximate any continuous function to arbitrary precision. Furthermore, the paper provides practical guidance on "centering" data in the feature space. Since explicit coordinates are unavailable, a "double-centering" operation is performed on the kernel matrix itself using a specific centering matrix $H$.

Kernels for Distributions

Beyond point-to-point similarity, the paper explains Kernel Mean Embedding (KME) and Maximum Mean Discrepancy (MMD). These allow researchers to represent entire probability distributions as single points in an RKHS, enabling powerful non-parametric statistical tests.

Key Results

The paper functions as a "map" for the field, yielding several conceptual results:

  • Unification of Manifold Learning: Many popular dimensionality reduction techniques (like Isomap, Locally Linear Embedding, and Laplacian Eigenmaps) are shown to be special cases of Kernel PCA with specific kernel constructions.
  • Eigenfunction Connection: It proves the formal link between the eigenfunctions of a continuous operator and the eigenvectors of a discrete kernel matrix, which is the theoretical basis for spectral clustering.
  • Algorithmic Recipes: It provides explicit "recipes" for kernelizing various algorithms, including Support Vector Machines (SVM), Fisher Discriminant Analysis (FDA), and Independence Criterion (HSIC).

Limitations and Future Work

While kernel methods are powerful, choosing the optimal kernel for a specific task remains a difficult, often manual, process. Additionally, the rise of deep learning has shifted the focus toward models that learn features end-to-end rather than relying on pre-defined kernels. Future research is expected to focus on combining different types of embeddings (points, functions, and distributions) within the Hilbert space to create more robust hybrid models.

Summary updated

BibTeX
@misc{ghojogh2021reproducing,
  author = {Benyamin Ghojogh and Ali Ghodsi and Fakhri Karray and Mark Crowley},
  title = {{Reproducing Kernel Hilbert Space, Mercer's Theorem, Eigenfunctions, Nyström Method, and Use of Kernels in Machine Learning: Tutorial and Survey}},
  year = {2021},
  eprint = {2106.08443},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.08443},
}
Figure