Lune

NeurIPS2020Top-tier venue

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 Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

71 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Delving into Out-of-Distribution Detection with Vision-Language Representations cites On the Importance of Gradients for Detecting Distributional Shifts in the Wild
  • Delving into Out-of-Distribution Detection with Vision-Language Representations cites ReAct: Out-of-distribution Detection With Rectified Activations
  • Delving into Out-of-Distribution Detection with Vision-Language Representations cites Input Complexity and Out-of-distribution Detection with Likelihood-based Generative Models
  • On the Importance of Gradients for Detecting Distributional Shifts in the Wild cites Input Complexity and Out-of-distribution Detection with Likelihood-based Generative Models
  • ReAct: Out-of-distribution Detection With Rectified Activations cites On the Importance of Gradients for Detecting Distributional Shifts in the Wild
  • ReAct: Out-of-distribution Detection With Rectified Activations cites Input Complexity and Out-of-distribution Detection with Likelihood-based Generative Models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers71

  1. ReAct: Out-of-distribution Detection With Rectified ActivationsYiyou Sun, Chuan Guo, Yixuan LiNeurIPS 2021 · 733 citations
  2. Low-Light Image Enhancement with Normalizing FlowYufei Wang, Renjie Wan, Wenhan Yang, Haoliang Li et al.AAAI 2022 · 548 citations
  3. On the Importance of Gradients for Detecting Distributional Shifts in the WildRui Huang, Andrew Geng, Yixuan LiNeurIPS 2021 · 515 citations
  4. Offline Reinforcement Learning with Fisher Divergence Critic RegularizationIlya Kostrikov, Rob Fergus, Jonathan Tompson, Ofir NachumICML 2021 · 350 citations
  5. 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

  1. Bayesian Deep Learning and a Probabilistic Perspective of GeneralizationAndrew Gordon Wilson, Pavel IzmailovNeurIPS 2020 · 845 citations
  2. 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
  3. Semi-Supervised Learning with Normalizing FlowsPavel Izmailov, Polina Kirichenko, Marc Finzi, Andrew Gordon WilsonICML 2020 · 134 citations
  4. VFlow: More Expressive Generative Flows with Variational Data AugmentationJianfei Chen, Cheng Lu, Biqi Chenli, Jun Zhu et al.ICML 2020 · 64 citations
  5. Normalizing Flows With Multi-Scale Autoregressive PriorsApratim Bhattacharyya, Shweta Mahajan, Mario Fritz, Bernt Schiele et al.CVPR 2020

Related papers

  1. Revisiting flow generative models for Out-of-distribution detectionDihong Jiang, Sun Sun, Yaoliang YuICLR 2022 · 41 citations
  2. Robustly Train Normalizing Flows via KL Divergence RegularizationKun Song, Ruben Solozabal, Hao Li, Martin Takác et al.AAAI 2024 · 4 citations
  3. Understanding Failures in Out-of-Distribution Detection with Deep Generative ModelsLily H. Zhang, Mark Goldstein, Rajesh RanganathICML 2021 · 129 citations
  4. Deep Residual Flow for Out of Distribution DetectionEv Zisselman, Aviv TamarCVPR 2020
  5. On the Out-of-distribution Generalization of Probabilistic Image ModellingMingtian Zhang, Andi Zhang, Steven McDonaghNeurIPS 2021 · 51 citations
Dusk over the sea between two cliffs drawn in fine vertical lines