Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.Infinite choices, finite answer
You’re asked to draw the “best” smooth curve through some data points, choosing from infinitely many possible curves. The representer theorem says you don’t need to search that whole infinite space: the best curve is always built from one kernel bump centred on each data point, and all you choose is how tall each bump is. A thousand data points means a thousand numbers to find, never more.
The theorem is why kernel methods are implementable at all, and it tells you their cost: one coefficient per training sample. That is great for 500 terrain samples and painful for 5 million. It also explains why SVMs only need to store support vectors, which keeps onboard classifiers small.
- 1. The representer theorem says the best function is…
- 2. With 1000 training points, the number of coefficients is…
- 3. SVMs often store only…
Level 1: Beginner
★★☆☆☆ Basic⏱ 25 minSecondary-school mathematics: arithmetic and elementary algebra.Statement
Let be an RKHS with kernel k, let L be any loss of the values , and let Ω be strictly increasing. Then every minimizer of
has the form .
What it buys
Plug in : then and , an m-dimensional problem.
- Kernel ridge regression: gives .
- SVM: hinge loss gives a quadratic program in c (via its dual).
- Kernel logistic regression: a smooth convex problem in c.
- 1. In the reduced problem, f(xᵢ) equals…
- 2. Kernel ridge coefficients for K = I, λ = 0.5, m = 2, y = (1, 2):
- 3. The regularizer must be…
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 40 minUndergraduate students and practising engineers.Proof
Let and write . By the reproducing property, , so the loss only sees . Meanwhile , so dropping never increases Ω and strictly decreases it if . ∎
Primal and dual views
With an explicit feature map Φ (m × D), ridge regression’s primal solution equals . That is a D×D solve versus an m×m one. Pick whichever dimension is smaller.
Where it fails
The proof needs a Hilbert-norm penalty. With an L1 penalty on explicit features, the solution is sparse in features, not in the span of the data, and the representer form is lost.
- 1. In the proof, f⊥ is invisible to the loss because…
- 2. Primal ridge needs a D×D solve, dual needs…
- 3. An L1 penalty on features…
Level 3: Advanced
★★★★☆ Advanced⏱ 35 minGraduate level, with full derivations and proofs.The SVM dual and sparsity
The (bias-free) kernel SVM has dual
with . Complementary slackness forces whenever . Points outside the margin drop out, and the rest are support vectors. Smooth losses (squared, logistic) never vanish, so every cᵢ ≠ 0.
Generalized forms
- Semi-parametric: with an unpenalized bias or trend term. Then is still in the span.
- Multi-output and operator-valued kernels: the same argument with vector coefficients.
- 1. SVM coefficients vanish for points with…
- 2. The relation between C and λ (bias-free form) is…
- 3. Kernel logistic regression's coefficients are…
Level 4: Expert
★★★★★ Expert⏱ 35 minResearchers: original papers and open problems.Representer theorem, measured
Exercise 1 (20 points, 200 random-cosine features). Primal ridge and Φᵀα agree to 2 × 10⁻¹⁴ (round-off, so it differs slightly by platform), so 20 numbers describe the 200-dimensional solution. Starting logistic regression (λ = 0.01) from a random w, 98% of whose norm lies outside the data span, gradient descent ends with only 3 × 10⁻¹³ outside. That is the minimizer, not an artefact of starting at zero. With an L1 penalty, 25% of the solution’s norm lies outside the span (101 of 200 weights non-zero).
Exercise 2 (moons, 200 points, RBF γ = 2). Dual coordinate ascent reaches KKT violation 6 × 10⁻⁷. The SVM keeps 55.5%, 19.5% and 9.5% of the points as support vectors for C = 0.1, 1 and 10 (test accuracy 0.967, 0.988, 0.987), while kernel logistic regression uses 100% of them (accuracy 0.986). Similar accuracy, very different model size.
The representer theorem in AI, robotics and aerospace
- Onboard SVMs (terrain, fault classification): only support vectors are stored and evaluated.
- GP posterior means are representer-form functions: the prediction is a weighted sum of kernels at the data.
- Kernel-based system identification (stable spline kernels) for estimating impulse responses.
- Scaling: Nyström and inducing points restrict the coefficients to a subset of centres.
References
- G. Kimeldorf, G. Wahba (1971). “Some results on Tchebycheffian spline functions.” Journal of Mathematical Analysis and Applications, 33.
- B. Schölkopf, R. Herbrich, A. J. Smola (2001). “A generalized representer theorem.” COLT.
- C. Cortes, V. Vapnik (1995). “Support-vector networks.” Machine Learning, 20.
- C.-J. Hsieh, K.-W. Chang, C.-J. Lin, S. S. Keerthi, S. Sundararajan (2008). “A dual coordinate descent method for large-scale linear SVM.” ICML.
- J. Zhu, T. Hastie (2005). “Kernel logistic regression and the import vector machine.” Journal of Computational and Graphical Statistics, 14.