FoundationsChecking saved investigationReading browser-local route memory before showing a continuation.

Foundation Lab

Reproducing Kernel Hilbert Spaces

Unifies SVMs, Gaussian processes, kernel regression, and NTK under one framework

Concept 71 of 100TheoryPhase 10
#71RKHSTheory
key equationf(x) = \langle f, k(x, \cdot) \rangle_{\mathcal{H}}

Selected Foundation Object

Keep the equation fixed; move through the evidence.

Concept 71 of 100RKHSTheory / Phase 10: Mathematical foundations & information geometry
Current question

Kernels implicitly define an (often infinite-dimensional) feature space

f(x) = \langle f, k(x, \cdot) \rangle_{\mathcal{H}}
PredictionCommit before the demo.

Ask what should change when the equation is manipulated, then let the visualization test that expectation.

EvidenceCompare local witness and source.

Use the runnable panel, the key equation, and canonical papers as separate forms of evidence for the same object.

InvariantName what survives notation changes.

The useful learning product is the reusable mechanism you can carry into another model, paper, or engineering tradeoff.

Next moveContinue through the atlas.

Use prerequisites, dependents, and semantic links to repair the next gap without leaving the object behind.

Why It Matters for Modern Models

  • Unifies SVMs, Gaussian processes, kernel regression, and NTK under one framework
  • Explains why "similarity functions" must be positive definite—they define inner products
  • NTK shows neural networks are kernel machines in the infinite-width limit

What Tutorials Skip

What is still poorly explained in textbooks and papers:

  • Kernels implicitly define an (often infinite-dimensional) feature space
  • Positive definiteness = you can build a Hilbert space where the kernel is an inner product
  • Attention can be viewed as a learned, data-dependent kernel

Interactive Visualization

Core Math (Optional Deep Dive)

If you want intuition first, start with the key equation and the visualization. Come back here for the full walkthrough.

Key Equation
f(x)=f,k(x,)Hf(x) = \langle f, k(x, \cdot) \rangle_{\mathcal{H}}

Reproducing property: evaluation is an inner product:

f(x)=f,k(x,)Hf(x) = \langle f, k(x, \cdot) \rangle_{\mathcal{H}}

Kernel trick: inner product in feature space without explicit computation:

k(x,x)=φ(x),φ(x)k(x, x') = \langle \varphi(x), \varphi(x') \rangle

Mercer decomposition (spectral):

k(x,x)=m=1λmem(x)em(x)k(x, x') = \sum_{m=1}^\infty \lambda_m e_m(x) e_m(x')

Representer theorem: optimal function is a linear combination of kernel evaluations:

f(x)=i=1nαik(xi,x)f^*(x) = \sum_{i=1}^n \alpha_i k(x_i, x)

Canonical Papers

Kernel Methods for Pattern Analysis

Shawe-Taylor & Cristianini2004Cambridge University Press
Read paper →

Neural Tangent Kernel

Jacot et al.2018NeurIPS
Read paper →

Connections

Prerequisites

Next Moves

Choose the next question to carry this object forward.