Learning Analogies and Semantic Relations

Peter D. Turney, Michael L. LittmanarXiv 2003

This landmark 2003 study by Peter Turney and Michael Littman represents a significant shift in Natural Language Processing (NLP). It moved the field beyond simple word similarity toward understanding the "connective tissue" of language: semantic relations.

The Challenge of Relational Similarity

While NLP had made strides in measuring the similarity of individual concepts (synonyms), a major gap remained in measuring the similarity of relationships between concepts. A human easily recognizes that "mason is to stone" as "carpenter is to wood." However, for a computer, these words belong to entirely different categories.

Relational similarity is often independent of the words themselves. For instance, "traffic:street" and "water:riverbed" share a "flow" relationship, even though "traffic" is not like "water" and a "street" is not like a "riverbed." Previous attempts to solve this relied on expensive, manually constructed knowledge bases. Turney and Littman proposed an unsupervised, data-driven approach to capture these nuances from raw text.

An example of an SAT-style verbal analogy question used to test relational similarity.

The Vector Space Model for Relations

The core innovation is the Relation Vector. Instead of creating a vector for a single word, the authors create a vector for a pair of words $(X, Y)$.

  1. Joining Terms: They defined 64 "joining terms" (e.g., "of", "for", "to", "in", "is a").
  2. Query Generation: For any pair $(X, Y)$, they generated 128 phrases (e.g., "X of Y" and "Y of X").
  3. Web-Scale Counting: Using the AltaVista search engine, they counted "hits" for these 128 phrases across 350 million web pages.
  4. Vector Construction: Hit counts were log-transformed ($r = \log(\text{hits} + 1)$) to create a 128-dimensional vector representing the pair's relationship.
  5. Similarity Metric: They used cosine similarity to compare vectors. To solve an SAT analogy, they compared the vector of the "stem" pair to the vectors of five choice pairs, selecting the one with the highest cosine.

Key Insights: Metaphor as Analogy

One of the paper's most profound insights is that everyday metaphors are essentially implicit analogies. For example, saying "He shot down my argument" implies an analogy: aircraft:shoot_down :: argument:criticize. This suggests that solving analogies is a prerequisite for computers to understand natural, metaphorical speech.

A table mapping metaphorical sentences to their underlying SAT-style verbal analogies.

The authors also highlighted that the web acts as a proxy for common sense. If two words share a specific relationship, they will frequently appear together in specific patterns on the web. The sheer scale of the internet allows these subtle semantic signals to emerge from the noise.

Performance and Results

The researchers evaluated their approach using two primary datasets:

  • SAT Analogies: 374 college-level verbal analogy questions sourced from official ETS materials.
  • Noun-Modifier Pairs: 600 labeled pairs categorized by semantic relationship (e.g., instrument, cause, topic).

The VSM algorithm correctly answered 47.1% of the SAT questions. While below the average college-bound senior (~57%), it significantly outperformed random guessing (20%) and surpassed an ensemble of 12 other specialized modules from previous studies. In noun-modifier classification, the algorithm achieved an F-score of 26.5% on a difficult 30-class problem, where random chance was only 3.3%.

Conclusion

Turney and Littman demonstrated that the Vector Space Model—traditionally used for document retrieval—could be adapted to understand complex linguistic relationships. While limited by the speed of search engine queries at the time, this work laid the foundation for modern distributional semantics and the relational reasoning capabilities of today's large language models.

Summary updated

BibTeX
@misc{turney2003learning,
  author = {Peter D. Turney and Michael L. Littman},
  title = {{Learning Analogies and Semantic Relations}},
  year = {2003},
  eprint = {cs/0307055},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/cs/0307055},
}
Figure