DFM: Differentiable Feature Matching for Anomaly Detection
Sheng Wu, Yimi Wang, Xudong Liu, Yuguang Yang, Runqi Wang, Guodong Guo, David S. Doermann, Baochang Zhang
Abstract
Feature matching methods for unsupervised anomaly detection have demonstrated impressive performance. Existing methods primarily rely on self-supervised training and handcrafted matching schemes for task adaptation. However, they can only achieve an inferior feature representation for anomaly detection because the feature extraction and matching modules are separately trained. To address these issues, we propose a Differentiable Feature Matching (DFM) framework for joint optimization of the feature extractor and the matching head. DFM transforms nearest-neighbor matching into a pooling-based module and embeds it within a Feature Matching Network (FMN). This design enables end-to-end feature extraction and feature matching module training, thus providing better feature representation for anomaly detection tasks. DFM is generic and can be incorporated into existing featurematching methods. We implement DFM with various backbones and conduct extensive experiments across various tasks and datasets, demonstrating its effectiveness. Notably, we achieve state-of-the-art results in the continual anomaly detection task with instance-AUROC improvement of up to 3.9% and pixel-AP improvement of up to 5.5%.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
5 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Multi-Prototype Compactness and Boundary-Aware Synthesis for Unsupervised Anomaly Detection cites Towards Total Recall in Industrial Anomaly Detection
- PNI: Industrial Anomaly Detection using Position and Neighborhood Information cites Towards Total Recall in Industrial Anomaly Detection
- Emerging Properties in Self-Supervised Vision Transformers cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- AnoStyler: Text-Driven Localized Anomaly Generation via Lightweight Style Transfer cites Towards Total Recall in Industrial Anomaly Detection
- AnoStyler: Text-Driven Localized Anomaly Generation via Lightweight Style Transfer cites Learning Transferable Visual Models From Natural Language Supervision
- RAID: Retrieval-Augmented Anomaly Detection cites Towards Total Recall in Industrial Anomaly Detection
- RAID: Retrieval-Augmented Anomaly Detection cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- RAID: Retrieval-Augmented Anomaly Detection cites Learning Transferable Visual Models From Natural Language Supervision
- Reasoning-Driven Anomaly Detection and Localization with Image-Level Supervision cites Learning Transferable Visual Models From Natural Language Supervision
- Learning Transferable Visual Models From Natural Language Supervision cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
Cited by top-tier papers5
- Reasoning-Driven Anomaly Detection and Localization with Image-Level SupervisionYizhou Jin, Yuezhu Feng, Jinjin Zhang, Peng Wang et al.CVPR 2026 · 4 citations
- CRFT: Consistent-Recurrent Feature Flow Transformer for Cross-Modal Image RegistrationXuecong Liu, Mengzhu Ding, Zixuan Sun, Zhang Li et al.CVPR 2026 · 4 citations
- RAID: Retrieval-Augmented Anomaly DetectionMingxiu Cai, Zhe Zhang, Gaochang Wu, Tianyou Chai et al.CVPR 2026 · 2 citations
- Multi-Prototype Compactness and Boundary-Aware Synthesis for Unsupervised Anomaly DetectionKailun Liao, Jianfeng Yang, Tao Tao, Wenfei Wu et al.CVPR 2026 · 1 citation
- AnoStyler: Text-Driven Localized Anomaly Generation via Lightweight Style TransferYulim So, Seokho KangAAAI 2026
Builds on15
- Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
- Emerging Properties in Self-Supervised Vision TransformersMathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou et al.ICCV 2021 · 8,921 citations
- Towards Total Recall in Industrial Anomaly DetectionKarsten Roth, Latha Pemula, Joaquin Zepeda, Bernhard Schölkopf et al.CVPR 2022 · 1,301 citations
- PNI: Industrial Anomaly Detection using Position and Neighborhood InformationJaehyeok Bae, Jae-Han Lee, Seyun KimICCV 2023 · 123 citations
Related papers
- ReContrast: Domain-Specific Anomaly Detection via Contrastive ReconstructionJia Guo, Shuai Lu, Lize Jia, Weihang Zhang et al.NeurIPS 2023 · 124 citations
- Mixture Prototype Flow Matching for Open-Set Supervised Anomaly DetectionFuyun Wang, Yuanzhi Wang, Xu Guo, Sujia Huang et al.ICML 2026
- Exploring Multimodal Prompts For Unsupervised Continuous Anomaly DetectionMingle Zhou, Jiahui Liu, Jin Wan, Gang Li et al.ACM MM 2025
- GAN Ensemble for Anomaly DetectionXu Han, Xiaohui Chen, Li-Ping LiuAAAI 2021 · 79 citations
- Towards Continual Adaptation in Industrial Anomaly DetectionWujin Li, Jiawei Zhan, Jinbao Wang, Bizhong Xia et al.ACM MM 2022 · 37 citations
