NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Stochastic Variational Deep Kernel Learning

Andrew Gordon Wilson, Zhiting Hu, Ruslan Salakhutdinov, Eric P. Xing

Introduction

Gaussian Processes (GPs) are considered "gold standard" models for uncertainty quantification and non-parametric flexibility. However, they suffer from two major limitations: scalability (standard GPs scale at $O(n^3)$) and the curse of dimensionality. Standard kernel functions struggle to find meaningful patterns in high-dimensional raw data, such as pixels, because they lack the hierarchical feature-learning capabilities of deep learning.

Stochastic Variational Deep Kernel Learning (SV-DKL) addresses these flaws by combining the feature-learning power of deep neural networks (DNNs) with the principled flexibility of GPs. By introducing a novel stochastic variational inference procedure, SV-DKL enables these hybrid models to scale to datasets with millions of points, handle multi-task classification, and utilize mini-batch training for the first time.

The SV-DKL Architecture

Previous attempts at "Deep Kernel Learning" used a neural network to transform inputs into a lower-dimensional space before passing them to a GP. However, these earlier versions struggled with classification, lacked multi-task learning support, and could not be trained using stochastic gradient descent (SGD) on mini-batches.

The SV-DKL framework overcomes these barriers by stacking a DNN with an additive Gaussian Process layer.

SV-DKL Architecture
  • Architecture: Inputs are passed through a DNN to produce $Q$ features. These features are grouped and fed into $J$ additive Gaussian processes. Finally, a linear mixing matrix ($A$) combines these GPs to produce correlated outputs for multiple classes or tasks.
  • Stochastic Variational Inference (SVI): To achieve scalability, the authors derive a variational lower bound (ELBO) that factorizes over data points. This allows the model to be trained on mini-batches, just like a standard neural network.
  • Structure-Exploiting Algebra: The model leverages "KISS-GP" (Kernel Interpolation for Scalable Structured GPs). By placing "inducing points" on a grid and using Kronecker and Toeplitz algebra, the computational complexity of the GP is reduced from $O(m^3)$ to roughly $O(m^{1+1/D})$, where $m$ is the number of inducing points.
  • Joint Learning: All components—the DNN weights, the GP hyperparameters, and the mixing matrix—are learned jointly by maximizing the marginal likelihood.

Key Insights

  • Scalability as a Catalyst for Expressivity: Traditionally, big data is a computational burden for GPs. In the context of DKL, however, big data is an opportunity. More data allows the model to learn more complex, "expressive" kernels capable of capturing long-range correlations that simple kernels miss.
  • Metric Learning: The DNN effectively learns a non-Euclidean similarity metric. Instead of calculating how close two images are based on raw pixels, the GP calculates similarity based on the high-level features learned by the network.
  • Interpretable Correlations: The linear mixing layer ($A$) learns how different classes relate to one another. For example, in MNIST, the model learns that the digit "9" is statistically similar to "0" and "6" based on the learned feature space.

Experimental Results

The model was evaluated on a diverse set of benchmarks, including massive tabular datasets (like a 6-million record Airline Delays dataset), standard UCI repository tasks, and image classification benchmarks (MNIST, CIFAR-10, SVHN).

Accuracy on Airline Dataset
  • Superior Accuracy at Scale: On the 6-million-point Airline dataset, SV-DKL achieved 78.1% accuracy, outperforming both standalone DNNs (77.3%) and previous state-of-the-art scalable GPs (~67.5%).
  • Efficiency: SV-DKL saved over 60% in training time compared to other modern scalable GP methods (like KLSP-GP) while providing better predictive power.
  • Image Benchmarks: SV-DKL consistently outperformed standard Convolutional Neural Networks (CNNs). On CIFAR-10, it achieved 77.04% accuracy compared to the base CNN's 75.92%. When paired with a ResNet-20 architecture, it boosted accuracy from 90.1% to 91.0%.

Limitations and Future Work

While highly effective, SV-DKL has some limitations. The grid-based inducing points (KISS-GP) are fast, but their complexity still grows with the dimensionality ($D$) of the base kernels. Although additive structures mitigate this, very high-dimensional base kernels remain a challenge. Additionally, the authors found it beneficial to pre-train the DNN using a standard softmax loss before starting the joint SV-DKL training, suggesting that the joint loss landscape can be difficult to navigate from a random initialization.

Future directions include extending this framework to provide even better uncertainty estimates for out-of-distribution data and utilizing it to gain scientific insights by interpreting the learned deep kernels.

Summary updated

BibTeX
@inproceedings{wilson2016stochastic,
  author = {Andrew Gordon Wilson and Zhiting Hu and Ruslan Salakhutdinov and Eric P. Xing},
  title = {{Stochastic Variational Deep Kernel Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2016},
}
Figure