paper-with-me

Papers

Temperature-Free Loss Function for Contrastive Learning

2025-01-29 · Bum Jun Kim, Sang Woo Kim

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.

📄 PDF Abstract BibTeX arXiv:2501.17683

Code (0)

등록된 구현이 없습니다.

Tasks

Contrastive LearningSelf-Supervised Learningvalid

Methods 이 논문이 사용한 방법론

Contrastive Learning 설명 없음
InfoNCE 설명 없음

Similar Papers 제목 키워드 기반

Probabilistic Contrastive Loss for Self-Supervised Learning

2021-12-02 · Shen Li, Jianqing Xu, Bryan Hooi

This paper proposes a probabilistic contrastive loss function for self-supervised learning. The well-known contrastive loss is deterministic and involves a temperature hyperparameter that scales the inner product between…

Contrastive LearningSelf-Supervised Learning

Dynamically Scaled Temperature in Self-Supervised Contrastive Learning

2023-08-02 · Siladittya Manna, Soumitri Chattopadhyay, Rakesh Dey, Saumik Bhattacharya 외

In contemporary self-supervised contrastive algorithms like SimCLR, MoCo, etc., the task of balancing attraction between two semantically similar samples and repulsion between two samples of different classes is primaril…

Contrastive LearningSelf-Supervised Learning

Understanding the Behaviour of Contrastive Loss

2020-12-15 · CVPR 2021 1 · Feng Wang, Huaping Liu

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 cont…

Contrastive Learning

Similarity search generalisation in contrastive learning with InfoNCE loss

2026-07-10 · Nick Whiteley arxiv

Similarity search is a primary application of embedding models trained by contrastive learning. For one of the most popular contrastive learning loss functions, InfoNCE, we show that the population risk with $k$ negative…

Contrastive Learning

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

2023-05-19 · Zi-Hao Qiu, Quanqi Hu, Zhuoning Yuan, Denny Zhou 외

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 $\tau$…

AllSelf-Supervised Learning