Far Away in the Deep Space: Dense Nearest-Neighbor-Based Out-of-Distribution Detection
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 15 papers in the map (data through 14 Oct 2026). Builds on 55 of its 72 references that are in the map. First posted on arXiv 12 Nov 2022.
Builds on
55 of 72 references.
References · 55
- 2017Attention Is All You Needcited by 60,361
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,968
- 2017On Calibration of Modern Neural Networkscited by 4,960
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
- 2016The Cityscapes Dataset for Semantic Urban Scene Understandingcited by 4,444
- 2022A ConvNet for the 2020scited by 3,579
- 2021SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformerscited by 2,940
- 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,877
- 2017Billion-scale similarity search with GPUscited by 2,497
- 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,385
38 more
- 2021Masked-attention Mask Transformer for Universal Image Segmentationcited by 2,351
- 2016Xception: Deep Learning with Depthwise Separable Convolutionscited by 2,332
- 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,485
- 2019Natural Adversarial Examplescited by 1,408
- 2020Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformerscited by 1,369
- 2020Energy-based Out-of-distribution Detectioncited by 1,299
- 2018Unified Perceptual Parsing for Scene Understandingcited by 1,271
- 2018Deep Anomaly Detection with Outlier Exposurecited by 942
- 2021iBOT: Image BERT Pre-Training with Online Tokenizercited by 903
- 2021Segmenter: Transformer for Semantic Segmentationcited by 855
- 2021Towards Total Recall in Industrial Anomaly Detectioncited by 776
- 2022Out-of-Distribution Detection with Deep Nearest Neighborscited by 600
- 2021ReAct: Out-of-distribution Detection With Rectified Activationscited by 486
- 2019Scaling Out-of-Distribution Detection for Real-World Settingscited by 465
- 2019Your Classifier is Secretly an Energy Based Model and You Should Treat it Like Onecited by 405
- 2022ViM: Out-Of-Distribution with Virtual-logit Matchingcited by 405
- 2022SPot-the-Difference Self-Supervised Pre-training for Anomaly Detection and Segmentationcited by 400
- 2021On the Importance of Gradients for Detecting Distributional Shifts in the Wildcited by 339
- 2020Sub-Image Anomaly Detection with Deep Pyramid Correspondencescited by 300
- 2022OpenOOD: Benchmarking Generalized Out-of-Distribution Detectioncited by 268
- 2021MOS: Towards Scaling Out-of-distribution Detection for Large Semantic Spacecited by 233
- 2021Localizing Objects with Self-Supervised Transformers and no Labelscited by 230
- 2020PANDA: Adapting Pretrained Features for Anomaly Detection and Segmentationcited by 175
- 2021SegmentMeIfYouCan: A Benchmark for Anomaly Segmentationcited by 150
- 2022Deep Spectral Methods: A Surprisingly Strong Baseline for Unsupervised Semantic Segmentation and Localizationcited by 150
- 2020Demystifying Contrastive Self-Supervised Learning: Invariances, Augmentations and Dataset Biasescited by 143
- 2019Detecting the Unexpected via Image Resynthesiscited by 137
- 2020Entropy Maximization and Meta Classification for Out-Of-Distribution Detection in Semantic Segmentationcited by 133
- 2019The Fishyscapes Benchmark: Measuring Blind Spots in Semantic Segmentationcited by 122
- 2020Hybrid Models for Open Set Recognitioncited by 109
- 2022POEM: Out-of-Distribution Detection with Posterior Samplingcited by 108
- 2020Synthesize then Compare: Detecting Failures and Anomalies for Semantic Segmentationcited by 96
- 2022GMMSeg: Gaussian Mixture based Generative Semantic Segmentation Modelscited by 87
- 2022Training OOD Detectors in their Natural Habitatscited by 86
- 2021Pixel-wise Energy-biased Abstention Learning for Anomaly Segmentation on Complex Urban Driving Scenescited by 83
- 2021Provable Guarantees for Understanding Out-of-distribution Detectioncited by 78
- 2021Standardized Max Logits: A Simple yet Effective Approach for Identifying Unexpected Road Obstacles in Urban-Scene Segmentationcited by 77
- 2022Unsupervised Semantic Segmentation with Self-supervised Object-centric Representationscited by 54
50 most cited of 55 All 55 (JSON)
Built on by
Citing papers per year: 2023: 1; 2024: 8; 2025: 4; 2026: 2.
15 papers.
Sort:
- 2024PixOOD: Pixel-Level Out-of-Distribution Detectioncited by 20
- 2024AnoVox: A Benchmark for Multimodal Anomaly Detection in Autonomous Drivingcited by 14
- 2025Out-of-Distribution Segmentation in Autonomous Driving: Problems and State of the Artcited by 13
- 2024A Likelihood Ratio-Based Approach to Segmenting Unknown Objectscited by 12
- 2024Diffusion for Out-of-Distribution Detection on Road Scenes and Beyondcited by 9
- 2024Finding Dino: A Plug-and-Play Framework for Zero-Shot Detection of Out-of-Distribution Objects Using Prototypescited by 5
- 2024Segment-Level Road Obstacle Detection Using Visual Foundation Model Priors and Likelihood Ratioscited by 3
- 2024Multi-Scale Foreground-Background Confidence for Out-of-Distribution Segmentationcited by 3
- 2025Uncertainty-Aware Likelihood Ratio Estimation for Pixel-Wise Out-of-Distribution Detectioncited by 3
- 2023Learning to Generate Training Datasets for Robust Semantic Segmentationcited by 2
- 2024PARMESAN: Parameter-Free Memory Search and Transduction for Dense Prediction Taskscited by 1
- 2025Training-Free Out-Of-Distribution Segmentation With Foundation Modelscited by 0
3 more
- 2025Eyes on the Grass: Biodiversity-Increasing Robotic Mowing Using Deep Visual Embeddingscited by 0
- 2026Energy-Aware NECO for Single-Pass Pixel-wise Out-of-Distribution Detection in Semantic Segmentationcited by 0
- 2026Combining Foundation Model Confidence and Monocular Depth for Training-Free Out-of-Distribution Segmentationcited by 0
- 2026Combining Foundation Model Confidence and Monocular Depth for Training-Free Out-of-Distribution Segmentation19 Sep 2026
- 2026Energy-Aware NECO for Single-Pass Pixel-wise Out-of-Distribution Detection in Semantic Segmentation28 May 2026
- 2025Eyes on the Grass: Biodiversity-Increasing Robotic Mowing Using Deep Visual Embeddings17 Dec 2025
- 2025Training-Free Out-Of-Distribution Segmentation With Foundation Models3 Oct 2025
- 2025Uncertainty-Aware Likelihood Ratio Estimation for Pixel-Wise Out-of-Distribution Detection1 Aug 2025
- 2025Out-of-Distribution Segmentation in Autonomous Driving: Problems and State of the Art4 Mar 2025
- 2024Multi-Scale Foreground-Background Confidence for Out-of-Distribution Segmentation22 Dec 2024
- 2024Segment-Level Road Obstacle Detection Using Visual Foundation Model Priors and Likelihood Ratios7 Dec 2024
- 2024A Likelihood Ratio-Based Approach to Segmenting Unknown Objects10 Sep 2024
- 2024Diffusion for Out-of-Distribution Detection on Road Scenes and Beyond22 Jul 2024
- 2024PixOOD: Pixel-Level Out-of-Distribution Detection30 May 2024
- 2024AnoVox: A Benchmark for Multimodal Anomaly Detection in Autonomous Driving13 May 2024
3 more
- 2024Finding Dino: A Plug-and-Play Framework for Zero-Shot Detection of Out-of-Distribution Objects Using Prototypes11 Apr 2024
- 2024PARMESAN: Parameter-Free Memory Search and Transduction for Dense Prediction Tasks18 Mar 2024
- 2023Learning to Generate Training Datasets for Robust Semantic Segmentation1 Aug 2023
- 2024PixOOD: Pixel-Level Out-of-Distribution Detectioncited by 20
- 2024AnoVox: A Benchmark for Multimodal Anomaly Detection in Autonomous Drivingcited by 14
- 2025Out-of-Distribution Segmentation in Autonomous Driving: Problems and State of the Artcited by 13
- 2024A Likelihood Ratio-Based Approach to Segmenting Unknown Objectscited by 12
- 2024Diffusion for Out-of-Distribution Detection on Road Scenes and Beyondcited by 9
- 2024Finding Dino: A Plug-and-Play Framework for Zero-Shot Detection of Out-of-Distribution Objects Using Prototypescited by 5
- 2024Segment-Level Road Obstacle Detection Using Visual Foundation Model Priors and Likelihood Ratioscited by 3
- 2024Multi-Scale Foreground-Background Confidence for Out-of-Distribution Segmentationcited by 3
- 2025Uncertainty-Aware Likelihood Ratio Estimation for Pixel-Wise Out-of-Distribution Detectioncited by 3
- 2023Learning to Generate Training Datasets for Robust Semantic Segmentationcited by 2
- 2024PARMESAN: Parameter-Free Memory Search and Transduction for Dense Prediction Taskscited by 1
- 2025Training-Free Out-Of-Distribution Segmentation With Foundation Modelscited by 0
12 most cited of 15 All 15 (JSON)
- 2026Combining Foundation Model Confidence and Monocular Depth for Training-Free Out-of-Distribution Segmentation19 Sep 2026
- 2026Energy-Aware NECO for Single-Pass Pixel-wise Out-of-Distribution Detection in Semantic Segmentation28 May 2026
- 2025Eyes on the Grass: Biodiversity-Increasing Robotic Mowing Using Deep Visual Embeddings17 Dec 2025
- 2025Training-Free Out-Of-Distribution Segmentation With Foundation Models3 Oct 2025
- 2025Uncertainty-Aware Likelihood Ratio Estimation for Pixel-Wise Out-of-Distribution Detection1 Aug 2025
- 2025Out-of-Distribution Segmentation in Autonomous Driving: Problems and State of the Art4 Mar 2025
- 2024Multi-Scale Foreground-Background Confidence for Out-of-Distribution Segmentation22 Dec 2024
- 2024Segment-Level Road Obstacle Detection Using Visual Foundation Model Priors and Likelihood Ratios7 Dec 2024
- 2024A Likelihood Ratio-Based Approach to Segmenting Unknown Objects10 Sep 2024
- 2024Diffusion for Out-of-Distribution Detection on Road Scenes and Beyond22 Jul 2024
- 2024PixOOD: Pixel-Level Out-of-Distribution Detection30 May 2024
- 2024AnoVox: A Benchmark for Multimodal Anomaly Detection in Autonomous Driving13 May 2024
12 newest of 15 All 15 (JSON)