Do Bayesian Variational Autoencoders Know What They Don't Know?

Misha Glazunov, Apostolis Zarras
12/29/2022
stat.MLcs.LG
bayesian

Official code: DigitalDigger/BayesianVAEsOoD (1 star, Python, last commit 2022-06-16).

Abstract

The problem of detecting the Out-of-Distribution (OoD) inputs is of paramount importance for Deep Neural Networks. It has been previously shown that even Deep Generative Models that allow estimating the density of the inputs may not be reliable and often tend to make over-confident predictions for OoDs, assigning to them a higher density than to the in-distribution data.

Show full abstract

This over-confidence in a single model can be potentially mitigated with Bayesian inference over the model parameters that take into account epistemic uncertainty. This paper investigates three approaches to Bayesian inference: stochastic gradient Markov chain Monte Carlo, Bayes by Backpropagation, and Stochastic Weight Averaging-Gaussian. The inference is implemented over the weights of the deep neural networks that parameterize the likelihood of the Variational Autoencoder. We empirically evaluate the approaches against several benchmarks that are often used for OoD detection: estimation of the marginal likelihood utilizing sampled model ensemble, typicality test, disagreement score, and Watanabe-Akaike Information Criterion. Finally, we introduce two simple scores that demonstrate the state-of-the-art performance.

View on arXivView PDF

Code Implementations(1)

Results for the reproduction of the different Bayesian VAEs for OoD detection using several scores

10PythonJun 16, 20224 years ago

Similar Papers

Cite this paper

@article{glazunov2022bayesian,
  title  = {Do Bayesian Variational Autoencoders Know What They Don't Know?},
  author = {Misha Glazunov and Apostolis Zarras},
  year   = {2022},
  eprint = {2212.14272},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.14272}
}

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/2212.14272.svg)](https://codeofpaper.com/paper/2212.14272)

Discussion