Deep Nearest Neighbor Anomaly Detection

Liron Bergman, Niv Cohen, Yedid Hoshen

Abstract

Nearest neighbors is a successful and long-standing technique for anomaly detection. Significant progress has been recently achieved by self-supervised deep methods (e.g. RotNet). Self-supervised features however typically under-perform Imagenet pre-trained features. In this work, we investigate whether the recent progress can indeed outperform nearest-neighbor methods operating on an Imagenet pretrained feature space. The simple nearest-neighbor based-approach is experimentally shown to outperform self-supervised methods in: accuracy, few shot generalization, training time and noise robustness while making fewer assumptions on image distributions.

Results

TaskDatasetMetricValueModel
Anomaly DetectionAnomaly Detection on Anomaly Detection on Unlabeled ImageNet-30 vs Flowers-102ROC-AUC93.2DN2 CLIP ViT
Anomaly DetectionAnomaly Detection on Unlabeled ImageNet-30 vs CUB-200ROC-AUC93.8DN2 CLIP ViT
Anomaly DetectionOne-class CIFAR-10AUROC92.5DN2

Related Papers