Skip to main content
QUICK REVIEW

[Paper Review] Breaking Down Out-of-Distribution Detection: Many Methods Based on OOD Training Data Estimate a Combination of the Same Core Quantities

Julian Bitterwolf, Alexander Meinke|arXiv (Cornell University)|Jun 20, 2022
Adversarial Robustness in Machine LearningComputer Science5 citations
TL;DR

This paper demonstrates that multiple out-of-distribution (OOD) detection methods—such as Outlier Exposure, Energy-Based Models, and background class training—implicitly optimize the same core Bayesian decision criterion: binary discrimination between in-distribution and out-of-distribution data. Despite differing formulations, these methods converge to similar performance when trained identically, revealing that their empirical success stems from estimating the same underlying scoring function rather than fundamentally different principles.

ABSTRACT

It is an important problem in trustworthy machine learning to recognize out-of-distribution (OOD) inputs which are inputs unrelated to the in-distribution task. Many out-of-distribution detection methods have been suggested in recent years. The goal of this paper is to recognize common objectives as well as to identify the implicit scoring functions of different OOD detection methods. We focus on the sub-class of methods that use surrogate OOD data during training in order to learn an OOD detection score that generalizes to new unseen out-distributions at test time. We show that binary discrimination between in- and (different) out-distributions is equivalent to several distinct formulations of the OOD detection problem. When trained in a shared fashion with a standard classifier, this binary discriminator reaches an OOD detection performance similar to that of Outlier Exposure. Moreover, we show that the confidence loss which is used by Outlier Exposure has an implicit scoring function which differs in a non-trivial fashion from the theoretically optimal scoring function in the case where training and test out-distribution are the same, which again is similar to the one used when training an Energy-Based OOD detector or when adding a background class. In practice, when trained in exactly the same way, all these methods perform similarly.

Motivation & Objective

  • To identify common theoretical foundations across diverse OOD detection methods that use surrogate OOD data during training.
  • To analyze the implicit scoring functions of prominent OOD detection techniques, including confidence loss, energy-based models, and background class training.
  • To evaluate whether a shared binary discriminator between in- and out-distribution can match state-of-the-art OOD detection performance.
  • To clarify why density estimation methods often fail for OOD detection despite being theoretically related.
  • To disentangle estimation procedures from underlying scoring functions, enabling simulation of multiple methods from a single model.

Proposed method

  • Theoretical analysis of OOD detection via Bayesian decision theory, showing equivalence between binary discrimination and multiple OOD detection objectives.
  • Derivation of implicit scoring functions for confidence loss (Outlier Exposure), energy-based models, and background class training.
  • Training a shared binary discriminator with a standard classifier on in-distribution data to evaluate OOD detection performance.
  • Empirical comparison of OOD detection performance across methods using standard benchmarks (CIFAR-10, CIFAR-100, SVHN, LSUN, ImageNet, OpenImages).
  • Use of AUROC as the primary evaluation metric across multiple runs and datasets to ensure robustness.
  • Analysis of the equivalence between density estimation and discrimination against uniform noise, explaining poor OOD detection performance of standard density estimators.

Experimental results

Research questions

  • RQ1Are different OOD detection methods based on surrogate OOD data fundamentally different in their underlying theoretical objectives?
  • RQ2What is the implicit scoring function optimized by the confidence loss used in Outlier Exposure?
  • RQ3How does the performance of a jointly trained binary discriminator compare to state-of-the-art OOD detection methods?
  • RQ4Why do standard density estimation methods fail for OOD detection despite theoretical equivalence to discrimination tasks?
  • RQ5Can multiple OOD detection methods be simulated from a single model by disentangling estimation from scoring functions?

Key findings

  • The confidence loss used in Outlier Exposure implicitly optimizes a non-optimal scoring function compared to the theoretically optimal binary discriminator, especially when training and test out-distributions are identical.
  • A jointly trained binary discriminator between in- and out-distribution achieves OOD detection performance competitive with state-of-the-art methods like Outlier Exposure and energy-based models.
  • All evaluated methods—including Outlier Exposure, energy-based models, and background class training—implicitly estimate the same core scoring function when trained identically, explaining their similar empirical performance.
  • Density estimation is theoretically equivalent to discriminating between in-distribution and uniform noise, which explains why standard density estimates fail for OOD detection in practice.
  • The shared binary discriminator baseline achieves AUROC scores of 95.13 on CIFAR-10 and 99.55 on CIFAR-100 when using OpenImages as surrogate OOD data, outperforming many specialized methods.
  • The performance gap between methods is primarily due to differences in estimation efficiency rather than fundamental differences in the underlying scoring function.

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.