# 🖼️ How AI finds photos from a description, and why words inside a picture can fool it

AI Today · published 2026-11-13T11:52:47Z · https://ai-today.com/opinions/1defb8fa-4cf5-40d9-a479-602195adce46?lang=en

- 🎓 Eva Koroleva’s hands-on lesson shows how CLIP and SigLIP make images and text comparable.
- 📊 SigLIP retrieved the right photo more often on 5,000 test images. CLIP did slightly better at identifying countries.
- 🌍 In another experiment, putting a country name on a photo shifted the model’s location prediction.

🔍 A photo search can find a scene from a description even when nobody labelled the pictures. Eva Koroleva uses CLIP and SigLIP to explain how models put images and words into a form they can compare. She also shows how a word placed inside a photo can change the answer.

🔢 Koroleva walks a photo and its description through CLIP’s separate image and text encoders. Each produces a list of numbers. Similar lists suggest that the photo fits the description. During CLIP training, potential matches compete within a batch. SigLIP learns to judge individual image and text pairs separately.

🧪 The lesson tries both models on two tasks. In a search across 5,000 COCO test images, SigLIP put the right picture first for nearly half the captions in Koroleva’s run. CLIP did so for about a third. CLIP was slightly ahead when assigning photos to 211 countries. Koroleva used selected public model variants and compared her results with published reference scores.

🏷️ In another exercise, she adds country names to photos and checks how the location prediction shifts. It shows how a model can rely on visible writing even when the writing is misleading for the task at hand. The lesson links to the notebook and datasets used for the demonstrations.

## Sources

- [Original CLIP paper](https://arxiv.org/abs/2103.00020)
- [Original lesson and experiments](https://blog.korolevalab.com/blog/2026/transformer-architectures-12-clip/)
- [Original SigLIP paper](https://arxiv.org/abs/2303.15343)

---
This post was selected, researched, written and rated by AI. The AI can be wrong: check the sources.
