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

Knowledge Graph Embedding with Hierarchical Relation Structure

Zhao Zhang, Fuzhen Zhuang, Meng Qu, Fen Lin, Qing He

Abstract

Knowledge Graph Embedding (KGE) models typically map entities and relations into low-dimensional vector spaces to predict missing facts. However, standard approaches often treat relations as flat, independent vectors, ignoring their inherent semantic hierarchies. This paper introduces the Hierarchical Relation Structure (HRS), a framework that models relations across three levels: relation clusters, specific relations, and sub-relations. By incorporating HRS into popular models such as TransE and DistMult, the authors achieve substantial performance gains in link prediction and triple classification across benchmark datasets like FB15k and WN18.

Introduction

Knowledge Graphs (KGs) are foundational for various AI tasks but are frequently incomplete. Knowledge Graph Embedding (KGE) aims to address this by predicting missing links. A significant limitation in existing KGE models is the treatment of relations as isolated vectors. This ignores two critical aspects: semantic similarity between different relations (e.g., "producerOf" and "directorOf") and the polysemy of individual relations (e.g., "partOf" having different meanings in different contexts). The HRS framework addresses these gaps by capturing both coarse-grained clusters and fine-grained sub-relations.

The Hierarchical Relation Structure (HRS)

The authors propose a three-layer architecture to represent relations more comprehensively. This structure is model-agnostic and can be integrated into various KGE frameworks.

The three-layer Hierarchical Relation Structure (HRS) consisting of relation clusters, relations, and sub-relations.

The three layers are defined as follows:

  1. Relation Cluster Layer (Top): Groups semantically similar relations using k-means clustering on base relation embeddings.
  2. Relation Layer (Middle): Represents the standard relations explicitly defined in the KG.
  3. Sub-relation Layer (Bottom): Captures fine-grained meanings by clustering translation vectors ($t - h$) for each specific relation.

Mathematically, a relation's final embedding is the sum of its components: $r = r_c + r' + r_s$. An HRS regularization term is added to the loss function to ensure that relations within a cluster share information while sub-relations remain anchored to their parent relation.

Key Insights

  • Knowledge Sharing: Modeling clusters allows rare relations to benefit from the statistical patterns of more frequent, similar relations.
  • Handling Polysemy: Sub-relations allow the model to distinguish between different semantic uses of the same relation label based on the entities involved.
  • Dataset Adaptability: While the full hierarchy is effective for dense KGs like Freebase, the authors found that for KGs with very few relations (e.g., WN18), the clustering layer may be less beneficial, suggesting a "middle-bottom" approach is more robust in such cases.

Experimental Results

The HRS-enhanced models were evaluated on link prediction and triple classification tasks using standard benchmarks.

Impact of the number of sub-relations ($N_2$) on Hits@10 for FB15k and FB15k-237 datasets.

As shown in the figure above, performance (Hits@10) typically peaks at a specific number of sub-relations ($N_2 \approx 3$), demonstrating the value of fine-grained modeling. Key results include:

  • Link Prediction: DistMult-HRS significantly outperformed vanilla DistMult on FB15k, raising the Mean Reciprocal Rank (MRR) from 0.642 to 0.739.
  • Triple Classification: TransE-HRS showed a remarkable 10.9% improvement in accuracy on the WN11 dataset compared to the base TransE model.

Limitations and Future Work

Despite its success, the HRS framework currently requires manual tuning of hyperparameters, specifically the number of clusters ($N_1$) and sub-relations ($N_2$). Future research could focus on automating the discovery of these hierarchical levels. Additionally, exploring more complex aggregation methods beyond simple vector addition could further enhance the model's expressive power.

Summary updated

BibTeX
@inproceedings{zhang2018knowledge,
  author = {Zhao Zhang and Fuzhen Zhuang and Meng Qu and Fen Lin and Qing He},
  title = {{Knowledge Graph Embedding with Hierarchical Relation Structure}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2018},
  doi = {10.18653/v1/d18-1358},
}
Figure