Lune

ICLR2023Top-tier venue

Temperature Schedules for self-supervised contrastive methods on long-tail data

Anna Kukleva, Moritz Böhle, Bernt Schiele, Hilde Kuehne, Christian Rupprecht

2023Year
7Citations
15Top-tier citations

Abstract

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 ττ in the contrastive loss, by analysing the loss through the lens of average distance maximisation, and find that a large ττ emphasises group-wise discrimination, whereas a small ττ leads to a higher degree of instance discrimination. While ττ has thus far been treated exclusively as a constant hyperparameter, in this work, we propose to employ a dynamic ττ 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.

Ask about this paper

Your agent reads all of it.

Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

lune papers fulltext e87a6e07-e595-41de-ac43-5b9398d22db6

Cited by top-tier papers15

Ask how each one uses it

Builds on37

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines