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

Guided Deep Kernel Learning

Idan Achituve, Gal Chechik, Ethan Fetaya

Abstract: Combining Gaussian processes with the expressive power of deep neural networks is commonly done nowadays through deep kernel learning (DKL). Unfortunately, due to the kernel optimization process, this often results in losing their Bayesian benefits. In this study, we present a novel approach for learning deep kernels by utilizing infinite-width neural networks. We propose to use the Neural Network Gaussian Process (NNGP) model as a guide to the DKL model in the optimization process. Our approach harnesses the reliable uncertainty estimation of the NNGPs to adapt the DKL target confidence when it encounters novel data points. As a result, we get the best of both worlds, we leverage the Bayesian behavior of the NNGP, namely its robustness to overfitting, and accurate uncertainty estimation, while maintaining the generalization abilities, scalability, and flexibility of deep kernels. Empirically, we show on multiple benchmark datasets of varying sizes and dimensionality, that our method is robust to overfitting, has good predictive performance, and provides reliable uncertainty estimations.

Introduction: The DKL Overfitting Problem

Gaussian Processes (GPs) are cornerstone Bayesian models, prized for their ability to provide well-calibrated uncertainty estimates. This makes them indispensable in high-stakes domains where knowing "what the model doesn't know" is as critical as the prediction itself. However, standard GPs struggle to scale and often fail to capture the complex features inherent in high-dimensional data like images.

Deep Kernel Learning (DKL) was proposed to bridge this gap by using a deep neural network as a feature extractor for a GP. While this increases expressive power, it introduces a significant flaw: the optimization of the kernel parameters often leads to "over-correlation." In practice, DKL models frequently overfit the training data and become dangerously overconfident on unseen test points, effectively losing their Bayesian advantages.

Neural Network Gaussian Processes (NNGPs)—infinite-width neural networks equivalent to GPs—offer a perfectly Bayesian alternative that does not overfit. Yet, they are computationally expensive and often lag behind standard neural networks in raw predictive accuracy. The challenge addressed in this work is: How can we combine the predictive performance and scalability of DKL with the reliable uncertainty estimation of NNGPs?

Methods: Guided Deep Kernel Learning (GDKL)

The authors introduce Guided Deep Kernel Learning (GDKL), a framework where a pre-computed NNGP acts as a "teacher" to guide the DKL training process. Instead of the standard marginal likelihood objective, which is prone to overfitting in DKL, GDKL uses a training objective that balances accuracy with calibrated uncertainty.

The core innovation is the "Goldilocks" objective. Pure distillation of an NNGP into a DKL model merely transfers the NNGP's often mediocre accuracy. Conversely, optimizing solely for prediction leads back to overconfidence. GDKL resolves this by forcing the DKL model to match the NNGP's posterior distribution conditioned on the target value.

Comparison of predictive distributions with and without target conditioning.

As illustrated above, conditioning on the target value significantly refines the predictive distribution. Mathematically, this objective acts as a variational lower bound (ELBO), ensuring the DKL model is only confident when the NNGP guide is confident. To ensure scalability to large datasets, GDKL incorporates inducing points (Sparse GPs), allowing for mini-batch training and avoiding the $O(N^2)$ bottleneck of exact GPs.

Key Results and Empirical Validation

The authors evaluated GDKL against standard DKL, NNGP, and GP-RBF baselines across various benchmarks, including small UCI regression datasets (Boston, Energy, Concrete), high-dimensional datasets (Buzz, CTSlice), and image classification (CIFAR-10/100).

Fixing Overconfidence in Regression

On small datasets like Boston and Energy, standard DKL often achieves competitive RMSE but suffers from catastrophic overfitting in terms of test log-likelihood—meaning it is "confidently wrong." GDKL successfully addresses this issue.

Performance comparison on UCI regression benchmarks.

As shown in the performance comparison, GDKL (Ours) matches or exceeds the RMSE of standard DKL while providing vastly superior log-likelihoods, aligning more closely with the robust Bayesian behavior of the NNGP guide. This demonstrates that GDKL successfully inherits the NNGP's calibration without sacrificing the DKL's predictive power.

Scaling to Image Data

The benefits of GDKL extend to complex image data. On CIFAR-100, GDKL outperformed standard DKL and other modern baselines like DUE and DLVKL. It achieved an accuracy of 78.36% (compared to DKL's 77.90%) while simultaneously reducing the Expected Calibration Error (ECE) from 0.08 to 0.06. This confirms that GDKL provides a better balance of accuracy and calibration even in high-dimensional settings.

Conclusion

GDKL offers a powerful way to regularize deep kernels using the structural priors of infinite-width neural networks. Crucially, because the NNGP guide is only used during training, GDKL maintains the same fast inference speed and flexibility as standard DKL. While computing the NNGP kernel adds some training overhead, the resulting model is significantly more robust to overfitting and provides more reliable uncertainty estimates.

Summary updated

BibTeX
@inproceedings{achituve2023guided,
  author = {Idan Achituve and Gal Chechik and Ethan Fetaya},
  title = {{Guided Deep Kernel Learning}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2023},
  url = {https://openreview.net/forum?id=99GWvTezZ8},
}
Figure