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.

Cite

Text

Galesso et al. "Far Away in the Deep Space: Dense Nearest-Neighbor-Based Out-of-Distribution Detection." IEEE/CVF International Conference on Computer Vision Workshops, 2023. doi:10.1109/ICCVW60793.2023.00482

Markdown

[Galesso et al. "Far Away in the Deep Space: Dense Nearest-Neighbor-Based Out-of-Distribution Detection." IEEE/CVF International Conference on Computer Vision Workshops, 2023.](https://mlanthology.org/iccvw/2023/galesso2023iccvw-far/) doi:10.1109/ICCVW60793.2023.00482

BibTeX

@inproceedings{galesso2023iccvw-far,
  title     = {{Far Away in the Deep Space: Dense Nearest-Neighbor-Based Out-of-Distribution Detection}},
  author    = {Galesso, Silvio and Argus, Max and Brox, Thomas},
  booktitle = {IEEE/CVF International Conference on Computer Vision Workshops},
  year      = {2023},
  pages     = {4479-4489},
  doi       = {10.1109/ICCVW60793.2023.00482},
  url       = {https://mlanthology.org/iccvw/2023/galesso2023iccvw-far/}
}