Temperature-Free Loss Function for Contrastive Learning
Not on the map. Why?
Abstract (arXiv)
As one of the most promising methods in self-supervised learning, contrastive learning has achieved a series of breakthroughs across numerous fields. A predominant approach to implementing contrastive learning is applying InfoNCE loss: By capturing the similarities between pairs, InfoNCE loss enables learning the representation of data. Albeit its success, adopting InfoNCE loss requires tuning a temperature, which is a core hyperparameter for calibrating similarity scores. Despite its significance and sensitivity to performance being emphasized by several studies, searching for a valid temperature requires extensive trial-and-error-based experiments, which increases the difficulty of adopting InfoNCE loss. To address this difficulty, we propose a novel method to deploy InfoNCE loss without temperature. Specifically, we replace temperature scaling with the inverse hyperbolic tangent function, resulting in a modified InfoNCE loss. In addition to hyperparameter-free deployment, we observed that the proposed method even yielded a performance gain in contrastive learning. Our detailed theoretical analysis discovers that the current practice of temperature scaling in InfoNCE loss causes serious problems in gradient descent, whereas our method provides desirable gradient properties. The proposed method was validated on five benchmarks on contrastive learning, yielding satisfactory results without temperature tuning.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). First posted on arXiv 29 Jan 2025.
Builds on
0 of 0 references.
No references here yet.
Built on by
Citing papers per year: 2025: 1; 2026: 6.
7 papers.
- 2026ReScene4D: Temporally Consistent Semantic Instance Segmentation of Evolving Indoor 3D Scenescited by 2
- 2025Cross-Lingual IPA Contrastive Learning for Zero-Shot NERcited by 1
- 2026MM-TS: Multi-Modal Temperature and Margin Schedules for Contrastive Learning with Long-Tail Datacited by 1
- 2026Asymptotic and Finite-Time Guarantees for Langevin-Based Temperature Annealing in InfoNCEcited by 1
- 2026Enhancing Language Models for Robust Greenwashing Detectioncited by 0
- 2026MaCo-GAN: Manifold-Contrastive Adversarial Learning for Single Image Super-Resolutioncited by 0
- 2026TeMo: Temperature Modulation for Multimodal Contrastive Learningcited by 0
- 2026TeMo: Temperature Modulation for Multimodal Contrastive Learning7 Sep 2026
- 2026MaCo-GAN: Manifold-Contrastive Adversarial Learning for Single Image Super-Resolution3 Jun 2026
- 2026Asymptotic and Finite-Time Guarantees for Langevin-Based Temperature Annealing in InfoNCE13 Mar 2026
- 2026MM-TS: Multi-Modal Temperature and Margin Schedules for Contrastive Learning with Long-Tail Data9 Mar 2026
- 2026Enhancing Language Models for Robust Greenwashing Detection29 Jan 2026
- 2026ReScene4D: Temporally Consistent Semantic Instance Segmentation of Evolving Indoor 3D Scenes16 Jan 2026
- 2025Cross-Lingual IPA Contrastive Learning for Zero-Shot NER10 Mar 2025