Skip to content

Sigmoid Loss for Language Image Pre-Training

Algorithm
SigLIP

Abstract

We propose a simple pairwise Sigmoid loss for Language-Image Pre-training (SigLIP). Unlike standard contrastive learning with softmax normalization, the sigmoid loss operates solely on image-text pairs and does not require a global view of the pairwise similarities for normalization. The sigmoid loss simultaneously allows further scaling up the batch size, while also performing better at smaller batch sizes. Combined with Locked-image Tuning, with only four TPUv4 chips, we train a SigLiT model that achieves 84.5% ImageNet zero-shot accuracy in two days. The disentanglement of the batch size from the loss further allows us to study the impact of examples vs pairs and negative to positive ratio. Finally, we push the batch size to the extreme, up to one million, and find that the benefits of growing batch size quickly diminish, with a more reasonable batch size of 32k being sufficient. We release our models at https://github.com/google-research/big_vision and hope our research motivates further explorations in improving the quality and efficiency of language-image pre-training.

Tags

Similar Papers

3
79%

DINOv2: Learning Robust Visual Features without Supervision

DINOv2

('Maxime Oquab', 'Timothee Darcet', 'Theo Moutakanni', 'Huy Vo', 'Marc Szafraniec', 'Vasil Khalidov', 'Pierre Fernandez', 'Daniel Haziza', 'Francisco Massa', 'Alaaeldin El-Nouby', 'Mahmoud Assran', 'Nicolas Ballas', 'Wojciech Galuba', 'Russell Howes', 'Po-Yao Huang', 'Shang-Wen Li', 'Ishan Misra', 'Michael Rabbat', 'Vasu Sharma', 'Gabriel Synnaeve', 'Hu Xu', 'Herve Jegou', 'Julien Mairal', 'Patrick Labatut', 'Armand Joulin', 'Piotr Bojanowski') / 2023
5
76%

A Cookbook of Self-Supervised Learning

('Randall Balestriero', 'Mark Ibrahim', 'Vlad Sobal', 'Ari Morcos', 'Shashank Shekhar', 'Tom Goldstein', 'Florian Bordes', 'Adrien Bardes', 'Gregoire Mialon', 'Yuandong Tian', 'Avi Schwarzschild', 'Andrew Gordon Wilson', 'Jonas Geiping', 'Quentin Garrido', 'Pierre Fernandez', 'Amir Bar', 'Hamed Pirsiavash', 'Yann LeCun', 'Micah Goldblum') / 2023