Salvaging the Overlooked: Leveraging Class-Aware Contrastive Learning for Multi-Class Anomaly Detection
Not on the map. Why?
Abstract (arXiv)
For anomaly detection (AD), early approaches often train separate models for individual classes, yielding high performance but posing challenges in scalability and resource management. Recent efforts have shifted toward training a single model capable of handling multiple classes. However, directly extending early AD methods to multi-class settings often results in degraded performance. In this paper, we investigate this performance degradation observed in reconstruction-based methods, identifying the key issue: inter-class confusion. This confusion emerges when a model trained in multi-class scenarios incorrectly reconstructs samples from one class as those of another, thereby exacerbating reconstruction errors. To this end, we propose a simple yet effective modification, called class-aware contrastive learning (CCL). By explicitly leveraging raw object category information (eg carpet or wood) as supervised signals, we introduce local CL to refine multiscale dense features, and global CL to obtain more compact feature representations of normal patterns, thereby effectively adapting the models to multi-class settings. Experiments across five datasets validate the effectiveness of our approach, demonstrating significant improvements and superior performance compared to state-of-the-art methods. Notably, ablation studies indicate that pseudo-class labels can achieve comparable performance.
Key facts. Cited by 15 papers in the map (data through 7 Oct 2026). Builds on 52 of its 70 references that are in the map. First posted on arXiv 6 Dec 2024.
Builds on
52 of 70 references.
References · 52
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020Denoising Diffusion Probabilistic Modelscited by 20,851
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
- 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,415
- 2018Continual Lifelong Learning with Neural Networks: A Reviewcited by 1,313
- 2023A Comprehensive Survey of Continual Learning: Theory, Method and Applicationcited by 860
- 2020What Makes for Good Views for Contrastive Learning?cited by 843
- 2021Towards Total Recall in Industrial Anomaly Detectioncited by 772
- 2020Self-supervised Learning: Generative or Contrastivecited by 693
38 more
- 2019Self-supervised Visual Feature Learning with Deep Neural Networks: A Surveycited by 656
- 2020PaDiM: a Patch Distribution Modeling Framework for Anomaly Detection and Localizationcited by 591
- 2021CutPaste: Self-Supervised Learning for Anomaly Detection and Localizationcited by 529
- 2020Dense Contrastive Learning for Self-Supervised Visual Pre-Trainingcited by 512
- 2021DRAEM -- A discriminatively trained reconstruction embedding for surface anomaly detectioncited by 510
- 2020CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted Instancescited by 441
- 2022Anomaly Detection via Reverse Distillation from One-Class Embeddingcited by 419
- 2022SPot-the-Difference Self-Supervised Pre-training for Anomaly Detection and Segmentationcited by 397
- 2021CFLOW-AD: Real-Time Unsupervised Anomaly Detection with Localization via Conditional Normalizing Flowscited by 320
- 2022A Unified Model for Multi-class Anomaly Detectioncited by 267
- 2023SimpleNet: A Simple Network for Image Anomaly Detection and Localizationcited by 256
- 2021VT-ADL: A Vision Transformer Network for Image Anomaly Detection and Localizationcited by 222
- 2023A Survey on Self-supervised Learning: Algorithms, Applications, and Future Trendscited by 205
- 2021The MVTec 3D-AD Dataset for Unsupervised 3D Anomaly Detection and Localizationcited by 174
- 2022DeSTSeg: Segmentation Guided Denoising Student-Teacher for Anomaly Detectioncited by 153
- 2023Multimodal Industrial Anomaly Detection via Hybrid Fusioncited by 138
- 2024Real-IAD: A Real-World Multi-View Dataset for Benchmarking Versatile Industrial Anomaly Detectioncited by 138
- 2022Registration based Few-Shot Anomaly Detectioncited by 133
- 2021Self-Supervised Predictive Convolutional Attentive Block for Anomaly Detectioncited by 119
- 2024RealNet: A Feature Selection Network with Realistic Synthetic Anomaly for Anomaly Detectioncited by 116
- 2022Asymmetric Student-Teacher Networks for Industrial Anomaly Detectioncited by 115
- 2024MambaAD: Exploring State Space Models for Multi-class Unsupervised Anomaly Detectioncited by 113
- 2018Deep Metric Learning with Hierarchical Triplet Losscited by 112
- 2024Dinomaly: The Less Is More Philosophy in Multi-Class Unsupervised Anomaly Detectioncited by 92
- 2023ReContrast: Domain-Specific Anomaly Detection via Contrastive Reconstructioncited by 62
- 2022Prototypical Residual Networks for Anomaly Detection and Localizationcited by 56
- 2023Exploring Plain ViT Reconstruction for Multi-class Unsupervised Anomaly Detectioncited by 47
- 2023Diversity-Measurable Anomaly Detectioncited by 41
- 2023Anomaly Detection under Distribution Shiftcited by 35
- 2024Unsupervised Continual Anomaly Detection with Contrastively-learned Promptcited by 31
- 2024Hierarchical Gaussian Mixture Normalizing Flow Modeling for Unified Anomaly Detectioncited by 28
- 2023An Incremental Unified Framework for Small Defect Inspectioncited by 25
- 2021BCNet: Searching for Network Width with Bilaterally Coupled Networkcited by 23
- 2024Learning Unified Reference Representation for Unsupervised Multi-class Anomaly Detectioncited by 19
- 2024Continuous Memory Representation for Anomaly Detectioncited by 16
- 2024Learning Feature Inversion for Multi-class Anomaly Detection under General-purpose COCO-AD Benchmarkcited by 15
- 2024COFT-AD: COntrastive Fine-Tuning for Few-Shot Anomaly Detectioncited by 13
- 2022GrainSpace: A Large-scale Dataset for Fine-grained and Domain-adaptive Recognition of Cereal Grainscited by 9
50 most cited of 52 All 52 (JSON)
Built on by
Citing papers per year: 2025: 7; 2026: 8.
15 papers.
Sort:
By area:
- 2025OmniAD: Detect and Understand Industrial Anomaly via Multimodal Reasoningcited by 18
- 2025EMIT: Enhancing MLLMs for Industrial Anomaly Detection via Difficulty-Aware GRPOcited by 11
- 2026Chain of World: World Model Thinking in Latent Motioncited by 8
- 2025Dinomaly2: A Unified Framework for Unsupervised Image Anomaly Detectioncited by 6
- 2025SAGE: A Visual Language Model for Anomaly Detection via Fact Enhancement and Entropy-aware Alignmentcited by 4
- 2026A Semantically Disentangled Unified Model for Multi-category 3D Anomaly Detectioncited by 3
- 2025Real-IAD Variety: Pushing Industrial Anomaly Detection Dataset to a Modern Eracited by 2
- 2025ADNet: A Large-Scale and Extensible Multi-Domain Benchmark for Anomaly Detection Across 380 Real-World Categoriescited by 2
- 2026Visual Prompt-Agnostic Evolutioncited by 2
- 2025Unsupervised Multi-View Visual Anomaly Detection via Progressive Homography-Guided Alignmentcited by 1
- 2026FOCA: Frequency-Oriented Cross-Domain Forgery Detection, Localization and Explanation via Multi-Modal Large Language Modelcited by 0
- 2026Dual Prototype-Conditioned Diffusion Model for Scalable Multi-Class Unsupervised Anomaly Detection in Large Category Spacescited by 0
- 2026Towards Generalizable 3D Anomaly Detection via Relational Inconsistency Modeling28 Sep 2026
- 2026Statistical Non-linear Reconstruction Loss for Image Anomaly Detection14 Jul 2026
- 2026ArcAD: Anomaly-Rectified Calibration for Cold-Start Supervised Anomaly Detection2 Jul 2026
- 2026Dual Prototype-Conditioned Diffusion Model for Scalable Multi-Class Unsupervised Anomaly Detection in Large Category Spaces23 May 2026
- 2026A Semantically Disentangled Unified Model for Multi-category 3D Anomaly Detection26 Mar 2026
- 2026Chain of World: World Model Thinking in Latent Motion3 Mar 2026
- 2026FOCA: Frequency-Oriented Cross-Domain Forgery Detection, Localization and Explanation via Multi-Modal Large Language Model21 Feb 2026
- 2026Visual Prompt-Agnostic Evolution28 Jan 2026
- 2025ADNet: A Large-Scale and Extensible Multi-Domain Benchmark for Anomaly Detection Across 380 Real-World Categories25 Nov 2025
- 2025Unsupervised Multi-View Visual Anomaly Detection via Progressive Homography-Guided Alignment24 Nov 2025
- 2025Real-IAD Variety: Pushing Industrial Anomaly Detection Dataset to a Modern Era1 Nov 2025
- 2025Dinomaly2: A Unified Framework for Unsupervised Image Anomaly Detection20 Oct 2025
3 more
- 2026Chain of World: World Model Thinking in Latent Motioncited by 8
- 2026Chain of World: World Model Thinking in Latent Motion3 Mar 2026
- 2025Dinomaly2: A Unified Framework for Unsupervised Image Anomaly Detectioncited by 6
- 2026A Semantically Disentangled Unified Model for Multi-category 3D Anomaly Detectioncited by 3
- 2025Real-IAD Variety: Pushing Industrial Anomaly Detection Dataset to a Modern Eracited by 2
- 2025ADNet: A Large-Scale and Extensible Multi-Domain Benchmark for Anomaly Detection Across 380 Real-World Categoriescited by 2
- 2026Visual Prompt-Agnostic Evolutioncited by 2
- 2026FOCA: Frequency-Oriented Cross-Domain Forgery Detection, Localization and Explanation via Multi-Modal Large Language Modelcited by 0
- 2026ArcAD: Anomaly-Rectified Calibration for Cold-Start Supervised Anomaly Detectioncited by 0
- 2026Statistical Non-linear Reconstruction Loss for Image Anomaly Detectioncited by 0
- 2026Towards Generalizable 3D Anomaly Detection via Relational Inconsistency Modelingcited by 0
- 2026Towards Generalizable 3D Anomaly Detection via Relational Inconsistency Modeling28 Sep 2026
- 2026Statistical Non-linear Reconstruction Loss for Image Anomaly Detection14 Jul 2026
- 2026ArcAD: Anomaly-Rectified Calibration for Cold-Start Supervised Anomaly Detection2 Jul 2026
- 2026A Semantically Disentangled Unified Model for Multi-category 3D Anomaly Detection26 Mar 2026
- 2026FOCA: Frequency-Oriented Cross-Domain Forgery Detection, Localization and Explanation via Multi-Modal Large Language Model21 Feb 2026
- 2026Visual Prompt-Agnostic Evolution28 Jan 2026
- 2025ADNet: A Large-Scale and Extensible Multi-Domain Benchmark for Anomaly Detection Across 380 Real-World Categories25 Nov 2025
- 2025Real-IAD Variety: Pushing Industrial Anomaly Detection Dataset to a Modern Era1 Nov 2025
- 2025Dinomaly2: A Unified Framework for Unsupervised Image Anomaly Detection20 Oct 2025