mlsanityData to 7 Oct 2026

Understanding the Behaviour of Contrastive Loss

arXiv 2012.09740 ↗First posted 15 Dec 2020cs.LGcited by 397

Not on the map. Why?

Abstract (arXiv)

Unsupervised contrastive learning has achieved outstanding success, while the mechanism of contrastive loss has been less studied. In this paper, we concentrate on the understanding of the behaviours of unsupervised contrastive loss. We will show that the contrastive loss is a hardness-aware loss function, and the temperature τ controls the strength of penalties on hard negative samples. The previous study has shown that uniformity is a key property of contrastive learning. We build relations between the uniformity and the temperature τ . We will show that uniformity helps the contrastive learning to learn separable features, however excessive pursuit to the uniformity makes the contrastive loss not tolerant to semantically similar samples, which may break the underlying semantic structure and be harmful to the formation of features useful for downstream tasks. This is caused by the inherent defect of the instance discrimination objective. Specifically, instance discrimination objective tries to push all different instances apart, ignoring the underlying relations between samples. Pushing semantically consistent samples apart has no positive effect for acquiring a prior informative to general downstream tasks. A well-designed contrastive loss should have some extents of tolerance to the closeness of semantically similar samples. Therefore, we find that the contrastive loss meets a uniformity-tolerance dilemma, and a good choice of temperature can compromise these two properties properly to both learn separable features and tolerant to semantically similar samples, improving the feature qualities and the downstream performances.

Key facts. Cited by 397 papers in the map (data through 7 Oct 2026). First posted on arXiv 15 Dec 2020.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 24; 2022: 89; 2023: 97; 2024: 89; 2025: 59; 2026: 39.

397 papers.

Sort:

By area:

  1. 2022Mind the Gap: Understanding the Modality Gap in Multi-modal Contrastive Representation Learningcited by 553
  2. 2024Smaug: Fixing Failure Modes of Preference Optimisation with DPO-Positivecited by 239
  3. 2022Delving into Out-of-Distribution Detection with Vision-Language Representationscited by 215
  4. 2023Glaze: Protecting Artists from Style Mimicry by Text-to-Image Modelscited by 200
  5. 2022MERLOT Reserve: Neural Script Knowledge through Vision and Language and Soundcited by 184
  6. 2022Balanced Contrastive Learning for Long-Tailed Visual Recognitioncited by 143
  7. 2022How to Exploit Hyperspherical Embeddings for Out-of-Distribution Detection?cited by 128
  8. 2023Similarity of Neural Network Models: A Survey of Functional and Representational Measurescited by 128
  9. 2023Segment Any Point Cloud Sequences by Distilling Vision Foundation Modelscited by 123
  10. 2021Can contrastive learning avoid shortcut solutions?cited by 114
  11. 2021An Empirical Study of Graph Contrastive Learningcited by 113
  12. 2023Diffusion Models for Image Restoration and Enhancement: A Comprehensive Surveycited by 108
38 more
  1. 2023Jina Embeddings 2: 8192-Token General-Purpose Text Embeddings for Long Documentscited by 103
  2. 2021Towards the Generalization of Contrastive Self-Supervised Learningcited by 99
  3. 2023Self-Supervised Learning for Time Series Analysis: Taxonomy, Progress, and Prospectscited by 97
  4. 2022Neural Collapse: A Review on Modelling Principles and Generalizationcited by 95
  5. 2022SimKGC: Simple Contrastive Knowledge Graph Completion with Pre-trained Language Modelscited by 90
  6. 2021CLOOB: Modern Hopfield Networks with InfoLOOB Outperform CLIPcited by 88
  7. 2021Mean-Shifted Contrastive Loss for Anomaly Detectioncited by 87
  8. 2022Knowledge Tracing: A Surveycited by 76
  9. 2023Nightshade: Prompt-Specific Poisoning Attacks on Text-to-Image Generative Modelscited by 72
  10. 2022Rethinking Minimal Sufficient Representation in Contrastive Learningcited by 67
  11. 2022Audio Self-supervised Learning: A Surveycited by 65
  12. 2022How Does SimSiam Avoid Collapse Without Negative Samples? A Unified Understanding with Self-supervised Contrastive Learningcited by 65
  13. 2022Let Invariant Rationale Discovery Inspire Graph Contrastive Learningcited by 57
  14. 2022Dual Temperature Helps Contrastive Learning Without Many Negative Samples: Towards Understanding and Simplifying MoCocited by 52
  15. 2021Unleashing the Power of Contrastive Self-Supervised Visual Models via Contrast-Regularized Fine-Tuningcited by 50
  16. 2021Momentum Contrastive Voxel-wise Representation Learning for Semi-supervised Volumetric Medical Image Segmentationcited by 49
  17. 2022SeeABLE: Soft Discrepancies and Bounded Contrastive Learning for Exposing Deepfakescited by 49
  18. 2024DAVE -- A Detect-and-Verify Paradigm for Low-Shot Countingcited by 49
  19. 2022CCPL: Contrastive Coherence Preserving Loss for Versatile Style Transfercited by 46
  20. 2024Jina CLIP: Your CLIP Model Is Also Your Text Retrievercited by 46
  21. 2022Teaching Matters: Investigating the Role of Supervision in Vision Transformerscited by 45
  22. 2022Contrastive Trajectory Similarity Learning with Dual-Feature Attentioncited by 44
  23. 2023Temperature Schedules for Self-Supervised Contrastive Methods on Long-Tail Datacited by 44
  24. 2023Faithful Explanations of Black-box NLP Models Using LLM-generated Counterfactualscited by 44
  25. 2023Understanding Multimodal Contrastive Learning and Incorporating Unpaired Datacited by 43
  26. 2024Learning with Mixture of Prototypes for Out-of-Distribution Detectioncited by 43
  27. 2023Leveraging Hidden Positives for Unsupervised Semantic Segmentationcited by 40
  28. 2024InfoNCE: Identifying the Gap Between Theory and Practicecited by 39
  29. 2022Ranking Info Noise Contrastive Estimation: Boosting Contrastive Learning via Ranked Positivescited by 37
  30. 2023InfoNCE Loss Provably Learns Cluster-Preserving Representationscited by 37
  31. 2023Simple, Effective and General: A New Backbone for Cross-view Image Geo-localizationcited by 36
  32. 2024jina-clip-v2: Multilingual Multimodal Embeddings for Text and Imagescited by 36
  33. 2022The Principle of Diversity: Training Stronger Vision Transformers Calls for Reducing All Levels of Redundancycited by 35
  34. 2023Self-Supervised Image-to-Point Distillation via Semantically Tolerant Contrastive Losscited by 35
  35. 2022Improving Self-Supervised Learning by Characterizing Idealized Representationscited by 33
  36. 2022Self-Supervised Learning via Maximum Entropy Codingcited by 33
  37. 2023Distilling Large Vision-Language Model with Out-of-Distribution Generalizabilitycited by 33
  38. 2025Joint Embedding vs Reconstruction: Provable Benefits of Latent Space Prediction for Self Supervised Learningcited by 33

50 most cited of 397 All 397 (JSON)