Abstract
This paper introduces a framework for jointly embedding knowledge base entities and their hierarchical categories into a shared semantic space. By leveraging the taxonomic structure of large-scale knowledge bases like Wikipedia, the authors' Hierarchical Category Embedding (HCE) model produces vectors that capture fine-grained semantic relatedness, significantly outperforming traditional word and entity embeddings on concept categorization and dataless classification tasks.
Introduction
Distributed representations (embeddings) of words and entities have become a cornerstone of modern Natural Language Processing. However, most existing methods treat entities as isolated points or only consider their immediate textual context, largely ignoring the rich, structured "is-a" hierarchies found in Knowledge Bases (KBs) like Wikipedia or WordNet.
Two primary gaps exist in current embedding techniques:
- Lack of Category Vectors: Standard models like Word2Vec or TransE do not naturally produce a single, meaningful vector for a category (e.g., "Natural Sciences") that resides in the same semantic space as its member entities (e.g., "Physics").
- Ignoring Hierarchy: Existing models rarely account for the taxonomic lineage of an entity—the fact that a "Golden Retriever" is not just a "Dog," but also a "Canine," a "Mammal," and an "Animal."
The authors aim to bridge these gaps by creating a joint embedding space where entities and categories are mathematically comparable, strictly respecting the granularity of the KB hierarchy.
Methodology
The authors propose a framework that extends the Skip-gram architecture to incorporate categorical information. The process moves from raw KB data to specialized models and finally to downstream applications.
Two incremental models are introduced:
- Category Embedding (CE) Model: This model assumes that an entity's categories are strong predictors of its context. During training on an entity $e_t$, the model maximizes the probability of observing context entities $e_c$ given both the target entity vector and its direct category vectors.
- Hierarchical Category Embedding (HCE) Model: The flagship contribution of the paper, HCE recognizes that an entity is related to its entire ancestral lineage. It incorporates all ancestor categories but applies a weighting scheme: the weight of a category decreases as its distance from the target entity increases. This ensures that "Golden Retriever" remains semantically closer to "Sporting Dogs" than to the broader "Organisms" category.
Training is performed using standard negative sampling and stochastic gradient descent (SGD), treating categories as specialized "entities" within the objective function.
Experimental Setup
The models were trained on a December 2015 Wikipedia dump, resulting in a Directed Acyclic Graph (DAG) containing approximately 5.3 million entities and 793,000 categories with a maximum depth of 18. Evaluation was conducted across two main tasks:
- Concept Categorization: Tested on the standard Battig set and a new DOTA (Dataset Of enTity cAtegorization) introduced by the authors. DOTA contains 450 entities across 15 categories, including multi-word entities (e.g., "hot dog") to test taxonomic granularity.
- Dataless Classification: Evaluated on the 20Newsgroups and RCV1 datasets, where documents are classified into categories without explicit training on those specific labels.
Results and Analysis
The HCE model demonstrated significant improvements over baselines. On the DOTA dataset, HCE achieved a purity of 92% using Nearest Neighbor (NN) classification, compared to just 72% for Word2Vec and 71% for TransE. This suggests that using category vectors directly for classification outperforms traditional clustering methods, which often struggle with "granularity disparity."
In dataless hierarchical classification, HCE provided a stable performance boost over standard Explicit Semantic Analysis (ESA). By using HCE to "densify" semantic vectors, the model effectively used the hierarchy as a regularizer, ensuring that sub-categories (like "Jazz") remained semantically close to parent categories ("Music") even when co-occurrence in text was infrequent.
Conclusion
By jointly embedding entities and their hierarchical lineages, the HCE model provides a more nuanced semantic space than traditional word-based methods. While the model's performance is dependent on the quality of the KB hierarchy—requiring careful pruning of Wikipedia's administrative categories—it offers a powerful tool for tasks requiring fine-grained semantic understanding. Future work may involve applying these joint embeddings to link prediction in knowledge graphs or more complex document relationship modeling.
Summary updated