Skip to main content
QUICK REVIEW

[Paper Review] Subspace Inference for Bayesian Deep Learning

Pavel Izmailov, Wesley J. Maddox|arXiv (Cornell University)|Jul 17, 2019
Gaussian Processes and Bayesian InferenceComputer Science48 references19 citations
TL;DR

This paper proposes Subspace Inference (SI), a method that performs Bayesian deep learning by restricting approximate posterior inference to low-dimensional subspaces of the high-dimensional weight space. By leveraging subspaces such as the principal components of SGD trajectories or low-loss curves between solutions, SI enables efficient and accurate Bayesian model averaging, achieving state-of-the-art uncertainty calibration and predictive performance on regression and image classification tasks with significantly reduced computational cost compared to full-parameter-space methods.

ABSTRACT

Bayesian inference was once a gold standard for learning with neural networks, providing accurate full predictive distributions and well calibrated uncertainty. However, scaling Bayesian inference techniques to deep neural networks is challenging due to the high dimensionality of the parameter space. In this paper, we construct low-dimensional subspaces of parameter space, such as the first principal components of the stochastic gradient descent (SGD) trajectory, which contain diverse sets of high performing models. In these subspaces, we are able to apply elliptical slice sampling and variational inference, which struggle in the full parameter space. We show that Bayesian model averaging over the induced posterior in these subspaces produces accurate predictions and well calibrated predictive uncertainty for both regression and image classification.

Motivation & Objective

  • To address the challenge of high-dimensional parameter spaces in Bayesian deep learning, which hinders scalable and accurate inference.
  • To develop a modular framework that enables effective Bayesian model averaging in low-dimensional subspaces of neural network weights.
  • To improve predictive uncertainty estimation, especially in regions away from training data, where standard methods often fail.
  • To demonstrate that surprisingly low-dimensional subspaces (e.g., 5D) can capture sufficient functional diversity for high-quality Bayesian averaging.
  • To provide a scalable, modular, and interpretable alternative to full-parameter Bayesian inference in deep networks.

Proposed method

  • Construct low-dimensional subspaces of the weight space using techniques such as principal component analysis (PCA) of SGD trajectories or interpolation along low-loss curves between independently trained models.
  • Perform posterior inference within the subspace using methods like elliptical slice sampling (ESS) or variational inference (VI), which are intractable in the full parameter space.
  • Form a Bayesian model average by sampling from the approximate posterior over the subspace parameters, combining predictions from diverse high-performing models.
  • Use the subspace structure to enable efficient exploration of complex posterior distributions that would be computationally prohibitive in the full weight space.
  • Leverage existing scalable Bayesian baselines like SWAG as a reference, but improve upon them by focusing inference on informative subspaces.
  • Apply the method to both regression and classification tasks, validating performance on UCI datasets and CIFAR-10/100 with models ranging from VGG-16 to WideResNet-100.

Experimental results

Research questions

  • RQ1Can low-dimensional subspaces of the weight space capture sufficient functional diversity to enable effective Bayesian model averaging in deep neural networks?
  • RQ2How does the choice of subspace—random, PCA of SGD trajectory, or low-loss curve—impact predictive accuracy and uncertainty calibration?
  • RQ3Can subspace inference outperform full-parameter-space Bayesian methods in terms of both accuracy and uncertainty estimation, despite drastically reduced dimensionality?
  • RQ4Does the use of subspace inference enable better representation of growing uncertainty in out-of-distribution regions compared to standard Bayesian deep learning approaches?
  • RQ5To what extent can subspace inference be made modular and adaptable across different architectures and inference techniques?

Key findings

  • Subspace inference with a 2D curve subspace (connecting two independently trained models) achieved a test accuracy of 81.55% and negative log-likelihood of 0.6493 on CIFAR-100 with a 36M-parameter WideResNet.
  • The PCA subspace (10D) achieved 80.54% accuracy and 0.6652 NLL, outperforming the random subspace (80.17% accuracy, 0.6858 NLL) and showing consistent gains over baselines.
  • Elliptical slice sampling (ESS) in the PCA subspace captured the posterior shape more accurately than SWAG, which overestimated variance along the first principal component.
  • Variational inference in the subspace provided a better fit to the posterior than SWAG, as it directly approximated the posterior rather than the SGD trajectory.
  • Subspace inference consistently outperformed MC-dropout, temperature scaling, and KFAC-Laplace on CIFAR-10 and CIFAR-100 benchmarks.
  • Even 5-dimensional subspaces of a 36M-parameter network on CIFAR-100 enabled notable performance gains through Bayesian model averaging, demonstrating the effectiveness of low-dimensional subspaces.

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.