Skip to main content
Back

Google DeepMind's SigLIP 2 Beats Every Vision Encoder With 850k Downloads

Google's new vision-language encoder family unifies captioning, self-distillation, masked prediction, and native aspect ratio support into a single recipe.

Pro

  • Google released SigLIP 2, a multilingual vision-language encoder family under Apache 2.0.
  • Unified recipe adds captioning, self-distillation, masked prediction, and online data curation on top of sigmoid loss.
  • Four sizes released: ViT-B (86M), L (303M), So400m (400M), and g (1B) parameters.
  • Outperforms original SigLIP on zero-shot classification, retrieval, and VLM transfer at every scale.
  • NaFlex variants preserve native aspect ratio and support multiple resolutions for OCR and document tasks.
  • Architecture-compatible with SigLIP, drop-in via Transformers; paper on arXiv.

Google DeepMind has released SigLIP 2, the next generation of its open vision-language encoders. The So400m/14 at 384px checkpoint is quickly becoming the default drop-in replacement for the original SigLIP in retrieval pipelines and as a vision tower for VLMs. Licensed under Apache 2.0 and hosted on Hugging Face, this single variant has already crossed 850k downloads.

The architecture is unchanged from SigLIP, so swapping weights requires no model code changes. The difference is a broader training recipe that lifts scores across zero-shot classification, retrieval, localization, and dense prediction, with multilingual coverage added for the first time.

One recipe, several objectives stacked on top

The original SigLIP replaced CLIP's softmax contrastive loss with a sigmoid loss that treats every image-text pair as an independent binary classification, scaling better and working well at small batch sizes. SigLIP 2 keeps that sigmoid formulation and folds in techniques previously scattered across separate papers: captioning-based pretraining, self-supervised losses (self-distillation and masked prediction), and online data curation. In practice, the encoder trains to:

  • Match images and captions with the sigmoid loss, as before.
  • Generate captions through a decoder head, forcing vision features to carry enough information to describe the scene.
  • Predict its own features for masked patches and align local patch views with a global view, both borrowed from the self-supervised vision literature.
  • Consume examples chosen by an online curation process rather than a static shuffle of WebLI.

The self-supervised objectives produce better dense features for segmentation and depth estimation, and improve localization tasks such as referring expression comprehension. That matters most when using the encoder as a backbone rather than for pure image-text scoring.

Four sizes, one variant that respects your aspect ratio

Checkpoints ship at four sizes: ViT-B (86M), L (303M), So400m (400M), and g (1B). The So400m/14 at 384px sits in the sweet spot most VLM builders care about, roughly 1B total parameters with the text tower included, matching what PaliGemma and similar systems already consume.

Google also trained variants that support multiple resolutions and preserve native aspect ratios, released under the NaFlex naming. Squashing a 16:9 screenshot into a square patch grid tends to collapse OCR quality; those checkpoints target exactly that problem.

SigLIP 2 evaluation table comparing against SigLIP and other CLIP-style models across ImageNet, COCO, Flickr, and XM3600

What the numbers actually say

SigLIP 2 outperforms its SigLIP counterparts at all model scales across zero-shot classification, image-text retrieval, and visual representation quality for VLMs. The multilingual retrieval scores on XM3600 are the more interesting story: the original SigLIP English checkpoints were notably weak outside Latin-script queries, and the mSigLIP fix was a separate model entirely. SigLIP 2 folds both families into one, training on the WebLI corpus across up to 2048 TPU-v5e chips.

Dropping it into your code

For zero-shot classification, the Transformers integration is a single swap:

from transformers import pipeline
pipe = pipeline(
    task="zero-shot-image-classification",
    model="google/siglip2-so400m-patch14-384",
)
pipe(image, candidate_labels=["2 cats", "a plane", "a remote"])

For raw image embeddings to feed a retrieval index or custom VLM, call the vision tower directly:

from transformers import AutoModel, AutoProcessor
import torch
ckpt = "google/siglip2-so400m-patch14-384"
model = AutoModel.from_pretrained(ckpt, device_map="auto").eval()
processor = AutoProcessor.from_pretrained(ckpt)
inputs = processor(images=[image], return_tensors="pt").to(model.device)
with torch.no_grad():
    emb = model.get_image_features(**inputs)

Backward compatibility is explicit: existing tokenizers, processors, and downstream heads carry over unchanged.

When to reach for it, and when to skip it

SigLIP 2 is a strong default for:

  • Zero-shot image classification with arbitrary label sets, especially in non-English languages.
  • Image-text retrieval for search, deduplication, or dataset filtering.
  • A frozen or lightly tuned vision encoder for a VLM, replacing a CLIP or original SigLIP backbone.
  • Dense downstream tasks like segmentation, depth estimation, or referring expression grounding, where the self-distillation and masked prediction losses genuinely change feature quality.

A caption decoder ran during training, but SigLIP 2 produces no captions or question answers at inference time. For OCR-heavy documents or high-resolution imagery, the NaFlex variants handle aspect ratio better than this fixed 384px checkpoint. Pure retrieval workloads where the bottleneck is the index rather than the encoder will rarely benefit from So400m over the smaller ViT-B or L.

The broader pattern here is that contrastive encoders have moved away from single-objective training. Blended recipes combining contrastive alignment, captioning, and self-supervised objectives applied to the same tower are now the frontier, and SigLIP 2 is currently the clearest open example of that approach at scale.