Not All Semantics are Created Equal: Contrastive Self-supervised Learning with Automatic Temperature Individualization
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
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2014Microsoft COCO: Common Objects in Contextcited by 17,498
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
- 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
- 2020Bootstrap your own latent: A new approach to self-supervised Learningcited by 4,712
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
- 2021Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervisioncited by 3,848
- 2020Exploring Simple Siamese Representation Learningcited by 2,853
- 2020Unsupervised Learning of Visual Features by Contrasting Cluster Assignmentscited by 2,845
38 more
- 2021Barlow Twins: Self-Supervised Learning via Redundancy Reductioncited by 1,818
- 2021Align before Fuse: Vision and Language Representation Learning with Momentum Distillationcited by 1,612
- 2015Flickr30k Entities: Collecting Region-to-Phrase Correspondences for Richer Image-to-Sentence Modelscited by 1,352
- 2019Class-Balanced Loss Based on Effective Number of Samplescited by 1,239
- 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,041
- 2021VICReg: Variance-Invariance-Covariance Regularization for Self-Supervised Learningcited by 1,013
- 2019Learning Imbalanced Datasets with Label-Distribution-Aware Margin Losscited by 987
- 2014Deep Visual-Semantic Alignments for Generating Image Descriptionscited by 966
- 2020What Makes for Good Views for Contrastive Learning?cited by 843
- 2019Large Scale Incremental Learningcited by 727
- 2020Prototypical Contrastive Learning of Unsupervised Representationscited by 636
- 2020Contrastive Learning of Medical Visual Representations from Paired Images and Textcited by 636
- 2021FILIP: Fine-grained Interactive Language-Image Pre-Trainingcited by 626
- 2020Contrastive Learning with Hard Negative Samplescited by 619
- 2022Mind the Gap: Understanding the Modality Gap in Multi-modal Contrastive Representation Learningcited by 553
- 2017Large Batch Training of Convolutional Networkscited by 529
- 2019Does Learning Require Memorization? A Short Tale about a Long Tailcited by 452
- 2021SLIP: Self-supervision meets Language-Image Pre-trainingcited by 434
- 2021Supervision Exists Everywhere: A Data Efficient Contrastive Language-Image Pre-training Paradigmcited by 405
- 2020Hard Negative Mixing for Contrastive Learningcited by 399
- 2020Understanding the Behaviour of Contrastive Losscited by 397
- 2020Debiased Contrastive Learningcited by 354
- 2021With a Little Help from My Friends: Nearest-Neighbor Contrastive Learning of Visual Representationscited by 324
- 2021Provable Guarantees for Self-Supervised Deep Learning with Spectral Contrastive Losscited by 311
- 2020Whitening for Self-Supervised Representation Learningcited by 278
- 2021Self-supervised Pretraining of Visual Features in the Wildcited by 197
- 2016Statistics of Robust Optimization: A Generalized Empirical Likelihood Approachcited by 182
- 2020Large-Scale Methods for Distributionally Robust Optimizationcited by 179
- 2016Variance-based regularization with convex objectivescited by 153
- 2022Contrastive Masked Autoencoders are Stronger Vision Learnerscited by 133
- 2022CyCLIP: Cyclic Contrastive Language-Image Pretrainingcited by 127
- 2022Coarse-to-Fine Vision-Language Pre-training with Fusion in the Backbonecited by 109
- 2021Contrastive Learning with Stronger Augmentationscited by 100
- 2020BYOL works even without batch statisticscited by 95
- 2013Data-Driven Robust Optimizationcited by 84
- 2019Distributionally Robust Optimization and Generalization in Kernel Methodscited by 73
- 2021ProGCL: Rethinking Hard Negative Mining in Graph Contrastive Learningcited by 72
- 2020Sequence-to-Sequence Contrastive Learning for Text Recognitioncited by 70
50 most cited of 67 All 67 (JSON)
Built on by
Citing papers per year: 2023: 5; 2024: 7; 2025: 8; 2026: 5.
25 papers.
Sort:
By area:
- 2025RzenEmbed: Towards Comprehensive Multimodal Retrievalcited by 28
- 2023Learning to Scale Logits for Temperature-Conditional GFlowNetscited by 26
- 2023LibAUC: A Deep Learning Library for X-Risk Optimizationcited by 15
- 2023Contextual Stochastic Bilevel Optimizationcited by 14
- 2024Take the Bull by the Horns: Hard Sample-Reweighted Continual Training Improves LLM Generalizationcited by 12
- 2024To Cool or not to Cool? Temperature Network Meets Large Foundation Models via DROcited by 11
- 2024FastCLIP: A Suite of Optimization Techniques to Accelerate CLIP Training with Limited Resourcescited by 7
- 2023Dynamically Scaled Temperature in Self-Supervised Contrastive Learningcited by 4
- 2024Multi-level Monte-Carlo Gradient Methods for Stochastic Optimization with Biased Oraclescited by 4
- 2023A Near-Optimal Single-Loop Stochastic Algorithm for Convex Finite-Sum Coupled Compositional Optimizationcited by 3
- 2024A Retention-Centric Framework for Continual Learning with Guaranteed Model Developmental Safetycited by 3
- 2025Myna: Masking-Based Contrastive Learning of Musical Representationscited by 3
13 more
- 2025NeuCLIP: Efficient Large-Scale CLIP Training with Neural Normalizer Optimizationcited by 3
- 2024On Discriminative Probabilistic Modeling for Self-Supervised Representation Learningcited by 2
- 2025AmorLIP: Efficient Language-Image Pretraining via Amortizationcited by 2
- 2025Model Steering: Learning with a Reference Model Improves Generalization Bounds and Scaling Lawscited by 1
- 2026Breaking the Limits of Open-Weight CLIP: An Optimization Framework for Self-supervised Fine-tuning of CLIPcited by 1
- 2026A Geometry-Aware Efficient Algorithm for Compositional Entropic Risk Minimizationcited by 1
- 2026Asymptotic and Finite-Time Guarantees for Langevin-Based Temperature Annealing in InfoNCEcited by 1
- 2024AmCLR: Unified Augmented Learning for Cross-Modal Representationscited by 0
- 2025Stochastic Momentum Methods for Non-smooth Non-Convex Finite-Sum Coupled Compositional Optimizationcited by 0
- 2025Borrowing From the Future: Enhancing Early Risk Assessment through Contrastive Learningcited by 0
- 2025Understanding temperature tuning in energy-based modelscited by 0
- 2026Improving Domain Generalization in Contrastive Learning using Adaptive Temperature Controlcited by 0
- 2026Which Tasks Survive Self-Supervised Learning?cited by 0
- 2026Which Tasks Survive Self-Supervised Learning?29 Sep 2026
- 2026Asymptotic and Finite-Time Guarantees for Langevin-Based Temperature Annealing in InfoNCE13 Mar 2026
- 2026A Geometry-Aware Efficient Algorithm for Compositional Entropic Risk Minimization2 Feb 2026
- 2026Breaking the Limits of Open-Weight CLIP: An Optimization Framework for Self-supervised Fine-tuning of CLIP14 Jan 2026
- 2026Improving Domain Generalization in Contrastive Learning using Adaptive Temperature Control12 Jan 2026
- 2025Understanding temperature tuning in energy-based models9 Dec 2025
- 2025NeuCLIP: Efficient Large-Scale CLIP Training with Neural Normalizer Optimization11 Nov 2025
- 2025RzenEmbed: Towards Comprehensive Multimodal Retrieval31 Oct 2025
- 2025Borrowing From the Future: Enhancing Early Risk Assessment through Contrastive Learning15 Aug 2025
- 2025Stochastic Momentum Methods for Non-smooth Non-Convex Finite-Sum Coupled Compositional Optimization3 Jun 2025
- 2025AmorLIP: Efficient Language-Image Pretraining via Amortization25 May 2025
- 2025Model Steering: Learning with a Reference Model Improves Generalization Bounds and Scaling Laws10 May 2025
13 more
- 2025Myna: Masking-Based Contrastive Learning of Musical Representations18 Feb 2025
- 2024AmCLR: Unified Augmented Learning for Cross-Modal Representations10 Dec 2024
- 2024On Discriminative Probabilistic Modeling for Self-Supervised Representation Learning11 Oct 2024
- 2024A Retention-Centric Framework for Continual Learning with Guaranteed Model Developmental Safety4 Oct 2024
- 2024Multi-level Monte-Carlo Gradient Methods for Stochastic Optimization with Biased Oracles20 Aug 2024
- 2024FastCLIP: A Suite of Optimization Techniques to Accelerate CLIP Training with Limited Resources1 Jul 2024
- 2024To Cool or not to Cool? Temperature Network Meets Large Foundation Models via DRO6 Apr 2024
- 2024Take the Bull by the Horns: Hard Sample-Reweighted Continual Training Improves LLM Generalization22 Feb 2024
- 2023A Near-Optimal Single-Loop Stochastic Algorithm for Convex Finite-Sum Coupled Compositional Optimization4 Dec 2023
- 2023Contextual Stochastic Bilevel Optimization27 Oct 2023
- 2023Learning to Scale Logits for Temperature-Conditional GFlowNets4 Oct 2023
- 2023Dynamically Scaled Temperature in Self-Supervised Contrastive Learning2 Aug 2023
- 2023LibAUC: A Deep Learning Library for X-Risk Optimization5 Jun 2023
- 2025RzenEmbed: Towards Comprehensive Multimodal Retrievalcited by 28
- 2025RzenEmbed: Towards Comprehensive Multimodal Retrieval31 Oct 2025
- 2023Learning to Scale Logits for Temperature-Conditional GFlowNetscited by 26
- 2023LibAUC: A Deep Learning Library for X-Risk Optimizationcited by 15
- 2023Contextual Stochastic Bilevel Optimizationcited by 14
- 2024Take the Bull by the Horns: Hard Sample-Reweighted Continual Training Improves LLM Generalizationcited by 12
- 2024To Cool or not to Cool? Temperature Network Meets Large Foundation Models via DROcited by 11
- 2024FastCLIP: A Suite of Optimization Techniques to Accelerate CLIP Training with Limited Resourcescited by 7
- 2023Dynamically Scaled Temperature in Self-Supervised Contrastive Learningcited by 4
- 2024Multi-level Monte-Carlo Gradient Methods for Stochastic Optimization with Biased Oraclescited by 4
- 2023A Near-Optimal Single-Loop Stochastic Algorithm for Convex Finite-Sum Coupled Compositional Optimizationcited by 3
- 2024A Retention-Centric Framework for Continual Learning with Guaranteed Model Developmental Safetycited by 3
- 2025Myna: Masking-Based Contrastive Learning of Musical Representationscited by 3
- 2025NeuCLIP: Efficient Large-Scale CLIP Training with Neural Normalizer Optimizationcited by 3
12 most cited of 24 All 24 (JSON)
- 2026Which Tasks Survive Self-Supervised Learning?29 Sep 2026
- 2026Asymptotic and Finite-Time Guarantees for Langevin-Based Temperature Annealing in InfoNCE13 Mar 2026
- 2026A Geometry-Aware Efficient Algorithm for Compositional Entropic Risk Minimization2 Feb 2026
- 2026Breaking the Limits of Open-Weight CLIP: An Optimization Framework for Self-supervised Fine-tuning of CLIP14 Jan 2026
- 2026Improving Domain Generalization in Contrastive Learning using Adaptive Temperature Control12 Jan 2026
- 2025Understanding temperature tuning in energy-based models9 Dec 2025
- 2025NeuCLIP: Efficient Large-Scale CLIP Training with Neural Normalizer Optimization11 Nov 2025
- 2025Borrowing From the Future: Enhancing Early Risk Assessment through Contrastive Learning15 Aug 2025
- 2025Stochastic Momentum Methods for Non-smooth Non-Convex Finite-Sum Coupled Compositional Optimization3 Jun 2025
- 2025AmorLIP: Efficient Language-Image Pretraining via Amortization25 May 2025
- 2025Model Steering: Learning with a Reference Model Improves Generalization Bounds and Scaling Laws10 May 2025
- 2025Myna: Masking-Based Contrastive Learning of Musical Representations18 Feb 2025
12 newest of 24 All 24 (JSON)