A Simple Test-Time Method for Out-of-Distribution Detection

Ke Fan, Yikai Wang, Qian Yu, Da Li, Yanwei Fu
7/17/2022
cs.CVcs.AIcs.LG

No confident code implementation found for this paper. 6 possible matches can be shown below.

Abstract

Neural networks are known to produce over-confident predictions on input images, even when these images are out-of-distribution (OOD) samples. This limits the applications of neural network models in real-world scenarios, where OOD samples exist. Many existing approaches identify the OOD instances via exploiting various cues, such as finding irregular patterns in the feature space, logits space, gradient space or the raw space of images. In contrast, this paper proposes a simple Test-time Linear Training (ETLT) method for OOD detection. Empirically, we find that the probabilities of input images being out-of-distribution are surprisingly linearly correlated to the features extracted by neural networks. To be specific, many state-of-the-art OOD algorithms, although designed to measure reliability in different ways, actually lead to OOD scores mostly linearly related to their image features. Thus, by simply learning a linear regression model trained from the paired image features and inferred OOD scores at test-time, we can make a more precise OOD prediction for the test instances. We further propose an online variant of the proposed method, which achieves promising performance and is more practical in real-world applications. Remarkably, we improve FPR95 from $51.37\%$ to $12.30\%$ on CIFAR-10 datasets with maximum softmax probability as the base OOD detector. Extensive experiments on several benchmark datasets show the efficacy of ETLT for OOD detection task.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 6 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{fan2022simple,
  title  = {A Simple Test-Time Method for Out-of-Distribution Detection},
  author = {Ke Fan and Yikai Wang and Qian Yu and Da Li and Yanwei Fu},
  year   = {2022},
  eprint = {2207.08210},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2207.08210v1}
}

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/2207.08210.svg)](https://codeofpaper.com/paper/2207.08210)

Discussion