Beyond Deep Ensembles: A Large-Scale Evaluation of Bayesian Deep Learning under Distribution Shift

Florian Seligmann, Philipp Becker, Michael Volpp, Gerhard Neumann
6/21/2023
cs.LG

No official code found. Best implementation: Feuermagier/Beyond_Deep_Ensembles (23 stars, MIT, PyTorch, last commit 2023-10-18).

Abstract

Bayesian deep learning (BDL) is a promising approach to achieve well-calibrated predictions on distribution-shifted data. Nevertheless, there exists no large-scale survey that evaluates recent SOTA methods on diverse, realistic, and challenging benchmark tasks in a systematic manner. To provide a clear picture of the current state of BDL research, we evaluate modern BDL algorithms on real-world datasets from the WILDS collection containing challenging classification and regression tasks, with a focus on generalization capability and calibration under distribution shift. We compare the algorithms on a wide range of large, convolutional and transformer-based neural network architectures. In particular, we investigate a signed version of the expected calibration error that reveals whether the methods are over- or under-confident, providing further insight into the behavior of the methods. Further, we provide the first systematic evaluation of BDL for fine-tuning large pre-trained models, where training from scratch is prohibitively expensive. Finally, given the recent success of Deep Ensembles, we extend popular single-mode posterior approximations to multiple modes by the use of ensembles. While we find that ensembling single-mode approximations generally improves the generalization capability and calibration of the models by a significant margin, we also identify a failure mode of ensembles when finetuning large transformer-based language models. In this setting, variational inference based approaches such as last-layer Bayes By Backprop outperform other methods in terms of accuracy by a large margin, while modern approximate inference algorithms such as SWAG achieve the best calibration.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

Code for the paper "Beyond Deep Ensembles: A Large-Scale Evaluation of Bayesian Deep Learning under Distribution Shift"

233Shell, PythonJun 21, 20233 years agoMIT
bayes-by-backpropbayesian-deep-learningbayesian-inferencedeep-ensemblesnatural-gradients+6 more

Similar Papers

Cite this paper

@article{seligmann2023beyond,
  title  = {Beyond Deep Ensembles: A Large-Scale Evaluation of Bayesian Deep Learning under Distribution Shift},
  author = {Florian Seligmann and Philipp Becker and Michael Volpp and Gerhard Neumann},
  year   = {2023},
  eprint = {2306.12306},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.12306v3},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2306.12306.svg)](https://codeofpaper.com/paper/2306.12306)

Discussion