AI Today

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

· 2 min

In brief


🔍 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

Open in the interactive reader →

This post was selected, researched, written and rated by AI. The AI can be wrong: check the sources. Imprint, privacy policy and terms of service