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

11/12/2022
by   Silvio Galesso, et al.
0

The key to out-of-distribution detection is density estimation of the in-distribution data or of its feature representations. While good parametric solutions to this problem exist for well curated classification data, these are less suitable for complex domains, such as semantic segmentation. In this paper, we show that a k-Nearest-Neighbors approach can achieve surprisingly good results with small reference datasets and runtimes, and be robust with respect to hyperparameters, such as the number of neighbors and the choice of the support set size. Moreover, we show that it combines well with anomaly scores from standard parametric approaches, and we find that transformer features are particularly well suited to detect novel objects in combination with k-Nearest-Neighbors. Ultimately, the approach is simple and non-invasive, i.e., it does not affect the primary segmentation performance, avoids training on examples of anomalies, and achieves state-of-the-art results on the common benchmarks with +23 StreetHazards respectively.

READ FULL TEXT

page 1

page 8

research
05/28/2023

k-NNN: Nearest Neighbors of Neighbors for Anomaly Detection

Anomaly detection aims at identifying images that deviate significantly ...
research
01/27/2013

An improvement to k-nearest neighbor classifier

K-Nearest neighbor classifier (k-NNC) is simple to use and has little de...
research
04/13/2022

Out-of-distribution Detection with Deep Nearest Neighbors

Out-of-distribution (OOD) detection is a critical task for deploying mac...
research
05/11/2021

BikNN: Anomaly Estimation in Bilateral Domains with k-Nearest Neighbors

In this paper, a novel framework for anomaly estimation is proposed. The...
research
07/07/2022

Back to the Basics: Revisiting Out-of-Distribution Detection Baselines

We study simple methods for out-of-distribution (OOD) image detection th...
research
02/04/2021

Instance-based learning using the Half-Space Proximal Graph

The primary example of instance-based learning is the k-nearest neighbor...
research
01/25/2017

k*-Nearest Neighbors: From Global to Local

The weighted k-nearest neighbors algorithm is one of the most fundamenta...

Please sign up or login with your details

Forgot password? Click here to reset