mlsanityData to 14 Oct 2026

Contrastive Representation Modeling for Anomaly Detection

arXiv 2501.05130 ↗First posted 9 Jan 2025cs.LGcited by 1

Not on the map. Why?

Abstract (arXiv)

Distance-based anomaly detection methods rely on compact in-distribution (ID) embeddings that are well separated from anomalies. However, conventional contrastive learning strategies often struggle to achieve this balance, either promoting excessive variance among inliers or failing to preserve the diversity of outliers. We begin by analyzing the challenges of representation learning for anomaly detection and identify three essential properties for the pretext task: (1) compact clustering of inliers, (2) strong separation between inliers and anomalies, and (3) preservation of diversity among synthetic outliers. Building on this, we propose a structured contrastive objective that redefines positive and negative relationships during training, promoting these properties without requiring explicit anomaly labels. We extend this framework with a patch-based learning and evaluation strategy specifically designed to improve the detection of localized anomalies in industrial settings. Our approach demonstrates significantly faster convergence and improved performance compared to standard contrastive methods. It matches or surpasses anomaly detection methods on both semantic and industrial benchmarks, including methods that rely on discriminative training or explicit anomaly labels.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 39 of its 46 references that are in the map. First posted on arXiv 9 Jan 2025.

Builds on

39 of 46 references.

References · 39

  1. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  2. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 12,049
  3. 2018Representation Learning with Contrastive Predictive Codingcited by 7,777
  4. 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,513
  5. 2017Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithmscited by 4,349
  6. 2020Supervised Contrastive Learningcited by 2,829
  7. 2020Improved Baselines with Momentum Contrastive Learningcited by 2,287
  8. 2018Unsupervised Feature Learning via Non-Parametric Instance-level Discriminationcited by 1,845
  9. 2021An Empirical Study of Training Self-Supervised Vision Transformerscited by 1,616
  10. 2018Unsupervised Representation Learning by Predicting Image Rotationscited by 1,591
  11. 2018Deep Anomaly Detection with Outlier Exposurecited by 942
  12. 2021Generalized Out-of-Distribution Detection: A Surveycited by 802
27 more
  1. 2021Towards Total Recall in Industrial Anomaly Detectioncited by 776
  2. 2020Contrastive Learning with Hard Negative Samplescited by 628
  3. 2022Out-of-Distribution Detection with Deep Nearest Neighborscited by 600
  4. 2020PaDiM: a Patch Distribution Modeling Framework for Anomaly Detection and Localizationcited by 594
  5. 2021CutPaste: Self-Supervised Learning for Anomaly Detection and Localizationcited by 531
  6. 2019Using Self-Supervised Learning Can Improve Model Robustness and Uncertaintycited by 514
  7. 2021DRAEM -- A discriminatively trained reconstruction embedding for surface anomaly detectioncited by 514
  8. 2020CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted Instancescited by 441
  9. 2022VOS: Learning What You Don't Know by Virtual Outlier Synthesiscited by 300
  10. 2019Deep Semi-Supervised Anomaly Detectioncited by 291
  11. 2018Deep Anomaly Detection Using Geometric Transformationscited by 269
  12. 2021SSD: A Unified Framework for Self-Supervised Outlier Detectioncited by 264
  13. 2020Patch SVDD: Patch-level SVDD for Anomaly Detection and Segmentationcited by 212
  14. 2020Classification-Based Anomaly Detection for General Datacited by 211
  15. 2023StableRep: Synthetic Images from Text-to-Image Models Make Strong Visual Representation Learnerscited by 177
  16. 2022DeSTSeg: Segmentation Guided Denoising Student-Teacher for Anomaly Detectioncited by 154
  17. 2020Learning and Evaluating Representations for Deep One-class Classificationcited by 133
  18. 2022How to Exploit Hyperspherical Embeddings for Out-of-Distribution Detection?cited by 128
  19. 2021Natural Synthetic Anomalies for Self-Supervised Anomaly Detection and Localizationcited by 116
  20. 2024RealNet: A Feature Selection Network with Realistic Synthetic Anomaly for Anomaly Detectioncited by 116
  21. 2021Mean-Shifted Contrastive Loss for Anomaly Detectioncited by 88
  22. 2023Dream the Impossible: Outlier Imagination with Diffusion Modelscited by 77
  23. 2023Learning to Augment Distributions for Out-of-Distribution Detectioncited by 38
  24. 2023How to Overcome Curse-of-Dimensionality for Out-of-Distribution Detection?cited by 15
  25. 2021Distance-based Hyperspherical Classification for Multi-source Open-Set Domain Adaptationcited by 10
  26. 2023Unilaterally Aggregated Contrastive Learning with Hierarchical Augmentation for Anomaly Detectioncited by 5
  27. 2024Rethinking Positive Pairs in Contrastive Learningcited by 5

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.