Out-of-distribution Detection in Classifiers via Generation

Sachin Vernekar, Ashish Gaurav, Vahdat Abdelzad, Taylor Denouden, Rick Salay +1 more
10/9/2019
cs.LGstat.ML

Official code: sverneka/OODGen (18 stars, Jupyter Notebook, last commit 2019-10-05).

Abstract

By design, discriminatively trained neural network classifiers produce reliable predictions only for in-distribution samples. For their real-world deployments, detecting out-of-distribution (OOD) samples is essential.

Show full abstract

Assuming OOD to be outside the closed boundary of in-distribution, typical neural classifiers do not contain the knowledge of this boundary for OOD detection during inference. There have been recent approaches to instill this knowledge in classifiers by explicitly training the classifier with OOD samples close to the in-distribution boundary. However, these generated samples fail to cover the entire in-distribution boundary effectively, thereby resulting in a sub-optimal OOD detector. In this paper, we analyze the feasibility of such approaches by investigating the complexity of producing such "effective" OOD samples. We also propose a novel algorithm to generate such samples using a manifold learning network (e.g., variational autoencoder) and then train an n+1 classifier for OOD detection, where the $n+1^{th}$ class represents the OOD samples. We compare our approach against several recent classifier-based OOD detectors on MNIST and Fashion-MNIST datasets. Overall the proposed approach consistently performs better than the others.

View on arXivView PDF

Code Implementations(1)

sverneka/OODGenOfficial100%

Out-of-distribution Detection via Generation - NeurIPS 2019

186Jupyter Notebook, PythonSep 23, 20197 years ago

Similar Papers

Cite this paper

@article{vernekar2019outofdistribution,
  title  = {Out-of-distribution Detection in Classifiers via Generation},
  author = {Sachin Vernekar and Ashish Gaurav and Vahdat Abdelzad and Taylor Denouden and Rick Salay and Krzysztof Czarnecki},
  year   = {2019},
  eprint = {1910.04241},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1910.04241}
}

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

Discussion