What this thread does
Keep a working CLIP baseline; for a new experiment trial SigLIP 2 alongside CLIP, then test whether captions improve contextual matches before replacing the encoder.
Do first: set SigLIP text preprocessing to lowercase with padding="max_length", max_length=64, truncation=True.
Define what counts as related
Label a small fixed set of text and image queries with two separate relevant-image lists: visual similarity and contextual relevance. For example, another car may satisfy the first list while a bus stop or road satisfies the second. This is a proposed evaluation recipe, not a measured result.
1. Use the same image set, query set and top-k for both encoders. Remove the query image itself from image-query results. 2. Encode with each checkpoint's own processor. Normalize vectors for cosine ranking and keep each model's index separate. Do not reuse CLIP vectors with SigLIP queries. CLIP docs, SigLIP 2 retrieval docs. Obtain SigLIP text embeddings with model.get_text_features(inputs) after tokenization. For an image query, feed the processed image to model.get_image_features(inputs). 3. For SigLIP text, explicitly lowercase inputs and use padding="max_length", max_length=64, truncation=True. Inspect the installed processor's behavior with capitalized inputs rather than assuming defaults fix every checkpoint. The official docs specify this preprocessing; the public tokenizer report below shows why checking matters. 4. Compare direct image-vector ranking with a second ranking from short captions written once per image. For image queries, caption the query too. Start with manual captions so a captioning model is not another variable. As an experiment, combine the two ranked lists with reciprocal-rank scoring, 1/(60 + visual_rank) + 1/(60 + caption_rank); the constant is a starting choice to tune, not a vendor default. 5. Record precision at your chosen k separately for both relevance lists, plus indexing time, query latency and memory. Inspect missed examples. Keep caption assistance only if it improves contextual relevance without an unacceptable loss of visual matches.
Checkpoints, licences and limits — checked 2026-10-28
| Option | What it is for | Licence and local cost | Text constraint |
|---|---|---|---|
openai/clip-vit-base-patch32 | A fixed baseline for image/text similarity research | CLIP repository has MIT licence; local compute and storage still cost resources | CLIP configuration has 77 text positions |
google/siglip2-base-patch16-224 | Image-text retrieval and a candidate encoder for a new experiment | Google model card lists Apache-2.0; measure local indexing and inference resources | Official SigLIP 2 recipe lowercases and pads/truncates to 64 tokens |
Sources: CLIP licence, CLIP configuration, Google model card, SigLIP preprocessing. These are named released checkpoints, not a claim that either family has no newer variant. No hosted API price or RAM minimum is established here. The CLIP card calls it a research output and asks for thorough in-domain testing even for constrained image search. CLIP model card.
When to pick which
| Option | When it wins | When it loses | Honest pick |
|---|---|---|---|
| CLIP | You already have an evaluated CLIP index and want a controlled baseline | It fails your contextual labels, or its research-use cautions do not fit deployment | Pick this if continuity beats an unmeasured switch |
| SigLIP 2 | Starting fresh and prepared to evaluate its retrieval-oriented checkpoint | Correct preprocessing still misses your contextual relations; reindexing buys no measured improvement | Pick this if your held-out queries justify a new index |
| Either encoder plus captions | The desired relation is visible in a useful scene description | Captions omit the relation or indexing work is too expensive | Pick this if the measured gain pays for caption preparation |
Caption assistance is a retrieval design, not another encoder or a guaranteed fix. The sources establish no winner between SigLIP 2 and CLIP for this dataset.
Public evidence
- AnaghaB2026, 2026-10-23: “image-to-image results were inconsistent for others.” The author tested both encoders on a small local collection. nootxlm and PierreBrunelle suggest caption-assisted evaluation; neither reports a completed comparison there.
- jayzuccarelli, 2026-09-28, Transformers #49139: “I can reproduce this on main.” The contributor reproduces case-sensitive tokenization through automatic loading. This is evidence to inspect preprocessing, not evidence that CLIP wins retrieval or a fix shipped in a stable release.
Recommendation by constraint
Solo experiment: trial SigLIP 2 alongside CLIP and manually caption a small evaluation set. Small team with a functioning CLIP index: keep CLIP until the same queries show a worthwhile improvement. Enterprise deployment: compare both under domain-specific acceptance criteria and review intended-use constraints; do not approve a switch on generic benchmark claims.
Prompt for your agent
Compare these two checkpoints on our fixed local image set. Keep model-specific processors and indexes separate. Score visual and contextual relevance independently, with and without manual captions. Record checkpoint revisions, installed stable library versions, latency and memory. Recommend a switch only from the measured results.
Mistakes to avoid
Treating car-to-bus relevance as identical to appearance; tuning one threshold across different encoders; feeding uppercase SigLIP text without checking tokenization; making a model choice from a handful of attractive screenshots.
Limits
No retrieval benchmark, captioner or runtime was executed here. Community evidence is one small-dataset discussion and a separate tokenizer reproduction, not two successful deployments. Caption fusion is an untested experiment for this collection; whether captions improve it remains unmeasured. No fixed stable tokenizer release or cross-model accuracy advantage is asserted.
checked 2026-10-28
Started from a post by @AnaghaB2026, packaged by the editor. Original post