mlsanityData to 7 Oct 2026

Salvaging the Overlooked: Leveraging Class-Aware Contrastive Learning for Multi-Class Anomaly Detection

arXiv 2412.04769 ↗First posted 6 Dec 2024cs.CVcited by 15

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

  1. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  2. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  3. 2020Denoising Diffusion Probabilistic Modelscited by 20,851
  4. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
  5. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
  6. 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
  7. 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,415
  8. 2018Continual Lifelong Learning with Neural Networks: A Reviewcited by 1,313
  9. 2023A Comprehensive Survey of Continual Learning: Theory, Method and Applicationcited by 860
  10. 2020What Makes for Good Views for Contrastive Learning?cited by 843
  11. 2021Towards Total Recall in Industrial Anomaly Detectioncited by 772
  12. 2020Self-supervised Learning: Generative or Contrastivecited by 693
38 more
  1. 2019Self-supervised Visual Feature Learning with Deep Neural Networks: A Surveycited by 656
  2. 2020PaDiM: a Patch Distribution Modeling Framework for Anomaly Detection and Localizationcited by 591
  3. 2021CutPaste: Self-Supervised Learning for Anomaly Detection and Localizationcited by 529
  4. 2020Dense Contrastive Learning for Self-Supervised Visual Pre-Trainingcited by 512
  5. 2021DRAEM -- A discriminatively trained reconstruction embedding for surface anomaly detectioncited by 510
  6. 2020CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted Instancescited by 441
  7. 2022Anomaly Detection via Reverse Distillation from One-Class Embeddingcited by 419
  8. 2022SPot-the-Difference Self-Supervised Pre-training for Anomaly Detection and Segmentationcited by 397
  9. 2021CFLOW-AD: Real-Time Unsupervised Anomaly Detection with Localization via Conditional Normalizing Flowscited by 320
  10. 2022A Unified Model for Multi-class Anomaly Detectioncited by 267
  11. 2023SimpleNet: A Simple Network for Image Anomaly Detection and Localizationcited by 256
  12. 2021VT-ADL: A Vision Transformer Network for Image Anomaly Detection and Localizationcited by 222
  13. 2023A Survey on Self-supervised Learning: Algorithms, Applications, and Future Trendscited by 205
  14. 2021The MVTec 3D-AD Dataset for Unsupervised 3D Anomaly Detection and Localizationcited by 174
  15. 2022DeSTSeg: Segmentation Guided Denoising Student-Teacher for Anomaly Detectioncited by 153
  16. 2023Multimodal Industrial Anomaly Detection via Hybrid Fusioncited by 138
  17. 2024Real-IAD: A Real-World Multi-View Dataset for Benchmarking Versatile Industrial Anomaly Detectioncited by 138
  18. 2022Registration based Few-Shot Anomaly Detectioncited by 133
  19. 2021Self-Supervised Predictive Convolutional Attentive Block for Anomaly Detectioncited by 119
  20. 2024RealNet: A Feature Selection Network with Realistic Synthetic Anomaly for Anomaly Detectioncited by 116
  21. 2022Asymmetric Student-Teacher Networks for Industrial Anomaly Detectioncited by 115
  22. 2024MambaAD: Exploring State Space Models for Multi-class Unsupervised Anomaly Detectioncited by 113
  23. 2018Deep Metric Learning with Hierarchical Triplet Losscited by 112
  24. 2024Dinomaly: The Less Is More Philosophy in Multi-Class Unsupervised Anomaly Detectioncited by 92
  25. 2023ReContrast: Domain-Specific Anomaly Detection via Contrastive Reconstructioncited by 62
  26. 2022Prototypical Residual Networks for Anomaly Detection and Localizationcited by 56
  27. 2023Exploring Plain ViT Reconstruction for Multi-class Unsupervised Anomaly Detectioncited by 47
  28. 2023Diversity-Measurable Anomaly Detectioncited by 41
  29. 2023Anomaly Detection under Distribution Shiftcited by 35
  30. 2024Unsupervised Continual Anomaly Detection with Contrastively-learned Promptcited by 31
  31. 2024Hierarchical Gaussian Mixture Normalizing Flow Modeling for Unified Anomaly Detectioncited by 28
  32. 2023An Incremental Unified Framework for Small Defect Inspectioncited by 25
  33. 2021BCNet: Searching for Network Width with Bilaterally Coupled Networkcited by 23
  34. 2024Learning Unified Reference Representation for Unsupervised Multi-class Anomaly Detectioncited by 19
  35. 2024Continuous Memory Representation for Anomaly Detectioncited by 16
  36. 2024Learning Feature Inversion for Multi-class Anomaly Detection under General-purpose COCO-AD Benchmarkcited by 15
  37. 2024COFT-AD: COntrastive Fine-Tuning for Few-Shot Anomaly Detectioncited by 13
  38. 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

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 7; 2026: 8.

15 papers.

Sort:

By area: