Skip to main content
Back

Google DeepMind's SigLIP 2 Beats Every Matched Vision Encoder Across Languages

Google DeepMind's SigLIP 2 upgrades the original contrastive vision encoder with captioning, self-distillation, and masked prediction for sharper dense features and multilingual coverage.

Pro

  • Google DeepMind released SigLIP 2, a multilingual upgrade to the SigLIP vision-language encoder family.
  • Adds captioning loss, self-distillation, masked prediction, and online data curation to the sigmoid contrastive objective.
  • Outperforms SigLIP at every scale on zero-shot classification, retrieval, and VLM transfer benchmarks.
  • Delivers much stronger dense features for segmentation, depth, and referring expression comprehension.
  • Backward compatible with SigLIP architecture, so existing VLM pipelines can swap checkpoints directly.
  • Apache 2.0 licensed, trained on WebLI with up to 2048 TPU-v5e chips; see the paper.

Google DeepMind has released SigLIP 2 model, a family of multilingual encoders for image-text retrieval, zero-shot classification, localization, dense prediction, and vision-language model backbones. The base 256-pixel checkpoint recorded roughly 1.79 million Hugging Face downloads in the preceding month at the time of writing, though download counts can include automated pulls.

SigLIP 2 combines the original model’s pairwise sigmoid objective with captioning, self-supervision, and online data curation. Matched variants retain familiar architecture shapes and Transformers APIs, but each checkpoint creates a new embedding space. Retrieval indexes, score thresholds, and VLM adapters may therefore require updates.

The practical shape

Feature Details
Base checkpoint google/siglip2-base-patch16-256
Model size Approximately 0.4 billion total parameters
Base image input 256 × 256 pixels with 16 × 16-pixel patches
Outputs Global image-text embeddings and patch-level visual features
Other variants Large, So400m, Giant, and native-aspect-ratio NaFlex checkpoints
License Apache 2.0

The released checkpoints are dual encoders: one tower processes images, another processes text, and their projected embeddings can be compared in a shared space. Caption generation requires a separate decoder or a full VLM.

Four signals feed one encoder

CLIP trains image and text encoders using batchwide softmax normalization. The original SigLIP assigns each image-text pair an independent positive or negative sigmoid loss, which simplifies distributed scaling. SigLIP 2 keeps that foundation and adds three training signals:

  • Decoder-based pretraining: A small training-time decoder generates captions, grounded captions, and referring expressions from image features. This encourages the encoder to retain spatial and descriptive information.
  • Self-distillation: Local patch representations learn from a global teacher view, improving consistency between image-level and region-level features.
  • Masked prediction: The model reconstructs features for hidden image patches, strengthening the patch tokens used by segmentation, depth, and localization heads.
  • Online data curation: Training examples are scored and selected as learning progresses, concentrating compute on useful image-text pairs.

NaFlex checkpoints add variable-resolution processing while preserving each image’s native aspect ratio. This reduces the geometric distortion introduced by fixed square inputs, although dynamic shapes can complicate batching and throughput optimization.

Benchmarks favor the new recipe

Google reports that SigLIP 2 exceeds matched SigLIP variants at every evaluated scale. The tests cover ImageNet-1k zero-shot classification, COCO and Flickr image-text retrieval, XM3600 multilingual retrieval, VLM transfer, localization, segmentation, and depth estimation. The XM3600 results show particularly strong gains across languages.

SigLIP 2 evaluation results for ImageNet, COCO, Flickr, and XM3600
Google’s comparison of SigLIP and SigLIP 2 checkpoints across classification and retrieval benchmarks.

These results compare models trained and evaluated by the authors under aligned conditions. They establish consistent gains over SigLIP, while deployment decisions still depend on latency, memory use, input resolution, language mix, and performance on domain-specific data.

WebLI and TPU-scale training

SigLIP 2 was pretrained on WebLI, the web-scale multilingual image-text dataset introduced through Google’s PaLI research. The training recipe combines paired web data with generated captioning targets, self-supervised image objectives, and online curation. The paper reports training configurations using as many as 2,048 TPU v5e chips.

WebLI is not distributed as a complete downloadable training set, which limits exact reproduction. Its web-derived contents can also carry geographic, cultural, demographic, and labeling biases into downstream systems.

Two ways to run it

A current Transformers installation can load SigLIP 2 through the zero-shot image-classification pipeline:

pip install -U transformers torch pillow
from PIL import Image
from transformers import pipeline

classifier = pipeline(
    task="zero-shot-image-classification",
    model="google/siglip2-base-patch16-256",
)

predictions = classifier(
    Image.open("parrots.jpg"),
    candidate_labels=["animals", "humans", "landscape"],
)

print(predictions)

Retrieval systems can extract and normalize embeddings directly. Padding text to the model’s configured length follows the expected SigLIP preprocessing path:

import torch
import torch.nn.functional as F
from PIL import Image
from transformers import AutoModel, AutoProcessor

model_id = "google/siglip2-base-patch16-256"
model = AutoModel.from_pretrained(model_id).eval()
processor = AutoProcessor.from_pretrained(model_id)

batch = processor(
    images=[Image.open("parrots.jpg")],
    text=[
        "This is a photo of parrots.",
        "This is a photo of a city.",
    ],
    padding="max_length",
    return_tensors="pt",
)

with torch.inference_mode():
    image_embeddings = model.get_image_features(
        pixel_values=batch["pixel_values"]
    )
    text_embeddings = model.get_text_features(
        input_ids=batch["input_ids"],
        attention_mask=batch["attention_mask"],
    )

image_embeddings = F.normalize(image_embeddings, dim=-1)
text_embeddings = F.normalize(text_embeddings, dim=-1)
scores = image_embeddings @ text_embeddings.T

print(scores)

The paired processor controls resizing, normalization, tokenization, and padding. Using a processor from another SigLIP checkpoint can change scores or produce incompatible inputs.

Checkpoint swaps need housekeeping

  • Rebuild retrieval indexes: SigLIP and SigLIP 2 vectors occupy different feature spaces. Re-embed stored images and documents before serving queries from the new model.
  • Recalibrate thresholds: Similarity distributions can shift even when ranking quality improves. Refit alert, match, and rejection thresholds on held-out data.
  • Validate prompts and languages: Zero-shot accuracy depends on label phrasing, prompt templates, and language coverage.
  • Adapt VLM connectors: A matched SigLIP 2 variant may preserve hidden dimensions, but an existing projector was trained against the previous feature distribution. Fine-tuning the projector or VLM usually provides a safer migration.
  • Profile NaFlex separately: Native aspect ratios can improve spatial tasks while reducing batching efficiency because images produce different token counts.

Best-fit workloads

Workload Expected benefit Deployment consideration
Image-text retrieval Higher matched-model retrieval accuracy and multilingual queries Requires complete re-indexing
Zero-shot classification Stronger transfer without a task-specific classifier Prompt and threshold validation remain necessary
VLM vision tower Improved visual representations at comparable model scales Projector adaptation or fine-tuning may be required
Segmentation and depth More useful patch-level features from self-supervised training Needs a downstream head and task-specific training
Localization Better region grounding and referring-expression performance Resolution and aspect-ratio choices affect results

One backbone for broader vision tasks

SigLIP 2 brings retrieval-oriented contrastive learning, caption supervision, and dense self-supervision into one encoder family. That combination makes it a practical candidate for teams currently joining CLIP-style semantic embeddings with DINO-style patch features, provided they benchmark the replacement on their own data and account for migration costs.

Architecture details, training methods, and full evaluations appear in the research paper. Fixed-resolution and NaFlex weights are available in the checkpoint collection.