Target before Shooting: Accurate Anomaly Detection and Localization under One Millisecond via Cascade Patch Retrieval
Not on the map. Why?
Abstract (arXiv)
In this work, by re-examining the "matching" nature of Anomaly Detection (AD), we propose a new AD framework that simultaneously enjoys new records of AD accuracy and dramatically high running speed. In this framework, the anomaly detection problem is solved via a cascade patch retrieval procedure that retrieves the nearest neighbors for each test image patch in a coarse-to-fine fashion. Given a test sample, the top-K most similar training images are first selected based on a robust histogram matching process. Secondly, the nearest neighbor of each test patch is retrieved over the similar geometrical locations on those "global nearest neighbors", by using a carefully trained local metric. Finally, the anomaly score of each test image patch is calculated based on the distance to its "local nearest neighbor" and the "non-background" probability. The proposed method is termed "Cascade Patch Retrieval" (CPR) in this work. Different from the conventional patch-matching-based AD algorithms, CPR selects proper "targets" (reference images and locations) before "shooting" (patch-matching). On the well-acknowledged MVTec AD, BTAD and MVTec-3D AD datasets, the proposed algorithm consistently outperforms all the comparing SOTA methods by remarkable margins, measured by various AD metrics. Furthermore, CPR is extremely efficient. It runs at the speed of 113 FPS with the standard setting while its simplified version only requires less than 1 ms to process an image at the cost of a trivial accuracy drop. The code of CPR is available at https://github.com/flyinghu123/CPR.
Key facts. Cited by 22 papers in the map (data through 14 Oct 2026). Builds on 70 of its 105 references that are in the map. First posted on arXiv 13 Aug 2023.
Builds on
70 of 105 references.
References · 70
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,498
- 2023Segment Anythingcited by 8,234
- 2016Densely Connected Convolutional Networkscited by 6,720
- 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,442
- 2015Rethinking the Inception Architecture for Computer Visioncited by 5,475
- 2014NICE: Non-linear Independent Components Estimationcited by 1,058
- 2015NetVLAD: CNN architecture for weakly supervised place recognitioncited by 941
- 2021Towards Total Recall in Industrial Anomaly Detectioncited by 776
38 more
- 2020PaDiM: a Patch Distribution Modeling Framework for Anomaly Detection and Localizationcited by 594
- 2021CutPaste: Self-Supervised Learning for Anomaly Detection and Localizationcited by 531
- 2021DRAEM -- A discriminatively trained reconstruction embedding for surface anomaly detectioncited by 514
- 2022Anomaly Detection via Reverse Distillation from One-Class Embeddingcited by 421
- 2019Uninformed Students: Student-Teacher Anomaly Detection with Discriminative Latent Embeddingscited by 386
- 2021CFLOW-AD: Real-Time Unsupervised Anomaly Detection with Localization via Conditional Normalizing Flowscited by 321
- 2023WinCLIP: Zero-/Few-Shot Anomaly Classification and Segmentationcited by 315
- 2020Multiresolution Knowledge Distillation for Anomaly Detectioncited by 285
- 2023SimpleNet: A Simple Network for Image Anomaly Detection and Localizationcited by 256
- 2021FastFlow: Unsupervised Anomaly Detection and Localization via 2D Normalizing Flowscited by 227
- 2021VT-ADL: A Vision Transformer Network for Image Anomaly Detection and Localizationcited by 223
- 2020Patch SVDD: Patch-level SVDD for Anomaly Detection and Segmentationcited by 212
- 2020Same Same But DifferNet: Semi-Supervised Defect Detection with Normalizing Flowscited by 212
- 2021The MVTec 3D-AD Dataset for Unsupervised 3D Anomaly Detection and Localizationcited by 178
- 2023EfficientAD: Accurate Visual Anomaly Detection at Millisecond-Level Latenciescited by 160
- 2022DeSTSeg: Segmentation Guided Denoising Student-Teacher for Anomaly Detectioncited by 154
- 2016Deep Image Retrieval: Learning global representations for image searchcited by 147
- 2023Multimodal Industrial Anomaly Detection via Hybrid Fusioncited by 139
- 2022Registration based Few-Shot Anomaly Detectioncited by 133
- 2020Explainable Deep One-Class Classificationcited by 127
- 2021Self-Supervised Predictive Convolutional Attentive Block for Anomaly Detectioncited by 119
- 2022Asymmetric Student-Teacher Networks for Industrial Anomaly Detectioncited by 117
- 2022Catching Both Gray and Black Swans: Open-set Supervised Anomaly Detectioncited by 104
- 2021Divide-and-Assemble: Learning Block-wise Memory for Unsupervised Anomaly Detectioncited by 83
- 2021Pixel-wise Energy-biased Abstention Learning for Anomaly Segmentation on Complex Urban Driving Scenescited by 83
- 2023Pushing the Limits of Fewshot Anomaly Detection in Industry Vision: Graphcorecited by 75
- 2023PyramidFlow: High-Resolution Defect Contrastive Localization using Pyramid Normalizing Flowcited by 74
- 2022Explicit Boundary Guided Semi-Push-Pull Contrastive Learning for Supervised Anomaly Detectioncited by 72
- 2021Deep Learning for Instance Retrieval: A Surveycited by 70
- 2021Explainable Deep Few-shot Anomaly Detection with Deviation Networkscited by 69
- 2022PNI : Industrial Anomaly Detection using Position and Neighborhood Informationcited by 69
- 2022MemSeg: A semi-supervised method for image surface defect detection using differences and commonalitiescited by 68
- 2021Deep One-Class Classification via Interpolated Gaussian Descriptorcited by 67
- 2022Unsupervised Object Localization: Observing the Background to Discover Objectscited by 66
- 2021Instance-level Image Retrieval using Reranking Transformerscited by 63
- 2023Segment Any Anomaly without Training via Hybrid Prompt Regularizationcited by 60
- 2023Collaborative Discrepancy Optimization for Reliable Image Anomaly Localizationcited by 57
- 2022Prototypical Residual Networks for Anomaly Detection and Localizationcited by 56
50 most cited of 70 All 70 (JSON)
Built on by
Citing papers per year: 2024: 7; 2025: 10; 2026: 5.
22 papers.
Sort:
By area:
- 2025The MVTec AD 2 Dataset: Advanced Scenarios for Unsupervised Anomaly Detectioncited by 30
- 2024Long-Tailed Anomaly Detection with Learnable Class Namescited by 14
- 2024AnomalyNCD: Towards Novel Anomaly Class Discovery in Industrial Scenarioscited by 9
- 2024Unlocking the Potential of Reverse Distillation for Anomaly Detectioncited by 8
- 2024Variational Autoencoder for Anomaly Detection: A Comparative Studycited by 6
- 2025Towards High-Resolution Industrial Image Anomaly Detectioncited by 3
- 2025MuSc-V2: Zero-Shot Multimodal Industrial Anomaly Classification and Segmentation with Mutual Scoring of Unlabeled Samplescited by 3
- 2025From Benchmarks to Reality: Advancing Visual Anomaly Detection by the VAND 3.0 Challengecited by 2
- 2025ResAD++: Towards Class Agnostic Anomaly Detection via Residual Feature Learningcited by 2
- 2025Time-reversed Flow Matching with Worst Transport in High-dimensional Latent Space for Image Anomaly Detectioncited by 1
- 2025ADPretrain: Advancing Industrial Anomaly Detection via Anomaly Representation Pretrainingcited by 1
- 2026MMR-AD: A Large-Scale Multimodal Dataset for Benchmarking General Anomaly Detection with Multimodal Large Language Modelscited by 1
10 more
- 2024Anomaly Multi-classification in Industrial Scenarios: Transferring Few-shot Learning to a New Taskcited by 0
- 2024Towards Efficient Pixel Labeling for Industrial Anomaly Detection and Localizationcited by 0
- 2024Tuned Reverse Distillation: Enhancing Multimodal Industrial Anomaly Detection with Crossmodal Tunerscited by 0
- 2025Anomalous Samples for Few-Shot Anomaly Detectioncited by 0
- 2025Self-Navigated Residual Mamba for Universal Industrial Anomaly Detectioncited by 0
- 2025Towards Efficient Pixel Labeling for Industrial Anomaly Detection and Localizationcited by 0
- 2026Deep Convolutional Large-Margin ℓp-SVDD for Visual Anomaly Detectioncited by 0
- 2026Understanding and Overcoming Cross-modal Fusion Bias in Multimodal Anomaly Detection From A Fisher Information Perspectivecited by 0
- 2026DPA: Decoupling Product-Agnostic Anomaly Representations for Zero-shot Anomaly Generationcited by 0
- 2026Focus and Supplement: Dual-Enhanced Vision Transformer for Multi-Class Anomaly Classificationcited by 0
- 2026Focus and Supplement: Dual-Enhanced Vision Transformer for Multi-Class Anomaly Classification27 Sep 2026
- 2026DPA: Decoupling Product-Agnostic Anomaly Representations for Zero-shot Anomaly Generation2 Sep 2026
- 2026Understanding and Overcoming Cross-modal Fusion Bias in Multimodal Anomaly Detection From A Fisher Information Perspective2 Aug 2026
- 2026Deep Convolutional Large-Margin ℓp-SVDD for Visual Anomaly Detection24 Jul 2026
- 2026MMR-AD: A Large-Scale Multimodal Dataset for Benchmarking General Anomaly Detection with Multimodal Large Language Models13 Apr 2026
- 2025MuSc-V2: Zero-Shot Multimodal Industrial Anomaly Classification and Segmentation with Mutual Scoring of Unlabeled Samples13 Nov 2025
- 2025ADPretrain: Advancing Industrial Anomaly Detection via Anomaly Representation Pretraining7 Nov 2025
- 2025ResAD++: Towards Class Agnostic Anomaly Detection via Residual Feature Learning28 Sep 2025
- 2025From Benchmarks to Reality: Advancing Visual Anomaly Detection by the VAND 3.0 Challenge22 Sep 2025
- 2025Towards Efficient Pixel Labeling for Industrial Anomaly Detection and Localization5 Sep 2025
- 2025Towards High-Resolution Industrial Image Anomaly Detection18 Aug 2025
- 2025Time-reversed Flow Matching with Worst Transport in High-dimensional Latent Space for Image Anomaly Detection7 Aug 2025
10 more
- 2025Self-Navigated Residual Mamba for Universal Industrial Anomaly Detection3 Aug 2025
- 2025Anomalous Samples for Few-Shot Anomaly Detection31 Jul 2025
- 2025The MVTec AD 2 Dataset: Advanced Scenarios for Unsupervised Anomaly Detection27 Mar 2025
- 2024Tuned Reverse Distillation: Enhancing Multimodal Industrial Anomaly Detection with Crossmodal Tuners12 Dec 2024
- 2024Unlocking the Potential of Reverse Distillation for Anomaly Detection10 Dec 2024
- 2024AnomalyNCD: Towards Novel Anomaly Class Discovery in Industrial Scenarios18 Oct 2024
- 2024Variational Autoencoder for Anomaly Detection: A Comparative Study24 Aug 2024
- 2024Towards Efficient Pixel Labeling for Industrial Anomaly Detection and Localization3 Jul 2024
- 2024Anomaly Multi-classification in Industrial Scenarios: Transferring Few-shot Learning to a New Task9 Jun 2024
- 2024Long-Tailed Anomaly Detection with Learnable Class Names29 Mar 2024
- 2025The MVTec AD 2 Dataset: Advanced Scenarios for Unsupervised Anomaly Detectioncited by 30
- 2024Long-Tailed Anomaly Detection with Learnable Class Namescited by 14
- 2024AnomalyNCD: Towards Novel Anomaly Class Discovery in Industrial Scenarioscited by 9
- 2024Variational Autoencoder for Anomaly Detection: A Comparative Studycited by 6
- 2025Towards High-Resolution Industrial Image Anomaly Detectioncited by 3
- 2025MuSc-V2: Zero-Shot Multimodal Industrial Anomaly Classification and Segmentation with Mutual Scoring of Unlabeled Samplescited by 3
- 2025From Benchmarks to Reality: Advancing Visual Anomaly Detection by the VAND 3.0 Challengecited by 2
- 2025ResAD++: Towards Class Agnostic Anomaly Detection via Residual Feature Learningcited by 2
- 2025ADPretrain: Advancing Industrial Anomaly Detection via Anomaly Representation Pretrainingcited by 1
- 2024Anomaly Multi-classification in Industrial Scenarios: Transferring Few-shot Learning to a New Taskcited by 0
- 2024Towards Efficient Pixel Labeling for Industrial Anomaly Detection and Localizationcited by 0
- 2025Anomalous Samples for Few-Shot Anomaly Detectioncited by 0
12 most cited of 17 All 17 (JSON)
- 2026Focus and Supplement: Dual-Enhanced Vision Transformer for Multi-Class Anomaly Classification27 Sep 2026
- 2026DPA: Decoupling Product-Agnostic Anomaly Representations for Zero-shot Anomaly Generation2 Sep 2026
- 2026Understanding and Overcoming Cross-modal Fusion Bias in Multimodal Anomaly Detection From A Fisher Information Perspective2 Aug 2026
- 2026Deep Convolutional Large-Margin ℓp-SVDD for Visual Anomaly Detection24 Jul 2026
- 2025MuSc-V2: Zero-Shot Multimodal Industrial Anomaly Classification and Segmentation with Mutual Scoring of Unlabeled Samples13 Nov 2025
- 2025ADPretrain: Advancing Industrial Anomaly Detection via Anomaly Representation Pretraining7 Nov 2025
- 2025ResAD++: Towards Class Agnostic Anomaly Detection via Residual Feature Learning28 Sep 2025
- 2025From Benchmarks to Reality: Advancing Visual Anomaly Detection by the VAND 3.0 Challenge22 Sep 2025
- 2025Towards Efficient Pixel Labeling for Industrial Anomaly Detection and Localization5 Sep 2025
- 2025Towards High-Resolution Industrial Image Anomaly Detection18 Aug 2025
- 2025Anomalous Samples for Few-Shot Anomaly Detection31 Jul 2025
- 2025The MVTec AD 2 Dataset: Advanced Scenarios for Unsupervised Anomaly Detection27 Mar 2025
12 newest of 17 All 17 (JSON)