Deep Nearest Neighbor Anomaly Detection
Liron Bergman, Niv Cohen, Yedid Hoshen
2020-02-24Anomaly Detection
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
| Task | Dataset | Metric | Value | Model |
|---|---|---|---|---|
| Anomaly Detection | Anomaly Detection on Anomaly Detection on Unlabeled ImageNet-30 vs Flowers-102 | ROC-AUC | 93.2 | DN2 CLIP ViT |
| Anomaly Detection | Anomaly Detection on Unlabeled ImageNet-30 vs CUB-200 | ROC-AUC | 93.8 | DN2 CLIP ViT |
| Anomaly Detection | One-class CIFAR-10 | AUROC | 92.5 | DN2 |
Related Papers
Multi-Stage Prompt Inference Attacks on Enterprise LLM Systems2025-07-213DKeyAD: High-Resolution 3D Point Cloud Anomaly Detection via Keypoint-Guided Point Clustering2025-07-17A Semi-Supervised Learning Method for the Identification of Bad Exposures in Large Imaging Surveys2025-07-17A Privacy-Preserving Framework for Advertising Personalization Incorporating Federated Learning and Differential Privacy2025-07-16Bridge Feature Matching and Cross-Modal Alignment with Mutual-filtering for Zero-shot Anomaly Detection2025-07-15Adversarial Activation Patching: A Framework for Detecting and Mitigating Emergent Deception in Safety-Aligned Transformers2025-07-12Towards High-Resolution 3D Anomaly Detection: A Scalable Dataset and Real-Time Framework for Subtle Industrial Defects2025-07-10seMCD: Sequentially implemented Monte Carlo depth computation with statistical guarantees2025-07-08