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