everyone
since 13 Oct 2023">EveryoneRevisionsBibTeX
Out-of-distribution (OOD) detection is a critical task for safe deployment of learning systems in the open world setting. In this work, we propose the use of latent density estimation via normalizing flows for the OOD task and present a fully unsupervised approach with no requirement for exposure to OOD data, avoiding researcher bias in OOD sample selection. This is a fully post-hoc method which can be applied to any pretrained model, and involves training a lightweight auxiliary normalizing flow model to perform the out-of-distribution detection via density thresholding. Experiments on OOD detection in image classification show strong results, including 98.2% AUROC for ImageNet-1k vs. Textures, which exceeds the state of the art by 8.4%. Further, we provide insights into training pitfalls that have plagued normalizing flows for use in OOD detection.