跳到正文
arXiv (AI + Vision + Imaging)· Zhao Song, David P. Woodruff, Zheng Yu, Lichen Zhang·· 1 天前AI 评分12

多项式核多项式次数的快速草图算法

Fast Sketching of Polynomial Kernels of Polynomial Degree

AI 导读

提出一种新的oblivious sketch,从nd项中移除对多项式核次数q的依赖,在维度d较大时显著改善运行时间。对经截断泰勒级数近似的核,该保证在岭项λI下成立;结合对泰勒级数次数的采样方案,神经切线核在n个单位范数点、精度ε下达到Õ(nd+ε⁻⁴λ⁻⁴n⁶)时间。由于神经切线核有可在O(n²d)时间精确求值的闭式,该界仅在d至少约为(n/(ε λ))⁴时更快。

正文 · 原文

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$.

来源:arXiv (AI + Vision + Imaging) · arxiv.org