Lune

NeurIPS2022Top-tier venue

Density-driven Regularization for Out-of-distribution Detection

Wenjian Huang, Hao Wang, Jiahao Xia, Chengyan Wang, Jianguo Zhang

Abstract

Detecting out-of-distribution (OOD) samples is essential for reliably deploying deep learning classifiers in open-world applications. However, existing detectors relying on discriminative probability suffer from the overconfident posterior estimate for OOD data. Other reported approaches either impose strong unproven parametric assumptions to estimate OOD sample density or develop empirical detectors lacking clear theoretical motivations. To address these issues, we propose a theoretical probabilistic framework for OOD detection in deep classification networks, in which two regularization constraints are constructed to reliably calibrate and estimate sample density to identify OOD. Specifically, the density consistency regularization enforces the agreement between analytical and empirical densities of observable low-dimensional categorical labels. The contrastive distribution regularization separates the densities between in distribution (ID) and distribution-deviated samples. A simple and robust implementation algorithm is also provided, which can be used for any pre-trained neural network classifiers. To the best of our knowledge, we have conducted the most extensive evaluations and comparisons on computer vision benchmarks. The results show that our method significantly outperforms state-of-the-art detectors, and even achieves comparable or better performance than methods utilizing additional large-scale outlier exposure datasets.

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.

6 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

  • SSD: A Unified Framework for Self-Supervised Outlier Detection cites CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted Instances
  • EigenScore: OOD Detection using Posterior Covariance in Diffusion Models cites Energy-based Out-of-distribution Detection
  • EigenScore: OOD Detection using Posterior Covariance in Diffusion Models cites CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted Instances
  • Energy-based Out-of-distribution Detection cites Your classifier is secretly an energy based model and you should treat it like one
  • Revisiting Score Propagation in Graph Out-of-Distribution Detection cites SSD: A Unified Framework for Self-Supervised Outlier Detection
  • Revisiting Score Propagation in Graph Out-of-Distribution Detection cites Energy-based Out-of-distribution Detection
  • Revisiting Score Propagation in Graph Out-of-Distribution Detection cites ReAct: Out-of-distribution Detection With Rectified Activations
  • ReAct: Out-of-distribution Detection With Rectified Activations cites Energy-based Out-of-distribution Detection
  • Unsupervised Layer-Wise Score Aggregation for Textual OOD Detection cites Energy-based Out-of-distribution Detection
  • CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted Instances cites Your classifier is secretly an energy based model and you should treat it like one
  • Cross Contrasting Feature Perturbation for Domain Generalization cites Rethinking Alignment and Uniformity in Unsupervised Image Semantic Segmentation
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. Cross Contrasting Feature Perturbation for Domain GeneralizationChenming Li, Daoan Zhang, Wenjian Huang, Jianguo ZhangICCV 2023 · 28 citations
  2. Rethinking Alignment and Uniformity in Unsupervised Image Semantic SegmentationDaoan Zhang, Chenming Li, Haoquan Li, Wenjian Huang et al.AAAI 2023 · 21 citations
  3. Unsupervised Layer-Wise Score Aggregation for Textual OOD DetectionMaxime Darrin, Guillaume Staerman, Eduardo Dadalto Câmara Gomes, Jackie C. K. Cheung et al.AAAI 2024 · 18 citations
  4. Revisiting Score Propagation in Graph Out-of-Distribution DetectionLongfei Ma, Yiyou Sun, Kaize Ding, Zemin Liu et al.NeurIPS 2024 · 14 citations
  5. EigenScore: OOD Detection using Posterior Covariance in Diffusion ModelsShirin Shoushtari, Yi Wang, Xiao Shi, M. Salman Asif et al.ICLR 2026 · 5 citations

Builds on15

  1. Energy-based Out-of-distribution DetectionWeitang Liu, Xiaoyun Wang, John D. Owens, Yixuan LiNeurIPS 2020 · 2,213 citations
  2. CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted InstancesJihoon Tack, Sangwoo Mo, Jongheon Jeong, Jinwoo ShinNeurIPS 2020 · 755 citations
  3. ReAct: Out-of-distribution Detection With Rectified ActivationsYiyou Sun, Chuan Guo, Yixuan LiNeurIPS 2021 · 733 citations
  4. Your classifier is secretly an energy based model and you should treat it like oneWill Grathwohl, Kuan-Chieh Wang, Jörn-Henrik Jacobsen, David Duvenaud et al.ICLR 2020 · 643 citations
  5. SSD: A Unified Framework for Self-Supervised Outlier DetectionVikash Sehwag, Mung Chiang, Prateek MittalICLR 2021 · 410 citations

Related papers

  1. VOS: Learning What You Don't Know by Virtual Outlier SynthesisXuefeng Du, Zhaoning Wang, Mu Cai, Yixuan LiICLR 2022 · 417 citations
  2. WDiscOOD: Out-of-Distribution Detection via Whitened Linear Discriminant AnalysisYiye Chen, Yunzhi Lin, Ruinian Xu, Patricio A. VelaICCV 2023 · 13 citations
  3. ProHOC: Probabilistic Hierarchical Out-of-Distribution Classification via Multi-Depth NetworksErik Wallin, Fredrik Kahl, Lars HammarstrandCVPR 2025
  4. Towards Evidential and Class Separable Open Set Object DetectionRuofan Wang, Rui-Wei Zhao, Xiaobo Zhang, Rui FengAAAI 2024 · 12 citations
  5. Improving Out-of-Distribution Detection with Disentangled Foreground and Background FeaturesChoubo Ding, Guansong PangACM MM 2024 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines