Temporal Knowledge Graph Completion with Time-sensitive Relations in Hypercomplex Space

Li Cai, Xin Mao, Zhihong Wang, Shangqing Zhao, Yuhao Zhou, Changxu Wu, Man LanarXiv 2024 · DOI

Abstract

Temporal Knowledge Graphs (TKGs) extend traditional knowledge graphs by incorporating time-stamped facts, yet they frequently suffer from incompleteness. This paper introduces TQuatE, a novel framework for Temporal Knowledge Graph Completion (TKGC) that operates in hypercomplex (quaternion) space. Unlike previous approaches that primarily focus on entity evolution, TQuatE emphasizes time-sensitive relations through a combination of time-aware rotations and periodic sine-based translations. Experimental results on ICEWS and GDELT datasets demonstrate that TQuatE achieves state-of-the-art performance, particularly on the highly dynamic GDELT benchmark.

Introduction

Knowledge graphs (KGs) are fundamental to modern AI applications, but static representations often fail to capture the temporal dynamics of the real world. A fact such as a diplomatic visit is not a permanent state but a quadruple including a specific timestamp. Temporal Knowledge Graphs (TKGs) address this by modeling facts as $(s, r, o, t)$. However, as these graphs expand, predicting missing links—Temporal Knowledge Graph Completion (TKGC)—becomes a critical challenge.

An example of a Temporal Knowledge Graph (TKG) illustrating time-stamped relations between political entities.

The Challenge of Temporal Dynamics

Traditional KGC methods treat facts as static snapshots. In contrast, TKGC must account for how relationships evolve over time (evolutionary patterns) and recur (periodic patterns). Existing models in real or complex vector spaces often lack the necessary degrees of freedom to represent these multi-dimensional interactions. Furthermore, many models overlook the inherent time-sensitivity of the relations themselves, focusing instead on entity changes.

Methodology: TQuatE

The proposed TQuatE model leverages the mathematical properties of quaternions ($a + bi + cj + dk$) to represent entities and relations in a 4D hypercomplex space. This approach offers several key innovations:

  1. Time-Aware Relation Rotation: TQuatE models a relation at a specific time as a rotation of a base relation embedding using the Hamilton product. This allows for complex interactions between temporal features and relation characteristics.
  2. Periodic Time Translation: To capture cyclical human events (e.g., annual summits), a sine-function-based translation is introduced, shifting the relation embedding according to periodic rhythms.
  3. Cosine Similarity Scoring: The model employs the inner product of quaternions to measure similarity between the transformed head entity and the tail entity.
  4. Temporal Regularization: A periodic temporal regularizer ensures smooth transitions between adjacent timestamps while respecting periodic jumps.

Experimental Evaluation

TQuatE was evaluated on three benchmark datasets: ICEWS14, ICEWS05-15, and GDELT. GDELT is particularly challenging due to its high density and temporal variability.

Performance comparison of TQuatE against state-of-the-art static and temporal KGC models.

As shown in the results table, TQuatE consistently outperforms both static baselines (e.g., RotatE) and previous temporal models. Notably, on the GDELT dataset, TQuatE improved the Mean Reciprocal Rank (MRR) by 8.38% and Hits@1 by nearly 14% over the previous state-of-the-art, TLT-KGE.

Conclusion

TQuatE demonstrates that modeling relations as time-sensitive components in hypercomplex space significantly enhances the accuracy of temporal link prediction. By accounting for both evolutionary and periodic patterns, the model provides a robust framework for understanding the "pulse" of historical data. While the computational cost of quaternion operations is higher than complex-space alternatives, the gains in predictive performance, especially on complex datasets like GDELT, justify the added complexity. Future research will focus on optimizing these operations for large-scale streaming environments.

Summary updated

BibTeX
@misc{cai2024temporal,
  author = {Li Cai and Xin Mao and Zhihong Wang and Shangqing Zhao and Yuhao Zhou and Changxu Wu and Man Lan},
  title = {{Temporal Knowledge Graph Completion with Time-sensitive Relations in Hypercomplex Space}},
  year = {2024},
  eprint = {2403.02355},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.02355},
}
Figure