COFT-AD: COntrastive Fine-Tuning for Few-Shot Anomaly Detection
Not on the map. Why?
Abstract (arXiv)
Existing approaches towards anomaly detection~(AD) often rely on a substantial amount of anomaly-free data to train representation and density models. However, large anomaly-free datasets may not always be available before the inference stage; in which case an anomaly detection model must be trained with only a handful of normal samples, a.k.a. few-shot anomaly detection (FSAD). In this paper, we propose a novel methodology to address the challenge of FSAD which incorporates two important techniques. Firstly, we employ a model pre-trained on a large source dataset to initialize model weights. Secondly, to ameliorate the covariate shift between source and target domains, we adopt contrastive training to fine-tune on the few-shot target domain data. To learn suitable representations for the downstream AD task, we additionally incorporate cross-instance positive pairs to encourage a tight cluster of the normal samples, and negative pairs for better separation between normal and synthesized negative samples. We evaluate few-shot anomaly detection on on 3 controlled AD tasks and 4 real-world AD tasks to demonstrate the effectiveness of the proposed method.
Key facts. Cited by 13 papers in the map (data through 7 Oct 2026). Builds on 37 of its 55 references that are in the map. First posted on arXiv 29 Feb 2024.
Builds on
37 of 55 references.
References · 37
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
- 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
- 2020Bootstrap your own latent: A new approach to self-supervised Learningcited by 4,712
- 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,857
- 2021Towards Total Recall in Industrial Anomaly Detectioncited by 772
- 2018Deep Visual Domain Adaptation: A Surveycited by 634
- 2017Unsupervised Anomaly Detection with Generative Adversarial Networks to Guide Marker Discoverycited by 566
- 2018Do Better ImageNet Models Transfer Better?cited by 560
- 2021CutPaste: Self-Supervised Learning for Anomaly Detection and Localizationcited by 529
25 more
- 2020CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted Instancescited by 441
- 2022Anomaly Detection via Reverse Distillation from One-Class Embeddingcited by 419
- 2021CFLOW-AD: Real-Time Unsupervised Anomaly Detection with Localization via Conditional Normalizing Flowscited by 320
- 2019Deep Semi-Supervised Anomaly Detectioncited by 290
- 2018Deep Anomaly Detection Using Geometric Transformationscited by 269
- 2018Improving Unsupervised Defect Segmentation by Applying Structural Similarity to Autoencoderscited by 263
- 2022Contrastive Test-Time Adaptationcited by 258
- 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
- 2019OCGAN: One-class Novelty Detection Using GANs with Constrained Latent Representationscited by 199
- 2019Detecting the Unexpected via Image Resynthesiscited by 137
- 2020Learning and Evaluating Representations for Deep One-class Classificationcited by 133
- 2022Registration based Few-Shot Anomaly Detectioncited by 133
- 2022Deep Isolation Forest for Anomaly Detectioncited by 90
- 2018Learning Representations of Ultrahigh-dimensional Data for Random Distance-based Outlier Detectioncited by 79
- 2018Learning Deep Features for One-Class Classificationcited by 76
- 2023Pushing the Limits of Fewshot Anomaly Detection in Industry Vision: Graphcorecited by 75
- 2021Explainable Deep Few-shot Anomaly Detection with Deviation Networkscited by 69
- 2021A Hierarchical Transformation-Discriminating Generative Model for Few Shot Anomaly Detectioncited by 60
- 2023Anomaly Detection under Distribution Shiftcited by 35
- 2021Unsupervised Outlier Detection using Memory and Contrastive Learningcited by 11
- 2023No Free Lunch: The Hazards of Over-Expressive Representations in Anomaly Detectioncited by 7
- 2021Unsupervised Finetuningcited by 6
- 2021Efficient Anomaly Detection Using Self-Supervised Multi-Cue Taskscited by 6
- 2022Revisiting Pretraining for Semi-Supervised Learning in the Low-Label Regimecited by 5
Built on by
Citing papers per year: 2024: 5; 2025: 4; 2026: 4.
13 papers.
Sort:
By area:
- 2024Toward Generalist Anomaly Detection via In-context Residual Learning with Few-shot Sample Promptscited by 88
- 2024Generalized Out-of-Distribution Detection and Beyond in Vision Language Model Era: A Surveycited by 36
- 2024CLIP3D-AD: Extending CLIP for 3D Few-Shot Anomaly Detection with Multi-View Images Generationcited by 16
- 2024Salvaging the Overlooked: Leveraging Class-Aware Contrastive Learning for Multi-Class Anomaly Detectioncited by 15
- 2025Distribution Prototype Diffusion Learning for Open-set Supervised Anomaly Detectioncited by 10
- 2025DictAS: A Framework for Class-Generalizable Few-Shot Anomaly Segmentation via Dictionary Lookupcited by 9
- 2026AD-Copilot: A Vision-Language Assistant for Industrial Anomaly Detection via Visual In-context Comparisoncited by 5
- 2024IPAD: Industrial Process Anomaly Detection Datasetcited by 3
- 2025Multi-View Industrial Anomaly Detection with Epipolar Constrained Cross-View Fusioncited by 3
- 2025Toward Long-Tailed Online Anomaly Detection through Class-Agnostic Conceptscited by 1
- 2026InCTRLv2: Generalist Residual Models for Few-Shot Anomaly Detection and Segmentationcited by 0
- 2026DART: A Vision-Language Foundation Model for Comprehensive Rope Condition Monitoringcited by 0
1 more
- 2026Beyond Normal References: Discriminative Few-Shot Anomaly Detection22 May 2026
- 2026DART: A Vision-Language Foundation Model for Comprehensive Rope Condition Monitoring6 May 2026
- 2026InCTRLv2: Generalist Residual Models for Few-Shot Anomaly Detection and Segmentation6 Apr 2026
- 2026AD-Copilot: A Vision-Language Assistant for Industrial Anomaly Detection via Visual In-context Comparison14 Mar 2026
- 2025DictAS: A Framework for Class-Generalizable Few-Shot Anomaly Segmentation via Dictionary Lookup19 Aug 2025
- 2025Toward Long-Tailed Online Anomaly Detection through Class-Agnostic Concepts22 Jul 2025
- 2025Multi-View Industrial Anomaly Detection with Epipolar Constrained Cross-View Fusion14 Mar 2025
- 2025Distribution Prototype Diffusion Learning for Open-set Supervised Anomaly Detection28 Feb 2025
- 2024Salvaging the Overlooked: Leveraging Class-Aware Contrastive Learning for Multi-Class Anomaly Detection6 Dec 2024
- 2024Generalized Out-of-Distribution Detection and Beyond in Vision Language Model Era: A Survey31 Jul 2024
- 2024CLIP3D-AD: Extending CLIP for 3D Few-Shot Anomaly Detection with Multi-View Images Generation27 Jun 2024
- 2024IPAD: Industrial Process Anomaly Detection Dataset23 Apr 2024
- 2024Generalized Out-of-Distribution Detection and Beyond in Vision Language Model Era: A Surveycited by 36
- 2025DictAS: A Framework for Class-Generalizable Few-Shot Anomaly Segmentation via Dictionary Lookupcited by 9
- 2026AD-Copilot: A Vision-Language Assistant for Industrial Anomaly Detection via Visual In-context Comparisoncited by 5
- 2026AD-Copilot: A Vision-Language Assistant for Industrial Anomaly Detection via Visual In-context Comparison14 Mar 2026
- 2025DictAS: A Framework for Class-Generalizable Few-Shot Anomaly Segmentation via Dictionary Lookup19 Aug 2025
- 2024Generalized Out-of-Distribution Detection and Beyond in Vision Language Model Era: A Survey31 Jul 2024
- 2024Toward Generalist Anomaly Detection via In-context Residual Learning with Few-shot Sample Promptscited by 88
- 2024CLIP3D-AD: Extending CLIP for 3D Few-Shot Anomaly Detection with Multi-View Images Generationcited by 16
- 2024Salvaging the Overlooked: Leveraging Class-Aware Contrastive Learning for Multi-Class Anomaly Detectioncited by 15
- 2025Distribution Prototype Diffusion Learning for Open-set Supervised Anomaly Detectioncited by 10
- 2024IPAD: Industrial Process Anomaly Detection Datasetcited by 3
- 2025Multi-View Industrial Anomaly Detection with Epipolar Constrained Cross-View Fusioncited by 3
- 2025Toward Long-Tailed Online Anomaly Detection through Class-Agnostic Conceptscited by 1
- 2026InCTRLv2: Generalist Residual Models for Few-Shot Anomaly Detection and Segmentationcited by 0
- 2026DART: A Vision-Language Foundation Model for Comprehensive Rope Condition Monitoringcited by 0
- 2026Beyond Normal References: Discriminative Few-Shot Anomaly Detectioncited by 0
- 2026Beyond Normal References: Discriminative Few-Shot Anomaly Detection22 May 2026
- 2026DART: A Vision-Language Foundation Model for Comprehensive Rope Condition Monitoring6 May 2026
- 2026InCTRLv2: Generalist Residual Models for Few-Shot Anomaly Detection and Segmentation6 Apr 2026
- 2025Toward Long-Tailed Online Anomaly Detection through Class-Agnostic Concepts22 Jul 2025
- 2025Multi-View Industrial Anomaly Detection with Epipolar Constrained Cross-View Fusion14 Mar 2025
- 2025Distribution Prototype Diffusion Learning for Open-set Supervised Anomaly Detection28 Feb 2025
- 2024Salvaging the Overlooked: Leveraging Class-Aware Contrastive Learning for Multi-Class Anomaly Detection6 Dec 2024
- 2024CLIP3D-AD: Extending CLIP for 3D Few-Shot Anomaly Detection with Multi-View Images Generation27 Jun 2024
- 2024IPAD: Industrial Process Anomaly Detection Dataset23 Apr 2024
- 2024Toward Generalist Anomaly Detection via In-context Residual Learning with Few-shot Sample Prompts11 Mar 2024