Robust Out-of-distribution Detection for Neural Networks

Jiefeng Chen, Yixuan Li, Xi Wu, Yingyu Liang, Somesh Jha
3/21/2020
cs.LGstat.ML

Official code: jfc43/robust-ood-detection (73 stars, Python, Apache-2.0, last commit 2022-04-12).

Abstract

Detecting out-of-distribution (OOD) inputs is critical for safely deploying deep learning models in the real world. Existing approaches for detecting OOD examples work well when evaluated on benign in-distribution and OOD samples.

Show full abstract

However, in this paper, we show that existing detection mechanisms can be extremely brittle when evaluating on in-distribution and OOD inputs with minimal adversarial perturbations which don't change their semantics. Formally, we extensively study the problem of Robust Out-of-Distribution Detection on common OOD detection approaches, and show that state-of-the-art OOD detectors can be easily fooled by adding small perturbations to the in-distribution and OOD inputs. To counteract these threats, we propose an effective algorithm called ALOE, which performs robust training by exposing the model to both adversarially crafted inlier and outlier examples. Our method can be flexibly combined with, and render existing methods robust. On common benchmark datasets, we show that ALOE substantially improves the robustness of state-of-the-art OOD detection, with 58.4% AUROC improvement on CIFAR-10 and 46.59% improvement on CIFAR-100.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Robust Out-of-distribution Detection in Neural Networks

7310Python, ShellMar 20, 20204 years agoApache-2.0
adversarial-attacksmachine-learningood-detection

Similar Papers

Cite this paper

@article{chen2020robust,
  title  = {Robust Out-of-distribution Detection for Neural Networks},
  author = {Jiefeng Chen and Yixuan Li and Xi Wu and Yingyu Liang and Somesh Jha},
  year   = {2020},
  eprint = {2003.09711},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2003.09711}
}

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

Discussion