mlsanityData to 14 Oct 2026

k-NNN: Nearest Neighbors of Neighbors for Anomaly Detection

arXiv 2305.17695 ↗First posted 28 May 2023cs.CVcited by 3

Not on the map. Why?

Abstract (arXiv)

Anomaly detection aims at identifying images that deviate significantly from the norm. We focus on algorithms that embed the normal training examples in space and when given a test image, detect anomalies based on the features distance to the k-nearest training neighbors. We propose a new operator that takes into account the varying structure & importance of the features in the embedding space. Interestingly, this is done by taking into account not only the nearest neighbors, but also the neighbors of these neighbors (k-NNN). We show that by simply replacing the nearest neighbor component in existing algorithms by our k-NNN operator, while leaving the rest of the algorithms untouched, each algorithms own results are improved. This is the case both for common homogeneous datasets, such as flowers or nuts of a specific type, as well as for more diverse datasets

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 27 of its 55 references that are in the map. First posted on arXiv 28 May 2023.

Builds on

27 of 55 references.

References · 27

  1. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 12,049
  2. 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,968
  3. 2016Feature Pyramid Networks for Object Detectioncited by 5,036
  4. 2017Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithmscited by 4,349
  5. 2020Exploring Simple Siamese Representation Learningcited by 2,866
  6. 2016Aggregated Residual Transformations for Deep Neural Networkscited by 2,546
  7. 2018Unsupervised Representation Learning by Predicting Image Rotationscited by 1,591
  8. 2016Colorful Image Colorizationcited by 1,114
  9. 2018Deep Anomaly Detection with Outlier Exposurecited by 942
  10. 2016Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphscited by 861
  11. 2021Towards Total Recall in Industrial Anomaly Detectioncited by 776
  12. 2022Out-of-Distribution Detection with Deep Nearest Neighborscited by 600
15 more
  1. 2019Memorizing Normality to Detect Anomaly: Memory-augmented Deep Autoencoder for Unsupervised Anomaly Detectioncited by 564
  2. 2019Deep Learning for Anomaly Detection: A Surveycited by 358
  3. 2020Sub-Image Anomaly Detection with Deep Pyramid Correspondencescited by 300
  4. 2018Deep Anomaly Detection Using Geometric Transformationscited by 269
  5. 2020Classification-Based Anomaly Detection for General Datacited by 211
  6. 2020Contrastive Training for Improved Out-of-Distribution Detectioncited by 186
  7. 2020PANDA: Adapting Pretrained Features for Anomaly Detection and Segmentationcited by 175
  8. 2020Deep Learning for Anomaly Detection: A Reviewcited by 159
  9. 2020Modeling the Distribution of Normal Data in Pre-Trained Deep Features for Anomaly Detectioncited by 115
  10. 2016Resnet in Resnet: Generalizing Residual Architecturescited by 110
  11. 2020Deep Nearest Neighbor Anomaly Detectioncited by 104
  12. 2021Mean-Shifted Contrastive Loss for Anomaly Detectioncited by 88
  13. 2018Anomaly Detection with Generative Adversarial Networks for Multivariate Time Seriescited by 55
  14. 2019Statistical Analysis of Nearest Neighbor Methods for Anomaly Detectioncited by 29
  15. 2019Latent space conditioning for improved classification and anomaly detectioncited by 8

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 3.

3 papers.