Skip to main content
QUICK REVIEW

[Paper Review] The Promises and Pitfalls of Deep Kernel Learning

Sebastian W. Ober, Carl Edward Rasmussen|arXiv (Cornell University)|Feb 24, 2021
Gaussian Processes and Bayesian InferenceComputer Science53 references14 citations
TL;DR

This paper investigates deep kernel learning (DKL), revealing that marginal likelihood optimization—commonly believed to prevent overfitting—can actually worsen generalization in overparameterized DKL models. The authors demonstrate that a fully Bayesian treatment of neural network weights, via Hamiltonian Monte Carlo or SGLD, outperforms standard DKL and even deterministic neural networks in uncertainty calibration and test performance.

ABSTRACT

Deep kernel learning (DKL) and related techniques aim to combine the representational power of neural networks with the reliable uncertainty estimates of Gaussian processes. One crucial aspect of these models is an expectation that, because they are treated as Gaussian process models optimized using the marginal likelihood, they are protected from overfitting. However, we identify situations where this is not the case. We explore this behavior, explain its origins and consider how it applies to real datasets. Through careful experimentation on the UCI, CIFAR-10, and the UTKFace datasets, we find that the overfitting from overparameterized maximum marginal likelihood, in which the model is "somewhat Bayesian", can in certain scenarios be worse than that from not being Bayesian at all. We explain how and when DKL can still be successful by investigating optimization dynamics. We also find that failures of DKL can be rectified by a fully Bayesian treatment, which leads to the desired performance improvements over standard neural networks and Gaussian processes.

Motivation & Objective

  • To investigate whether deep kernel learning (DKL) reliably prevents overfitting through marginal likelihood optimization, as commonly claimed.
  • To identify conditions under which DKL fails due to overfitting, especially in overparameterized settings with many hyperparameters.
  • To evaluate whether a fully Bayesian treatment of neural network weights can overcome the limitations of standard DKL.
  • To compare the performance of DKL, standard neural networks, and fully Bayesian DKL across diverse datasets including UCI, CIFAR-10, and UTKFace.
  • To assess the reliability of the log marginal likelihood as a model selection criterion in high-dimensional hyperparameter spaces.

Proposed method

  • Empirically evaluate DKL on 1D toy data, UCI datasets, CIFAR-10, and UTKFace to analyze overfitting and uncertainty calibration.
  • Use Hamiltonian Monte Carlo (HMC) to sample from the full posterior over neural network weights and GP hyperparameters, validating the effectiveness of full Bayesian inference.
  • Apply stochastic gradient Langevin dynamics (SGLD) to scale Bayesian inference to larger datasets like CIFAR-10 and UTKFace.
  • Compare performance using metrics including test RMSE, log likelihood (LL), expected calibration error (ECE), and test accuracy.
  • Train DKL models by optimizing the log marginal likelihood (LML) end-to-end, treating neural network weights as hyperparameters.
  • Use a neural network to map inputs to a feature space, which is then used as input to a Gaussian process with a learned kernel.

Experimental results

Research questions

  • RQ1Does marginal likelihood optimization in DKL reliably prevent overfitting in overparameterized models, as commonly assumed?
  • RQ2Under what conditions does DKL exhibit worse overfitting than standard deterministic neural networks?
  • RQ3Can a fully Bayesian treatment of the neural network weights in DKL resolve the overfitting issues observed in standard DKL?
  • RQ4How does the performance of fully Bayesian DKL compare to standard DKL and deterministic neural networks in terms of uncertainty calibration and predictive accuracy?
  • RQ5Is the log marginal likelihood a reliable criterion for model selection in DKL when the number of hyperparameters is large?

Key findings

  • DKL models optimized via maximum marginal likelihood can overfit more severely than standard deterministic neural networks, especially when stochastic regularization is limited.
  • Overfitting in DKL arises because the marginal likelihood encourages correlation across all data points, not just those that are meaningfully related, leading to poor generalization.
  • HMC-based fully Bayesian inference on a 1D toy dataset fully resolves overfitting and produces well-calibrated uncertainty estimates, even in outer regions.
  • SGLD-based fully Bayesian DKL improves test log likelihood and reduces expected calibration error (ECE) on UTKFace and CIFAR-10, outperforming standard DKL and Bayesian neural networks.
  • On UTKFace, fully Bayesian SVDKL achieves a test RMSE of 0.16±0.00 and test log likelihood of 0.42±0.03, outperforming the deterministic NN (0.16±0.00 RMSE, 0.39±0.04 LL).
  • On CIFAR-10, fully Bayesian SVDKL achieves a test log likelihood of -1.11±0.02 and ECE of 0.13±0.00, significantly improving over the deterministic NN (LL: -1.89±0.02, ECE: 0.18±0.00).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.