Abstract
Learning representations for semantic relations is important for various tasks such as analogy detection, relational search, and relation classification. Although there have been several proposals for learning representations for individual words, learning word representations that explicitly capture the semantic relations between words remains under developed. We propose an unsupervised method for learning vector representations for words such that the learnt representations are sensitive to the semantic relations that exist between two words. First, we extract lexical patterns from the co-occurrence contexts of two words in a corpus to represent the semantic relations that exist between those two words. Second, we represent a lexical pattern as the weighted sum of the representations of the words that co-occur with that lexical pattern. Third, we train a binary classifier to detect relationally similar vs. non-similar lexical pattern pairs. The proposed method is unsupervised in the sense that the lexical pattern pairs we use as train data are automatically sampled from a corpus, without requiring any manual intervention. Our proposed method statistically significantly outperforms the current state-of-the-art word representations on three benchmark datasets for proportional analogy detection, demonstrating its ability to accurately capture the semantic relations among words.
Introduction
Most popular word embedding techniques, such as Word2Vec or GloVe, are built on the distributional hypothesis: words that appear in similar contexts have similar meanings. While these models implicitly capture some relational structure—famously demonstrated by the "king - man + woman = queen" vector arithmetic—they primarily focus on word-level co-occurrence. This approach often ignores the rich relational information hidden in the "midfix" between words. For example, the sentence "ostrich is a large bird" provides more than just co-occurrence; the pattern "X is a large Y" explicitly defines a taxonomic relationship. The challenge lies in integrating these diverse lexical patterns directly into the d-dimensional vectors used to represent words.
Methodology
The proposed unsupervised pipeline consists of three primary stages: pattern extraction, relational representation, and a binary classification task.
- Pattern Extraction: Lexical patterns (unigrams and bigrams) are extracted from the co-occurrence contexts of word pairs within a massive corpus.
- Relational Representation: Building on the observation that vector differences ($x - y$) represent relations, a lexical pattern $p$ is represented as the weighted average of the differences of all word pairs that co-occur with that pattern. This alignment places patterns and words in the same embedding space.
- Binary Classification Task: A model is trained to predict whether two lexical patterns are "relationally similar." Positive instances are pairs of patterns that frequently co-occur with the same sets of word pairs, while negative instances are randomly sampled pairs with low similarity.
The optimization process uses Stochastic Gradient Descent (SGD) to update the underlying word representations. As the model learns to classify patterns, word vectors are adjusted so that the differences between them accurately reflect the semantic relations described by the patterns.
Experimental Setup
The model was trained on the ukWaC corpus, a 2-billion-word crawl of the .uk domain. Evaluation was conducted using three gold-standard analogy benchmarks:
- Google Dataset: Comprising 10,675 syntactic and 8,869 semantic analogy questions.
- SemEval Analogy Dataset: 79 questions focused on relational similarity.
- SAT Dataset: 374 questions from the Scholastic Aptitude Test, representing a high bar for relational reasoning.
Results
The proposed method, referred to as Prop, consistently outperformed state-of-the-art models like GloVe and Word2Vec (CBOW/Skip-gram) across all datasets.
Key performance highlights include:
- SAT Dataset: Achieved 45.99% accuracy, significantly higher than GloVe (44.65%) and Skip-gram (35.29%).
- Google Dataset: Reached an overall accuracy of 86.98%, outperforming GloVe’s 85.72%.
- Efficiency: The model converges quickly, typically in fewer than 5 iterations, and can be trained on a 2-billion-word corpus in less than an hour due to optimization techniques like delayed updates.
Discussion and Future Work
The paper highlights "Relational Duality," where a relation is defined either by the pairs it connects (extensionally) or the patterns that describe it (intensionally). By linking these, the model bridges raw text and semantic structure. Furthermore, representing patterns as functions of word vectors helps solve data sparsity issues for rare patterns.
However, limitations remain. The current framework is designed for binary relations between two entities and does not yet account for n-ary relations. Additionally, some relations are extrinsic or implicit and may not be fully captured by lexical patterns alone. Future research will explore more complex semantic structures and the application of these relation-aware embeddings to downstream tasks like machine translation and relational search.
Summary updated