Out-of-distribution Detection with Deep Nearest Neighbors

04/13/2022
by   Yiyou Sun, et al.
0

Out-of-distribution (OOD) detection is a critical task for deploying machine learning models in the open world. Distance-based methods have demonstrated promise, where testing samples are detected as OOD if they are relatively far away from in-distribution (ID) data. However, prior methods impose a strong distributional assumption of the underlying feature space, which may not always hold. In this paper, we explore the efficacy of non-parametric nearest-neighbor distance for OOD detection, which has been largely overlooked in the literature. Unlike prior works, our method does not impose any distributional assumption, hence providing stronger flexibility and generality. We demonstrate the effectiveness of nearest-neighbor-based OOD detection on several benchmarks and establish superior performance. Under the same model trained on ImageNet-1k, our method substantially reduces the false positive rate (FPR@TPR95) by 24.77 parametric approach Mahalanobis distance in detection.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
03/06/2023

Non-Parametric Outlier Synthesis

Out-of-distribution (OOD) detection is indispensable for safely deployin...
research
11/12/2022

Far Away in the Deep Space: Nearest-Neighbor-Based Dense Out-of-Distribution Detection

The key to out-of-distribution detection is density estimation of the in...
research
07/03/2023

Online nearest neighbor classification

We study an instance of online non-parametric classification in the real...
research
04/20/2022

One-Class Model for Fabric Defect Detection

An automated and accurate fabric defect inspection system is in high dem...
research
08/24/2022

Metric Effects based on Fluctuations in values of k in Nearest Neighbor Regressor

Regression branch of Machine Learning purely focuses on prediction of co...
research
11/18/2021

On the Effectiveness of Sparsification for Detecting the Deep Unknowns

Detecting out-of-distribution (OOD) inputs is a central challenge for sa...
research
10/27/2022

On Out-of-Distribution Detection for Audio with Deep Nearest Neighbors

Out-of-distribution (OOD) detection is concerned with identifying data p...

Please sign up or login with your details

Forgot password? Click here to reset