# SigLIP (2023)

> Replaced CLIP's batch-wide softmax contrastive loss with an independent pairwise sigmoid loss, training stronger vision encoders at smaller and larger batch sizes alike.

Page: https://mralbu.github.io/ai-datasets/p/siglip

## Key facts

- Title: Sigmoid Loss for Language Image Pre-Training
- Authors: Xiaohua Zhai, Basil Mustafa, Alexander Kolesnikov, Lucas Beyer
- Venue: ICCV 2023
- Category: Vision
- Paper: https://www.alphaxiv.org/abs/2303.15343

## Why it matters

As multimodal LLMs converged on feeding ViT patch tokens directly into a language model, the contrastive vision encoder became the primary visual bottleneck. SigLIP's simpler, memory-light loss produced sharper encoders—especially ViT-So400m—that replaced OpenAI CLIP as the default vision backbone in PaliGemma and a wide wave of open VLMs.

## The idea

CLIP's InfoNCE loss normalizes every image–caption similarity across the entire global batch, which demands heavy all-gather synchronization and huge batches. SigLIP treats every image–text pair in the batch as an independent binary classification problem with a pairwise sigmoid loss and a learnable bias, decoupling the loss from global batch normalization.

## The result

With Locked-image Tuning (SigLiT) on just four TPUv4 chips for two days, reached 84.5% zero-shot top-1 on ImageNet; trained from scratch, SigLIP beat softmax CLIP at small batch sizes and saturated around a 32k batch size rather than needing hundreds of thousands.

## The data

- [ImageNet (ILSVRC) (2009)](https://mralbu.github.io/ai-datasets/d/imagenet.md): 1.28 million photos across 1,000 classes, the dataset behind the deep learning boom.

## Builds on

- [CLIP (2021)](https://mralbu.github.io/ai-datasets/p/clip.md)

## Led to

- [PaliGemma (2024)](https://mralbu.github.io/ai-datasets/p/paligemma.md)

## Part of

- [Modern VLMs](https://mralbu.github.io/ai-datasets/t/modern-vlms.md) (step 5 of 8)
