NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Joint Embeddings of Hierarchical Categories and Entities

Yuezhang Li, Ronghuo Zheng, Tian Tian, Zhiting Hu, Rahul Iyer, Katia P. SycaraarXiv 2016

Introduction

Distributed representations, such as word2vec, have significantly advanced natural language processing by mapping words into a continuous semantic space. However, these models often treat entities as isolated points, neglecting the rich, structured "common sense" found in knowledge bases (KBs) like Wikipedia or WordNet. Specifically, the hierarchical taxonomies that organize knowledge are frequently ignored.

Existing embedding methods typically focus on either entity-entity relations (Knowledge Graph embeddings) or category-category relations (Taxonomy embeddings). This creates a disconnect, making it difficult to measure the relatedness between a specific entity (e.g., "Golden Retriever") and a broad category (e.g., "Canine") within a shared mathematical space. Furthermore, standard word-level models often struggle with multi-word concepts like "hot dog," failing to distinguish them from their constituent parts.

Methodology: Hierarchical Category Embedding

To bridge this gap, researchers from Carnegie Mellon University developed a framework to jointly embed entities and their hierarchical categories. They propose two models based on the Skip-gram architecture:

  1. Category Embedding (CE) Model: This model extends the entity context by incorporating an entity's directly labeled categories to help predict the context during training.
  2. Hierarchical Category Embedding (HCE) Model: The HCE model integrates the entire ancestral lineage of an entity. If an entity belongs to a specific category, it is also treated as belonging to all parent categories. To prevent broad, top-level categories from diluting specific meanings, a weighting scheme is applied: $w_i \propto 1/l(c_c, c_i)$, where $l$ is the distance in the hierarchy. This ensures closer ancestors have a stronger influence on the embedding.
Overview of the framework, showing the transition from knowledge base hierarchies to the CE and HCE models and their applications.

The models are trained using negative sampling and stochastic gradient descent on a massive crawl of Wikipedia, encompassing over 5.3 million entities and nearly 800,000 categories.

Evaluation and Datasets

The models were evaluated on concept categorization and semantic relatedness tasks using several benchmarks:

  • Categorization: The standard Battig benchmark (83 single-word concepts) and a new DOTA (Dataset Of enTity cAtegorization) dataset. DOTA contains 450 entities across 15 categories, including both single-word (DOTA-single) and multi-word entities (DOTA-mult).
  • Relatedness: Standard benchmarks including WordSim353, MEN, and RG.

Key Results and Insights

The HCE model demonstrates significant improvements over traditional word-level models. By treating Wikipedia entities as single units, it naturally handles multi-word phrases, avoiding the semantic confusion common in word-level embeddings.

Quantitative Performance

On the DOTA-all dataset, the HCE model achieved a clustering purity of 89% and a Nearest Neighbor (NN) classification accuracy of 91%, significantly outperforming word2vec (78% and 69%, respectively). In semantic relatedness tasks, HCE achieved state-of-the-art Spearman correlation scores, notably reaching 0.83 on the RG dataset.

Qualitative Analysis

t-SNE visualizations reveal that the HCE model creates distinct, clean clusters for different categories, such as "beverages," "trees," and "algebra," in the 2D projection.

t-SNE visualization of entity and category embeddings, demonstrating clear semantic clustering across various domains.

The use of explicit category vectors also allows for NN classification, which helps resolve the "granularity problem" in unsupervised clustering, where algorithms struggle to define appropriate cluster boundaries for related concepts like "Algebra" and "Geometry."

Limitations and Future Directions

Despite its success, the model faces the "hubness problem," where certain high-dimensional vectors (e.g., "weather") become nearest neighbors to many unrelated items. Additionally, the current mapping process discards ambiguous words to ensure fair comparison; future work could integrate word-sense disambiguation. The authors suggest these joint embeddings could eventually be applied to complex tasks like hierarchical document classification.

Summary updated

BibTeX
@misc{li2016joint,
  author = {Yuezhang Li and Ronghuo Zheng and Tian Tian and Zhiting Hu and Rahul Iyer and Katia P. Sycara},
  title = {{Joint Embeddings of Hierarchical Categories and Entities}},
  year = {2016},
  eprint = {1605.03924},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1605.03924},
}
Figure