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

Deep Kernel Learning.

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

Abstract: We introduce scalable deep kernels, which combine the structural properties of deep learning architectures with the non-parametric flexibility of kernel methods. Specifically, we transform the inputs of a spectral mixture base kernel with a deep architecture, using local kernel interpolation, inducing points, and structure exploiting (Kronecker and Toeplitz) algebra for a scalable kernel representation. These closed-form kernels can be used as drop-in replacements for standard kernels, with benefits in expressive power and scalability. We jointly learn the properties of these kernels through the marginal likelihood of a Gaussian process. Inference and learning cost $O(n)$ for $n$ training points, and predictions cost $O(1)$ per test point. On a large and diverse collection of applications, including a dataset with 2 million examples, we show improved performance over scalable Gaussian processes with flexible kernel learning models, and stand-alone deep architectures.

Introduction

In modern machine learning, researchers often navigate a trade-off between the automated feature discovery of Deep Learning (DL) and the principled uncertainty quantification of Gaussian Processes (GPs). While DL excels at extracting hierarchical representations from raw, high-dimensional data, it often lacks a robust framework for uncertainty and can be difficult to calibrate. Conversely, GPs offer non-parametric flexibility and well-calibrated probabilistic outputs but suffer from poor scalability—typically $O(n^3)$—and struggle with raw inputs like pixels without manual feature engineering.

Deep Kernel Learning (DKL) bridges this gap by defining a framework that pipes the outputs of a deep neural network into a Gaussian Process. This allows for end-to-end learning of rich representations while maintaining the probabilistic elegance of kernel methods, all while scaling to millions of data points.

Methodology

The core innovation of DKL is the definition of a Deep Kernel. Rather than applying a standard kernel $k(x_i, x_j)$ directly to raw inputs, the inputs are first transformed by a deep neural network $g(x, w)$ with weights $w$. The resulting kernel is: $$k(g(x_i, w), g(x_j, w) | \theta, w)$$ where $\theta$ represents the kernel hyperparameters.

Architecture of a Deep Kernel Learning model, where a deep neural network transforms inputs for an 'infinite' Gaussian process layer.

Scalability and Joint Learning

Unlike previous hybrid approaches that decoupled feature extraction from kernel learning, DKL is trained end-to-end. The model backpropagates the GP's marginal likelihood—a built-in measure of model quality that balances fit and complexity—through the entire neural network.

To overcome the $O(n^3)$ computational bottleneck, the authors employ KISS-GP (Kernel Interpolation for Scalable Structured Gaussian Processes). This technique utilizes local cubic interpolation and exploits Kronecker and Toeplitz matrix structures to achieve $O(n)$ training time and $O(1)$ prediction time. Furthermore, the use of Spectral Mixture (SM) kernels as base kernels allows the model to discover complex, quasi-periodic patterns that simpler kernels like the Radial Basis Function (RBF) might overlook.

Experimental Evaluation

The authors evaluated DKL across a diverse range of tasks:

  • Large-Scale Regression: 16 UCI datasets, including the "Electric" dataset containing 2 million points.
  • Computer Vision: Predicting face orientation angles (Olivetti) and digit magnitudes (MNIST).

Results

DKL consistently outperformed standalone deep neural networks and traditional GPs across all benchmarks. Notably, on the 2-million-point dataset, the model maintained its linear scalability, demonstrating that GPs can be effectively applied to "big data" regimes.

Comparison of RMSE across training set sizes for CNN, DKL-RBF, and DKL-SM models.

As shown in the figure above, DKL variants (especially those using Spectral Mixture kernels) achieve lower Root Mean Square Error (RMSE) than standard Convolutional Neural Networks (CNNs) across various training set sizes. The computational overhead for adding the GP layer was found to be minimal, typically around a 10% increase in runtime per epoch.

Discussion and Insights

The DKL framework offers several conceptual advantages:

  • The Infinite Hidden Layer: A GP can be viewed as a neural network with an infinite number of hidden units. DKL essentially creates a deep architecture where the final layer is both infinitely wide and non-parametric.
  • Metric Learning: The deep network acts as a learned distance metric, "unfolding" complex data into a space where simple kernel correlations are easily identified.
  • Automatic Calibration: Training via marginal likelihood reduces the need for extensive cross-validation, as the model naturally penalizes excessive complexity.

Limitations

A primary limitation is the dimensionality of the "bottleneck" layer. The KISS-GP scalability trick is most efficient when the neural network maps data into a low-dimensional space (typically $D \le 5$). While the initial input can be high-dimensional, the output of the network $g(x, w)$ must be constrained to prevent the "curse of dimensionality" associated with grid-based interpolation.

Conclusion

Deep Kernel Learning provides a scalable, end-to-end framework for combining the strengths of deep learning and Gaussian processes. By leveraging structured linear algebra for scalability, DKL enables the use of flexible, non-parametric kernels on massive datasets, offering superior performance and principled uncertainty quantification. Future work may extend this framework to Bayesian Optimization and Reinforcement Learning, where reliable uncertainty estimates are paramount.

Summary updated

BibTeX
@inproceedings{wilson2016deep,
  author = {Andrew Gordon Wilson and Zhiting Hu and Ruslan Salakhutdinov and Eric P. Xing},
  title = {{Deep Kernel Learning.}},
  booktitle = {AISTATS},
  year = {2016},
  url = {https://openreview.net/forum?id=UgX1Q_-wIy},
}
Figure