English

Hierarchical VAEs Know What They Don't Know

Machine Learning 2022-01-19 v7 Artificial Intelligence Computer Vision and Pattern Recognition Machine Learning

Abstract

Deep generative models have been demonstrated as state-of-the-art density estimators. Yet, recent work has found that they often assign a higher likelihood to data from outside the training distribution. This seemingly paradoxical behavior has caused concerns over the quality of the attained density estimates. In the context of hierarchical variational autoencoders, we provide evidence to explain this behavior by out-of-distribution data having in-distribution low-level features. We argue that this is both expected and desirable behavior. With this insight in hand, we develop a fast, scalable and fully unsupervised likelihood-ratio score for OOD detection that requires data to be in-distribution across all feature-levels. We benchmark the method on a vast set of data and model combinations and achieve state-of-the-art results on out-of-distribution detection.

Keywords

Cite

@article{arxiv.2102.08248,
  title  = {Hierarchical VAEs Know What They Don't Know},
  author = {Jakob D. Havtorn and Jes Frellsen and Søren Hauberg and Lars Maaløe},
  journal= {arXiv preprint arXiv:2102.08248},
  year   = {2022}
}

Comments

Appeared in Proceedings of the 38th International Conference on Machine Learning (ICML 2021). 18 pages, source code available at https://github.com/JakobHavtorn/hvae-oodd, https://github.com/vlievin/biva-pytorch and https://github.com/larsmaaloee/BIVA

R2 v1 2026-06-23T23:12:59.902Z