DOS: Diverse Outlier Sampling for Out-of-Distribution Detection

Wenyu Jiang, Hao Cheng, Mingcai Chen, Chongjun Wang, Hongxin Wei
6/3/2023
cs.LG

No official code found. Best implementation: lygjwy/DOS (8 stars, MIT, last commit 2024-07-02).

Abstract

Modern neural networks are known to give overconfident prediction for out-of-distribution inputs when deployed in the open world. It is common practice to leverage a surrogate outlier dataset to regularize the model during training, and recent studies emphasize the role of uncertainty in designing the sampling strategy for outlier dataset. However, the OOD samples selected solely based on predictive uncertainty can be biased towards certain types, which may fail to capture the full outlier distribution. In this work, we empirically show that diversity is critical in sampling outliers for OOD detection performance. Motivated by the observation, we propose a straightforward and novel sampling strategy named DOS (Diverse Outlier Sampling) to select diverse and informative outliers. Specifically, we cluster the normalized features at each iteration, and the most informative outlier from each cluster is selected for model training with absent category loss. With DOS, the sampled outliers efficiently shape a globally compact decision boundary between ID and OOD data. Extensive experiments demonstrate the superiority of DOS, reducing the average FPR95 by up to 25.79% on CIFAR-100 with TI-300K.

View on arXivView PDF

Code Implementations(1)

lygjwy/DOSCommunity100%
MIT

[ICLR 2024] An official PyTorch implementation of paper 'DOS: Diverse Outlier Sampling for Out-of-Distribution Detection'

80PythonJun 26, 20222 years agoMIT

Similar Papers

Cite this paper

@article{jiang2023dos,
  title  = {DOS: Diverse Outlier Sampling for Out-of-Distribution Detection},
  author = {Wenyu Jiang and Hao Cheng and Mingcai Chen and Chongjun Wang and Hongxin Wei},
  year   = {2023},
  eprint = {2306.02031},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.02031v2},
  journal = {ICLR 2023 2023}
}

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

Discussion