TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/Far Away in the Deep Space: Dense Nearest-Neighbor-Based O...

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

Silvio Galesso, Max Argus, Thomas Brox

2022-11-12Image ClassificationDensity EstimationAnomaly DetectionSemantic SegmentationOut-of-Distribution DetectionNovelty Detection
PaperPDFCode(official)

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.

Results

TaskDatasetMetricValueModel
Anomaly DetectionRoad AnomalyAP85.6cDNP
Anomaly DetectionRoad AnomalyFPR959.8cDNP
Anomaly DetectionFishyscapes L&FAP69.8cDNP+OE
Anomaly DetectionFishyscapes L&FFPR957.5cDNP+OE
Anomaly DetectionFishyscapes L&FAP62.2cDNP
Anomaly DetectionFishyscapes L&FFPR958.9cDNP
Out-of-Distribution DetectionADE-OoDAP62.35cDNP
Out-of-Distribution DetectionADE-OoDFPR@9539.2cDNP

Related Papers

Missing value imputation with adversarial random forests -- MissARF2025-07-21Multi-Stage Prompt Inference Attacks on Enterprise LLM Systems2025-07-21SeC: Advancing Complex Video Object Segmentation via Progressive Concept Construction2025-07-21Automatic Classification and Segmentation of Tunnel Cracks Based on Deep Learning and Visual Explanations2025-07-18Adversarial attacks to image classification systems using evolutionary algorithms2025-07-17Efficient Adaptation of Pre-trained Vision Transformer underpinned by Approximately Orthogonal Fine-Tuning Strategy2025-07-17Federated Learning for Commercial Image Sources2025-07-17MUPAX: Multidimensional Problem Agnostic eXplainable AI2025-07-17