mlsanityData to 14 Oct 2026

Mean-Shifted Contrastive Loss for Anomaly Detection

arXiv 2106.03844 ↗First posted 7 Jun 2021cs.CV cs.LGcited by 88

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

  1. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 12,049
  2. 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,513
  3. 2016Overcoming catastrophic forgetting in neural networkscited by 4,787
  4. 2020Bootstrap your own latent: A new approach to self-supervised Learningcited by 4,750
  5. 2020Exploring Simple Siamese Representation Learningcited by 2,866
  6. 2020Improved Baselines with Momentum Contrastive Learningcited by 2,287
  7. 2018Unsupervised Representation Learning by Predicting Image Rotationscited by 1,591
  8. 2020Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hyperspherecited by 1,405
  9. 2016Unsupervised Learning of Visual Representations by Solving Jigsaw Puzzlescited by 1,382
  10. 2016Colorful Image Colorizationcited by 1,114
  11. 2019Using Self-Supervised Learning Can Improve Model Robustness and Uncertaintycited by 514
  12. 2020CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted Instancescited by 441
12 more
  1. 2020Understanding the Behaviour of Contrastive Losscited by 398
  2. 2019Object Detection in Optical Remote Sensing Images: A Survey and A New Benchmarkcited by 340
  3. 2015Deep multi-scale video prediction beyond mean square errorcited by 300
  4. 2018Deep Anomaly Detection Using Geometric Transformationscited by 269
  5. 2016Learning Representations for Automatic Colorizationcited by 251
  6. 2020Classification-Based Anomaly Detection for General Datacited by 211
  7. 2016What makes ImageNet good for transfer learning?cited by 192
  8. 2020PANDA: Adapting Pretrained Features for Anomaly Detection and Segmentationcited by 175
  9. 2020Learning and Evaluating Representations for Deep One-class Classificationcited by 133
  10. 2018Learning Deep Features for One-Class Classificationcited by 76
  11. 2019Detecting semantic anomaliescited by 50
  12. 2020Rethinking Assumptions in Deep Anomaly Detectioncited by 45

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2021: 8; 2022: 11; 2023: 22; 2024: 21; 2025: 16; 2026: 10.

88 papers.

Sort:

By area:

  1. 2022SPot-the-Difference Self-Supervised Pre-training for Anomaly Detection and Segmentationcited by 400
  2. 2023AnomalyCLIP: Object-agnostic Prompt Learning for Zero-shot Anomaly Detectioncited by 271
  3. 2023Deep Industrial Image Anomaly Detection: A Surveycited by 148
  4. 2025Towards Zero-Shot Anomaly Detection and Reasoning with Multimodal Large Language Modelscited by 54
  5. 2023Focus the Discrepancy: Intra- and Inter-Correlation Learning for Image Anomaly Detectioncited by 32
  6. 2024GeneralAD: Anomaly Detection Across Domains by Attending to Distorted Featurescited by 29
  7. 2024PointAD: Comprehending 3D Anomalies from Points and Pixels for Zero-shot 3D Anomaly Detectioncited by 29
  8. 2024Heterogeneous Contrastive Learning for Foundation Models and Beyondcited by 27
  9. 2024MedIAnomaly: A comparative study of anomaly detection in medical imagescited by 26
  10. 2021Transformaly -- Two (Feature Spaces) Are Better Than Onecited by 25
  11. 2021Self-supervised Pseudo Multi-class Pre-training for Unsupervised Anomaly Detection and Segmentation in Medical Imagescited by 23
  12. 2022A Survey on Unsupervised Anomaly Detection Algorithms for Industrial Imagescited by 21
