Interactive · Learning a shared space

a sunthe seaa treea housea starsunseatreehousestar

Each step pulls every picture towards its own caption and pushes it from the others, in proportion to how wrongly the softmax currently scores them. A red line joins each picture to the caption it matches best; it turns solid when that is the right one.

Training steps0
Loss4.036the article's 𝓛, both ways
Pictures matched0 of 5
Contrastive training, small enough to watch: five pictures and their five captions, each given a direction in a shared space (CLIP's embeddings have hundreds of dimensions; these have two). Each step lowers the loss above, pulling every picture towards its own caption and away from the rest. The grid shows how strongly each picture matches each caption.