Entity Hierarchy Embedding

Zhiting Hu, Poyao Huang, Yuntian Deng, Yingkai Gao, Eric P. Xing

Abstract

Distributed representations (embeddings) have become a cornerstone of modern Natural Language Processing. However, standard text-based embeddings often ignore the rich, structured taxonomies available in Knowledge Bases (KBs) like Wikipedia or Freebase. We propose the Entity Hierarchy Embedding framework, a principled approach to baking hierarchical "is-a" knowledge directly into entity embeddings. By associating each category in a taxonomy with a learnable distance metric, our model captures structured semantics more effectively than text-only methods. Experimental results show a 10% F1-score improvement in entity linking tasks and superior performance in entity search.

Introduction

While models like Word2Vec capture contextual similarities, they remain "knowledge-blind" to explicit hierarchical relationships. For instance, while a model might recognize that "iPhone" and "Galaxy S21" appear in similar contexts, it does not inherently leverage the fact that both belong to the "Mobile Phones" category within a broader "Technology" hierarchy. Previous attempts to integrate such hierarchies often relied on rigid hand-crafted features. This work introduces a unified, optimization-based framework to integrate complex, multi-layered hierarchies into entity embeddings.

Methodology

The Entity Hierarchy Embedding framework extends the skip-gram architecture by incorporating structured KB data.

Context Extraction and Distance Metric Learning

Instead of sliding windows over raw text, the model treats an entity's entire Wikipedia article as its context, extracting all linked entities as context pairs. The core innovation lies in the similarity measure: rather than a simple dot product, the model assigns a unique distance metric (a matrix $M_h$) to every category node in the hierarchy.

Overview of the Entity Hierarchy Embedding framework, showing the mapping from text context to hierarchical distance metrics.

Metric Aggregation and DAG Processing

To calculate the distance between two entities, the model identifies category nodes on the paths between them and aggregates their respective metrics. This ensures that entities sharing specific, low-level categories are considered more related than those sharing only broad, top-level categories. Since real-world hierarchies are Directed Acyclic Graphs (DAGs), the authors developed an efficient algorithm to identify "turning nodes" (common ancestors), allowing the model to scale to millions of nodes without exhaustive path enumeration.

Experimental Results

The model was trained on a Wikipedia snapshot containing 4.1 million entities and 0.8 million categories across 12 layers.

Entity Linking

On the IITB dataset, the proposed model achieved an F1-score of 0.90. This represents a substantial improvement over the previous state-of-the-art (0.80) and a baseline version of the model that excluded hierarchical information (0.81).

Performance comparison on entity linking tasks, highlighting the significant F1-score improvement of the proposed method.

Entity Search and Qualitative Analysis

In the INEX 2009 entity ranking track, the model reached a Precision@10 of 0.57, outperforming existing generative and heuristic models. Qualitative analysis via t-SNE visualization confirmed that the learned metrics successfully clustered related sub-categories, such as grouping various Windows versions and Xbox games under the "Microsoft" umbrella.

Conclusion

The Entity Hierarchy Embedding framework demonstrates that structured taxonomic knowledge can significantly enhance the semantic depth of entity representations. By moving beyond simple link prediction to focus on semantic relatedness, this approach provides a robust foundation for downstream tasks like search and disambiguation. Future work will explore non-diagonal distance matrices and the integration of non-hierarchical relational data.

Summary updated

BibTeX
@inproceedings{hu2015entity,
  author = {Zhiting Hu and Poyao Huang and Yuntian Deng and Yingkai Gao and Eric P. Xing},
  title = {{Entity Hierarchy Embedding}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2015},
  doi = {10.3115/v1/p15-1125},
}
Figure