CVAIMar 27, 2023

Sigmoid Loss for Language Image Pre-Training

DeepMind
arXiv:2303.15343v43146 citationsh-index: 40Has Code
Originality Incremental advance
AI Analysis

This work addresses efficiency and scalability challenges in language-image pre-training for researchers and practitioners, though it is incremental in modifying the loss function.

The paper tackles the computational inefficiency of contrastive learning in language-image pre-training by proposing a pairwise Sigmoid loss that eliminates the need for global normalization, achieving 84.5% ImageNet zero-shot accuracy with only four TPUv4 chips in two days.

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.

Code Implementations11 repos

Data from Papers with Code (CC-BY-SA-4.0)

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes