InterHT: Knowledge Graph Embeddings by Interaction between Head and Tail Entities

Baoxin Wang, Qingye Meng, Ziyue Wang, Dayong Wu, Wanxiang Che, Shijin Wang, Zhigang Chen, Cong LiuarXiv 2022

Introduction

Knowledge Graph Embedding (KGE) models are fundamental for link prediction tasks, where the goal is to complete triples of the form (head, relation, tail). Traditional distance-based models, such as TransE and RotatE, represent entities as static, independent vectors. However, this independence limits the model's capacity to capture the contextual nuances of an entity's role, which often depends on the specific entity it interacts with. Just as words in natural language change meaning based on context, an entity's representation should ideally reflect the specific relationship it is participating in.

The InterHT Interaction Model

To address the limitations of static embeddings, the authors propose InterHT. This model forces head and tail entities to interact before computing their distance. In InterHT, the head embedding is modified by element-wise multiplication with an auxiliary tail vector, and vice versa.

The scoring function for InterHT is defined as: $$||h \circ (t_a + e) - t \circ (h_a + e) + r||$$ where $t_a$ and $h_a$ are auxiliary entity vectors and $e$ is a unit vector. An extended version, InterHT+, further integrates the relation embedding into this interaction, allowing the relation type to modulate the contextualization between entities.

Comparison of scoring mechanisms for TransE, PairRE, and the proposed InterHT model.

DigPiece: Expressive Entity Representations

Beyond the interaction mechanism, the paper introduces DigPiece (Digraph Piece) for generating base entity embeddings. DigPiece improves upon anchor-based methods like NodePiece by constructing directed, coarse-to-fine subgraphs for target nodes. By capturing specific in-direction and out-direction neighbors and processing them through a Transformer block, DigPiece produces highly expressive, mean-pooled representations. This approach not only enhances performance but also helps mitigate issues with Out-Of-Vocabulary (OOV) entities by leveraging a fixed vocabulary of anchor nodes.

Experimental Results

The proposed methods were evaluated on the ogbl-wikikg2 dataset, a massive benchmark from Wikidata containing over 2.5 million nodes and 17 million edges. Performance is measured using Mean Reciprocal Rank (MRR).

The full pipeline, combining InterHT+ with DigPiece, achieved a state-of-the-art Test MRR of 0.7293, representing a massive leap over standard baseline models like TransE (0.4256) and RotatE (0.4332).

Performance comparison of various KGE models on the ogbl-wikikg2 dataset, showing InterHT + DigPiece achieving state-of-the-art results.

Key Insights

  • Contextualization is Key: Dynamic representations where entities "know" their counterparts lead to much higher expressivity than static vectors.
  • Directional Subgraphs Matter: Incorporating fine-grained directional neighborhood data via DigPiece yields superior embeddings compared to standard breadth-first search anchor selection.
  • Scalability: The anchor-based approach allows the model to handle massive graphs and generalize to unseen entities effectively, though the highest-performing Transformer-based configurations come with increased parameter costs (156.3M parameters).

Conclusion

InterHT and DigPiece represent a significant step forward in KGE research by moving away from independent entity representations toward contextualized, interaction-based embeddings. The substantial gains in MRR on large-scale benchmarks demonstrate the value of modeling complex interactions between entities in knowledge graph completion tasks.

Summary updated

BibTeX
@misc{wang2022interht,
  author = {Baoxin Wang and Qingye Meng and Ziyue Wang and Dayong Wu and Wanxiang Che and Shijin Wang and Zhigang Chen and Cong Liu},
  title = {{InterHT: Knowledge Graph Embeddings by Interaction between Head and Tail Entities}},
  year = {2022},
  eprint = {2202.04897},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.04897},
}
Figure