Probability Density from Latent Diffusion Models for Out-of-Distribution Detection

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Järve, Joonas, Haavel, Karl Kaspar, Kull, Meelis
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866908629085454336
author Järve, Joonas
Haavel, Karl Kaspar
Kull, Meelis
author_facet Järve, Joonas
Haavel, Karl Kaspar
Kull, Meelis
contents Despite rapid advances in AI, safety remains the main bottleneck to deploying machine-learning systems. A critical safety component is out-of-distribution detection: given an input, decide whether it comes from the same distribution as the training data. In generative models, the most natural OOD score is the data likelihood. Actually, under the assumption of uniformly distributed OOD data, the likelihood is even the optimal OOD detector, as we show in this work. However, earlier work reported that likelihood often fails in practice, raising doubts about its usefulness. We explore whether, in practice, the representation space also suffers from the inability to learn good density estimation for OOD detection, or if it is merely a problem of the pixel space typically used in generative models. To test this, we trained a Variational Diffusion Model not on images, but on the representation space of a pre-trained ResNet-18 to assess the performance of our likelihood-based detector in comparison to state-of-the-art methods from the OpenOOD suite.
format Preprint
id arxiv_https___arxiv_org_abs_2508_15737
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Probability Density from Latent Diffusion Models for Out-of-Distribution Detection
Järve, Joonas
Haavel, Karl Kaspar
Kull, Meelis
Machine Learning
Computer Vision and Pattern Recognition
Despite rapid advances in AI, safety remains the main bottleneck to deploying machine-learning systems. A critical safety component is out-of-distribution detection: given an input, decide whether it comes from the same distribution as the training data. In generative models, the most natural OOD score is the data likelihood. Actually, under the assumption of uniformly distributed OOD data, the likelihood is even the optimal OOD detector, as we show in this work. However, earlier work reported that likelihood often fails in practice, raising doubts about its usefulness. We explore whether, in practice, the representation space also suffers from the inability to learn good density estimation for OOD detection, or if it is merely a problem of the pixel space typically used in generative models. To test this, we trained a Variational Diffusion Model not on images, but on the representation space of a pre-trained ResNet-18 to assess the performance of our likelihood-based detector in comparison to state-of-the-art methods from the OpenOOD suite.
title Probability Density from Latent Diffusion Models for Out-of-Distribution Detection
topic Machine Learning
Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2508.15737