Random feature
Random features (RF) are a technique used in machine learning to approximate kernel methods, introduced by Ali Rahimi and Ben Recht in their 2007 paper "Random Features for Large-Scale Kernel Machines", and extended by. RF uses a Monte Carlo approximation to kernel functions by randomly sampled feature maps. It is used for datasets that are too large for traditional kernel methods like support vector machine, kernel ridge regression, and gaussian process.
Random features (RF) are a technique used in machine learning to approximate kernel methods, introduced by Ali Rahimi and Ben Recht in their 2007 paper "Random Features for Large-Scale Kernel Machines", and extended by. RF uses a Monte Carlo approximation to kernel functions by randomly sampled feature maps. It is used for datasets that are too large for traditional kernel methods like support vector machine, kernel ridge regression, and gaussian process. Given a feature map \phi: \R^d \to V , where V is a Hilbert space (more specifically, a reproducing kernel Hilbert space), the kernel trick replaces inner products in feature space \langle \phi(x_i), \phi(x_j)\rangle_V by a kernel function k(x_i, x_j): \R^d \times \R^d \to \R Kernel methods replaces linear operations in high-dimensional space by operations on the kernel matrix: K_X := [k(x_i, x_j)]_{i, j \in 1:N} where N is the number of data points. The problem with kernel methods is that the kernel matrix K_X has size N \times N . This becomes computationally infeasible when N reaches the order of a million. The random kernel method replaces the kernel function k by an inner product in low-dimensional feature space \R^D : k(x,y) \approx \langle z(x), z(y)\rangle where z is a randomly sampled feature map z : \R^d \to \R^D . This converts kernel linear regression into linear regression in feature space, kernel SVM into SVM in feature space, etc. Since we have K_X \approx Z_X^T Z_X where Z_X = [z(x_1), \dots, z(x_N)] , these methods no longer involve matrices of size O(N^2) , but only random feature matrices of size O(DN) . k(x_i, x_j) = \exp\left(-\frac{\|x_i - x_j \|^2}{2\sigma^2}\right) where \|x_i - x_j \|^2 is the squared Euclidean distance and \sigma is a free parameter defining the shape of the kernel. It can be approximated by a random Fourier feature map z: \R^d \to \R^{2D} : z(x) := \frac{1}{\sqrt D}[\cos\langle \omega_1, x\rangle, \sin\langle \omega_1, x\rangle, \ldots, \cos\langle \omega_D, x\rangle, \sin\langle \omega_D, x\rangle]^T where \omega_1, ..., \omega_D are IID samples from the multidimensional normal distribution N(0, \sigma^{-2} I) . {{Math proof |proof= (Unbiased estimation) By independence of \omega_1, ..., \omega_D , it suffices to prove the case of D=1 . By the trigonometric identity \cos(a-b) = \cos(a)\cos(b) + \sin(a)\sin(b) , \langle z(x), z(y)\rangle = \frac 1D \sum_{i=1}^D \cos \langle \omega_i, x-y\rangle Apply the spherical symmetry of normal distribution, then evaluate the integral: \int_{-\infty}^\infty \frac{\cos (k x) e^{-x^2 / 2}}{\sqrt{2 \pi}} d x=e^{-k^2 / 2}. (Variance bound) Since \omega_1, ..., \omega_D are IID, it suffices to prove that the variance of \cos \langle \omega_1, x-y\rangle is finite, which is true since it is bounded within [-1, +1] . (Convergence) By Chebyshev's inequality. }}Since \cos, \sin are bounded, there is a stronger convergence guarantee by Hoeffding's inequality. By Bochner's theorem, the above construction can be generalized to arbitrary positive definite shift-invariant kernel k(x, y) = k(x-y) . Define its Fourier transform p(\omega)=\frac{1}{2 \pi} \int_{\R^d} e^{-j \langle\omega, \Delta \rangle} k(\Delta) d \Delta then \omega_1, ..., \omega_D are sampled IID from the probability distribution with probability density p . This applies for other kernels like the Laplace kernel and the Cauchy kernel. Given a random Fourier feature map z , training the feature on a dataset by featurized linear regression is equivalent to fitting complex parameters \theta_1, \dots, \theta_D \in \C such that f_\theta(x) = \mathrm{Re}\left( \sum_k \theta_k e^{i \langle \omega_k , x \rangle} \right) which is a neural network with a single hidden layer, with activation function t \mapsto e^{it} , zero bias, and the parameters in the first layer frozen. In the overparameterized case, when 2D \geq N , the network linearly interpolates the dataset \{(x_i, y_i)\}_{i \in 1:N} , and the network parameters is the least-norm solution: \hat \theta = \arg\min_{\theta \in \C^D, f_\theta(x_k) = y_k \forall k\in 1:N} \|\theta\| At the limit of D \to \infty , the L2 norm \|\hat\theta\| \to \|f_{K}\|_H where f_K is the interpolating function obtained by the kernel regression with the original kernel, and \|\cdot\|_H is the norm in the reproducing kernel Hilbert space for the kernel.
References
- Random Features for Large-Scale Kernel Machines . · retrieved 2026-04-16 · rev 1349582208
Cite this reference
MLA "Random Features for Large-Scale Kernel Machines ." 2026-04-16. https://en.wikipedia.org/w/index.php?oldid=1349582208. Accessed 24 November 2026.
Chicago "Random Features for Large-Scale Kernel Machines ." 2026-04-16. https://en.wikipedia.org/w/index.php?oldid=1349582208.
APA encyclopegia.org. (2026). Random Features for Large-Scale Kernel Machines . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1349582208
- 2008 46th Annual Allerton Conference on Co . · retrieved 2026-04-16 · rev 1349582208
Cite this reference
MLA "2008 46th Annual Allerton Conference on Co ." th Annual Allerton Conference on Co. 2026-04-16. https://en.wikipedia.org/w/index.php?oldid=1349582208. Accessed 24 November 2026.
Chicago "2008 46th Annual Allerton Conference on Co ." th Annual Allerton Conference on Co. 2026-04-16. https://en.wikipedia.org/w/index.php?oldid=1349582208.
APA th Annual Allerton Conference on Co. (2026). 2008 46th Annual Allerton Conference on Co . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1349582208
- Weighted Sums of Random Kitchen Sinks: Replacing minimization with randomization in learning . · retrieved 2026-04-16 · rev 1349582208
Cite this reference
MLA "Weighted Sums of Random Kitchen Sinks: Replacing minimization with randomization in learning ." 2026-04-16. https://en.wikipedia.org/w/index.php?oldid=1349582208. Accessed 24 November 2026.
Chicago "Weighted Sums of Random Kitchen Sinks: Replacing minimization with randomization in learning ." 2026-04-16. https://en.wikipedia.org/w/index.php?oldid=1349582208.
APA encyclopegia.org. (2026). Weighted Sums of Random Kitchen Sinks: Replacing minimization with randomization in learning . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1349582208
- A primer on kernel methods · retrieved 2026-04-16 · rev 1349582208
Cite this reference
MLA "A primer on kernel methods." Jean-Philippe Vert, Koji Tsuda, and Bernhard Schölkopf (2004). 2026-04-16. https://en.wikipedia.org/w/index.php?oldid=1349582208. Accessed 24 November 2026.
Chicago "A primer on kernel methods." Jean-Philippe Vert, Koji Tsuda, and Bernhard Schölkopf (2004). 2026-04-16. https://en.wikipedia.org/w/index.php?oldid=1349582208.
APA Jean-Philippe Vert, Koji Tsuda, and Bernhard Schölkopf (2004). (2026). A primer on kernel methods. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1349582208
- Pg|location=Claim 1 === Random Fourier features === By Bochner's theorem, the above construction can be generalized to arbitrary positive definite shift-invariant kernel k(x, y) = k(x-y) . Def . · retrieved 2026-04-16 · rev 1349582208
Cite this reference
MLA "Pg|location=Claim 1 === Random Fourier features === By Bochner's theorem, the above construction can be generalized to arbitrary positive definite shift-invariant kernel k(x, y) = k(x-y) . Def ." Pg|location=Claim 1 === Random Fourier features === By Bochner's theorem, the above construction can be generalized to a. 2026-04-16. https://en.wikipedia.org/w/index.php?oldid=1349582208. Accessed 24 November 2026.
Chicago "Pg|location=Claim 1 === Random Fourier features === By Bochner's theorem, the above construction can be generalized to arbitrary positive definite shift-invariant kernel k(x, y) = k(x-y) . Def ." Pg|location=Claim 1 === Random Fourier features === By Bochner's theorem, the above construction can be generalized to a. 2026-04-16. https://en.wikipedia.org/w/index.php?oldid=1349582208.
APA Pg|location=Claim 1 === Random Fourier features === By Bochner's theorem, the above construction can be generalized to a. (2026). Pg|location=Claim 1 === Random Fourier features === By Bochner's theorem, the above construction can be generalized to arbitrary positive definite shift-invariant kernel k(x, y) = k(x-y) . Def . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1349582208
- Cite journal |last1=Yu |first1=Felix Xinnan X |last2=Suresh |first2=Ananda Theertha |last3=Choromanski |first3=Krzysztof M |last4=Holtmann-Rice |first4=Daniel N |last5=Kumar |first5=Sanjiv |date=201 . · retrieved 2026-04-16 · rev 1349582208
Cite this reference
MLA "Cite journal |last1=Yu |first1=Felix Xinnan X |last2=Suresh |first2=Ananda Theertha |last3=Choromanski |first3=Krzysztof M |last4=Holtmann-Rice |first4=Daniel N |last5=Kumar |first5=Sanjiv |date=201 ." Cite journal |last1=Yu |first1=Felix Xinnan X |last2=Suresh |first2=Ananda Theertha |last3=Choromanski |first3=Krzysztof. 2026-04-16. https://en.wikipedia.org/w/index.php?oldid=1349582208. Accessed 24 November 2026.
Chicago "Cite journal |last1=Yu |first1=Felix Xinnan X |last2=Suresh |first2=Ananda Theertha |last3=Choromanski |first3=Krzysztof M |last4=Holtmann-Rice |first4=Daniel N |last5=Kumar |first5=Sanjiv |date=201 ." Cite journal |last1=Yu |first1=Felix Xinnan X |last2=Suresh |first2=Ananda Theertha |last3=Choromanski |first3=Krzysztof. 2026-04-16. https://en.wikipedia.org/w/index.php?oldid=1349582208.
APA Cite journal |last1=Yu |first1=Felix Xinnan X |last2=Suresh |first2=Ananda Theertha |last3=Choromanski |first3=Krzysztof. (2026). Cite journal |last1=Yu |first1=Felix Xinnan X |last2=Suresh |first2=Ananda Theertha |last3=Choromanski |first3=Krzysztof M |last4=Holtmann-Rice |first4=Daniel N |last5=Kumar |first5=Sanjiv |date=201 . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1349582208
- Recht, Benjamin. Reflections on Random Kitchen Sinks . arg min blog . retrieved 2024-09-29 · retrieved 2024-09-28 · rev 1349582208
Cite this reference
MLA "Recht, Benjamin. Reflections on Random Kitchen Sinks . arg min blog . retrieved 2024-09-29." Recht, Benjamin. 2024-09-28. https://en.wikipedia.org/w/index.php?oldid=1349582208. Accessed 24 November 2026.
Chicago "Recht, Benjamin. Reflections on Random Kitchen Sinks . arg min blog . retrieved 2024-09-29." Recht, Benjamin. 2024-09-28. https://en.wikipedia.org/w/index.php?oldid=1349582208.
APA Recht, Benjamin. (2024). Recht, Benjamin. Reflections on Random Kitchen Sinks . arg min blog . retrieved 2024-09-29. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1349582208
Cite this article
MLA
"Random feature." encyclopegia.org, 2026, https://encyclopegia.org/wiki/random-feature. Accessed 24 November 2026.
Chicago
"Random feature." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/random-feature.
APA
encyclopegia.org. (2026). Random feature. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/random-feature
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON