Learning Term Embeddings for Hypernymy Identification

Zheng Yu, Haixun Wang, Xuemin Lin, Min Wang

Introduction

Hypernymy identification—the task of determining if one word is a broader category of another (e.g., "mammal" is a hypernym of "dog")—is a fundamental component of human cognition and a critical building block for natural language processing tasks like ontology construction, question-answering, and machine reading.

Historically, this task has been approached through two lenses: pattern-based methods and distributional models. Pattern-based methods look for specific linguistic structures (e.g., "NP0 such as NP1") and offer high precision but suffer from low recall due to data sparsity. Distributional models, based on the "Distributional Inclusion Hypothesis," assume a hypernym appears in all contexts its hyponym does. However, this often fails in practice because specific instances (like "Obama") appear in very different contexts than their general categories (like "American"). This paper introduces a novel approach that learns distributed representations specifically designed to encode hierarchical properties.

The Dynamic Distance-Margin Model

The core innovation of this research is the Dynamic Distance-Margin Model. Unlike standard word embedding techniques like word2vec that assign a single vector to each word, this model assigns two distinct embeddings to every term $x$:

  • $O(x)$: The embedding for $x$ when it functions as a hyponym (the specific term).
  • $E(x)$: The embedding for $x$ when it functions as a hypernym (the general category).
The architecture of the Dynamic Distance-Margin neural network, showing the input of dual embeddings and the calculation of distance-based features.

Learning Objective and Architecture

The model is trained to minimize the distance between $O(u)$ and $E(v)$ if $u$ is a hyponym of $v$. It employs a pairwise training strategy using approximately 5.8 million triplets from Probase, a massive web-extracted dataset. The "Dynamic" aspect refers to how the model handles relationship frequency; it uses the frequency of a relationship in the web corpus to weight training and adjust the "margin"—the required distance gap between positive and negative examples.

As shown in the architecture diagram, the network processes these embeddings through a difference layer and a summarize layer to produce a final output that reflects the hierarchical relationship. Once learned, these specialized embeddings are fed into a Support Vector Machine (SVM) classifier. The features for the SVM include the hyponym embedding, the hypernym embedding, and the 1-norm distance between them.

Key Insights

  • Asymmetry is Essential: Hypernymy is inherently directional (a dog is an animal, but an animal is not necessarily a dog). By using dual vectors, the model captures this asymmetry.
  • Similarity vs. Hierarchy: Standard embeddings excel at finding "related" words (e.g., "cat" and "dog") but struggle to distinguish coordinates (siblings) from hierarchical containment. This model forces embeddings to cluster based on hierarchy rather than just general semantic similarity.
  • The Power of Distance: The researchers found that the 1-norm distance between $O(u)$ and $E(v)$ is a powerful signal. Removing this feature from the classifier resulted in a significant drop in accuracy across all benchmarks.

Experimental Results

The proposed SVM+Emb model was evaluated against standard benchmarks, including BLESS (which tests various semantic relations) and ENTAILMENT (focused specifically on the entailment/hypernymy relationship).

Comparison of the proposed SVM+Emb model against baselines across BLESS and ENTAILMENT datasets.

As shown in the results table, the model significantly outperformed previous state-of-the-art methods (such as Diff+TypeDM) and word2vec-based classifiers. On the BLESS hypernymy-coordinate task, it achieved 92.3% accuracy. On the ENTAILMENT dataset, it reached 87.5% accuracy.

Furthermore, the model demonstrated superior generalization. In cross-dataset experiments (training on BLESS and testing on ENTAILMENT), the model maintained an accuracy of 83.7%, while the previous state-of-the-art dropped to 72.8%. This suggests that the learned embeddings capture global indicators of hypernymy that are robust across different vocabularies and domains.

Conclusion

By representing words with role-specific embeddings and utilizing a dynamic distance-margin training objective, this approach successfully bridges the gap between general semantic similarity and hierarchical structure. While a supervised classifier is still required to handle the lack of a universal distance threshold, these specialized embeddings provide a powerful foundation for automated taxonomy construction and complex machine reasoning tasks.

Summary updated

BibTeX
@inproceedings{yu2015learning,
  author = {Zheng Yu and Haixun Wang and Xuemin Lin and Min Wang},
  title = {{Learning Term Embeddings for Hypernymy Identification}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2015},
}
Figure