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, Maximilian Augustin, Matthias Hein
6/20/2022
cs.LGcs.CV

Official code: j-cb/Breaking_Down_OOD_Detection (12 stars, Jupyter Notebook, PyTorch, last commit 2025-02-19).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

PyTorch
121Jupyter Notebook, PythonJun 4, 20211 years ago
deep-learningoodood-detectionoutlier-detectionpytorch

Similar Papers

Cite this paper

@article{bitterwolf2022breaking,
  title  = {Breaking Down Out-of-Distribution Detection: Many Methods Based on OOD Training Data Estimate a Combination of the Same Core Quantities},
  author = {Julian Bitterwolf and Alexander Meinke and Maximilian Augustin and Matthias Hein},
  year   = {2022},
  eprint = {2206.09880},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.09880}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2206.09880.svg)](https://codeofpaper.com/paper/2206.09880)

Discussion