Executive Summary
Multimodal foundation models rely heavily on contrastive representation learning to map visual features and natural language tokens into a unified embedding space. For years, the dominant paradigm was the InfoNCE objective popularized by CLIP (Radford et al., 2021) and ALIGN (Jia et al., 2021), which uses categorical cross-entropy with a softmax normalization over all paired elements in a mini-batch. While effective, the softmax normalization imposes a severe distributed systems bottleneck: computing the normalization denominator requires gathering representations across all accelerator nodes, coupling memory complexity quadratically to batch size () and destabilizing optimization when mini-batches are too small or excessively large.
Sigmoid Loss for Language Image Pre-Training (SigLIP), introduced by Xiaohua Zhai, Basil Mustafa, Alexander Kolesnikov, and Lucas Beyer at Google DeepMind (ICCV 2023), replaces the global softmax contrastive loss with an independent pairwise binary logistic regression loss. By treating every image-text pair in a batch as an independent binary classification problem (positive if paired, negative if unpaired), SigLIP eliminates the cross-device normalization denominator, decouples communication overhead, and stabilizes optimization across arbitrary batch sizes. Today, SigLIP and its successor SigLIP 2 serve as the standard visual backbone for leading open-weight multimodal models, including Google's PaliGemma and PaliGemma 2, Gemma 2 vision variants, LLaVA-NeXT, and DeepSeek-VL.

The InfoNCE Bottleneck in Standard CLIP
In standard contrastive language-image pre-training, an image encoder and a text encoder map an image and a text description into normalized -dimensional embedding vectors and .
Given a mini-batch of paired examples , the CLIP objective calculates pairwise cosine similarities scaled by a learnable temperature parameter . The loss is the symmetric sum of two cross-entropy terms: image-to-text () and text-to-image ():
This formulation exhibits three major architectural limitations:
- Global Denominator Coupling: The denominator requires a global sum across all samples. In large-scale distributed training across hundreds of GPUs or TPUs, computing this denominator mandates an expensive
all-gathercollective communication step across all ranks before computing the softmax partition function. - Batch Size Dependency for Negative Quality: Under softmax cross-entropy, the probability assigned to the true positive depends strictly on the competitive sum of all negatives in the batch. If batch size is small (e.g., ), the denominator provides insufficient negative contrast, causing poor representation quality. Consequently, CLIP required scaling batch size to 32,768 or 65,536 to achieve strong zero-shot performance.
- Memory Footprint and Redundant Gradients: The full logit matrix must be instantiated and retained in memory during the backward pass to compute softmax gradients, consuming significant high-bandwidth memory (HBM) on training accelerators.
Mathematical Formulation of SigLIP
SigLIP reframes multimodal contrastive learning by discarding the multinomial distribution over the batch entirely. Instead, every entry in the pairwise similarity matrix is treated as an independent binary classification event.
Let denote the binary ground-truth label for the pair :
The affine similarity score is computed using a learnable positive scale parameter (inverse temperature) and a learnable scalar bias :
The pairwise SigLIP loss over the entire mini-batch is defined as the mean negative log-sigmoid:
Expanding this expression separates the contribution of the diagonal positive pairs from the off-diagonal negative pairs:
Notice the normalization factor: the total loss is normalized by rather than . As batch size scales, the number of negative pairs per sample grows linearly (), naturally increasing the repulsive pressure without diluting the per-example gradient magnitude.

