HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

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

Silvio Galesso Max Argus Thomas Brox

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

Abstract

The key to out-of-distribution detection is density estimation of the in-distribution data or of its feature representations. This is particularly challenging for dense anomaly detection in domains where the in-distribution data has a complex underlying structure. Nearest-Neighbors approaches have been shown to work well in object-centric data domains, such as industrial inspection and image classification. In this paper, we show that nearest-neighbor approaches also yield state-of-the-art results on dense novelty detection in complex driving scenes when working with an appropriate feature representation. In particular, we find that transformer-based architectures produce representations that yield much better similarity metrics for the task. We identify the multi-head structure of these models as one of the reasons, and demonstrate a way to transfer some of the improvements to CNNs. Ultimately, the approach is simple and non-invasive, i.e., it does not affect the primary segmentation performance, refrains from training on examples of anomalies, and achieves state-of-the-art results on RoadAnomaly, StreetHazards, and SegmentMeIfYouCan-Anomaly.

Code Repositories

silviogalesso/dense-ood-knns
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
anomaly-detection-on-fishyscapes-l-fcDNP+OE
AP: 69.8
FPR95: 7.5
anomaly-detection-on-fishyscapes-l-fcDNP
AP: 62.2
FPR95: 8.9
anomaly-detection-on-road-anomalycDNP
AP: 85.6
FPR95: 9.8
out-of-distribution-detection-on-ade-oodcDNP
AP: 62.35
FPR@95: 39.20

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Far Away in the Deep Space: Dense Nearest-Neighbor-Based Out-of-Distribution Detection | Papers | HyperAI