Skip to main content
QUICK REVIEW

[Paper Review] Scalable Marginal Likelihood Estimation for Model Selection in Deep Learning

Alexander Immer, Matthias Bauer|arXiv (Cornell University)|Apr 11, 2021
Machine Learning and Data ClassificationComputer Science24 citations
TL;DR

This paper proposes a scalable, online marginal likelihood estimation method for Bayesian deep learning model selection using Laplace's method with Gauss-Newton and empirical Fisher Hessian approximations. It enables hyperparameter and architecture selection from training data alone, outperforming cross-validation and manual tuning in calibration and OOD detection, especially in low-validation-data regimes.

ABSTRACT

Marginal-likelihood based model-selection, even though promising, is rarely used in deep learning due to estimation difficulties. Instead, most approaches rely on validation data, which may not be readily available. In this work, we present a scalable marginal-likelihood estimation method to select both hyperparameters and network architectures, based on the training data alone. Some hyperparameters can be estimated online during training, simplifying the procedure. Our marginal-likelihood estimate is based on Laplace's method and Gauss-Newton approximations to the Hessian, and it outperforms cross-validation and manual-tuning on standard regression and image classification datasets, especially in terms of calibration and out-of-distribution detection. Our work shows that marginal likelihoods can improve generalization and be useful when validation data is unavailable (e.g., in nonstationary settings).

Motivation & Objective

  • To address the lack of scalable Bayesian model selection in deep learning due to intractable marginal likelihood estimation.
  • To enable hyperparameter and architecture selection using only training data, avoiding reliance on validation sets.
  • To develop a computationally efficient, online method for marginal likelihood estimation suitable for modern deep networks.
  • To demonstrate that marginal likelihood estimation can outperform standard practices like cross-validation and manual tuning in model generalization and uncertainty calibration.

Proposed method

  • Uses Laplace's method to approximate the marginal likelihood, leveraging second-order information from the Hessian.
  • Employs Generalized Gauss-Newton (GGN) and Empirical Fisher (EF) approximations to the Hessian for scalability.
  • Applies diagonal and block-diagonal approximations to reduce computational cost of Hessian estimation.
  • Optimizes differentiable hyperparameters (e.g., prior variance, noise variance) online during training via gradient-based updates.
  • Performs discrete architecture selection post-training by ranking models based on estimated marginal likelihood.
  • Integrates the method into standard training pipelines with minimal overhead, using Kronecker-factored approximations every F=10 epochs.

Experimental results

Research questions

  • RQ1Can marginal likelihood estimation be made scalable and practical for modern deep learning models?
  • RQ2Can marginal likelihood outperform cross-validation and manual tuning in model selection, especially when validation data is unavailable?
  • RQ3Does the marginal likelihood correlate with test accuracy and uncertainty calibration in real-world benchmarks?
  • RQ4Can hyperparameters be optimized online during training using marginal likelihood estimation?

Key findings

  • The proposed method achieves performance on par or better than cross-validation on regression and image classification benchmarks, particularly in calibration and out-of-distribution detection.
  • On CIFAR-10 and CIFAR-100, ResNets achieve higher marginal likelihoods than standard CNNs, even with exponentially more parameters, indicating better generalization.
  • The rank correlation between test accuracy and marginal likelihood is 97% (Spearman’s ρ) on CIFAR-10/100, showing strong alignment with model performance.
  • On FashionMNIST, CNNs achieve higher marginal likelihoods than MLPs at similar accuracy, suggesting lower model complexity favors better marginal likelihood.
  • The method improves generalization and reduces the generalization gap, with up to 2× better performance in NLL and ECE compared to a baseline with data augmentation.
  • Online model selection using the method takes only ~2× the training time of a single run, outperforming cross-validation in time efficiency.

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.