Global Minimizers of Sigmoid Contrastive Loss

Kiril Bangachev, Guy Bresler, Iliyas Noman, Yury Polyanskiy

Contrastive learning is the engine behind modern multimodal AI, aligning representations of concepts across different domains (like images and text). While the InfoNCE loss has long been the standard, Google DeepMind's recent SigLIP models utilize a memory-efficient sigmoid-based loss that scales exceptionally well.

However, the theoretical understanding of why SigLIP succeeds—particularly in practical regimes where the number of data pairs ($N$) vastly exceeds the embedding dimension ($d$)—has remained limited. Previous theories often relied on unrealistic assumptions, such as having infinite data or more dimensions than data points. This paper bridges that gap by providing a rigorous theoretical characterization of the Sigmoid Contrastive Loss, introducing a novel geometric framework to describe its global minimizers.

The Geometry of Zero Loss: $(m, b_{rel})$-Constellations

Unlike InfoNCE, which only approaches its minimum asymptotically as temperature drops to zero, the Sigmoid loss can achieve a true zero-loss state. The authors prove that the global minimizers of this loss form a rich class of geometric configurations termed $(m, b_{rel})$-Constellations.

Theoretical regions of Margin vs. Relative Bias, illustrating where constellations and modality gaps exist.

These constellations are combinatorial objects, closely related to spherical codes. In these configurations, matching pairs maintain high inner products while non-matching pairs have low inner products, separated by a specific margin ($m$) and a relative bias ($b_{rel}$). The margin $m$ directly dictates the model's robustness during nearest-neighbor retrieval tasks; a larger margin makes the model more forgiving of small embedding fluctuations.

The Inevitability of the Modality Gap

A well-documented phenomenon in multimodal models is the "modality gap"—the observation that image and text embeddings remain geometrically separated and never truly overlap, even when perfectly synchronized. Using tools from convex geometry (such as Helly’s and Carathéodory’s Theorems), the authors prove that this gap is not a flaw in the architecture or training process.

Empirical demonstration of the modality gap, showing perfect linear separability between text and image embeddings.

Instead, the modality gap is a mathematical necessity. In the practical regime where $N > d$, any configuration that achieves zero loss must exhibit linear separability between the two modalities. If you want perfect alignment in a low-dimensional space, the modalities are forced to occupy distinct regions. Experiments on the ImageNet validation set using pre-trained SigLIP models confirm this, showing nearly perfect linear separability between text and image embeddings.

Improving Training Dynamics

Beyond theoretical characterization, the paper offers practical improvements. By reparameterizing the loss function to focus on explicit relative bias ($L^{RB-Sig}$) rather than absolute bias, the authors demonstrate that first-order optimizers like Adam can navigate the loss landscape more efficiently. In synthetic tests, this reparameterized loss reached zero loss significantly faster than the standard SigLIP implementation.

Limitations and Future Directions

While the paper successfully identifies the global minima of the sigmoid loss, it does not formally guarantee that gradient-based methods will always converge to them, despite empirical evidence suggesting they do in practice. Furthermore, finding the absolute maximum number of pairs $N$ that can fit in dimension $d$ for a given margin remains an open challenge in coding theory. Future work will need to test the $L^{RB-Sig}$ reparameterization on massive, real-world pre-training runs to fully validate its scalability.

Summary updated

BibTeX
@inproceedings{bangachev2025global,
  author = {Kiril Bangachev and Guy Bresler and Iliyas Noman and Yury Polyanskiy},
  title = {{Global Minimizers of Sigmoid Contrastive Loss}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=IeM6Io4Rsh},
}
Figure