Skip to content

Representer theorem

See why an RKHS minimiser uses kernels centred at the data, prove the span reduction, and distinguish a unique function from nonunique coefficients.

The representer theorem says that, for a broad class of regularised learning problems in a reproducing kernel Hilbert space, every minimising function can be written as a finite sum of kernels centred at the training inputs. For a quant fitting a nonlinear signal or response surface, this turns a potentially infinite-dimensional function search into an optimisation over finitely many scalar coefficients. It does not establish that the fitted signal will predict future returns.

The statement needs an objective

Let H\mathcal H be a real reproducing kernel Hilbert space (RKHS) with kernel kk. Fix training inputs x1,…,xnx_1,\ldots,x_n and their labels. Consider

min⁡f∈HJ(f),J(f)=L(f(x1),…,f(xn))+Ω(∥f∥H),\min_{f\in\mathcal H} J(f),\qquad J(f)=L\bigl(f(x_1),\ldots,f(x_n)\bigr)+\Omega(\lVert f\rVert_{\mathcal H}),

where the labels are held fixed inside LL. Assume a finite-valued global minimiser exists and Ω\Omega is strictly increasing on [0,∞)[0,\infty). Then every global minimiser has the form

f∗(x)=∑i=1nαik(xi,x),αi∈R.f^*(x)=\sum_{i=1}^{n}\alpha_i k(x_i,x),\qquad \alpha_i\in\mathbb R.
The loss can couple the evaluations and need not be a sum of squared errors. Strict increase concerns the RKHS norm, not an arbitrary penalty on a software parameter vector. The theorem describes existing minimisers; it does not prove existence or make a nonconvex loss easy to optimise. If Ω\Omega is merely nondecreasing, projection still yields at least one minimiser of this form, assuming a minimiser exists, but other minimisers may lie outside the span. Schölkopf, Herbrich and Smola, §2, Theorem 1 and following remarks

Why the unseen directions disappear

Set S=span⁡{k(x1,⋅),…,k(xn,⋅)}S=\operatorname{span}\{k(x_1,\cdot),\ldots,k(x_n,\cdot)\}. This finite-dimensional subspace is closed, so orthogonal projection gives a decomposition
f=fS+f⊥,fS∈S,f⊥⊥S.f=f_S+f_\perp,\qquad f_S\in S,\quad f_\perp\perp S.

The reproducing property turns evaluation into an inner product:

f⊥(xi)=⟨f⊥,k(xi,⋅)⟩H=0.f_\perp(x_i)=\langle f_\perp,k(x_i,\cdot)\rangle_{\mathcal H}=0.

Thus ff and fSf_S give exactly the same training predictions and the same loss. Pythagoras gives

∥f∥H2=∥fS∥H2+∥f⊥∥H2.\lVert f\rVert_{\mathcal H}^2 =\lVert f_S\rVert_{\mathcal H}^2+\lVert f_\perp\rVert_{\mathcal H}^2.
A nonzero perpendicular component increases the norm without helping the fit. A strictly increasing norm penalty therefore rules it out at a minimum. This is the entire mechanism; it works even when the RKHS has infinitely many dimensions. Rasmussen and Williams, §§6.1–6.2

An exact two-weight example

Use the linear kernel k(x,z)=x⊤zk(x,z)=x^\top z on R2\mathbb R^2. Functions are fw(x)=w⊤xf_w(x)=w^\top x, with RKHS norm ∥fw∥H=∥w∥2\lVert f_w\rVert_{\mathcal H}=\lVert w\rVert_2. There is one training input x1=(1,0)⊤x_1=(1,0)^\top, label y1=2y_1=2, no intercept and penalty coefficient 11. Inputs, targets and weights are dimensionless. The objective is

J(w)=(2−w⊤x1)2+∥w∥22=(2−w1)2+w12+w22=2(w1−1)2+w22+2.J(w)=(2-w^\top x_1)^2+\lVert w\rVert_2^2 =(2-w_1)^2+w_1^2+w_2^2 =2(w_1-1)^2+w_2^2+2.

The unique minimum is w∗=(1,0)⊤w^*=(1,0)^\top, with prediction 11 and objective 22. The Hessian is diag⁡(4,2)\operatorname{diag}(4,2), confirming strict convexity. Regularisation deliberately leaves a training residual: the prediction need not equal the label.

Now add v=(0,3)⊤v=(0,\sqrt3)^\top, which is orthogonal to the training input. The prediction stays 11, but the squared norm rises from 11 to 44. Squared error remains 11, so the objective rises from 22 to 55. The extra weight changes predictions at other inputs, yet the objective has no data-fit reason to retain it.

Exact linear-kernel example: weights (1, 0) and (1, square root of 3) both predict 1 at input (1, 0). Their squared errors are both 1, squared norms are 1 and 4, and objectives are 2 and 5.
Exact linear-kernel example: weights (1, 0) and (1, square root of 3) both predict 1 at input (1, 0). Their squared errors are both 1, squared norms are 1 and 4, and objectives are 2 and 5.
Original exact example. The vertical component is invisible at the training input and adds 3 objective units; removing it preserves the training prediction.

Finite coefficients, possibly infinite features

The learned αi\alpha_i are scalar coefficients multiplying functions k(xi,⋅)k(x_i,\cdot). They are not coordinates proving that the kernel's feature map has only nn dimensions. The data select a subspace of dimension at most nn inside the RKHS; the ambient space may remain infinite-dimensional. This is the bridge from function-space regularisation to a finite kernel method.
Writing Kij=k(xi,xj)K_{ij}=k(x_i,x_j), the Gram matrix gives training predictions KαK\alpha and squared RKHS norm α⊤Kα\alpha^\top K\alpha. For kernel ridge regression, this yields an objective in α\alpha using only KK, labels and the penalty. The representer theorem supplies the form of the solution, not a universal closed-form coefficient formula. Rasmussen and Williams, §6.2

Function uniqueness and coefficient uniqueness are separate. With duplicate centres x1=x2=(1,0)⊤x_1=x_2=(1,0)^\top, the Gram matrix has every entry equal to 11 and rank 11. Coefficients (1,0)⊤(1,0)^\top and (1/2,1/2)⊤(1/2,1/2)^\top both represent the same function f(x)=x(1)f(x)=x^{(1)}, where x(1)x^{(1)} denotes the input's first coordinate. Their difference lies in the null space of KK; its kernel expansion has zero RKHS norm and is the zero function everywhere, not merely on the sample. A strictly convex function-space objective can therefore have a unique fitted function with nonunique coefficient representations.

Finally, check the model's actual assumptions. A separately unpenalised intercept requires an additional term; a seminorm can leave unpenalised directions. Ordinary neural-network weight decay is not automatically an RKHS norm penalty. The classic result cannot be invoked just because an algorithm uses the word “kernel.” Schölkopf, Herbrich and Smola, Theorem 2; Rasmussen and Williams, §6.2 and its null-space qualification
For the geometry behind the proof, Orthogonal Projections and Minimization Problems develops the perpendicular decomposition and Pythagorean argument (membership required for the full lesson; public preview available).

Sources

Last updated
  • representer theorem
  • rkhs
  • kernel methods
  • regularisation
  • orthogonal projection
← Back to the glossaryBack to top ↑