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

TeRo: A Time-aware Knowledge Graph Embedding via Temporal Rotation

Chengjin Xu, Mojtaba Nayyeri, Fouad Alkhoury, Hamed Shariat Yazdi, Jens Lehmann

Abstract

Temporal Knowledge Graphs (TKGs) extend traditional knowledge graphs by incorporating a time dimension into facts, represented as quadruples $(s, r, o, t)$. Modeling these dynamic relationships requires embeddings that can capture temporal evolution and complex relational patterns. We introduce TeRo (Temporal Rotation), a model that represents entity evolution as a rotation in complex vector space. TeRo utilizes a dual-embedding approach for time intervals and a score function based on complex conjugates to handle reflexive and asymmetric relations. Our evaluation on four TKG benchmarks shows that TeRo achieves state-of-the-art performance in link prediction with significantly lower memory requirements than previous models.

Introduction

Traditional Knowledge Graphs (KGs) store static facts as triples: (subject, relation, object). However, real-world knowledge is often transient. For instance, the fact (Barack Obama, visits, Ukraine) was valid in 2014 but is not a permanent state. Temporal Knowledge Graphs (TKGs) address this by adding a time dimension, forming quadruples: $(s, r, o, t)$.

The primary challenge in TKG research is "embedding"—mapping entities and relations into a high-dimensional mathematical space to predict missing information (link prediction). Existing models often struggle with:

  1. Expressiveness: Simultaneously handling complex relation patterns like symmetry, asymmetry, and reflexivity.
  2. Temporal Intervals: Efficiently modeling facts that persist over a duration (e.g., a term of office) without computationally expensive discretization.

Methodology: Temporal Rotation

TeRo builds on the intuition that an entity's state "rotates" through the complex plane as time progresses.

Temporal Rotation Mechanism

Each entity is assigned an initial embedding in complex space. For any given time step $\tau$, the model applies an element-wise rotation to the entity's embedding. Since these are unitary complex numbers (modulus of 1), the rotation only modifies the phase of the vector, preserving its magnitude.

Score Function and Relational Patterns

To determine the plausibility of a fact, TeRo calculates the distance between the rotated subject embedding ($s_t$) plus a relation translation ($r$) and the complex conjugate of the rotated object embedding ($\bar{o}_t$). This use of the conjugate allows the model to handle reflexive relations—a common pitfall for distance-based models like TransE, where a reflexive relation $(s, r, s)$ would otherwise force the relation embedding to zero.

Figure 1: Illustration of TeRo's ability to model various relation types (a) symmetric, (b) temporary, (c) asymmetric, and (d) reflexive through temporal rotation and complex conjugates.

Handling Time Intervals

For facts occurring over an interval $[t_b, t_e]$, TeRo employs Dual Embeddings. The relation is represented by a pair of embeddings: $r_b$ for the start and $r_e$ for the end. The final score is the average of the scores at these two boundary points, avoiding the need to discretize the entire interval.

Experimental Evaluation

TeRo was evaluated on four diverse TKG benchmarks:

  • ICEWS14 & ICEWS05-15: Event-based datasets with specific daily timestamps.
  • YAGO11k & Wikidata12k: Datasets containing facts with time intervals, often characterized by incomplete or varying temporal granularity.

Key Results

TeRo demonstrated significant improvements over previous state-of-the-art models like ATiSE and DE-SimplE:

  • Link Prediction: TeRo outperformed all baselines across metrics (MRR, Hits@1, @3, @10) on all four datasets. Notably, on ICEWS05-15, TeRo achieved an MRR of 0.586, compared to 0.519 for ATiSE.
  • Efficiency: TeRo is significantly more memory-efficient, using 1.8x to 2.2x less memory than ATiSE or DE-SimplE on ICEWS14 while maintaining space complexity comparable to the simpler TransE model.

Discussion and Insights

The expressive power of TeRo stems from its ability to learn various temporal relation patterns. The ablation studies highlighted a "Granularity Trade-off": while fine-grained time steps benefit uniform event data (ICEWS), they can degrade performance on sparse, "long-tailed" data (Wikidata). Finding the optimal time-step length is critical.

Furthermore, the dual-embedding strategy for intervals ensures that the model remains computationally tractable. Instead of expanding a 10-year interval into thousands of daily facts, TeRo only processes the start and end points, preserving temporal context without inflating the dataset size.

Limitations and Future Work

TeRo currently operates on discrete time steps. While effective, it does not inherently handle continuous time, which may be beneficial for highly irregular timestamps. Additionally, the model's sensitivity to temporal "clubbing" in sparse datasets suggests that future work could explore non-linear temporal dynamics using recurrent neural networks (RNNs) or attention mechanisms.

Summary updated

BibTeX
@inproceedings{xu2020tero,
  author = {Chengjin Xu and Mojtaba Nayyeri and Fouad Alkhoury and Hamed Shariat Yazdi and Jens Lehmann},
  title = {{TeRo: A Time-aware Knowledge Graph Embedding via Temporal Rotation}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.coling-main.139},
}
Figure