38 more
  1. 2024Fr'echet Radiomic Distance (FRD): A Versatile Metric for Comparing Medical Imaging Datasetscited by 19
  2. 2023Beyond Individual Input for Deep Anomaly Detection on Tabular Datacited by 16
  3. 2022Anomaly Detection Requires Better Representationscited by 15
  4. 2022Detection of out-of-distribution samples using binary neuron activation patternscited by 15
  5. 2023Set Features for Fine-grained Anomaly Detectioncited by 13
  6. 2023A Dual-way Enhanced Framework from Text Matching Point of View for Multimodal Entity Linkingcited by 12
  7. 2021Unsupervised Outlier Detection using Memory and Contrastive Learningcited by 11
  8. 2023Anomalies, Representations, and Self-Supervisioncited by 11
  9. 2023CtxMIM: Context-Enhanced Masked Image Modeling for Remote Sensing Image Understandingcited by 9
  10. 2024Universal Novelty Detection Through Adaptive Contrastive Learningcited by 9
  11. 2023Invariant Anomaly Detection under Distribution Shifts: A Causal Perspectivecited by 8
  12. 2023No Free Lunch: The Hazards of Over-Expressive Representations in Anomaly Detectioncited by 7
  13. 2025RODEO: Robust Outlier Detection via Exposing Adaptive Out-of-Distribution Samplescited by 7
  14. 2025AF-CLIP: Zero-Shot Anomaly Detection via Anomaly-Focused CLIP Adaptationcited by 7
  15. 2021Efficient Anomaly Detection Using Self-Supervised Multi-Cue Taskscited by 6
  16. 2024Retrieval Augmented Deep Anomaly Detection for Tabular Datacited by 6
  17. 2021Data Invariants to Understand Unsupervised Out-of-Distribution Detectioncited by 5
  18. 2021Out-of-Distribution Detection Without Class Labelscited by 5
  19. 2022Hierarchical Semi-Supervised Contrastive Learning for Contamination-Resistant Anomaly Detectioncited by 5
  20. 2023Unilaterally Aggregated Contrastive Learning with Hierarchical Augmentation for Anomaly Detectioncited by 5
  21. 2023Transparent Anomaly Detection via Concept-based Explanationscited by 5
  22. 2024Adapted-MoE: Mixture of Experts with Test-Time Adaption for Anomaly Detectioncited by 5
  23. 2025DCAD-2000: A Multilingual Dataset across 2000+ Languages with Data Cleaning as Anomaly Detectioncited by 5
  24. 2022Fake It Till You Make It: Towards Accurate Near-Distribution Novelty Detectioncited by 4
  25. 2025Killing it with Zero-Shot: Adversarially Robust Novelty Detectioncited by 4
  26. 2022No Shifted Augmentations (NSA): compact distributions for robust self-supervised Anomaly Detectioncited by 3
  27. 2023Dissolving Is Amplifying: Towards Fine-Grained Anomaly Detectioncited by 3
  28. 2023k-NNN: Nearest Neighbors of Neighbors for Anomaly Detectioncited by 3
  29. 2023Set Features for Anomaly Detectioncited by 3
  30. 2025How to Use Graph Data in the Wild to Help Graph Anomaly Detection?cited by 3
  31. 2022Red PANDA: Disambiguating Anomaly Detection by Removing Nuisance Factorscited by 2
  32. 2024DWE+: Dual-Way Matching Enhanced Framework for Multimodal Entity Linkingcited by 2
  33. 2024Critical Review for One-class Classification: recent advances and the reality behind themcited by 2
  34. 2024From Zero to Hero: Cold-Start Anomaly Detectioncited by 2
  35. 2024Texture-AD: An Anomaly Detection Dataset and Benchmark for Real Algorithm Developmentcited by 2
  36. 2025EDBench: Large-Scale Electron Density Data for Molecular Modelingcited by 2
  37. 2023Cluster-aware Contrastive Learning for Unsupervised Out-of-distribution Detectioncited by 1
  38. 2023Representation Learning in Anomaly Detection: Successes, Limits and a Grand Challengecited by 1

50 most cited of 88 All 88 (JSON)