Local Deep Kernel Learning for Efficient Non-linear SVM Prediction

Cijo Jose, Prasoon Goyal, Parv Aggrwal, Manik VarmaICML 2013

Support Vector Machines (SVMs) are a staple of machine learning due to their high accuracy on non-linear tasks. However, they suffer from a major "prediction bottleneck": the cost of making a prediction is proportional to the number of support vectors. In large datasets, the number of support vectors grows linearly with the training set size, making non-linear SVMs too slow for real-time applications or massive-scale data.

Existing solutions usually try to approximate the kernel (like Nyström or Random Fourier Features) or reduce the number of support vectors. However, these methods often ignore the specific task labels during embedding or fail to provide a significant enough speedup without a massive hit to accuracy.

To address this, researchers have introduced Local Deep Kernel Learning (LDKL), a method that drastically speeds up non-linear SVM predictions by learning a tree-structured, sparse feature embedding. By moving from dual-space to primal-space prediction, LDKL achieves up to a 4000x speedup over standard RBF-SVMs with only a marginal dip in accuracy.

How LDKL Works

LDKL approaches the prediction bottleneck by learning a task-specific, tree-structured feature embedding. The methodology breaks down into four key components:

  1. Composite Kernel: The model defines a kernel as the product of a local kernel ($K_L$) and a global kernel ($K_G$). This induces a high-dimensional feature space where classification can be performed using primal variables ($W$), effectively decoupling the prediction cost from the number of support vectors.
  2. Tree-Structured Embedding: The local feature $\phi_L$ is structured as a tree. For any input $x$, only the dimensions corresponding to the path from the root to a leaf are non-zero. If the tree has $M$ nodes, the embedding is $M$-dimensional but has only $\log M$ non-zero entries.
  3. Primal Optimization: Unlike most kernel methods that use dual parameters, LDKL optimizes in the primal space using stochastic sub-gradient descent. This avoids the quadratic scaling of traditional SVM training and the memory overhead of storing thousands of support vectors.
  4. The "Tanh" Relaxation: Learning a discrete tree structure is a hard, non-convex problem because indicator functions (which dictate the path to take) are not differentiable. The authors replace the discrete sign functions with a continuous tanh function and adaptively tune a scale parameter during training to "harden" the splits into a tree as the model converges.

Key Insights

  • Logarithmic Scaling: The "Deep" in LDKL refers to computational depth. Because the prediction cost is logarithmic in the dimensionality of the local embedding ($O(D \log M)$), the model can use extremely high-dimensional spaces to increase capacity without a linear increase in cost.
  • Task-Aware Embeddings: Unlike Random Fourier Features (RFF), which are "data-oblivious," LDKL learns the embedding based on the training labels. This allows it to focus its modeling power precisely on the decision boundary.

Key Results

The model was evaluated on eight benchmark datasets of varying sizes and dimensions, ranging from smaller sets like Banana and Letter to large-scale sets like CoverType (522k points) and MNIST (60k).

Accuracy vs. Prediction Time across datasets

LDKL consistently demonstrated superior accuracy at fixed computational budgets. For instance, when prediction costs were restricted to 33 times that of a linear SVM, LDKL achieved 88.21% accuracy on the CoverType dataset, whereas Random Fourier Features (RFF) only managed 58%.

Performance comparison table showing massive speedups

The most striking result is the massive speedup LDKL provides. On the CoverType dataset, LDKL achieved a 4216x speedup over a standard RBF-SVM. While the RBF-SVM reached 91.21% accuracy, LDKL maintained a highly competitive 88.21%. Furthermore, LDKL took only hours to train on datasets where RBF-SVMs took days, and the entire model for CoverType required less than 1 MB of RAM to store.

Limitations and Future Work

While LDKL offers a compelling solution to the SVM speed bottleneck, it does have limitations:

  • Non-Convexity: The optimization problem is non-convex, meaning the quality of the final model can be sensitive to initialization.
  • Fixed Tree Structure: In this iteration, the authors used fully balanced trees. Future work could involve learning the tree structure itself dynamically (e.g., through $l_1$ regularization on node weights).
  • Theoretical Bounds: While the empirical results are exceptionally strong, the paper does not yet provide formal generalization error bounds for the proposed tree-structured embedding.

Ultimately, LDKL represents a significant leap forward for deploying highly accurate, non-linear SVMs in real-time and large-scale environments.

Summary updated

BibTeX
@inproceedings{jose2013local,
  author = {Cijo Jose and Prasoon Goyal and Parv Aggrwal and Manik Varma},
  title = {{Local Deep Kernel Learning for Efficient Non-linear SVM Prediction}},
  booktitle = {International Conference on Machine Learning},
  year = {2013},
  url = {https://openreview.net/forum?id=H14-khWd-H},
}
Figure