arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2108.09420cs.DScs.LGstat.ML
收藏

多项式次数多项式核的快速 Sketching 方法

Fast Sketching of Polynomial Kernels of Polynomial Degree

Princeton University(普林斯顿大学);Institute for Advanced Study(高等研究院);Carnegie Mellon University(卡内基梅隆大学)

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

AI总结:

该研究针对多项式核提出新的无感知 Sketch 方法,移除运行时间对核次数 $q$ 的依赖,结合采样方案优化慢增长核的运行时间,在特定维度条件下比神经正切核的精确计算更快。

摘要:

核方法是机器学习的基础,更快的核近似算法可为机器学习的许多核心任务提供直接加速。多项式核尤为重要,因为其他核常可通过泰勒级数展开由多项式核近似。近期的无感知 Sketching 技术将多项式核运行时间对其次数 $q$ 的依赖从指数级降至多项式级,这对高斯核很有用,对于有界半径数据和岭参数 $\lambda\geq 1/\mathrm{poly}(n)$,$q$ 可选取为多对数级。但对于神经正切核、弧余弦核等增长较慢的核,$q$ 需要为多项式级,而此前的工作会导致运行时间出现多项式级的减速。我们提出一种新的无感知 Sketch,通过从主导项 $nd$(当维度 $d$ 较大时)中移除对 $q$ 的依赖,大幅改进了运行时间。对于通过截断泰勒级数近似的核,我们的保证适用于岭项 $\lambda I$。结合泰勒级数次数上的采样方案,我们进一步降低了神经正切核等慢增长核的运行时间,对于 $n$ 个单位范数点,在精度 $\epsilon$ 下,我们得到时间 $\tilde O(nd+\epsilon^{-4}\lambda^{-4}n^6)$。由于神经正切核有闭式形式,可在 $O(n^2d)$ 时间内精确计算,因此仅当 $d$ 至少约为 $(n/(\epsilon\lambda))^4$ 时,该界才更快。

英文摘要:

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 $λ\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 $λ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+ε^{-4}λ^{-4}n^6)$ on $n$ unit-norm points with accuracy $ε$. 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/(ελ))^4$.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