Re:King – man and woman is queen; but why?
by wongarsu on Tuesday January 20, 2026 @08:06AM
(#46691422)
I just tried it on qwen3-embedding:8b with a little vibe-coded 100 line script that does the obvious linear math and compares the result to the embeddings of a couple of candidate words using cosine similarity, and it worked exactly as expected. Same 22 candidates for both questions
king - man + woman ≈ queen (0.8510)
Top similarity
0.8510 queen
0.8025 king
0.7674 princess
0.7424 woman
0.7212 queen Elizabeth
Berlin - Germany + France ≈ Paris (0.8786)
Top similarity
0.8786 Paris
0.8309 Berlin
0.8057 France
0.7824 London
Sure, 0.85 is not an exact match, and if I dump an entire dictionary in there it might be worse, but the idea very much works
king - man + woman ≈ queen (0.8510)
Berlin - Germany + France ≈ Paris (0.8786) Sure, 0.85 is not an exact match, and if I dump an entire dictionary in there it might be worse, but the idea very much works