King – man + woman is queen; but why? (2017)

p.migdal.pl

47 points by CGMthrowaway 5 days ago


DonaldFisk - 2 hours ago

It's telling that king – man + woman = queen is the only example I've ever seen used to explain word2vec.

I prefer the old school

    king(X) :- monarch(X), male(X).
    queen(X) :- monarch(X), female(X).
    queen(X) :- wife(Y, X), king(Y).

    monarch(elizabeth).
    female(elizabeth).
    wife(philip, elizabeth).
    monarch(charles).
    male(charles).
    wife(charles, camilla).

    ?- queen(camilla).
    true.

    ?- king(charles).
    true.

    ?- king(philip).
    false.
where definitions are human readable rules and words are symbols.
lblock - 2 hours ago

Isn't the whole linear operations thing not really true and even less so now in embeddings from transformer based models? I remember reading a blog about this but cannot find it anymore. This is the closest thing i could find now: https://mikexcohen.substack.com/p/king-man-woman-queen-is-fa...

CLPadvocate - 4 days ago

from Indoeuropean "gwen" over scandinavian "kvinna" = Woman

stared - an hour ago

Author here. Thank you for this excavation!

I fixed some math rendering - it has suffered after some migration.

zkmon - 4 hours ago

Ok, let's say "cash is king". What is queen?

Arithmetic is king = royalty + male, while queen = royalty + female

But then it makes all these words just arithmetic values without meaning. Even if the words "royalty" and "male" can be sum or difference of some other words and so on - all are just numbers, no meaning at all.

amelius - 3 hours ago

In the example abs(woman) > abs(man).

Any reason why this is the case?

jinushaun - 4 hours ago

Article is about AI and vector spaces, but queen literally means ”wife/woman” in old English. Disappointed. Thought this would be an article on etymology.

petesergeant - 3 hours ago

Shameless plug of my own article which I think does a much better job of explaining this: https://sgnt.ai/p/embeddings-explainer/

damnitbuilds - 2 hours ago

actor - man + woman is actress and always will be, no matter how woke you are.

amelius - 4 hours ago

I wouldn't be surprised if

King - man + child = Trump