# Fast Sketching of Polynomial Kernels of Polynomial Degree

DevFeed: [Fast Sketching of Polynomial Kernels of Polynomial Degree](<https://devfeed.tech/articles/fast-sketching-of-polynomial-kernels-of-polynomial-degree-153715.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2108.09420>)

Author: Zhao Song, David P. Woodruff, Zheng Yu, Lichen Zhang

Published: 2026-11-25T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [polynomials](<https://devfeed.tech/topics/polynomials.md>)

Tags: [algorithms](<https://devfeed.tech/tags/algorithms.md>), [approximation](<https://devfeed.tech/tags/approximation.md>), [cs-ds](<https://devfeed.tech/tags/cs-ds.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [kernels](<https://devfeed.tech/tags/kernels.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [sketch](<https://devfeed.tech/tags/sketch.md>), [stat-ml](<https://devfeed.tech/tags/stat-ml.md>), [taylor-series](<https://devfeed.tech/tags/taylor-series.md>)

## AI overview

The paper presents an oblivious sketch for polynomial kernels that removes the kernel degree q from the leading nd term, improving the running time when input dimension d is large. This targets slowly growing kernels such as the neural tangent and arc-cosine kernels, where q must be polynomial and earlier methods incur a polynomial slowdown. For kernels approximated by truncated Taylor series, the guarantees hold up to a ridge term λI. Sampling Taylor-series degrees gives a stated neural tangent kernel runtime of Õ(nd + ε⁻⁴λ⁻⁴n⁶) on n unit-norm points at accuracy ε. The authors note this is faster than exact evaluation in O(n²d) time only when d is at least about (n/(ελ))⁴.

## Source excerpt

arXiv:2108.09420v2 Announce Type: replace-cross Abstract: Kernel methods are fundamental in machine learning, and faster algorithms for kernel approximation provide direct speedups for many core tasks in machine learning. The polynomial kernel is especially important as other kernels can often be approximated by the polynomial kernel via a Taylor series expansion. Recent techniques in oblivious sketching reduce the dependence in the running time on the degree $q$ of the polynomial kernel from exponential to polynomial, which is useful for the Gaussian kernel, for which $q$ can be chosen to be polylogarithmic (for data of bounded radius and ridge parameter $\lambda\geq 1/\mathrm{poly}(n)$). However, for more slowly growing kernels, such as the neural tangent and arc-cosine kernels, $q$ needs to be polynomial, and previous work incurs a polynomial factor slowdown in the running time. We give a new oblivious sketch which greatly improves upon this running time, by removing the dependence on $q$ from the $nd$ term, which is the leading order term when the dimension $d$ is large. For kernels approximated through a truncated Taylor series, our guarantees hold up to a ridge term $\lambda I$. Combined with a sampling scheme over the degrees of the Taylor series, we further reduce the running time for slowly growing kernels such as the neural tangent kernel, for which we obtain time $\tilde O(nd+\epsilon^{-4}\lambda^{-4}n^6)$ on $n$ unit-norm points with accuracy $\epsilon$. Since the neural tangent kernel has a closed form that can be evaluated exactly in $O(n^2d)$ time, this bound is faster only when $d$ is at least about $(n/(\epsilon\lambda))^4$.