To do math on words, give each one a vector — a point in a few hundred dimensions, learned so that similar meanings sit close together. The startling result: meaning becomes arithmetic. The direction from man to woman is the same as from king to queen, so king − man + woman ≈ queen. Embeddings are the input layer of every language model — the bridge from symbols to geometry.
The demo runs the analogy on tiny hand-made vectors — king − man + woman lands exactly on queen: live demo
“Word vectors store definitions.” — they store distributional meaning — a word is the company it keeps (Firth) — not dictionary definitions. cited
Symbols, turned into geometry. representation
On i-13, with king=(3,1), man=(2,0), woman=(0,2), king−man+woman = (1,3) = queen exactly: