Optimizing Kernel Machines Using Deep Learning

Huan Song, Jayaraman J. Thiagarajan, Prasanna Sattigeri, Andreas Spanias · DOI

TL;DR

Kernel methods excel with small datasets and structured priors but lack the end-to-end representation learning capabilities of deep neural networks (DNNs). This paper introduces Deep Kernel Machine Optimization (DKMO), a framework that bridges this gap by converting kernel matrices into dense embeddings using Nyström approximations, which are then fed into a DNN. By introducing a novel "kernel dropout" regularization, the approach achieves state-of-the-art performance on limited-data and multiple-kernel learning tasks, offering the best of both the deep learning and kernel machine worlds.

What Problem Does This Paper Address?

In modern machine learning, there is a stark dichotomy between deep neural networks and kernel methods. DNNs are the de facto standard for end-to-end inference and representation learning, but they are notoriously data-hungry and prone to overfitting when training data is limited. On the other hand, kernel methods (like Kernel SVMs) are highly effective for small datasets and allow practitioners to inject prior knowledge via custom similarity functions (kernels).

However, kernel methods have two major flaws: they scale poorly (computing the Gram matrix scales quadratically with data size), and their representation learning is decoupled from the final task objective. While Multiple Kernel Learning (MKL) attempts to fuse different feature spaces, it is computationally heavy and often fails to outperform simple baseline averages. This paper asks: Can we use the architectural power and end-to-end optimization of deep learning to build better, more scalable kernel machines, especially when data is scarce?

Methods

The authors propose DKMO (Deep Kernel Machine Optimization) and its multi-kernel extension, M-DKMO. The pipeline consists of three main innovations:

  1. Dense Embeddings via Nyström Approximation: Instead of feeding raw data or a massive $N \times N$ kernel matrix into a network, the authors use Nyström approximation (a matrix factorization technique) to project the data into a lower-dimensional subspace. This creates "dense embeddings" for each sample, conceptually similar to word embeddings in natural language processing. This works whether you have explicit features or only a pre-computed similarity matrix.
  2. Ensemble Representation Learning: Because a single Nyström approximation might miss nuances, the authors generate an ensemble of different embeddings (using different random samples or clustering landmarks). Each embedding is passed through its own fully connected neural network branch to learn task-specific latent representations.
  3. Fusion and Kernel Dropout: The parallel network branches are fused together to make a final prediction. To prevent the network from over-relying on a specific subspace, the authors introduce Kernel Dropout. Unlike standard dropout that zeroes out individual neurons, kernel dropout randomly drops the entire representation learned from a specific dense embedding during training.

For M-DKMO, this architecture is extended hierarchically: individual DKMO networks are pre-trained for each distinct kernel, and their outputs are fused globally using another layer equipped with kernel dropout.

Datasets

The authors evaluated their framework across three highly diverse domains to prove its flexibility:

  • Image Classification: Flowers17 and Flowers102 datasets, using pre-computed $\chi^2$ distance matrices based on visual features (HOG, HSV, SIFT).
  • Bioinformatics (No Explicit Features): Four protein subcellular localization datasets (Plant, Non-plant, Psort+, Psort-). Here, data exists only as biological sequences, so only sequence motif kernels (pairwise similarities) are available, not standard Euclidean features.
  • Sensor-based Activity Recognition (Limited Data): USC-HAD dataset, using smartphone accelerometer data to classify 12 daily activities. They extracted statistical, shape (Time Delay Embeddings), and correlation features to simulate a multi-sensor, limited-data environment.

Key Insights and Ideas

  • Kernels as Embeddings: Treating columns of a kernel matrix as high-dimensional, sparse embeddings and factorizing them into dense vectors is a brilliant bridge. It allows non-Euclidean data (like protein strings) to be seamlessly ingested by standard deep learning optimizers.
  • Kernel Dropout is a Powerful Regularizer: By dropping entire kernel subspaces during the fusion phase, the network is forced to learn complementary features across different RKHS (Reproducing Kernel Hilbert Space) projections. This drastically reduces overfitting on small datasets.
  • Deep Learning without Raw Features: The framework proves that you don't need raw features to train a deep neural network. If you only have a metric of how similar two items are (a kernel), DKMO can still build a deep, task-specific predictive model.

Key Results

  • Superior Multiple Kernel Learning: On the Flowers17 dataset, M-DKMO achieved 90.6% accuracy, outperforming the state-of-the-art UFO-MKL algorithm (87.1%) and a uniform averaging baseline (85.3%).
  • Robustness without Features: On the Non-plant protein dataset (where only similarity matrices exist), M-DKMO achieved 93.8% accuracy, beating UFO-MKL (90.3%) and standard decomposition baselines.
  • Beating Standard DNNs on Small Data: On the USC-HAD wearable sensor dataset, a standard Fully Connected Network (FCN) struggled with the limited data, achieving only 85.9% accuracy. M-DKMO leveraged the structured priors of the kernels to hit 90.4% accuracy, proving its worth in data-constrained environments. Qualitative t-SNE visualizations also showed M-DKMO producing much cleaner class separation than baseline methods.

Limitations and Future Work

  • Dependence on Approximation Quality: The authors note that DKMO's performance is bottlenecked by the quality of the underlying Nyström approximation. In a few isolated single-kernel tests (e.g., kernel 2 in the non-plant dataset), poor approximation quality led to slightly inferior performance compared to a standard Kernel SVM.
  • Future Work: The authors suggest that adopting more sophisticated approximation techniques or increasing the ensemble size could mitigate the approximation bottleneck. Furthermore, they propose that the principles of kernel learning and "kernel dropout" could inspire novel architectural designs and training strategies for standard neural networks, particularly to enforce capacity-controlled modeling when training data is limited.

Summary updated

BibTeX
@article{song2018optimizing,
  author = {Huan Song and Jayaraman J. Thiagarajan and Prasanna Sattigeri and Andreas Spanias},
  title = {{Optimizing Kernel Machines Using Deep Learning}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2018},
  doi = {10.1109/tnnls.2018.2804895},
}
Figure