An unofficial, read-only Hacker News reader. Join the beta →

Show HN: King – Man + Woman = ? (opens external site)

42 points by Gooblebrai 1 day ago | kingminusman.com | 17 comments on HN

View full thread · View on Hacker News

Comment thread (3)

  1. Do you have a link? Is it really just a concept we don't have a word for?
    Replies (1)
    1. So there have been a couple of papers on this that I think are pretty popular: “Issues in Evaluating Semantic Spaces Using Word Analogies” [1] and “The Problems of Analogical Reasoning with Word Vectors.” [2]

      I think they’re both worth a look into how word embeddings aren't always a straight-forward 1:1 correspondence between semantic relationships and cosine similarity.

      [1] - https://aclanthology.org/W16-2503.pdf

      [2] - https://aclanthology.org/S17-1017.pdf

      Replies (1)
      1. Vector space of a few hundred dimensions is just too limiting.

        It assumes that any difference vector, for example, (woman - man) can be applied to any word to yield a meaningful word. This is not true for language.

        What would for instance be

        Woman - man + thirsty ?

        There are other problems: do you want to make (sister - brother) parallel to (woman - man) or do you want to make (sister-in-law - brother) parallel to (woman - man). I Euclidean geometry, there is only one line through a point along a parallel. This is restrictive for language.

        There are many approaches one can take to try to handle this problem. One computer science'y way would be to define 'typed' additions that disallows addition when the result is non-sensical. Distinguish between affine points and displacements.

        Another way which is closer to my taste is to consider the set of words not to be embedded in a vector space but in a non-Euclidean manifold. Here in order to execute an addition you have to ensure that you stay on the manifold -- use a manifold compliant motion.

        There are many ways to model this, parallel transport is just one option. In any case, some words would be at the boundary of the manifold such that displacements in certain directions are illegal.

        There is another problem with using vector spaces of a few hundred dimensions -- in this model, directions are relations. For example (woman - man) is analogous to the relation FEMALEOF.

        In a k dimensional vector space there can be only k independent relationships between any pair of words. In k we have to capture all sorts of relationships that can occur between any two names or words. CAPITALOF, FATHEROF, MOTHEROF, SPOUSEOF, GREENOF, YOUNGOF, OLDOF, EMPLOYEEOF.

        The total number of independent relationships possible between words of a language with finitely many words is necessarily finite, but can definitely be larger than a few thousand.