mlsanityData to 7 Oct 2026

Not All Semantics are Created Equal: Contrastive Self-supervised Learning with Automatic Temperature Individualization

arXiv 2305.11965 ↗First posted 19 May 2023cs.LG cs.AI math.OCcited by 25

Not on the map. Why?

Abstract (arXiv)

In this paper, we aim to optimize a contrastive loss with individualized temperatures in a principled and systematic manner for self-supervised learning. The common practice of using a global temperature parameter τ ignores the fact that ``not all semantics are created equal", meaning that different anchor data may have different numbers of samples with similar semantics, especially when data exhibits long-tails. First, we propose a new robust contrastive loss inspired by distributionally robust optimization (DRO), providing us an intuition about the effect of τ and a mechanism for automatic temperature individualization. Then, we propose an efficient stochastic algorithm for optimizing the robust contrastive loss with a provable convergence guarantee without using large mini-batch sizes. Theoretical and experimental results show that our algorithm automatically learns a suitable τ for each sample. Specifically, samples with frequent semantics use large temperatures to keep local semantic structures, while samples with rare semantics use small temperatures to induce more separable features. Our method not only outperforms prior strong baselines (e.g., SimCLR, CLIP) on unimodal and bimodal datasets with larger improvements on imbalanced data but also is less sensitive to hyper-parameters. To our best knowledge, this is the first methodical approach to optimizing a contrastive loss with individualized temperatures.

Key facts. Cited by 25 papers in the map (data through 7 Oct 2026). Builds on 67 of its 87 references that are in the map. First posted on arXiv 19 May 2023.

Builds on

67 of 87 references.

References · 67

  1. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  2. 2014Microsoft COCO: Common Objects in Contextcited by 17,498
  3. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
  4. 2015Distilling the Knowledge in a Neural Networkcited by 10,076
  5. 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
  6. 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
  7. 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
  8. 2020Bootstrap your own latent: A new approach to self-supervised Learningcited by 4,712
  9. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
  10. 2021Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervisioncited by 3,848
  11. 2020Exploring Simple Siamese Representation Learningcited by 2,853
  12. 2020Unsupervised Learning of Visual Features by Contrasting Cluster Assignmentscited by 2,845
38 more
  1. 2021Barlow Twins: Self-Supervised Learning via Redundancy Reductioncited by 1,818
  2. 2021Align before Fuse: Vision and Language Representation Learning with Momentum Distillationcited by 1,612
  3. 2015Flickr30k Entities: Collecting Region-to-Phrase Correspondences for Richer Image-to-Sentence Modelscited by 1,352
  4. 2019Class-Balanced Loss Based on Effective Number of Samplescited by 1,239
  5. 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,041
  6. 2021VICReg: Variance-Invariance-Covariance Regularization for Self-Supervised Learningcited by 1,013
  7. 2019Learning Imbalanced Datasets with Label-Distribution-Aware Margin Losscited by 987
  8. 2014Deep Visual-Semantic Alignments for Generating Image Descriptionscited by 966
  9. 2020What Makes for Good Views for Contrastive Learning?cited by 843
  10. 2019Large Scale Incremental Learningcited by 727
  11. 2020Prototypical Contrastive Learning of Unsupervised Representationscited by 636
  12. 2020Contrastive Learning of Medical Visual Representations from Paired Images and Textcited by 636
  13. 2021FILIP: Fine-grained Interactive Language-Image Pre-Trainingcited by 626
  14. 2020Contrastive Learning with Hard Negative Samplescited by 619
  15. 2022Mind the Gap: Understanding the Modality Gap in Multi-modal Contrastive Representation Learningcited by 553
  16. 2017Large Batch Training of Convolutional Networkscited by 529
  17. 2019Does Learning Require Memorization? A Short Tale about a Long Tailcited by 452
  18. 2021SLIP: Self-supervision meets Language-Image Pre-trainingcited by 434
  19. 2021Supervision Exists Everywhere: A Data Efficient Contrastive Language-Image Pre-training Paradigmcited by 405
  20. 2020Hard Negative Mixing for Contrastive Learningcited by 399
  21. 2020Understanding the Behaviour of Contrastive Losscited by 397
  22. 2020Debiased Contrastive Learningcited by 354
  23. 2021With a Little Help from My Friends: Nearest-Neighbor Contrastive Learning of Visual Representationscited by 324
  24. 2021Provable Guarantees for Self-Supervised Deep Learning with Spectral Contrastive Losscited by 311
  25. 2020Whitening for Self-Supervised Representation Learningcited by 278
  26. 2021Self-supervised Pretraining of Visual Features in the Wildcited by 197
  27. 2016Statistics of Robust Optimization: A Generalized Empirical Likelihood Approachcited by 182
  28. 2020Large-Scale Methods for Distributionally Robust Optimizationcited by 179
  29. 2016Variance-based regularization with convex objectivescited by 153
  30. 2022Contrastive Masked Autoencoders are Stronger Vision Learnerscited by 133
  31. 2022CyCLIP: Cyclic Contrastive Language-Image Pretrainingcited by 127
  32. 2022Coarse-to-Fine Vision-Language Pre-training with Fusion in the Backbonecited by 109
  33. 2021Contrastive Learning with Stronger Augmentationscited by 100
  34. 2020BYOL works even without batch statisticscited by 95
  35. 2013Data-Driven Robust Optimizationcited by 84
  36. 2019Distributionally Robust Optimization and Generalization in Kernel Methodscited by 73
  37. 2021ProGCL: Rethinking Hard Negative Mining in Graph Contrastive Learningcited by 72
  38. 2020Sequence-to-Sequence Contrastive Learning for Text Recognitioncited by 70

