A reproducible embedding experiment · July 2026

The arithmetic
of meaning

Does king − man + woman actually land on queen? Yes—until we ask images to cross the modality gap on their own.

kingman+woman=queen
Explore the evidence

Text arithmetic

Queen is #1

Classic 3CosAdd works for the headline direction in CLIP’s 20,000-word gallery.

Image arithmetic → text

Queen is #2,429

Three portrait centroids still produce a vector, but text retrieval falls into portrait metadata.

Text anchor + image delta

Queen returns to #1

The image-derived gender direction works when a text vector anchors the query in the text neighborhood.

01

The embedding atlas

20,000 words, projected

Every faint dot is a text embedding. Circles are three-image concept centroids; the triangle is the selected arithmetic query. Drag to pan, scroll to zoom, and hover to inspect.

Loading the projection…
02

Nearest-neighbor evidence

The answer depends on the starting modality

Text arithmetic starts in the same distribution as the text gallery. Pure image arithmetic does not: CLIP aligns modalities for retrieval, but it does not make their local neighborhoods identical.

The mixed query keeps a as text and uses images only for the directional change −b + c. That anchor is enough for five of six tested relations to recover the expected word at rank one.

03

Reproducible method

Same model, controlled galleries

01

Build the galleries

Encode 20,000 common lowercase English words with sentence-transformers/clip-ViT-B-32. Encode three 224×224 portrait thumbnails per image concept, then average and normalize.

02

Do 3CosAdd

Normalize a − b + c, exclude all three source words, and rank every remaining text candidate by cosine similarity. No answer-specific filtering is applied.

03

Map, then cluster

Fit a deterministic 2D cosine UMAP for display. Separately fit a 10D UMAP and fine-grained HDBSCAN for descriptive density clusters.

04

Cache without originals

Portraits are fetched as small Wikimedia thumbnails, center-cropped in memory, then discarded. Only 18 normalized 512D image vectors are cached—35 KB total.

04

What this does—and does not—show

A relation, not a law

UMAP distorts

Nearby dots are suggestive. The 2D projection cannot preserve every 512D distance or density.

Vocabulary sets the game

“Nearest” means nearest among these 20,000 complete English words after source-word filtering.

Reverse directions differ

Text queen − woman + man ranks king at #309; analogy behavior is not automatically symmetric.

The most interesting result is not that vector arithmetic always works. It is that the image-derived direction survives—provided a text vector keeps the query inside the text neighborhood.