Exploring Vector Spaces for Semantic Relations

Kata Gábor, Haïfa Zargayouna, Isabelle Tellier, Davide Buscaldi, Thierry Charnois

Abstract

This paper investigates the capacity of pre-trained word embeddings to identify generic semantic relations, such as Cause-Effect or Product-Producer, in a completely unsupervised manner. While the "vector offset" method (e.g., king - man + woman) is widely celebrated for specific analogies, we demonstrate its limitations in capturing broad relation types. We propose a novel "IN-OUT" similarity measure that leverages the internal weights of the word2vec model to significantly improve relation clustering performance.

Introduction

Since the emergence of word2vec, the "analogy" task has served as the gold standard for demonstrating that embeddings capture semantic meaning. However, recent research suggests that this success may be a "neighborhood trick"—working well for specific analogies where words are already proximal in vector space, but failing to represent the underlying relation itself. This study addresses a more challenging problem: unsupervised relation discovery. The goal is to group pairs of words by their relationship (e.g., grouping "suicide-death" and "accident-injury" under Cause-Effect) without the aid of labeled examples.

Methods

The study compares several techniques for representing the relationship between two words ($a_1$ and $a_2$) as a single vector or similarity score:

  • Standard Baselines: Simple arithmetic operations including concatenation, addition, or multiplication of the two word vectors.
  • Vector Offset (Difference): The standard approach for analogies, calculated as $a_2 - a_1$.
  • The "IN-OUT" Approach: The paper's primary contribution. During word2vec CBOW training, the model learns two sets of weights: IN vectors (word as context) and OUT vectors (word as target). While OUT vectors are typically discarded, the authors propose a measure combining the similarity of $a_1$'s IN vector with $b_1$'s IN vector, and $a_1$'s IN vector with $b_2$'s OUT vector. This captures "second-order" similarities, reflecting whether word pairs share similar context-target patterns.

Following vector representation, Hierarchical Agglomerative Clustering is employed to group word pairs, with results evaluated against human-defined relation categories.

Experimental Setup

The word2vec model was trained on the ukWaC corpus, a large-scale crawl of the .uk domain. Evaluation was conducted using the SemEval 2010 Task 8 dataset, comprising 6,637 word pairs across 9 generic semantic relations.

Generic semantic relations and examples from the SemEval 2010 Task 8 dataset.

Key Insights

The Failure of the Offset Method

A striking finding is that the vector difference method—the standard for analogies—performed the worst in capturing generic semantic relations. The offsets for broad relations like Cause-Effect are not sufficiently constant across diverse word pairs to facilitate effective clustering.

The Value of "Hidden" Vectors

By utilizing the "OUT" vectors, the authors successfully captured the directional, co-occurrence nature of relations. This suggests that the internal state of neural word models contains significantly more relational information than the final embeddings alone.

Semantic Constraints of Arguments

A simple baseline focusing only on the similarity of the first words in pairs ($a_1$ and $b_1$) proved surprisingly robust. This indicates that many relations are heavily constrained by the "semantic type" of their arguments (e.g., the first argument in a Member-Collection relation is typically a specific noun type).

Key Results

Performance was measured by cluster "purity" and F-score. In a setup targeting the discovery of the underlying classes, the IN-OUT additive method achieved an F-score of 0.2393, significantly outperforming the Vector Offset (diff) method, which reached only 0.1476.

As the number of clusters increased, the IN-OUT method remained the most stable and effective at identifying the underlying data structure compared to standard arithmetic combinations. The method proved capable of identifying 8 out of the 9 standard classes, demonstrating its utility for broad semantic categories.

Limitations and Future Work

The study utilized static word embeddings, whereas the SemEval dataset is annotated based on specific sentential contexts. Static vectors cannot capture how a word pair's relation might shift depending on the sentence. Furthermore, the clustering algorithm used (UPGMA) is susceptible to "chaining," where unrelated items are erroneously merged into a cluster. Future research may explore hybrid models that combine distributional vector methods with pattern-based or dependency-based approaches to better handle contextual relations.

Summary updated

BibTeX
@inproceedings{gabor2017exploring,
  author = {Kata Gábor and Haïfa Zargayouna and Isabelle Tellier and Davide Buscaldi and Thierry Charnois},
  title = {{Exploring Vector Spaces for Semantic Relations}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2017},
  doi = {10.18653/v1/d17-1193},
}
Figure