Why Normalizing Flows Fail to Detect Out-of-Distribution Data
Polina Kirichenko, Pavel Izmailov, Andrew Gordon Wilson
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. 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.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext ae82693f-b8c2-4111-839d-dc4f236de4b8Cited by top-tier papers71
- ReAct: Out-of-distribution Detection With Rectified ActivationsYiyou Sun, Chuan Guo, Yixuan LiNeurIPS 2021 · 733 citations
- Low-Light Image Enhancement with Normalizing FlowYufei Wang, Renjie Wan, Wenhan Yang, Haoliang Li et al.AAAI 2022 · 548 citations
- On the Importance of Gradients for Detecting Distributional Shifts in the WildRui Huang, Andrew Geng, Yixuan LiNeurIPS 2021 · 515 citations
- Offline Reinforcement Learning with Fisher Divergence Critic RegularizationIlya Kostrikov, Rob Fergus, Jonathan Tompson, Ofir NachumICML 2021 · 350 citations
- Delving into Out-of-Distribution Detection with Vision-Language RepresentationsYifei Ming, Ziyang Cai, Jiuxiang Gu, Yiyou Sun et al.NeurIPS 2022 · 308 citations
Builds on5
- Bayesian Deep Learning and a Probabilistic Perspective of GeneralizationAndrew Gordon Wilson, Pavel IzmailovNeurIPS 2020 · 845 citations
- Input Complexity and Out-of-distribution Detection with Likelihood-based Generative ModelsJoan Serrà, David Álvarez, Vicenç Gómez, Olga Slizovskaia et al.ICLR 2020 · 307 citations
- Semi-Supervised Learning with Normalizing FlowsPavel Izmailov, Polina Kirichenko, Marc Finzi, Andrew Gordon WilsonICML 2020 · 134 citations
- VFlow: More Expressive Generative Flows with Variational Data AugmentationJianfei Chen, Cheng Lu, Biqi Chenli, Jun Zhu et al.ICML 2020 · 64 citations
- Normalizing Flows With Multi-Scale Autoregressive PriorsApratim Bhattacharyya, Shweta Mahajan, Mario Fritz, Bernt Schiele et al.CVPR 2020
Related papers
- Revisiting flow generative models for Out-of-distribution detectionDihong Jiang, Sun Sun, Yaoliang YuICLR 2022 · 41 citations
- Robustly Train Normalizing Flows via KL Divergence RegularizationKun Song, Ruben Solozabal, Hao Li, Martin Takác et al.AAAI 2024 · 4 citations
- Understanding Failures in Out-of-Distribution Detection with Deep Generative ModelsLily H. Zhang, Mark Goldstein, Rajesh RanganathICML 2021 · 129 citations
- Deep Residual Flow for Out of Distribution DetectionEv Zisselman, Aviv TamarCVPR 2020
- On the Out-of-distribution Generalization of Probabilistic Image ModellingMingtian Zhang, Andi Zhang, Steven McDonaghNeurIPS 2021 · 51 citations
