Skip to main content
QUICK REVIEW

[Paper Review] Efficient and Scalable Bayesian Neural Nets with Rank-1 Factors

Michael W. Dusenberry, Ghassen Jerfel|arXiv (Cornell University)|May 14, 2020
Adversarial Robustness in Machine LearningComputer Science46 references33 citations
TL;DR

The paper introduces rank-1 Bayesian neural nets with mixture posteriors to achieve state-of-the-art uncertainty quantification and scalability, outperforming baselines on ImageNet, CIFAR, and MIMIC-III while using far fewer parameters than ensembles.

ABSTRACT

Bayesian neural networks (BNNs) demonstrate promising success in improving the robustness and uncertainty quantification of modern deep learning. However, they generally struggle with underfitting at scale and parameter efficiency. On the other hand, deep ensembles have emerged as alternatives for uncertainty quantification that, while outperforming BNNs on certain problems, also suffer from efficiency issues. It remains unclear how to combine the strengths of these two approaches and remediate their common issues. To tackle this challenge, we propose a rank-1 parameterization of BNNs, where each weight matrix involves only a distribution on a rank-1 subspace. We also revisit the use of mixture approximate posteriors to capture multiple modes, where unlike typical mixtures, this approach admits a significantly smaller memory increase (e.g., only a 0.4% increase for a ResNet-50 mixture of size 10). We perform a systematic empirical study on the choices of prior, variational posterior, and methods to improve training. For ResNet-50 on ImageNet, Wide ResNet 28-10 on CIFAR-10/100, and an RNN on MIMIC-III, rank-1 BNNs achieve state-of-the-art performance across log-likelihood, accuracy, and calibration on the test sets and out-of-distribution variants.

Motivation & Objective

  • Address underfitting and inefficiency in Bayesian neural networks at scale.
  • Achieve strong uncertainty quantification with a parameter-efficient approach.
  • Leverage rank-1 subspace parameterizations to enable scalable Bayesian inference.
  • Investigate mixture posteriors to capture multiple modes with minimal memory overhead.

Proposed method

  • Parameterize every weight matrix W as W' = W ∘ (r s^T), where r and s are low-dimensional vectors (rank-1 factorization).
  • Perform variational inference over r and s while treating W as deterministic (rank-1 Bayesian perturbations).
  • Place hierarchical priors over r and s to induce structured weight priors and enable sparsity and robustness (e.g., Gaussian, Cauchy, inverse-Gamma).
  • Use mixture posteriors over rank-1 factors to capture multiple modes with small memory overhead (e.g., mixture size K=4 in experiments).
  • Compare log-mixture versus average-log-likelihood training, and analyze training dynamics and generalization under distribution shift.

Experimental results

Research questions

  • RQ1Can a rank-1 weight perturbation combined with variational inference provide competitive accuracy and uncertainty calibration at scale?
  • RQ2Do hierarchical priors over rank-1 factors improve robustness and out-of-distribution performance?
  • RQ3What is the impact of mixture component count and posterior form on performance and parameter efficiency?
  • RQ4How does rank-1 Bayesian inference compare with deep ensembles and BatchEnsemble in terms of diversity, NLL, and calibration?
  • RQ5Is a log-mixture likelihood bound advantageous for training or evaluation in rank-1 Bayesian nets?

Key findings

  • Rank-1 BNNs with multimodal posteriors achieve state-of-the-art performance on NLL, accuracy, and calibration across ImageNet, CIFAR, and MIMIC-III benchmarks.
  • Mixture posteriors over rank-1 factors provide substantial gains with minimal memory overhead (e.g., 0.4% parameter increase for ResNet-50 with K=10).
  • Cauchy priors on rank-1 factors improve generalization and uncertainty calibration, particularly under distribution shift, compared to Gaussian priors.
  • Rank-1 BNNs outperform BatchEnsemble and competitive deep ensembles while using far fewer parameters, and show higher ensemble diversity at similar or better accuracy.
  • Theoretical result shows rank-1 perturbations can match the local variance structure of full-rank perturbations in fully connected nets, supporting expressiveness of the approach.

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.