Skip to main content
QUICK REVIEW

[Paper Review] POEM: Out-of-Distribution Detection with Posterior Sampling

Yifei Ming, Ying Fan|arXiv (Cornell University)|Jun 28, 2022
Anomaly Detection Techniques and ApplicationsComputer Science16 citations
TL;DR

POEM proposes a posterior sampling-based outlier mining framework for out-of-distribution (OOD) detection that improves model generalization by selecting informative outliers near the decision boundary between in-distribution and OOD data. By leveraging Thompson sampling to balance exploration and exploitation, POEM achieves state-of-the-art performance, improving FPR95 by 42.0% and 24.2% on CIFAR-10 and CIFAR-100 respectively over greedy sampling baselines.

ABSTRACT

Out-of-distribution (OOD) detection is indispensable for machine learning models deployed in the open world. Recently, the use of an auxiliary outlier dataset during training (also known as outlier exposure) has shown promising performance. As the sample space for potential OOD data can be prohibitively large, sampling informative outliers is essential. In this work, we propose a novel posterior sampling-based outlier mining framework, POEM, which facilitates efficient use of outlier data and promotes learning a compact decision boundary between ID and OOD data for improved detection. We show that POEM establishes state-of-the-art performance on common benchmarks. Compared to the current best method that uses a greedy sampling strategy, POEM improves the relative performance by 42.0% and 24.2% (FPR95) on CIFAR-10 and CIFAR-100, respectively. We further provide theoretical insights on the effectiveness of POEM for OOD detection.

Motivation & Objective

  • To address the inefficiency of existing OOD detection methods that underutilize auxiliary outlier data due to poor sampling strategies.
  • To improve model generalization by learning a compact decision boundary between in-distribution and OOD data.
  • To formalize outlier mining as a sequential decision-making problem with a reward function based on proximity to the ID-OOD boundary.
  • To develop a tractable, end-to-end trainable framework that balances exploration and exploitation during outlier selection.
  • To provide theoretical justification for the sample efficiency of selecting outliers with high boundary scores.

Proposed method

  • Formalize outlier mining as a contextual bandit problem where actions are outlier selections and rewards are based on boundary scores.
  • Define a novel boundary score metric that assigns higher values to outliers closer to the decision boundary between ID and OOD data.
  • Apply Thompson sampling (posterior sampling) to balance exploration and exploitation during outlier selection, enabling adaptive sampling from a large auxiliary outlier pool.
  • Approximate the intractable posterior distribution using Bayesian linear regression on deep neural network feature representations.
  • Update the posterior periodically during training to refine the estimated decision boundary and improve sampling quality.
  • Integrate the framework end-to-end with deep neural networks, enabling joint optimization of the classifier and outlier selection strategy.

Experimental results

Research questions

  • RQ1Can posterior sampling-based outlier mining improve OOD detection performance compared to random or greedy sampling strategies?
  • RQ2How does selecting outliers with high boundary scores affect the compactness and generalization of the decision boundary?
  • RQ3What is the theoretical justification for the sample efficiency of high-boundary-score outliers in OOD detection?
  • RQ4Can a Bayesian framework that balances exploration and exploitation outperform greedy methods in outlier mining for OOD detection?
  • RQ5How does POEM’s performance scale across diverse OOD benchmarks and datasets?

Key findings

  • POEM achieves state-of-the-art performance on standard OOD detection benchmarks, outperforming existing methods that use random or greedy sampling.
  • On CIFAR-10, POEM improves the relative FPR95 performance by 42.0% compared to the current best greedy sampling method.
  • On CIFAR-100, POEM improves the relative FPR95 performance by 24.2% compared to the same greedy baseline.
  • The framework demonstrates strong empirical performance while maintaining computational efficiency comparable to baseline methods.
  • Theoretical analysis shows that selecting outliers with high boundary scores improves sample efficiency by reducing the number of uninformative samples needed for effective regularization.
  • POEM’s posterior sampling mechanism enables better exploration of the outlier space, leading to more robust and generalizable decision boundaries.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.