Inference, Fast and Slow: Reinterpreting VAEs for OOD Detection

Published: 12 Oct 2024, Last Modified: 14 Nov 2024SafeGenAi PosterEveryoneRevisionsBibTeXCC BY 4.0
Keywords: unsupervised, outlier detection, ood, out-of-distribution, anomaly detection, variational autoencoder, VAE
TL;DR: We show that by leveraging sufficient statistics derived from the likelihood path (LPath) of VAEs, our the LPath method can achieve SOTA performance for unsupervised, one sample OOD detection.
Abstract: Although likelihood-based methods are theoretically appealing, deep generative models (DGMs) often produce unreliable likelihood estimates in practice, particularly for out-of-distribution (OOD) detection. We reinterpret variational autoencoders (VAEs) through the lens of fast and slow weights. Our approach is guided by the proposed Likelihood Path (LPath) Principle, which extends the classical likelihood principle. A critical decision in our method is the selection of statistics for classical density estimation algorithms. The sweet spot should contain just enough information that’s sufficient for OOD detection but not too much to suffer from the curse of dimensionality. Our LPath principle achieves this by selecting the sufficient statistics that form the "path" toward the likelihood. We demonstrate that this likelihood path leads to SOTA OOD detection performance, even when the likelihood itself is unreliable.
Submission Number: 31
Loading