For a real-valued loss function depending only on evaluations at , and a positive squared-norm penalty, any minimizing tuple in a sum of reproducing-kernel Hilbert spaces has the form
with the same coefficient vector for every component. The tuple must be the unique minimum-norm decomposition of its sum. Apply the representer theorem to that sum and note that the displayed tuple has total squared norm , exactly the norm of the sum. This argument is conditional on existence of a minimizer; arbitrary loss functions need not attain their infimum.
If the weight vector lies in the linear span of the training feature map outputs, write . Then
This is a dual representation: coefficients weight training examples rather than feature coordinates. They need not be positive, and need not be unique when the kernel matrix is singular. Some kernel methods instead write with under their own optimization constraints.[ref] The formula is an algebraic conversion for a weight vector in this linear span, not a claim about every possible weight vector. The representer theorem gives a broader reason this form appears in regularized kernel methods.
For the XOR separation by a product feature, let have rows . The Gram matrix of those rows, equivalently the kernel matrix, is
Its eigenvalues are , so it is a positive semidefinite matrix of rank two, not an invertible matrix. More generally, for any real coefficient vector and any finite set of inputs,
This proves the positive-semidefinite kernel condition for the displayed polynomial kernel on all of , rather than checking only this square.
Here , so the explicit choice gives and . Consequently
For the new input , the four polynomial kernel evaluations are . Their weighted sum is , and the sign function predicts . No explicit feature map is needed for this calculation. These coefficients were constructed to reproduce the chosen separator; no fitting algorithm or generalization guarantee is being asserted.
Figure 1.
Quadratic kernel Gram matrix and a dual prediction for a new input
. Both panels use the same ordered four square corners. The Gram matrix has eigenvalues eight, eight, zero, zero. The new-input column contains four kernel evaluations, whose signed weighted contributions sum to minus one half. Details.
Kernel ridge regression Created 2026-09-24 Updated 2026-10-14
Kernel ridge regression minimizes empirical squared error plus the squared norm in a Reproducing kernel Hilbert space. The representer theorem reduces it to ridge regression with the kernel matrix as its feature Gram matrix.
A real positive-definite kernel is a symmetric function such that, for every finite collection and every ,
Thus every kernel matrix is a positive semidefinite matrix; “positive definite” here does not require strict positivity. A Reproducing kernel Hilbert space is a Hilbert space of functions on in which every point evaluation is a continuous linear functional. Its reproducing property is with , and . For a sum of positive-definite kernels, the quadratic form of its kernel matrix is a sum of nonnegative quadratic forms. Symmetry also survives summation. Consequently
For the representer theorem, put . This is a closed finite-dimensional vector space. The orthogonal decomposition by a closed subspace gives , where and . The reproducing property implies for every observed input, and therefore
Since , any minimizer must lie in . For , the reproducing property gives the evaluation vector and . Hence . If minimizes , its representation yields a minimizing . Conversely, if minimizes , then, for any , representing gives . Thus
This is an equivalence of minimizers, not an existence or uniqueness assertion: the loss function is arbitrary. A singular kernel matrix also allows nonunique coefficients, since differences in represent the zero function. Strict convexity of the loss was not used.
Now use the stated minimum-norm description of a sum of reproducing-kernel Hilbert spaces. Let . If the minimizing tuple did not attain the minimum total squared norm among decompositions of , replacing it by that unique minimum-norm tuple would preserve the loss function and strictly lower the penalty. This contradicts optimality. Therefore
For an arbitrary , take its minimum-norm decomposition . Then , proving that minimizes .
Choose from the representer theorem for this minimizing sum, and define . Write for the component kernel matrices. Then
By uniqueness of the minimum-norm decomposition, for every . This proves the common representer coefficients for a sum of kernels conclusion:
The same coefficient vector works simultaneously. Even when is singular, changing that vector by leaves every component unchanged: forces each nonnegative squared component norm to vanish.
Use the unscaled penalty convention consistent with the displayed bound:
For an objective with averaged squared loss, the corresponding penalty parameter would be . We retain the unscaled throughout.
By the representer theorem, the kernel ridge regression minimizer lies in the span of . A valid coefficient vector is , giving
The kernel matrix is a positive semidefinite matrix, so the inverse exists even if is singular. In the coefficient objective , this choice satisfies ; there is no need to cancel . The function itself is unique because of the strictly convex squared Hilbert norm. The matrix is the kernel-ridge hat matrix in the present normalization.
Let . Since , the zero mean and covariance assumption give the exact bias-variance decomposition for linear prediction
No normality of the noise is required for this identity.
Choose an orthonormal eigenbasis of , with eigenvalues . Its shrinkage factors are , so
The first bound follows from and from each shrinkage factor being at most one.
To control the bias by the Reproducing kernel Hilbert space norm, for define
The reproducing property gives and
If , the corresponding unscaled kernel combination has Hilbert norm squared , so . There is therefore no bias component in a zero-eigenvalue direction. For the remaining directions,
The scalar bound is again , and the final step is Bessel inequality. Combining the variance and bias bounds proves the prediction-risk bound for kernel ridge regression:
The kernel ridge regression estimator minimizes
By the representer theorem, its fitted-value vector is
Writing for the true value vector, the variance contribution to is
The squared bias is . In an orthonormal eigenbasis of , the scalar inequality
which is equivalent to , yields
For , only the last term varies. The Rayleigh quotient of is maximized by a unit eigenvector associated with its largest eigenvalue , equivalently an eigenvector of associated with .
With the normalization used in the question, kernel ridge regression minimizes
The representer theorem and the normal equations give the fitted-value vector
Let and let be the orthogonal projection of onto this space. The reproducing property makes for every . Writing gives
Conditionally on , the covariance matrix of the fitted vector is
Since the eigenvalues of are , the average conditional variance is
For ,
Taking and adding the supplied squared-bias bound gives
Because minimizes this conditional upper bound, its expected value is at most the expected bound at any deterministic . Using the assumed eigenvalue comparison,
The kernel ridge regression estimator is
By the representer theorem, . If , substitution and differentiation give
Thus
The matrix is the kernel-ridge hat matrix.
A real positive-semidefinite kernel is a symmetric function such that every finite Gram matrix is positive semidefinite. The representer theorem says that any minimizer in a Reproducing kernel Hilbert space of an objective depending on only through and a strictly increasing function of lies in
Indeed, write relative to this span. The reproducing property gives for every , while the Pythagorean theorem in an inner-product space gives . Removing a nonzero perpendicular component preserves all data values and strictly decreases the penalty, proving the theorem.
Apply this decomposition to both optimizers and write and . If and are the two Gram matrices, then
Writing and , with pseudoinverses on the respective ranges, turns the supremum into