Abstract
Measuring relational similarity—the degree to which the relationship between one pair of words (e.g., lion:cat) resembles that of another (e.g., ostrich:bird)—is a fundamental challenge in natural language processing. This paper proposes a supervised learning approach that represents word pairs using thousands of automatically extracted lexical patterns from the web. By training a Support Vector Machine (SVM) on these high-dimensional vectors, the method effectively solves SAT-style analogy questions. Experimental results demonstrate that asymmetric feature functions and non-linear kernels significantly enhance performance, achieving results comparable to human averages and outperforming several traditional methods.
Introduction
While traditional NLP often focuses on attributional similarity (how similar two words are, like "car" and "automobile"), relational similarity focuses on the links between words. This is critical for solving analogies, classifying noun-modifier relations (e.g., "flu virus"), and word sense disambiguation.
The authors identify three core challenges in measuring relational similarity:
- Implicit Relations: The relationship isn't explicitly stated; it must be inferred from context.
- Multiplicity: A single word pair can have multiple valid relations (e.g., ostrich:bird is both "X is a large Y" and "X is a flightless Y").
- Weighting: Not all relations are equally important for determining similarity.
Methodology
The proposed method follows a supervised classification pipeline consisting of pattern extraction, feature engineering, and supervised learning.
Pattern Extraction
Using a subsequence mining algorithm (PrefixSpan), the authors extract thousands of lexical patterns from web search snippets (e.g., "X is a large Y", "X such as Y"). The lexical patterns were extracted using the Yahoo BOSS API, resulting in a corpus of snippets containing over 412 million tokens. Unlike previous methods that relied on hand-crafted patterns or structured knowledge bases like WordNet, this approach uses over 48,000 automatically extracted patterns. This allows the model to capture nuances and named entities that aren't present in formal dictionaries.
Feature Engineering and Learning
To compare two word pairs, $(A, B)$ and $(C, D)$, the authors experiment with 11 different feature functions. These include symmetric functions (like the product or absolute difference of pattern frequencies) and asymmetric functions (like Kullback-Leibler divergence). The asymmetric functions are particularly novel here, as they account for the fact that in an analogy, the "stem" pair defines the relationship that the "candidate" pair must match.
They train a binary SVM to distinguish between analogous and non-analogous pairs. To get a continuous similarity score rather than a hard label, they use Platt scaling to convert the SVM’s distance-from-hyperplane into a calibrated posterior probability.
Experimental Results
The primary benchmark used is a dataset of 374 SAT multiple-choice word-analogy questions. Each question consists of a target word pair and five candidate pairs. The authors used 324 questions for training and 50 for testing in their specific kernel experiments, while performing 5-fold cross-validation for the final comparison against other models.
Performance and Kernel Complexity
The researchers found that polynomial (quadratic and cubic) and RBF kernels generally performed better than linear ones. This suggests that lexical patterns are not independent; the combination of different patterns is what truly defines a semantic relationship.
As shown in the table above, the combination of a multiplicative feature function ($f_{AB} \times f_{CD}$) and an RBF kernel yielded the highest individual test score of 58%, significantly higher than the random guessing baseline of 20% and the average human score of 57%.
Comparative Analysis
The proposed method achieved an overall SAT score of 46.9, outperforming the WordNet-based approach (42.8) and a previously proposed "Combined" modular approach (45). While it outperformed most individual modules, it still trailed behind Latent Relational Analysis (LRA), which scored 56.1 but is significantly more computationally expensive and requires more search engine queries.
Conclusion and Future Work
The study demonstrates that supervised classification using web-mined lexical patterns is a robust approach for measuring relational similarity. Key insights include the value of asymmetric features like KL divergence and the necessity of non-linear kernels to capture complex semantic interactions.
Future work will focus on moving from a binary classification to a RankSVM framework to better fit the multiple-choice structure of analogy tests. Additionally, the authors plan to address pattern sparsity and further optimize the model for named entity recognition and classification.
Summary updated