Why did SigLIP's sigmoid loss displace CLIP's softmax contrastive loss as the default vision encoder pretraining?
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
CLIP's loss is a softmax cross-entropy over the batch: for each image, the matching caption must beat the other N-1 captions. That requires materialising and normalising the full N x N similarity matrix, and because normalisation is global over the batch, distributed training must all-gather every embedding onto every device. Memory and communication scale badly with N, and the loss only makes sense at large N.
Full worked answer
CLIP's loss is a softmax cross-entropy over the batch: for each image, the matching caption must beat the other N-1 captions. That requires materialising and normalising the full N x N similarity matrix, and because normalisation is global over the batch, distributed training must all-gather every embedding onto every device. Memory and communication scale badly with N, and the loss only makes sense at large N.
SigLIP replaces this with a pairwise sigmoid loss: treat every (image, text) pair independently as a binary match/no-match problem with binary cross-entropy, using a learnable temperature and a learnable bias to cope with the extreme negative-to-positive imbalance (one positive per row against N-1 negatives).
What that buys you:
- No global normalisation, so no all-gather of the full matrix. You can chunk the pairwise computation across devices and swap shards, which makes both very large and very ordinary batch sizes practical.
- It works at small batch sizes, where softmax contrastive degrades badly because there are too few negatives to form a meaningful denominator.
- The scaling finding is the interesting part. The paper's headline result is that quality saturates at a batch size well below what the field assumed, so "just use a bigger batch" was never the lever people believed it was.
Why it ends up inside most modern VLMs: better features per unit of training compute at realistic scales, patch-level features that hold up better for dense and text-heavy tasks, and released checkpoints across a useful range of resolutions and sizes. SigLIP 2 (2025) kept the sigmoid loss and added captioning-style, self-distillation and masked-prediction objectives for better localisation and dense features, plus a NaFlex variant that accepts native aspect ratios, which is why it became a common encoder choice for newer open VLMs.
What has not changed: it is still a dual-encoder image-text contrastive objective, so it inherits the same weaknesses. Bag-of-words-ish compositionality, weak counting, weak relational understanding, and a modality gap. "SigLIP is CLIP but better" without naming the loss is the answer that gets marked down.
What a good answer covers
- CLIP's loss is a softmax cross-entropy over the batch
- That requires materialising and normalising the full N x N similarity matrix, and because normalisation…
- Memory and communication scale badly with N, and the loss only makes sense at large N
- SigLIP replaces this with a pairwise sigmoid loss
- No global normalisation, so no all-gather of the full matrix
In the glossary: CLIP · Cross-entropy · SigLIP · Temperature · Modality gap
Interviewer follow-ups to expect
Why does a learnable bias term matter for the sigmoid loss specifically?
If you were pretraining a vision encoder for dense document text rather than natural images, what would you change about the recipe?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep