Benjamin Recht 2026-11-05
Benjamin Recht coauthored the 2007 Random Fourier feature construction with Ali Rahimi. Randomly sampled features approximate a shift-invariant positive-definite kernel by ordinary inner products, permitting a linear learning method to approximate a kernel method without storing the whole pairwise kernel matrix.[ref]
For suitable normalized kernels, features use frequencies sampled from the kernel's spectral distribution and uniform phases. Their expected inner product recovers the kernel; finitely many features introduce an approximation error. The number of features controls a computational and statistical tradeoff rather than an exact identity for every finite sample.
Dual prediction with a kernel 2026-10-14
If the weight vector lies in the linear span of the training feature map outputs, write . ThenThis 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 kernel trick by Ryan Giordano. Kernelizing classification with support vector machines: displayed prediction as a sum of label-weighted kernel evaluations
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, isIts 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 . ConsequentlyFor 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.
For every , every choice , and every coefficient vector , the required condition isThus for the kernel matrix . For a feature map, this follows fromIn kernel methods, the term positive-definite kernel commonly uses this non-strict inequality. Strict positive definiteness is the stronger requirement that the expression be positive for distinct inputs and every nonzero ; it is not required here.
Positive-semidefinite kernel Created 2026-09-24 Updated 2026-11-05
A real positive-semidefinite kernel on a set is a symmetric function for which every finite choice and satisfiesEquivalently, each finite kernel matrix is a positive semidefinite matrix. This condition constrains whole collections of pairwise comparisons; individual entries need not be positive.
For example, the linear kernel on a Euclidean space satisfies the condition becauseThe Gaussian kernel supplies a nonlinear example. A feature map represents any such positive-semidefinite kernel as an inner product, possibly in an infinite-dimensional vector space. This lets a kernel method use the geometry of that space through pairwise evaluations.[ref]
