Ali Rahimi 2026-11-05
Ali Rahimi coauthored Random Features for Large-Scale Kernel Machines by Ali Rahimi and Benjamin Recht in 2007. With Benjamin Recht, he proposed explicit randomized maps whose inner products approximate a chosen kernel, enabling familiar fast linear methods in the transformed feature space.[ref]
The Random Fourier feature mechanism samples frequencies from a shift-invariant kernel's spectral representation. This separates the cost of constructing a feature map from the cost of repeatedly evaluating every pairwise kernel value. Accuracy and computation depend on the feature count; randomness does not eliminate approximation error or the need to validate the learned predictor.
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.
Random Fourier features Created 2026-09-28 Updated 2026-11-05
Random Fourier features approximate a continuous translation-invariant positive-semidefinite kernel on with . Its spectral probability distribution gives frequencies satisfying .
Draw independent and identically distributed random variables from this distribution and independent from the continuous uniform distribution on . Define the feature mapAveraging the product of two cosines over leaves one half of , so . Every realized approximate kernel matrix is positive semidefinite because it is a Gram matrix. Increasing averages more sampled features; it does not make the finite approximation identically equal to the original positive-semidefinite kernel.[ref]
For a positive-semidefinite kernel with positive diagonal constant , normalize by and multiply by . The identically zero case needs no random features.