paper-with-me

홈 › Papers

Temperature Schedules for Self-Supervised Contrastive Methods on Long-Tail Data

2023-03-23 · Anna Kukleva, Moritz Böhle, Bernt Schiele, Hilde Kuehne, Christian Rupprecht

Most approaches for self-supervised learning (SSL) are optimised on curated balanced datasets, e.g. ImageNet, despite the fact that natural data usually exhibits long-tail distributions. In this paper, we analyse the behaviour of one of the most popular variants of SSL, i.e. contrastive methods, on long-tail data. In particular, we investigate the role of the temperature parameter $\tau$ in the contrastive loss, by analysing the loss through the lens of average distance maximisation, and find that a large $\tau$ emphasises group-wise discrimination, whereas a small $\tau$ leads to a higher degree of instance discrimination. While $\tau$ has thus far been treated exclusively as a constant hyperparameter, in this work, we propose to employ a dynamic $\tau$ and show that a simple cosine schedule can yield significant improvements in the learnt representations. Such a schedule results in a constant `task switching' between an emphasis on instance discrimination and group-wise discrimination and thereby ensures that the model learns both group-wise features, as well as instance-specific details. Since frequent classes benefit from the former, while infrequent classes require the latter, we find this method to consistently improve separation between the classes in long-tail data without any additional computational cost.

📄 PDF Abstract BibTeX arXiv:2303.13664

Code (1)

annusha/temperature_schedules 공식 구현 pytorch

Tasks

Self-Supervised Learning

Similar Papers 제목 키워드 기반

Asymptotic and Finite-Time Guarantees for Langevin-Based Temperature Annealing in InfoNCE

2026-03-13 · Faris Chaudhry arxiv

The InfoNCE loss in contrastive learning depends critically on a temperature parameter, yet its dynamics under fixed versus annealed schedules remain poorly understood. We provide a theoretical analysis by modeling embed…

Contrastive Learning

MM-TS: Multi-Modal Temperature and Margin Schedules for Contrastive Learning with Long-Tail Data

2026-03-09 · Siarhei Sheludzko, Dhimitrios Duka, Bernt Schiele, Hilde Kuehne 외 arxiv

Contrastive learning has become a fundamental approach in both uni-modal and multi-modal frameworks. This learning paradigm pulls positive pairs of samples closer while pushing negatives apart. In the uni-modal setting (…

Contrastive 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

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

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