Skip to main content
QUICK REVIEW

[Paper Review] Variational Bayesian Last Layers

J. Harrison, John Willes|arXiv (Cornell University)|Apr 17, 2024
Adversarial Robustness in Machine LearningComputer Science6 citations
TL;DR

This paper introduces Variational Bayesian Last Layers (VBLL), a deterministic, sampling-free approach to train Bayesian last-layer neural networks that enhances uncertainty estimation with near-constant extra cost, and can be used with standard architectures.

ABSTRACT

We introduce a deterministic variational formulation for training Bayesian last layer neural networks. This yields a sampling-free, single-pass model and loss that effectively improves uncertainty estimation. Our variational Bayesian last layer (VBLL) can be trained and evaluated with only quadratic complexity in last layer width, and is thus (nearly) computationally free to add to standard architectures. We experimentally investigate VBLLs, and show that they improve predictive accuracy, calibration, and out of distribution detection over baselines across both regression and classification. Finally, we investigate combining VBLL layers with variational Bayesian feature learning, yielding a lower variance collapsed variational inference method for Bayesian neural networks.

Motivation & Objective

  • Motivate the need for well-calibrated uncertainty in deep learning and address computational barriers to Bayesian methods.
  • Propose a deterministic variational framework for Bayesian last-layer models to enable efficient training and prediction.
  • Show that VBLL improves predictive accuracy, likelihoods, calibration, and out-of-distribution detection across tasks.
  • Provide a practical, PyTorch-based VBLL implementation and demonstrate compatibility with both MAP and variational feature learning.

Proposed method

  • Develop a variational objective that yields a sampling-free lower bound on the marginal likelihood for last-layer Bayesian models.
  • Derive closed-form or efficiently computable training objectives for regression, discriminative classification, and generative classification last-layer models.
  • Assume a Gaussian variational posterior for last-layer weights with structured covariances to balance expressiveness and tractability.
  • Show that the VBLL training complexity scales similarly to standard training and is practical for large architectures.
  • Present prediction as an expectation under the variational posterior to obtain uncertainty estimates.
  • Optionally combine VBLL with variational feature learning for a collapsed variational inference setup.

Experimental results

Research questions

  • RQ1Can a variational last-layer approach provide accurate uncertainty estimates with minimal computational overhead?
  • RQ2How do VBLLs affect predictive performance, calibration, and out-of-distribution detection across regression and classification tasks?
  • RQ3What are the comparative benefits of discriminative versus generative last-layer models within the VBLL framework?
  • RQ4Does combining VBLL with variational feature learning reduce posterior variance and improve robustness?

Key findings

  • VBLLs improve predictive accuracy, likelihoods, calibration, and out-of-distribution detection across regression and classification benchmarks.
  • In image classification, VBLL variants achieve competitive or superior performance in accuracy and calibration compared to baselines.
  • Discriminative VBLLs show strong performance and robustness, especially in OOD settings, with favorable trade-offs between accuracy and uncertainty.
  • Generative VBLLs provide sensible embedding densities with good OOD sensitivity, though performance varies by task and configuration.
  • Combining VBLL with variational feature learning yields a lower-variance, collapsed variational inference approach for Bayesian neural networks.

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.