50 most cited of 67 All 67 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 5; 2024: 7; 2025: 8; 2026: 5.

25 papers.

Sort:

By area:

  1. 2025RzenEmbed: Towards Comprehensive Multimodal Retrievalcited by 28
  2. 2023Learning to Scale Logits for Temperature-Conditional GFlowNetscited by 26
  3. 2023LibAUC: A Deep Learning Library for X-Risk Optimizationcited by 15
  4. 2023Contextual Stochastic Bilevel Optimizationcited by 14
  5. 2024Take the Bull by the Horns: Hard Sample-Reweighted Continual Training Improves LLM Generalizationcited by 12
  6. 2024To Cool or not to Cool? Temperature Network Meets Large Foundation Models via DROcited by 11
  7. 2024FastCLIP: A Suite of Optimization Techniques to Accelerate CLIP Training with Limited Resourcescited by 7
  8. 2023Dynamically Scaled Temperature in Self-Supervised Contrastive Learningcited by 4
  9. 2024Multi-level Monte-Carlo Gradient Methods for Stochastic Optimization with Biased Oraclescited by 4
  10. 2023A Near-Optimal Single-Loop Stochastic Algorithm for Convex Finite-Sum Coupled Compositional Optimizationcited by 3
  11. 2024A Retention-Centric Framework for Continual Learning with Guaranteed Model Developmental Safetycited by 3
  12. 2025Myna: Masking-Based Contrastive Learning of Musical Representationscited by 3
13 more
  1. 2025NeuCLIP: Efficient Large-Scale CLIP Training with Neural Normalizer Optimizationcited by 3
  2. 2024On Discriminative Probabilistic Modeling for Self-Supervised Representation Learningcited by 2
  3. 2025AmorLIP: Efficient Language-Image Pretraining via Amortizationcited by 2
  4. 2025Model Steering: Learning with a Reference Model Improves Generalization Bounds and Scaling Lawscited by 1
  5. 2026Breaking the Limits of Open-Weight CLIP: An Optimization Framework for Self-supervised Fine-tuning of CLIPcited by 1
  6. 2026A Geometry-Aware Efficient Algorithm for Compositional Entropic Risk Minimizationcited by 1
  7. 2026Asymptotic and Finite-Time Guarantees for Langevin-Based Temperature Annealing in InfoNCEcited by 1
  8. 2024AmCLR: Unified Augmented Learning for Cross-Modal Representationscited by 0
  9. 2025Stochastic Momentum Methods for Non-smooth Non-Convex Finite-Sum Coupled Compositional Optimizationcited by 0
  10. 2025Borrowing From the Future: Enhancing Early Risk Assessment through Contrastive Learningcited by 0
  11. 2025Understanding temperature tuning in energy-based modelscited by 0
  12. 2026Improving Domain Generalization in Contrastive Learning using Adaptive Temperature Controlcited by 0
  13. 2026Which Tasks Survive Self-Supervised Learning?cited by 0