Fastfood: Approximate Kernel Expansions in Loglinear Time

By Quoc V. Le, Tamás Sarlós, Alex Smola. 2014

471 citations recorded by the source corpus.

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.

Subfields: Artificial Intelligence, Computational Mathematics, Computer Vision and Pattern Recognition, Statistical Learning Theory, Algorithms & Complexity

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Yoshua Bengio
  2. Sergey Levine
  3. Ruslan Salakhutdinov
  4. Percy Liang
  5. Bernhard Schölkopf
  6. Quoc V. Le
  7. Mohit Bansal
  8. Dacheng Tao

In Computational Mathematics

  1. David P. Woodruff
  2. Vikas Sindhwani
  3. Haim Avron
  4. Tommi S. Jaakkola
  5. Francis R. Bach
  6. Martin J. Wainwright
  7. Bernhard Schölkopf
  8. Sanjiv Kumar

In Computer Vision and Pattern Recognition

  1. Luc Van Gool
  2. Dacheng Tao
  3. Trevor Darrell
  4. Ming-Hsuan Yang
  5. Xiaogang Wang
  6. Jitendra Malik
  7. Andrew Zisserman
  8. Bernt Schiele

In Statistical Learning Theory

  1. Arthur Gretton
  2. Kenji Fukumizu
  3. Bernhard Schölkopf
  4. Bharath K. Sriperumbudur
  5. Krikamol Muandet
  6. Dino Sejdinovic
  7. Le Song
  8. David Lopez-Paz

In Algorithms & Complexity

  1. Andrew Gordon Wilson
  2. David Lopez-Paz
  3. Vikas Sindhwani
  4. Haim Avron
  5. Eric P. Xing
  6. Le Song
  7. David P. Woodruff
  8. Zoubin Ghahramani

Citations in the corpus