Sigmoid Loss for Language Image Pre-Training
Abstract
We propose a simple pairwise sigmoid loss for image-text pre-training. 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. With only four TPUv4 chips, we can train a Base CLIP model at 4k batch size and a Large LiT model at 20k batch size, the latter achieves 84.5% ImageNet zero-shot accuracy in two days. This 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 hope our research motivates further explorations in improving the quality and efficiency of language-image pre-training.
Community
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- LoTLIP: Improving Language-Image Pre-training for Long Text Understanding (2024)
- NEVLP: Noise-Robust Framework for Efficient Vision-Language Pre-training (2024)
- Enhancing Vision-Language Model Pre-training with Image-text Pair Pruning Based on Word Frequency (2024)
- Optimizing CLIP Models for Image Retrieval with Maintained Joint-Embedding Alignment (2024)
- Contrastive Localized Language-Image Pre-Training (2024)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment:
@librarian-bot
recommend
Models citing this paper 164
Browse 164 models citing this paperDatasets citing this paper 0
No dataset linking this paper