Why Normalizing Flows Fail to Detect Out-of-Distribution Data

Polina Kirichenko, Pavel Izmailov, Andrew Gordon Wilson
6/15/2020
stat.MLcs.LG
diffusion-flow

Official code: PolinaKirichenko/flows_ood (87 stars, Jupyter Notebook, last commit 2021-11-02).

Abstract

Detecting out-of-distribution (OOD) data is crucial for robust machine learning systems. Normalizing flows are flexible deep generative models that often surprisingly fail to distinguish between in- and out-of-distribution data: a flow trained on pictures of clothing assigns higher likelihood to handwritten digits.

Show full abstract

We investigate why normalizing flows perform poorly for OOD detection. We demonstrate that flows learn local pixel correlations and generic image-to-latent-space transformations which are not specific to the target image dataset. We show that by modifying the architecture of flow coupling layers we can bias the flow towards learning the semantic structure of the target data, improving OOD detection. Our investigation reveals that properties that enable flows to generate high-fidelity images can have a detrimental effect on OOD detection.

View on arXivView PDF

Code Implementations(1)

8710Jupyter Notebook, PythonJun 15, 20205 years ago

Similar Papers

Cite this paper

@article{kirichenko2020normalizing,
  title  = {Why Normalizing Flows Fail to Detect Out-of-Distribution Data},
  author = {Polina Kirichenko and Pavel Izmailov and Andrew Gordon Wilson},
  year   = {2020},
  eprint = {2006.08545},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2006.08545}
}

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

Discussion