Mean-Shifted Contrastive Loss for Anomaly Detection
Not on the map. Why?
Abstract (arXiv)
Deep anomaly detection methods learn representations that separate between normal and anomalous images. Although self-supervised representation learning is commonly used, small dataset sizes limit its effectiveness. It was previously shown that utilizing external, generic datasets (e.g. ImageNet classification) can significantly improve anomaly detection performance. One approach is outlier exposure, which fails when the external datasets do not resemble the anomalies. We take the approach of transferring representations pre-trained on external datasets for anomaly detection. Anomaly detection performance can be significantly improved by fine-tuning the pre-trained representations on the normal training images. In this paper, we first demonstrate and analyze that contrastive learning, the most popular self-supervised learning paradigm cannot be naively applied to pre-trained features. The reason is that pre-trained feature initialization causes poor conditioning for standard contrastive objectives, resulting in bad optimization dynamics. Based on our analysis, we provide a modified contrastive objective, the Mean-Shifted Contrastive Loss. Our method is highly effective and achieves a new state-of-the-art anomaly detection performance including 98.6% ROC-AUC on the CIFAR-10 dataset.
Key facts. Cited by 88 papers in the map (data through 14 Oct 2026). Builds on 24 of its 42 references that are in the map. First posted on arXiv 7 Jun 2021.
Builds on
24 of 42 references.
References · 24
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 12,049
- 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,513
- 2016Overcoming catastrophic forgetting in neural networkscited by 4,787
- 2020Bootstrap your own latent: A new approach to self-supervised Learningcited by 4,750
- 2020Exploring Simple Siamese Representation Learningcited by 2,866
- 2020Improved Baselines with Momentum Contrastive Learningcited by 2,287
- 2018Unsupervised Representation Learning by Predicting Image Rotationscited by 1,591
- 2020Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hyperspherecited by 1,405
- 2016Unsupervised Learning of Visual Representations by Solving Jigsaw Puzzlescited by 1,382
- 2016Colorful Image Colorizationcited by 1,114
- 2019Using Self-Supervised Learning Can Improve Model Robustness and Uncertaintycited by 514
- 2020CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted Instancescited by 441
12 more
- 2020Understanding the Behaviour of Contrastive Losscited by 398
- 2019Object Detection in Optical Remote Sensing Images: A Survey and A New Benchmarkcited by 340
- 2015Deep multi-scale video prediction beyond mean square errorcited by 300
- 2018Deep Anomaly Detection Using Geometric Transformationscited by 269
- 2016Learning Representations for Automatic Colorizationcited by 251
- 2020Classification-Based Anomaly Detection for General Datacited by 211
- 2016What makes ImageNet good for transfer learning?cited by 192
- 2020PANDA: Adapting Pretrained Features for Anomaly Detection and Segmentationcited by 175
- 2020Learning and Evaluating Representations for Deep One-class Classificationcited by 133
- 2018Learning Deep Features for One-Class Classificationcited by 76
- 2019Detecting semantic anomaliescited by 50
- 2020Rethinking Assumptions in Deep Anomaly Detectioncited by 45
Built on by
Citing papers per year: 2021: 8; 2022: 11; 2023: 22; 2024: 21; 2025: 16; 2026: 10.
88 papers.
Sort:
By area:
- 2022SPot-the-Difference Self-Supervised Pre-training for Anomaly Detection and Segmentationcited by 400
- 2023AnomalyCLIP: Object-agnostic Prompt Learning for Zero-shot Anomaly Detectioncited by 271
- 2023Deep Industrial Image Anomaly Detection: A Surveycited by 148
- 2025Towards Zero-Shot Anomaly Detection and Reasoning with Multimodal Large Language Modelscited by 54
- 2023Focus the Discrepancy: Intra- and Inter-Correlation Learning for Image Anomaly Detectioncited by 32
- 2024GeneralAD: Anomaly Detection Across Domains by Attending to Distorted Featurescited by 29
- 2024PointAD: Comprehending 3D Anomalies from Points and Pixels for Zero-shot 3D Anomaly Detectioncited by 29
- 2024Heterogeneous Contrastive Learning for Foundation Models and Beyondcited by 27
- 2024MedIAnomaly: A comparative study of anomaly detection in medical imagescited by 26
- 2021Transformaly -- Two (Feature Spaces) Are Better Than Onecited by 25
- 2021Self-supervised Pseudo Multi-class Pre-training for Unsupervised Anomaly Detection and Segmentation in Medical Imagescited by 23
- 2022A Survey on Unsupervised Anomaly Detection Algorithms for Industrial Imagescited by 21
38 more
- 2024Fr'echet Radiomic Distance (FRD): A Versatile Metric for Comparing Medical Imaging Datasetscited by 19
- 2023Beyond Individual Input for Deep Anomaly Detection on Tabular Datacited by 16
- 2022Anomaly Detection Requires Better Representationscited by 15
- 2022Detection of out-of-distribution samples using binary neuron activation patternscited by 15
- 2023Set Features for Fine-grained Anomaly Detectioncited by 13
- 2023A Dual-way Enhanced Framework from Text Matching Point of View for Multimodal Entity Linkingcited by 12
- 2021Unsupervised Outlier Detection using Memory and Contrastive Learningcited by 11
- 2023Anomalies, Representations, and Self-Supervisioncited by 11
- 2023CtxMIM: Context-Enhanced Masked Image Modeling for Remote Sensing Image Understandingcited by 9
- 2024Universal Novelty Detection Through Adaptive Contrastive Learningcited by 9
- 2023Invariant Anomaly Detection under Distribution Shifts: A Causal Perspectivecited by 8
- 2023No Free Lunch: The Hazards of Over-Expressive Representations in Anomaly Detectioncited by 7
- 2025RODEO: Robust Outlier Detection via Exposing Adaptive Out-of-Distribution Samplescited by 7
- 2025AF-CLIP: Zero-Shot Anomaly Detection via Anomaly-Focused CLIP Adaptationcited by 7
- 2021Efficient Anomaly Detection Using Self-Supervised Multi-Cue Taskscited by 6
- 2024Retrieval Augmented Deep Anomaly Detection for Tabular Datacited by 6
- 2021Data Invariants to Understand Unsupervised Out-of-Distribution Detectioncited by 5
- 2021Out-of-Distribution Detection Without Class Labelscited by 5
- 2022Hierarchical Semi-Supervised Contrastive Learning for Contamination-Resistant Anomaly Detectioncited by 5
- 2023Unilaterally Aggregated Contrastive Learning with Hierarchical Augmentation for Anomaly Detectioncited by 5
- 2023Transparent Anomaly Detection via Concept-based Explanationscited by 5
- 2024Adapted-MoE: Mixture of Experts with Test-Time Adaption for Anomaly Detectioncited by 5
- 2025DCAD-2000: A Multilingual Dataset across 2000+ Languages with Data Cleaning as Anomaly Detectioncited by 5
- 2022Fake It Till You Make It: Towards Accurate Near-Distribution Novelty Detectioncited by 4
- 2025Killing it with Zero-Shot: Adversarially Robust Novelty Detectioncited by 4
- 2022No Shifted Augmentations (NSA): compact distributions for robust self-supervised Anomaly Detectioncited by 3
- 2023Dissolving Is Amplifying: Towards Fine-Grained Anomaly Detectioncited by 3
- 2023k-NNN: Nearest Neighbors of Neighbors for Anomaly Detectioncited by 3
- 2023Set Features for Anomaly Detectioncited by 3
- 2025How to Use Graph Data in the Wild to Help Graph Anomaly Detection?cited by 3
- 2022Red PANDA: Disambiguating Anomaly Detection by Removing Nuisance Factorscited by 2
- 2024DWE+: Dual-Way Matching Enhanced Framework for Multimodal Entity Linkingcited by 2
- 2024Critical Review for One-class Classification: recent advances and the reality behind themcited by 2
- 2024From Zero to Hero: Cold-Start Anomaly Detectioncited by 2
- 2024Texture-AD: An Anomaly Detection Dataset and Benchmark for Real Algorithm Developmentcited by 2
- 2025EDBench: Large-Scale Electron Density Data for Molecular Modelingcited by 2
- 2023Cluster-aware Contrastive Learning for Unsupervised Out-of-distribution Detectioncited by 1
- 2023Representation Learning in Anomaly Detection: Successes, Limits and a Grand Challengecited by 1
50 most cited of 88 All 88 (JSON)
- 2026Quasi-Binarized Autoencoders: An Architecture-Independent Information Bottleneck for Medical Image Anomaly Detection7 Oct 2026
- 2026PC2-AD: Point Cloud Upsampling to Safeguard 3D Anomaly Detection with Resolution-constrained Edge Devices13 Sep 2026
- 2026Contrastive Knowledge Distillation for Anomaly Detection in Multi-Illumination/Focus Display Images1 Sep 2026
- 2026What Memory Composition Does Not Tell Us About Anomaly Detection24 Aug 2026
- 2026Deep Convolutional Large-Margin ℓp-SVDD for Visual Anomaly Detection24 Jul 2026
- 2026Towards Modality-Agnostic Medical Image Anomaly Detection: A Training-Free Manifold Refinement Approach21 Apr 2026
- 2026FB-CLIP: Fine-Grained Zero-Shot Anomaly Detection with Foreground-Background Disentanglement20 Mar 2026
- 2026MedSAD-CLIP: Supervised CLIP with Token-Patch Cross-Attention for Medical Anomaly Detection and Segmentation18 Mar 2026
- 2026Joint Embedding Variational Bayes5 Feb 2026
- 2026QUPID: A Partitioned Quantum Neural Network for Anomaly Detection in Smart Grid16 Jan 2026
- 2025Anomaly Detection with Adaptive and Aggressive Rejection for Contaminated Training Data26 Nov 2025
- 2025ADPretrain: Advancing Industrial Anomaly Detection via Anomaly Representation Pretraining7 Nov 2025
38 more
- 2025Generalist Multi-Class Anomaly Detection via Distillation to Two Heterogeneous Student Networks29 Sep 2025
- 2025Membership Inference Attack with Partial Features8 Aug 2025
- 2025AF-CLIP: Zero-Shot Anomaly Detection via Anomaly-Focused CLIP Adaptation26 Jul 2025
- 2025How to Use Graph Data in the Wild to Help Graph Anomaly Detection?4 Jun 2025
- 2025PathoSCOPE: Few-Shot Pathology Detection via Self-Supervised Contrastive Learning and Pathology-Informed Synthetic Embeddings23 May 2025
- 2025EDBench: Large-Scale Electron Density Data for Molecular Modeling14 May 2025
- 2025Unsupervised Graph Anomaly Detection via Multi-Hypersphere Heterophilic Graph Learning15 Mar 2025
- 2025Language-Assisted Feature Transformation for Anomaly Detection3 Mar 2025
- 2025When Unsupervised Domain Adaptation meets One-class Anomaly Detection: Addressing the Two-fold Unsupervised Curse by Leveraging Anomaly Scarcity28 Feb 2025
- 2025DCAD-2000: A Multilingual Dataset across 2000+ Languages with Data Cleaning as Anomaly Detection17 Feb 2025
- 2025Towards Zero-Shot Anomaly Detection and Reasoning with Multimodal Large Language Models11 Feb 2025
- 2025RODEO: Robust Outlier Detection via Exposing Adaptive Out-of-Distribution Samples28 Jan 2025
- 2025Killing it with Zero-Shot: Adversarially Robust Novelty Detection25 Jan 2025
- 2025Contrastive Representation Modeling for Anomaly Detection9 Jan 2025
- 2024Redefining Normal: A Novel Object-Level Approach for Multi-Object Novelty Detection15 Dec 2024
- 2024Fr'echet Radiomic Distance (FRD): A Versatile Metric for Comparing Medical Imaging Datasets2 Dec 2024
- 2024On The Relationship between Visual Anomaly-free and Anomalous Representations9 Oct 2024
- 2024PointAD: Comprehending 3D Anomalies from Points and Pixels for Zero-shot 3D Anomaly Detection1 Oct 2024
- 2024Texture-AD: An Anomaly Detection Dataset and Benchmark for Real Algorithm Development10 Sep 2024
- 2024Adapted-MoE: Mixture of Experts with Test-Time Adaption for Anomaly Detection9 Sep 2024
- 2024Universal Novelty Detection Through Adaptive Contrastive Learning20 Aug 2024
- 2024GeneralAD: Anomaly Detection Across Domains by Attending to Distorted Features17 Jul 2024
- 2024Rethinking Unsupervised Outlier Detection via Multiple Thresholding7 Jul 2024
- 2024Learning Non-Linear Invariants for Unsupervised Out-of-Distribution Detection4 Jul 2024
- 2024Enhancing Anomaly Detection Generalization through Knowledge Exposure: The Dual Effects of Augmentation15 Jun 2024
- 2024Iterative Deployment Exposure for Unsupervised Out-of-Distribution Detection4 Jun 2024
- 2024From Zero to Hero: Cold-Start Anomaly Detection30 May 2024
- 2024Two Is Better Than One: Aligned Representation Pairs for Anomaly Detection29 May 2024
- 2024Critical Review for One-class Classification: recent advances and the reality behind them27 Apr 2024
- 2024DWE+: Dual-Way Matching Enhanced Framework for Multimodal Entity Linking7 Apr 2024
- 2024MedIAnomaly: A comparative study of anomaly detection in medical images6 Apr 2024
- 2024Heterogeneous Contrastive Learning for Foundation Models and Beyond30 Mar 2024
- 2024Confronting Discrimination in Classification: Smote Based on Marginalized Minorities in the Kernel Space for Imbalanced Data13 Feb 2024
- 2024Retrieval Augmented Deep Anomaly Detection for Tabular Data30 Jan 2024
- 2024DACR: Distribution-Augmented Contrastive Reconstruction for Time-Series Anomaly Detection20 Jan 2024
- 2023Invariant Anomaly Detection under Distribution Shifts: A Causal Perspective21 Dec 2023
- 2023A Dual-way Enhanced Framework from Text Matching Point of View for Multimodal Entity Linking19 Dec 2023
- 2023Set Features for Anomaly Detection24 Nov 2023
50 newest of 88 All 88 (JSON)
- 2021Transformaly -- Two (Feature Spaces) Are Better Than Onecited by 25
- 2024Redefining Normal: A Novel Object-Level Approach for Multi-Object Novelty Detectioncited by 0
- 2025Generalist Multi-Class Anomaly Detection via Distillation to Two Heterogeneous Student Networkscited by 0
- 2026Contrastive Knowledge Distillation for Anomaly Detection in Multi-Illumination/Focus Display Imagescited by 0
- 2026Contrastive Knowledge Distillation for Anomaly Detection in Multi-Illumination/Focus Display Images1 Sep 2026
- 2025Generalist Multi-Class Anomaly Detection via Distillation to Two Heterogeneous Student Networks29 Sep 2025
- 2024Redefining Normal: A Novel Object-Level Approach for Multi-Object Novelty Detection15 Dec 2024
- 2021Transformaly -- Two (Feature Spaces) Are Better Than One8 Dec 2021
- 2024Retrieval Augmented Deep Anomaly Detection for Tabular Data30 Jan 2024
- 2025Membership Inference Attack with Partial Featurescited by 1
- 2025Membership Inference Attack with Partial Features8 Aug 2025
- 2022SPot-the-Difference Self-Supervised Pre-training for Anomaly Detection and Segmentationcited by 400
- 2023AnomalyCLIP: Object-agnostic Prompt Learning for Zero-shot Anomaly Detectioncited by 271
- 2023Deep Industrial Image Anomaly Detection: A Surveycited by 148
- 2023Focus the Discrepancy: Intra- and Inter-Correlation Learning for Image Anomaly Detectioncited by 32
- 2024GeneralAD: Anomaly Detection Across Domains by Attending to Distorted Featurescited by 29
- 2024PointAD: Comprehending 3D Anomalies from Points and Pixels for Zero-shot 3D Anomaly Detectioncited by 29
- 2024Heterogeneous Contrastive Learning for Foundation Models and Beyondcited by 27
- 2024MedIAnomaly: A comparative study of anomaly detection in medical imagescited by 26
- 2021Self-supervised Pseudo Multi-class Pre-training for Unsupervised Anomaly Detection and Segmentation in Medical Imagescited by 23
- 2022A Survey on Unsupervised Anomaly Detection Algorithms for Industrial Imagescited by 21
- 2024Fr'echet Radiomic Distance (FRD): A Versatile Metric for Comparing Medical Imaging Datasetscited by 19
- 2023Beyond Individual Input for Deep Anomaly Detection on Tabular Datacited by 16
12 most cited of 80 All 80 (JSON)
- 2026Quasi-Binarized Autoencoders: An Architecture-Independent Information Bottleneck for Medical Image Anomaly Detection7 Oct 2026
- 2026PC2-AD: Point Cloud Upsampling to Safeguard 3D Anomaly Detection with Resolution-constrained Edge Devices13 Sep 2026
- 2026What Memory Composition Does Not Tell Us About Anomaly Detection24 Aug 2026
- 2026Deep Convolutional Large-Margin ℓp-SVDD for Visual Anomaly Detection24 Jul 2026
- 2026Towards Modality-Agnostic Medical Image Anomaly Detection: A Training-Free Manifold Refinement Approach21 Apr 2026
- 2026FB-CLIP: Fine-Grained Zero-Shot Anomaly Detection with Foreground-Background Disentanglement20 Mar 2026
- 2026MedSAD-CLIP: Supervised CLIP with Token-Patch Cross-Attention for Medical Anomaly Detection and Segmentation18 Mar 2026
- 2026Joint Embedding Variational Bayes5 Feb 2026
- 2026QUPID: A Partitioned Quantum Neural Network for Anomaly Detection in Smart Grid16 Jan 2026
- 2025Anomaly Detection with Adaptive and Aggressive Rejection for Contaminated Training Data26 Nov 2025
- 2025ADPretrain: Advancing Industrial Anomaly Detection via Anomaly Representation Pretraining7 Nov 2025
- 2025AF-CLIP: Zero-Shot Anomaly Detection via Anomaly-Focused CLIP Adaptation26 Jul 2025
12 newest of 80 All 80 (JSON)