Word Analogy
When word vectors first started working, one demonstration made the point better than any accuracy table could: take the vector for king, subtract man, add woman, and the closest vector in the space is queen. The word analogy task turns that party trick into a measurement.
How the task is scored
Each item is a quadruple of the form a is to b as c is to d — Paris is to France as Tokyo is to Japan. The system receives the first three and must produce the fourth, by computing b minus a plus c and taking the nearest neighbour under cosine similarity, with the three given words excluded from the search. Accuracy is the share answered exactly right. The standard set is the Google analogy dataset shipped with Word2Vec: around 19,500 questions in two halves —
- semantic relations: capital and country, currency, family roles;
- syntactic relations: plurals, comparatives, verb tense, adjective to adverb.
What it is good for
It is a cheap intrinsic evaluation — no downstream model needed to compare two embedding runs, so it is used to tune dimensionality, window size and corpus choice, and it is how GloVe and FastText were first benchmarked against Word2Vec. It also reveals something real about the geometry: a relation corresponds to an approximately constant offset across many pairs. The split between the two halves is informative in itself, since character-n-gram models handle morphology well and world knowledge less well.
Why it is not the last word
The arithmetic is flattered by excluding the question words, and much of the score comes from plain neighbourhood similarity rather than the offset. Results correlate only loosely with performance on real tasks, and the datasets carry gender and cultural bias that the metric then rewards a model for reproducing. Read it as a diagnostic, not a ranking.
A word analogy test probes an embedding space with quadruples of the form a is to b as c is to d, such as Paris to France as Tokyo to Japan. The fourth word is predicted by vector arithmetic and nearest-neighbour search, and accuracy over a fixed set — the Google dataset's semantic and syntactic halves — gives a cheap intrinsic score for comparing embeddings. It rewards consistent geometric offsets but correlates only loosely with downstream task performance.
Fill in the blank: Paris is to France as Tokyo is to ____. You answered Japan without pausing, because you recognise the relationship "capital city of" and can carry it from one pair of words to another.
The lists of numbers software uses to stand in for words can be tested the same way. Remarkably, simple arithmetic on those numbers often lands on the right answer: take "king", subtract "man", add "woman", and you end up next to "queen". A word analogy test scores how often this works across thousands of such puzzles. It is a quick way of judging whether a set of word representations has picked up genuine relationships, or merely which words look alike.