Bayesian Autoencoders: Analysing and Fixing the Bernoulli likelihood for Out-of-Distribution Detection
2021-07-28Code Available0· sign in to hype
Bang Xiang Yong, Tim Pearce, Alexandra Brintrup
Code Available — Be the first to reproduce this paper.
ReproduceCode
- github.com/bangxiangyong/bae-ood-imagesOfficialIn paperpytorch★ 6
Abstract
After an autoencoder (AE) has learnt to reconstruct one dataset, it might be expected that the likelihood on an out-of-distribution (OOD) input would be low. This has been studied as an approach to detect OOD inputs. Recent work showed this intuitive approach can fail for the dataset pairs FashionMNIST vs MNIST. This paper suggests this is due to the use of Bernoulli likelihood and analyses why this is the case, proposing two fixes: 1) Compute the uncertainty of likelihood estimate by using a Bayesian version of the AE. 2) Use alternative distributions to model the likelihood.