How to Scale Up Kernel Methods to Be As Good As Deep Neural Nets

Zhiyun Lu, Avner May, Kuan Liu, Alireza Bagheri Garakani, Dong Guo, Aurélien Bellet, Linxi Fan, Michael Collins, Brian Kingsbury, Michael Picheny, Fei ShaarXiv 2014

Introduction

Deep learning has long dominated large-scale machine learning tasks, primarily because traditional kernel methods exhibit poor scalability on massive datasets. This paper introduces a highly scalable approach for kernel methods utilizing random feature approximations and parallel optimization, enabling training on millions of examples. The resulting kernel models match or exceed the performance of well-engineered Deep Neural Networks (DNNs) on complex image and speech recognition tasks, while requiring significantly less hyperparameter tuning.

The Scalability Challenge in Kernel Methods

Deep Neural Networks (DNNs) are currently the standard for large-scale learning, effectively utilizing massive datasets and models with millions of parameters. Conversely, traditional kernel methods, such as Support Vector Machines, face a significant computational barrier: their complexity scales quadratically—$O(N^2)$—with the number of training examples. For a dataset of 10 million points, computing the corresponding kernel matrix is computationally prohibitive.

This barrier has led to a widespread assumption that kernel methods cannot compete with deep learning on large-scale tasks like speech and image recognition. This research challenges that skepticism by proposing techniques to scale kernel methods to hundreds of millions of parameters, allowing them to compete directly with state-of-the-art DNNs.

Methodology

Instead of computing the exact kernel matrix, the authors leverage random Fourier features. By projecting input data using a large set of random cosine functions, they approximate infinite-dimensional kernel spaces (such as Gaussian RBF or Laplacian kernels) with finite, dense feature vectors.

To achieve unprecedented scale, the following innovations are introduced:

  • Parallel Optimization: To handle models with up to $10^8$ parameters, the massive random feature vector is split into smaller blocks. A multinomial logistic regression model is trained on each block in parallel using Stochastic Average Gradient (SAG), followed by an ensemble of the results.
  • Multiple Kernel Learning (MKL): To avoid manual feature engineering, the authors combine multiple kernels. They provide a mathematical proof for efficiently approximating multiplicative kernel combinations by sampling random variables from the convolution of the component kernels' probability distributions, maintaining a constant feature dimension.

Experimental Setup

The methods were evaluated on several large-scale datasets:

  • MNIST-6.7M: A 6.75-million sample subset of the augmented MNIST-8M dataset.
  • CIFAR-10: A standard object recognition dataset comprising 40k training, 10k validation, and 10k test images.
  • IARPA Babel Program: Challenging conversational telephone speech datasets (Cantonese and Bengali) for acoustic modeling, each containing approximately 7.5 million acoustic frames.

Key Results

The kernel methods demonstrated performance comparable to or exceeding highly optimized DNN baselines across various benchmarks.

Comparison of error rates (%) for kernel methods and DNNs on the MNIST dataset with and without data augmentation.
  • Speech Recognition: On the Cantonese ASR task, the kernel model achieved a 65.7% Token Error Rate (TER), outperforming a production DNN from IBM (67.3%).
  • Image Recognition: On CIFAR-10 with data augmentation, the kernel model achieved a 42.2% error rate, slightly better than the best DNN (43.3%). Note that these comparisons exclude Convolutional Neural Networks (CNNs) as they utilize spatial priors not present in these models.
  • Ensemble Performance: Combining kernel and DNN models further improved results, reducing MNIST error to 0.61% and CIFAR-10 error to 40.3%.

Discussion and Insights

The empirical results suggest several key takeaways:

  1. Breaking the $O(N^2)$ Barrier: By shifting from the dual space (kernel matrices) to the primal space (linear models on random features) and employing parallel block-training, kernel methods can effectively process millions of data points.
  2. Efficiency in Tuning: While training time is comparable to DNNs, kernel methods require far less hyperparameter tuning, typically focusing only on kernel bandwidth and the number of random projections.
  3. Complementary Representations: Visualizations using t-SNE indicate that kernels and DNNs learn fundamentally different representations. The performance gains from ensembling these models suggest they capture complementary information about the data.

Conclusion and Future Work

While this work demonstrates the empirical success of scaled kernel methods, several areas remain for exploration. Future research will focus on providing rigorous mathematical proofs for the convergence of the parallel block-training procedure. Additionally, understanding the mechanical differences between the non-linear embeddings learned by DNNs and kernel methods could lead to the development of novel hybrid architectures.

Summary updated

BibTeX
@misc{lu2014how,
  author = {Zhiyun Lu and Avner May and Kuan Liu and Alireza Bagheri Garakani and Dong Guo and Aurélien Bellet and Linxi Fan and Michael Collins and Brian Kingsbury and Michael Picheny and Fei Sha},
  title = {{How to Scale Up Kernel Methods to Be As Good As Deep Neural Nets}},
  year = {2014},
  eprint = {1411.4000},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1411.4000},
}
Figure