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

Fastfood:对数线性时间内的近似核展开

Fastfood: Approximate Kernel Expansions in Loglinear Time

Google Research(谷歌研究院);Google Strategic Technologies(谷歌战略技术部);Carnegie Mellon University(卡内基梅隆大学)

Quoc Viet Le, Tamas Sarlos, Alexander Johannes Smola

摘要:

尽管核方法取得了成功,但在许多大规模问题中难以使用的原因是,存储和计算决策函数通常是昂贵的,特别是在预测时。在本文中,我们克服了这个困难,提出快餐,近似加速这种计算显着。快餐的关键是观察阿达玛矩阵,当与对角高斯矩阵结合时,表现出类似于稠密高斯随机矩阵的性质。然而,与后者不同的是,阿达玛矩阵和对角矩阵的乘法和存储成本都很低。这两个矩阵可以用来代替Rahimi和Recht(2009)提出的随机厨房水槽中的高斯矩阵,从而加快了大范围核函数的计算。具体来说,Fastfood需要O(n log d)时间和O(n)存储来计算d维中的n个非线性基函数,这是O(nd)计算和存储的显着改进,而不会牺牲精度。我们的方法适用于任何平移不变量和任何点积核,如流行的RBF核和多项式核。我们证明了近似是无偏的,并具有低方差。实验表明,我们实现了与完整内核扩展和随机厨房水槽相似的准确性,同时速度快100倍,内存少1000倍。这些改进,特别是在内存使用方面,使得内核方法对于具有大型训练集和/或需要实时预测的应用程序更加实用。

英文摘要:

Despite their successes, what makes kernel methods difficult to use in many large scale problems is the fact that storing and computing the decision function is typically expensive, especially at prediction time. In this paper, we overcome this difficulty by proposing Fastfood, an approximation that accelerates such computation significantly. Key to Fastfood is the observation that Hadamard matrices, when combined with diagonal Gaussian matrices, exhibit properties similar to dense Gaussian random matrices. Yet unlike the latter, Hadamard and diagonal matrices are inexpensive to multiply and store. These two matrices can be used in lieu of Gaussian matrices in Random Kitchen Sinks proposed by Rahimi and Recht (2009) and thereby speeding up the computation for a large range of kernel functions. Specifically, Fastfood requires O(n log d) time and O(n) storage to compute n non-linear basis functions in d dimensions, a significant improvement from O(nd) computation and storage, without sacrificing accuracy. Our method applies to any translation invariant and any dot-product kernel, such as the popular RBF kernels and polynomial kernels. We prove that the approximation is unbiased and has low variance. Experiments show that we achieve similar accuracy to full kernel expansions and Random Kitchen Sinks while being 100x faster and using 1000x less memory. These improvements, especially in terms of memory usage, make kernel methods more practical for applications that have large training sets and/or require real-time prediction.

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

↑