Radial basis function kernel
In machine learning, the radial basis function kernel, or RBF kernel, is a popular kernel function used in various kernelized learning algorithms. In particular, it is commonly used in support vector machine classification. The RBF kernel on two samples \mathbf{x},\mathbf{x'}\in \mathbb{R}^{k} , represented as feature vectors in some input space, is defined as K(\mathbf{x}, \mathbf{x'}) = \exp\left(-\frac{\|\mathbf{x} - \mathbf{x'}\|^2}{2\sigma^2}\right) \textstyle\|\mathbf{x} - \mathbf{x'}\|^2 may be recognized as the squared Euclidean distance between the two feature vectors. \sigma is a free parameter. An equivalent definition involves a parameter \textstyle\gamma = \tfrac{1}{2\sigma^2} : K(\mathbf{x}, \mathbf{x'}) = \exp(-\gamma\|\mathbf{x} - \mathbf{x'}\|^2) Since the value of the RBF kernel decreases with distance and ranges between zero (in the infinite-distance limit) and one (when ), it has a ready interpretation as a similarity measure.…
In machine learning, the radial basis function kernel, or RBF kernel, is a popular kernel function used in various kernelized learning algorithms. In particular, it is commonly used in support vector machine classification. The RBF kernel on two samples \mathbf{x},\mathbf{x'}\in \mathbb{R}^{k} , represented as feature vectors in some input space, is defined as K(\mathbf{x}, \mathbf{x'}) = \exp\left(-\frac{\|\mathbf{x} - \mathbf{x'}\|^2}{2\sigma^2}\right) \textstyle\|\mathbf{x} - \mathbf{x'}\|^2 may be recognized as the squared Euclidean distance between the two feature vectors. \sigma is a free parameter. An equivalent definition involves a parameter \textstyle\gamma = \tfrac{1}{2\sigma^2} : K(\mathbf{x}, \mathbf{x'}) = \exp(-\gamma\|\mathbf{x} - \mathbf{x'}\|^2) Since the value of the RBF kernel decreases with distance and ranges between zero (in the infinite-distance limit) and one (when ), it has a ready interpretation as a similarity measure. The feature space of the kernel has an infinite number of dimensions; for \sigma = 1 , its expansion using the multinomial theorem is: \begin{alignat}{2} \exp\left(-\frac{1}{2}\|\mathbf{x} - \mathbf{x'}\|^2\right) &= \exp\left(\frac{2}{2}\mathbf{x}^\top \mathbf{x'} - \frac{1}{2}\|\mathbf{x}\|^2 - \frac{1}{2}\|\mathbf{x'}\|^2\right)\\[5pt] &= \exp\left(\mathbf{x}^\top \mathbf{x'}\right) \exp\left( - \frac{1}{2}\|\mathbf{x}\|^2\right) \exp\left( - \frac{1}{2}\|\mathbf{x'}\|^2\right) \\[5pt] &= \sum_{j=0}^\infty \frac{(\mathbf{x}^\top \mathbf{x'})^j}{j!} \exp\left(-\frac{1}{2}\|\mathbf{x}\|^2\right) \exp\left(-\frac{1}{2}\|\mathbf{x'}\|^2\right)\\[5pt] &= \sum_{j=0}^\infty \quad \sum_{n_1+n_2+\dots +n_k=j} \exp\left(-\frac{1}{2}\|\mathbf{x}\|^2\right) \frac{x_1^{n_1}\cdots x_k^{n_k} }{\sqrt{n_1! \cdots n_k! }} \exp\left(-\frac{1}{2}\|\mathbf{x'}\|^2\right) \frac{{x'}_1^{n_1}\cdots {x'}_k^{n_k} }{\sqrt{n_1! \cdots n_k! }} \\[5pt] &=\langle \varphi(\mathbf{x}), \varphi(\mathbf{x'}) \rangle \end{alignat} \varphi(\mathbf{x}) = \exp\left(-\frac{1}{2}\|\mathbf{x}\|^2\right) \left(a^{(0)}_{\ell_0},a^{(1)}_1,\dots,a^{(1)}_{\ell_1},\dots,a^{(j)}_1,\dots,a^{(j)}_{\ell_j},\dots \right ) where a^{(j)}_{\ell}=\frac{x_1^{n_1}\cdots x_k^{n_k} }{\sqrt{n_1! \cdots n_k! }} \quad|\quad n_1+n_2+\dots+n_k = j \wedge 1\leq \ell\leq \ell_j ==Approximations== Because support vector machines and other models employing the kernel trick do not scale well to large numbers of training samples or large numbers of features in the input space, several approximations to the RBF kernel (and similar kernels) have been introduced. Typically, these take the form of a function z that maps a single vector to a vector of higher dimensionality, approximating the kernel: \langle z(\mathbf{x}), z(\mathbf{x'}) \rangle \approx \langle \varphi(\mathbf{x}), \varphi(\mathbf{x'}) \rangle = K(\mathbf{x}, \mathbf{x'}) where \textstyle\varphi is the implicit mapping embedded in the RBF kernel. One way to construct such a z is to randomly sample from the Fourier transformation of the kernel \varphi(x) = \frac{1}{\sqrt D}[\cos\langle w_1, x\rangle, \sin\langle w_1, x\rangle, \ldots, \cos\langle w_D, x\rangle, \sin\langle w_D, x\rangle]^T where w_1, ..., w_D are independent samples from the normal distribution N(0, \sigma^{-2} I) . Theorem: \operatorname E[\langle \varphi(x), \varphi(y)\rangle] = e^{\|x-y\|^2/(2\sigma^2)}. Proof: It suffices to prove the case of D=1 . Use the trigonometric identity \cos(a-b) = \cos(a)\cos(b) + \sin(a)\sin(b) , the spherical symmetry of Gaussian 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}. Theorem: \operatorname{Var}[\langle \varphi(x), \varphi(y)\rangle] = O(D^{-1}) . (Appendix A.2 ). ==See also== Gaussian function Kernel (statistics) Polynomial kernel Radial basis function Radial basis function network Obst kernel network ==References==
References
- Introduction to Machine Learning: Class Notes 67577 · retrieved 2026-11-18 · rev 1347040306
Cite this reference
MLA "Introduction to Machine Learning: Class Notes 67577." Shashua, Amnon (2009). 2026-11-18. https://en.wikipedia.org/wiki/ArXiv_(identifier). Accessed 24 November 2026.
Chicago "Introduction to Machine Learning: Class Notes 67577." Shashua, Amnon (2009). 2026-11-18. https://en.wikipedia.org/wiki/ArXiv_(identifier).
APA Shashua, Amnon (2009). (2026). Introduction to Machine Learning: Class Notes 67577. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/ArXiv_(identifier)
- Andreas Müller (2012). Kernel Approximations for Efficient SVMs (and other feature extraction methods) . Wikipedia revision 1347040306, retrieved 2026-11-19 · retrieved 2026-11-18 · rev 1347040306
Cite this reference
MLA "Andreas Müller (2012). Kernel Approximations for Efficient SVMs (and other feature extraction methods) . Wikipedia revision 1347040306, retrieved 2026-11-19." Andreas Müller (2012). 2026-11-18. https://peekaboo-vision.blogspot.de/2012/12/kernel-approximations-for-efficient.html. Accessed 24 November 2026.
Chicago "Andreas Müller (2012). Kernel Approximations for Efficient SVMs (and other feature extraction methods) . Wikipedia revision 1347040306, retrieved 2026-11-19." Andreas Müller (2012). 2026-11-18. https://peekaboo-vision.blogspot.de/2012/12/kernel-approximations-for-efficient.html.
APA Andreas Müller (2012). (2026). Andreas Müller (2012). Kernel Approximations for Efficient SVMs (and other feature extraction methods) . Wikipedia revision 1347040306, retrieved 2026-11-19. Retrieved November 24, 2026, from https://peekaboo-vision.blogspot.de/2012/12/kernel-approximations-for-efficient.html
- Random Features for Large-Scale Kernel Machines · retrieved 2026-11-18 · rev 1347040306
Cite this reference
MLA "Random Features for Large-Scale Kernel Machines." Rahimi, Ali; Recht, Benjamin (2007). 2026-11-18. https://proceedings.neurips.cc/paper/2007/hash/013a006f03dbc5392effeb8f18fda755-Abstract.html. Accessed 24 November 2026.
Chicago "Random Features for Large-Scale Kernel Machines." Rahimi, Ali; Recht, Benjamin (2007). 2026-11-18. https://proceedings.neurips.cc/paper/2007/hash/013a006f03dbc5392effeb8f18fda755-Abstract.html.
APA Rahimi, Ali; Recht, Benjamin (2007). (2026). Random Features for Large-Scale Kernel Machines. Retrieved November 24, 2026, from https://proceedings.neurips.cc/paper/2007/hash/013a006f03dbc5392effeb8f18fda755-Abstract.html
- Random Feature Attention · retrieved 2026-11-18 · rev 1347040306
Cite this reference
MLA "Random Feature Attention." Peng, Hao; Pappas, Nikolaos; Yogatama, Dani; Schwartz, Roy; Smith, Noah A. 2026-11-18. https://en.wikipedia.org/wiki/ArXiv_(identifier). Accessed 24 November 2026.
Chicago "Random Feature Attention." Peng, Hao; Pappas, Nikolaos; Yogatama, Dani; Schwartz, Roy; Smith, Noah A. 2026-11-18. https://en.wikipedia.org/wiki/ArXiv_(identifier).
APA Peng, Hao; Pappas, Nikolaos; Yogatama, Dani; Schwartz, Roy; Smith, Noah A. (2026). Random Feature Attention. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/ArXiv_(identifier)
- Using the Nyström method to speed up kernel machines · retrieved 2026-11-18 · rev 1347040306
Cite this reference
MLA "Using the Nyström method to speed up kernel machines." C. 2026-11-18. https://papers.nips.cc/paper/1866-using-the-nystrom-method-to-speed-up-kernel-machines. Accessed 24 November 2026.
Chicago "Using the Nyström method to speed up kernel machines." C. 2026-11-18. https://papers.nips.cc/paper/1866-using-the-nystrom-method-to-speed-up-kernel-machines.
APA C. (2026). Using the Nyström method to speed up kernel machines. Retrieved November 24, 2026, from https://papers.nips.cc/paper/1866-using-the-nystrom-method-to-speed-up-kernel-machines
- Training and testing low-degree polynomial data mappings via linear SVM · retrieved 2026-11-18 · rev 1347040306
Cite this reference
MLA "Training and testing low-degree polynomial data mappings via linear SVM." Chang, Yin-Wen; Hsieh, Cho-Jui; Chang, Kai-Wei; Ringgaard, Michael; Lin, Chih-Jen (2010). 2026-11-18. https://jmlr.org/papers/v11/chang10a.html. Accessed 24 November 2026.
Chicago "Training and testing low-degree polynomial data mappings via linear SVM." Chang, Yin-Wen; Hsieh, Cho-Jui; Chang, Kai-Wei; Ringgaard, Michael; Lin, Chih-Jen (2010). 2026-11-18. https://jmlr.org/papers/v11/chang10a.html.
APA Chang, Yin-Wen; Hsieh, Cho-Jui; Chang, Kai-Wei; Ringgaard, Michael; Lin, Chih-Jen (2010). (2026). Training and testing low-degree polynomial data mappings via linear SVM. Retrieved November 24, 2026, from https://jmlr.org/papers/v11/chang10a.html
- A primer on kernel methods · retrieved 2026-11-18 · rev 1347040306
Cite this reference
MLA "A primer on kernel methods." a b Jean-Philippe Vert, Koji Tsuda, and Bernhard Schölkopf (2004). 2026-11-18. https://cbio.ensmp.fr/~jvert/publi/04kmcbbook/kernelprimer.pdf. Accessed 24 November 2026.
Chicago "A primer on kernel methods." a b Jean-Philippe Vert, Koji Tsuda, and Bernhard Schölkopf (2004). 2026-11-18. https://cbio.ensmp.fr/~jvert/publi/04kmcbbook/kernelprimer.pdf.
APA a b Jean-Philippe Vert, Koji Tsuda, and Bernhard Schölkopf (2004). (2026). A primer on kernel methods. Retrieved November 24, 2026, from https://cbio.ensmp.fr/~jvert/publi/04kmcbbook/kernelprimer.pdf
Cite this article
MLA
"Radial basis function kernel." encyclopegia.org, 2026, https://encyclopegia.org/wiki/radial-basis-function-kernel. Accessed 24 November 2026.
Chicago
"Radial basis function kernel." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/radial-basis-function-kernel.
APA
encyclopegia.org. (2026). Radial basis function kernel. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/radial-basis-function-kernel
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON