Abstract
Traditional semantic similarity measures often rely on static taxonomies or simple co-occurrence statistics, which fail to capture the nuanced relationships between words or adapt to evolving language. We present a relational model that extracts lexical patterns from the web and clusters them to represent semantic relations. By representing word pairs as vectors over these clusters and applying Mahalanobis distance, our approach achieves state-of-the-art performance on the Miller-Charles and WordSimilarity-353 datasets, demonstrating superior handling of polysemy and named entities.
Introduction
Determining the similarity between words like "horse" and "cow" is a fundamental task in natural language processing. Existing approaches generally fall into two categories: taxonomy-based methods, which utilize curated databases like WordNet, and co-occurrence-based methods, which measure how often words appear together (e.g., Normalized Google Distance). However, taxonomies are often incomplete or outdated, while co-occurrence methods lack semantic depth—they identify that words are related but not how they are related. This research addresses these gaps by leveraging the web as a live corpus to identify specific semantic relations (e.g., hypernymy, meronymy) through lexical patterns.
Methodology
The proposed Relational Model of Similarity operates through three primary stages:
1. Lexical Pattern Extraction
For any given word pair (A, B), the system generates wildcard queries (e.g., "A * * * * * B") for a search engine. From the retrieved snippets, the system extracts subsequences that connect the two words. For example, for the pair "ostrich" and "bird," patterns such as "X is a Y" or "X, a large flightless Y" are identified.
2. Sequential Pattern Clustering
To manage the high dimensionality and redundancy of millions of extracted patterns, a clustering algorithm is applied based on the distributional hypothesis. Patterns that consistently appear with the same sets of word pairs are grouped into clusters representing generalized semantic relations. This process effectively mitigates data sparsity.
The choice of clustering threshold is critical for the model's performance. As shown in Figure 1, increasing the threshold leads to higher cluster sparsity. Figure 2 illustrates the effect of this threshold on average similarity, suggesting an optimal range for capturing meaningful semantic groupings.
3. Mahalanobis Distance Calculation
Word pairs are represented as vectors based on their association with these pattern clusters. Similarity is then calculated using Mahalanobis distance. Unlike Euclidean distance, Mahalanobis distance accounts for the inter-dependence between different semantic relations, recognizing that certain patterns (e.g., "X is a Y" and "X is a type of Y") are naturally correlated.
Evaluation and Results
The model was evaluated against two gold-standard benchmarks: the Miller-Charles (MC) dataset (30 word pairs) and the WordSimilarity-353 dataset (353 word pairs). The system was tuned using 2,000 synonymous pairs from WordNet to establish a prototypical similarity vector.
Key Results
On the Miller-Charles dataset, the proposed method achieved a Pearson correlation coefficient of 0.867, significantly outperforming Normalized Google Distance (0.205) and competing with complex SVM-based models (0.834). On the larger WordSimilarity-353 dataset, it reached a Spearman correlation of 0.504, surpassing various WordNet and Wikipedia-based models. Notably, the model successfully handled named entities like (Maradona, football), which are typically absent from traditional taxonomies.
Discussion and Conclusion
By focusing on relations rather than shared features, this model captures similarity between words that serve similar roles even if they lack shared attributes. The use of web snippets allows for a "living" model that handles polysemy and new terminology. However, the $O(n^2)$ computational complexity for pairwise comparisons remains a challenge for scaling to very large datasets. Future work will focus on improving the efficiency of these relational comparisons for real-time applications.
Summary updated