Gradient Dynamics and the Role of Learnable Bias
To understand why SigLIP trains stably from scratch, we examine the gradient of the pairwise loss with respect to the pre-activation similarity :
For the normalized image embedding , the chain rule gives:
This reveals two crucial dynamics:
- Attractive Force: The positive target pulls with magnitude proportional to . When alignment is weak (), the gradient multiplier approaches 1.0; as alignment perfects (), the attractive force smoothly decays to zero.
- Repulsive Force: Each negative repels with magnitude proportional to . If a negative pair is already orthogonal or dissimilar (), , producing virtually zero gradient and preventing gradient noise from uninformative negatives.
The Negative Imbalance Problem and Initialization
In a mini-batch of size , there is 1 positive pair and negative pairs for each image. If temperature and bias were initialized neutrally (), random embeddings () would yield , causing . The net gradient for each sample would be dominated by repulsive steps, triggering violent gradient surges that destroy initial weights.
Zhai et al. resolved this imbalance by introducing the learnable bias parameter with a strongly negative initialization:
- Initial bias:
- Initial temperature: with (yielding )
With at initialization, the negative pair probability is . Even with a batch size of , the cumulative negative gradient per sample is , perfectly balancing the single positive gradient . As training progresses, the model automatically tunes and to maintain optimal discriminative calibration.
Distributed Systems and Memory Efficiency
Removing the softmax partition function fundamentally alters how contrastive vision-language models scale across distributed hardware clusters.
Elimination of All-Reduce Communication
Under InfoNCE, computing requires gathering all text embeddings across all accelerator devices. In a data-parallel setup with workers, each worker holds local batch size . To compute the softmax, workers must execute an AllGather operation of size , followed by distributed softmax reduction.
Under SigLIP, because each loss term is strictly local to its pair, the similarity matrix can be computed in tiled chunks (chunked dot-products) and accumulated asynchronously without requiring global synchronization barriers for the denominator.
Peak Memory Footprint
In standard CLIP implementations, the logit matrix must be materialized in memory to compute row-wise and column-wise softmax distributions. For a batch size of , storing float32 logits requires:
In SigLIP, because binary cross-entropy operates elementwise, the loss and backward pass can be computed on-the-fly inside fused GPU/TPU kernels in micro-blocks of , reducing activation memory from gigabytes to megabytes.
Empirical Benchmarks and Batch Size Scaling
In their comprehensive ablation across the WebLI (Web-Language-Image) dataset, Zhai et al. demonstrated that SigLIP consistently outperforms standard InfoNCE across nearly all operational regimes:
- Small Batch Performance: At a modest batch size of , SigLIP achieved a zero-shot top-1 ImageNet accuracy of 73.1%, whereas standard softmax CLIP achieved only 69.8%. Softmax CLIP suffers severely from negative starvation at small batch sizes, whereas SigLIP remains robust.
- Optimal Operating Point: SigLIP reached peak zero-shot accuracy at . Softmax CLIP required scaling batch size to to match its peak, requiring three times the computational and memory overhead.
- Diminishing Returns at Extreme Scale: Beyond (e.g., ), both losses experience slight degradation due to label noise and false negatives in web-scraped corpora, but SigLIP maintains higher training stability throughout.
Adoption in Modern Vision-Language Models
Because of its superior representation density and memory efficiency, SigLIP has replaced standard OpenAI CLIP as the default vision encoder in modern multimodal architectures:
- PaliGemma and PaliGemma 2 (Google): Uses a SigLIP-So400M (Shape-optimized 400M parameter ViT) paired with Gemma language decoders for dense image captioning, visual question answering, and object detection bounding box prediction.
- LLaVA-NeXT and LLaVA-OneVision: Swapped original CLIP-ViT-L/14 encoders for SigLIP-400M, citing superior fine-grained OCR, document comprehension, and spatial localization capabilities.
- DeepSeek-VL and Pixtral: Utilize SigLIP backbones to handle high-resolution multi-tile visual token inputs without memory exhaustion during pre-training.
- SigLIP 2 (2025 Extension): Extends the core sigmoid objective with masked autoencoding (Decoder loss), self-distillation, and native dynamic resolution support, delivering state-of-the-art multilingual zero-shot retrieval and dense feature representation.
Sources
- Zhai, X., Mustafa, B., Kolesnikov, A., & Beyer, L. (2023). Sigmoid Loss for Language Image Pre-Training. IEEE/CVF International Conference on Computer Vision (ICCV), arXiv:2303.15343.
- Radford, A., Kim, J. W., Hallacy, C., Ramesh, A., Goh, G., Agarwal, S., Sastry, G., Askell, A., Mishkin, P., Clark, J., Krueger, G., & Sutskever, I. (2021). Learning Transferable Visual Models From Natural Language Supervision. International Conference on Machine Learning (ICML), arXiv:2103.00020.
- Lee, J., et al. (2024). Analysis of Using Sigmoid Loss for Contrastive Learning. AISTATS 2024, PMLR 238.
- Tschannen, M., Mustafa, B., Wang, X., et al. (2025). SigLIP 2: Multilingual Vision-Language Encoders with Improved Semantic Understanding, Localization, and Dense Features. Google DeepMind, arXiv:2502.14786.
- Beyer, L., et al. (2024). PaliGemma: A versatile 3B VLM for transfer. Google DeepMind, arXiv:2407.07726.
