encyclopegia.org

Polynomial kernel

In machine learning, the polynomial kernel is a kernel function commonly used with support vector machines (SVMs) and other kernelized models, that represents the similarity of vectors (training samples) in a feature space over polynomials of the original variables, allowing learning of non-linear models. Intuitively, the polynomial kernel looks not only at the given features of input samples to determine their similarity, but also combinations of these. In the context of regression analysis, such combinations are known as interaction features. The (implicit) feature space of a polynomial kernel is equivalent to that of polynomial regression, but without the combinatorial blowup in the number of parameters to be learned. When the input features are binary-valued (booleans), then the features correspond to logical conjunctions of input features.

In machine learning, the polynomial kernel is a kernel function commonly used with support vector machines (SVMs) and other kernelized models, that represents the similarity of vectors (training samples) in a feature space over polynomials of the original variables, allowing learning of non-linear models. Intuitively, the polynomial kernel looks not only at the given features of input samples to determine their similarity, but also combinations of these. In the context of regression analysis, such combinations are known as interaction features. The (implicit) feature space of a polynomial kernel is equivalent to that of polynomial regression, but without the combinatorial blowup in the number of parameters to be learned. When the input features are binary-valued (booleans), then the features correspond to logical conjunctions of input features. ==Definition== For degree- polynomials, the polynomial kernel is defined as K(\mathbf{x},\mathbf{y}) = (\mathbf{x}^\mathsf{T} \mathbf{y} + c)^{d} where and are vectors of size in the input space, i.e. vectors of features computed from training or test samples and is a free parameter trading off the influence of higher-order versus lower-order terms in the polynomial. When , the kernel is called homogeneous. (A further generalized polykernel divides by a user-specified scalar parameter . ) As a kernel, corresponds to an inner product in a feature space based on some mapping : K(\mathbf{x},\mathbf{y}) = \langle \varphi(\mathbf{x}), \varphi(\mathbf{y}) \rangle The nature of can be seen from an example. Let , so we get the special case of the quadratic kernel. After using the multinomial theorem (twice—the outermost application is the binomial theorem) and regrouping, K(\mathbf{x},\mathbf{y}) = \left(\sum_{i=1}^n x_i y_i + c\right)^2 = \sum_{i=1}^n \left(x_i^2\right) \left(y_i^2 \right) + \sum_{i=2}^n \sum_{j=1}^{i-1} \left( \sqrt{2} x_i x_j \right) \left( \sqrt{2} y_i y_j \right) + \sum_{i=1}^n \left( \sqrt{2c} x_i \right) \left( \sqrt{2c} y_i \right) + c^2 From this it follows that the feature map is given by: \varphi(x) = \left( x_n^2, \ldots, x_1^2, \sqrt{2} x_n x_{n-1}, \ldots, \sqrt{2} x_n x_1, \sqrt{2} x_{n-1} x_{n-2}, \ldots, \sqrt{2} x_{n-1} x_{1}, \ldots, \sqrt{2} x_{2} x_{1}, \sqrt{2c} x_n, \ldots, \sqrt{2c} x_1, c \right) generalizing for \left(\mathbf{x}^{T}\mathbf{y} + c\right)^d , where \mathbf{x}\in\mathbb{R}^{n} , \mathbf{y}\in \mathbb{R}^{n} and applying the multinomial theorem: \begin{alignat}{2} \left(\mathbf{x}^{T}\mathbf{y} + c\right)^d & = \sum_{j_1+j_2+\dots +j_{n+1}=d} \frac{\sqrt{d!}}{\sqrt{j_1! \cdots j_n! j_{n+1}!}} x_1^{j_1}\cdots x_n^{j_n} \sqrt{c}^{j_{n+1}} \frac{\sqrt{d!}}{\sqrt{j_1! \cdots j_n! j_{n+1}!}} y_1^{j_1}\cdots y_n^{j_n} \sqrt{c}^{j_{n+1}}\\ &=\varphi(\mathbf{x})^{T} \varphi(\mathbf{y}) \end{alignat} The last summation has l_d=\tbinom {n+d}{d} elements, so that: \varphi(\mathbf{x}) = \left(a_{1},\dots, a_{l},\dots,a_{l_d} \right ) where l=(j_1,j_2,...,j_{n},j_{n+1}) and a_{l}=\frac{\sqrt{d!} }{\sqrt{j_1! \cdots j_n!j_{n+1}! }} x_1^{j_1}\cdots x_n^{j_n} \sqrt{c}^{j_{n+1}}\quad|\quad j_1+j_2+\dots+j_n +j_{n+1} = d ==Practical use== Although the RBF kernel is more popular in SVM classification than the polynomial kernel, the latter is quite popular in natural language processing (NLP). The most common degree is (quadratic), since larger degrees tend to overfit on NLP problems. Various ways of computing the polynomial kernel (both exact and approximate) have been devised as alternatives to the usual non-linear SVM training algorithms, including: full expansion of the kernel prior to training/testing with a linear SVM, i.e. full computation of the mapping as in polynomial regression; basket mining (using a variant of the apriori algorithm) for the most commonly occurring feature conjunctions in a training set to produce an approximate expansion; inverted indexing of support vectors. One problem with the polynomial kernel is that it may suffer from numerical instability: when , tends to zero with increasing , whereas when , tends to infinity. ==References==

References

  1. Archived copy · retrieved 2012-11-11 · rev 1337746775
    Cite this reference

    MLA "Archived copy." "Archived copy" (PDF). 2012-11-11. https://web.archive.org/web/20130415231446/http://www.cs.tufts.edu/~roni/Teaching/CLT/LN/lecture18.pdf. Accessed 24 November 2026.

    Chicago "Archived copy." "Archived copy" (PDF). 2012-11-11. https://web.archive.org/web/20130415231446/http://www.cs.tufts.edu/~roni/Teaching/CLT/LN/lecture18.pdf.

    APA "Archived copy" (PDF). (2012). Archived copy. Retrieved November 24, 2026, from https://web.archive.org/web/20130415231446/http://www.cs.tufts.edu/~roni/Teaching/CLT/LN/lecture18.pdf

  2. Introduction to Machine Learning: Class Notes 67577 · retrieved 2026-11-19 · rev 1337746775
    Cite this reference

    MLA "Introduction to Machine Learning: Class Notes 67577." Shashua, Amnon (2009). 2026-11-19. https://en.wikipedia.org/wiki/ArXiv_(identifier). Accessed 24 November 2026.

    Chicago "Introduction to Machine Learning: Class Notes 67577." Shashua, Amnon (2009). 2026-11-19. 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)

  3. Training and testing low-degree polynomial data mappings via linear SVM · retrieved 2026-11-19 · rev 1337746775
    Cite this reference

    MLA "Training and testing low-degree polynomial data mappings via linear SVM." a b Chang, Yin-Wen; Hsieh, Cho-Jui; Chang, Kai-Wei; Ringgaard, Michael; Lin, Chih-Jen (2010). 2026-11-19. http://jmlr.csail.mit.edu/papers/v11/chang10a.html. Accessed 24 November 2026.

    Chicago "Training and testing low-degree polynomial data mappings via linear SVM." a b Chang, Yin-Wen; Hsieh, Cho-Jui; Chang, Kai-Wei; Ringgaard, Michael; Lin, Chih-Jen (2010). 2026-11-19. http://jmlr.csail.mit.edu/papers/v11/chang10a.html.

    APA a b 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 http://jmlr.csail.mit.edu/papers/v11/chang10a.html

  4. a b c Yoav Goldberg and Michael Elhadad (2008). splitSVM: Fast, Space-Efficient, non-Heuristic, Polynomial Kernel Computation for NLP Applications. Proc. ACL-08: HLT. Wikipedia revision 1337746775, retrieved 2026-11-20 · retrieved 2026-11-19 · rev 1337746775
    Cite this reference

    MLA "a b c Yoav Goldberg and Michael Elhadad (2008). splitSVM: Fast, Space-Efficient, non-Heuristic, Polynomial Kernel Computation for NLP Applications. Proc. ACL-08: HLT. Wikipedia revision 1337746775, retrieved 2026-11-20." a b c Yoav Goldberg and Michael Elhadad (2008). 2026-11-19. https://en.wikipedia.org/w/index.php?oldid=1337746775. Accessed 24 November 2026.

    Chicago "a b c Yoav Goldberg and Michael Elhadad (2008). splitSVM: Fast, Space-Efficient, non-Heuristic, Polynomial Kernel Computation for NLP Applications. Proc. ACL-08: HLT. Wikipedia revision 1337746775, retrieved 2026-11-20." a b c Yoav Goldberg and Michael Elhadad (2008). 2026-11-19. https://en.wikipedia.org/w/index.php?oldid=1337746775.

    APA a b c Yoav Goldberg and Michael Elhadad (2008). (2026). a b c Yoav Goldberg and Michael Elhadad (2008). splitSVM: Fast, Space-Efficient, non-Heuristic, Polynomial Kernel Computation for NLP Applications. Proc. ACL-08: HLT. Wikipedia revision 1337746775, retrieved 2026-11-20. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1337746775

  5. a b Kudo, T.; Matsumoto, Y. (2003). Fast methods for kernel-based text analysis . Proc. ACL. Wikipedia revision 1337746775, retrieved 2026-11-20 · retrieved 2026-11-19 · rev 1337746775
    Cite this reference

    MLA "a b Kudo, T.; Matsumoto, Y. (2003). Fast methods for kernel-based text analysis . Proc. ACL. Wikipedia revision 1337746775, retrieved 2026-11-20." a b Kudo, T. 2026-11-19. https://en.wikipedia.org/w/index.php?oldid=1337746775. Accessed 24 November 2026.

    Chicago "a b Kudo, T.; Matsumoto, Y. (2003). Fast methods for kernel-based text analysis . Proc. ACL. Wikipedia revision 1337746775, retrieved 2026-11-20." a b Kudo, T. 2026-11-19. https://en.wikipedia.org/w/index.php?oldid=1337746775.

    APA a b Kudo, T. (2026). a b Kudo, T.; Matsumoto, Y. (2003). Fast methods for kernel-based text analysis . Proc. ACL. Wikipedia revision 1337746775, retrieved 2026-11-20. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1337746775

  6. Lin, Chih-Jen (2012). Shewchuk (PDF) . Machine Learning Summer School. Kyoto. Wikipedia revision 1337746775, retrieved 2026-11-20 · retrieved 2026-11-19 · rev 1337746775
    Cite this reference

    MLA "Lin, Chih-Jen (2012). Shewchuk (PDF) . Machine Learning Summer School. Kyoto. Wikipedia revision 1337746775, retrieved 2026-11-20." Lin, Chih-Jen (2012). 2026-11-19. https://people.eecs.berkeley.edu/~jrs/189s21/lec/16.pdf. Accessed 24 November 2026.

    Chicago "Lin, Chih-Jen (2012). Shewchuk (PDF) . Machine Learning Summer School. Kyoto. Wikipedia revision 1337746775, retrieved 2026-11-20." Lin, Chih-Jen (2012). 2026-11-19. https://people.eecs.berkeley.edu/~jrs/189s21/lec/16.pdf.

    APA Lin, Chih-Jen (2012). (2026). Lin, Chih-Jen (2012). Shewchuk (PDF) . Machine Learning Summer School. Kyoto. Wikipedia revision 1337746775, retrieved 2026-11-20. Retrieved November 24, 2026, from https://people.eecs.berkeley.edu/~jrs/189s21/lec/16.pdf

  7. a b Lin, Chih-Jen (2012). Machine learning software: design and practical use (PDF) . Machine Learning Summer School. Kyoto. Wikipedia revision 1337746775, retrieved 2026-11-20 · retrieved 2026-11-19 · rev 1337746775
    Cite this reference

    MLA "a b Lin, Chih-Jen (2012). Machine learning software: design and practical use (PDF) . Machine Learning Summer School. Kyoto. Wikipedia revision 1337746775, retrieved 2026-11-20." a b Lin, Chih-Jen (2012). 2026-11-19. http://www.csie.ntu.edu.tw/~cjlin/talks/mlss_kyoto.pdf. Accessed 24 November 2026.

    Chicago "a b Lin, Chih-Jen (2012). Machine learning software: design and practical use (PDF) . Machine Learning Summer School. Kyoto. Wikipedia revision 1337746775, retrieved 2026-11-20." a b Lin, Chih-Jen (2012). 2026-11-19. http://www.csie.ntu.edu.tw/~cjlin/talks/mlss_kyoto.pdf.

    APA a b Lin, Chih-Jen (2012). (2026). a b Lin, Chih-Jen (2012). Machine learning software: design and practical use (PDF) . Machine Learning Summer School. Kyoto. Wikipedia revision 1337746775, retrieved 2026-11-20. Retrieved November 24, 2026, from http://www.csie.ntu.edu.tw/~cjlin/talks/mlss_kyoto.pdf

  8. Archived copy . retrieved 2012-11-12 · retrieved 2012-11-11 · rev 1337746775
    Cite this reference

    MLA "Archived copy . retrieved 2012-11-12." Archived copy. 2012-11-11. https://en.wikipedia.org/w/index.php?oldid=1337746775. Accessed 24 November 2026.

    Chicago "Archived copy . retrieved 2012-11-12." Archived copy. 2012-11-11. https://en.wikipedia.org/w/index.php?oldid=1337746775.

    APA Archived copy. (2012). Archived copy . retrieved 2012-11-12. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1337746775

  9. Chang, Yin-Wen. jmlr.csail.mit.edu . 2010. · retrieved 2026-02-10 · rev 1337746775
    Cite this reference

    MLA "Chang, Yin-Wen. jmlr.csail.mit.edu . 2010." Chang, Yin-Wen. 2026-02-10. https://en.wikipedia.org/w/index.php?oldid=1337746775. Accessed 24 November 2026.

    Chicago "Chang, Yin-Wen. jmlr.csail.mit.edu . 2010." Chang, Yin-Wen. 2026-02-10. https://en.wikipedia.org/w/index.php?oldid=1337746775.

    APA Chang, Yin-Wen. (2026). Chang, Yin-Wen. jmlr.csail.mit.edu . 2010. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1337746775

  10. Lin, Chih-Jen. Machine learning software: design and practical use . 2012. · retrieved 2026-02-10 · rev 1337746775
    Cite this reference

    MLA "Lin, Chih-Jen. Machine learning software: design and practical use . 2012." Lin, Chih-Jen. 2026-02-10. https://en.wikipedia.org/w/index.php?oldid=1337746775. Accessed 24 November 2026.

    Chicago "Lin, Chih-Jen. Machine learning software: design and practical use . 2012." Lin, Chih-Jen. 2026-02-10. https://en.wikipedia.org/w/index.php?oldid=1337746775.

    APA Lin, Chih-Jen. (2026). Lin, Chih-Jen. Machine learning software: design and practical use . 2012. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1337746775

  11. Lin, Chih-Jen. Shewchuk . 2012. · retrieved 2026-02-10 · rev 1337746775
    Cite this reference

    MLA "Lin, Chih-Jen. Shewchuk . 2012." Lin, Chih-Jen. 2026-02-10. https://en.wikipedia.org/w/index.php?oldid=1337746775. Accessed 24 November 2026.

    Chicago "Lin, Chih-Jen. Shewchuk . 2012." Lin, Chih-Jen. 2026-02-10. https://en.wikipedia.org/w/index.php?oldid=1337746775.

    APA Lin, Chih-Jen. (2026). Lin, Chih-Jen. Shewchuk . 2012. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1337746775

Cite this article

MLA

"Polynomial kernel." encyclopegia.org, 2026, https://encyclopegia.org/wiki/polynomial-kernel. Accessed 24 November 2026.

Chicago

"Polynomial kernel." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/polynomial-kernel.

APA

encyclopegia.org. (2026). Polynomial kernel. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/polynomial-kernel

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

pseudo-polynomial time

stub · references available

kernel

stub · references available

kernel

stub · references available

chromatic polynomial

stub · references available

power sum symmetric polynomial

stub · references available

Jones polynomial

stub · references available

polynomial hierarchy

stub · references available

separable polynomial

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1337746775 · 0.5 · snapshot enwiki-001337746775

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.