Hierarchical VAEs Know What They Don't Know

Jakob D. Havtorn, Jes Frellsen, Søren Hauberg, Lars Maaløe
2/16/2021
95 citations
cs.LGcs.AIcs.CV

Official code: vlievin/biva-pytorch (84 stars, Python, MIT, last commit 2022-12-08). 2 more implementations below.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(3)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
vlievin/biva-pytorchOfficial84PythonMIT2022-12-08
JakobHavtorn/hvae-ooddOfficial32Python–2022-01-18
larsmaaloee/BIVAOfficial29PythonMIT2019-11-06
MIT

Official PyTorch BIVA implementation (BIVA: A Very Deep Hierarchy of Latent Variables for Generative Modeling)

8410PythonOct 24, 20193 years agoMIT

Official source code repository for the ICML 2021 paper "Hierarchical VAEs Know What They Don't Know"

328Python, ShellJun 3, 20214 years ago
larsmaaloee/BIVAOfficial100%
MIT

BIVA: A Very Deep Hierarchy of Latent Variables forGenerative Modeling

294PythonOct 24, 20197 years agoMIT

Similar Papers

Cite this paper

@article{havtorn2021hierarchical,
  title  = {Hierarchical VAEs Know What They Don't Know},
  author = {Jakob D. Havtorn and Jes Frellsen and Søren Hauberg and Lars Maaløe},
  year   = {2021},
  eprint = {2102.08248},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2102.08248}
}

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

Discussion