Out-of-distribution Detection by Cross-class Vicinity Distribution of In-distribution Data

Zhilin Zhao, Longbing Cao, Kun-Yu Lin
6/19/2022
cs.LG

Official code: Lawliet-zzl/LCVD (0 stars, Python, MIT, last commit 2022-11-08).

Abstract

Deep neural networks for image classification only learn to map in-distribution inputs to their corresponding ground truth labels in training without differentiating out-of-distribution samples from in-distribution ones. This results from the assumption that all samples are independent and identically distributed (IID) without distributional distinction.

Show full abstract

Therefore, a pretrained network learned from in-distribution samples treats out-of-distribution samples as in-distribution and makes high-confidence predictions on them in the test phase. To address this issue, we draw out-of-distribution samples from the vicinity distribution of training in-distribution samples for learning to reject the prediction on out-of-distribution inputs. A \textit{Cross-class Vicinity Distribution} is introduced by assuming that an out-of-distribution sample generated by mixing multiple in-distribution samples does not share the same classes of its constituents. We thus improve the discriminability of a pretrained network by finetuning it with out-of-distribution samples drawn from the cross-class vicinity distribution, where each out-of-distribution input corresponds to a complementary label. Experiments on various in-/out-of-distribution datasets show that the proposed method significantly outperforms the existing methods in improving the capacity of discriminating between in- and out-of-distribution samples.

View on arXivView PDF

Code Implementations(1)

Lawliet-zzl/LCVDOfficial100%
MIT
00Python, ShellNov 8, 20224 years agoMIT

Similar Papers

Cite this paper

@article{zhao2022outofdistribution,
  title  = {Out-of-distribution Detection by Cross-class Vicinity Distribution of In-distribution Data},
  author = {Zhilin Zhao and Longbing Cao and Kun-Yu Lin},
  year   = {2022},
  eprint = {2206.09385},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.09385}
}

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

Discussion