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

Re-Temp: Relation-Aware Temporal Representation Learning for Temporal Knowledge Graph Completion

Kunze Wang, Soyeon Caren Han, Josiah Poon

Abstract

Temporal Knowledge Graph Completion (TKGC) is essential for predicting future events in dynamic environments. However, existing models often fail to account for explicit temporal characteristics, suffer from historical noise, and are prone to information leakage via inverse relations. We present Re-Temp, a novel framework that introduces explicit temporal embeddings and a relation-aware skip mechanism. By filtering irrelevant historical snapshots, Re-Temp achieves state-of-the-art performance across six benchmark datasets, demonstrating that relevance is a more critical factor than simple recency in temporal reasoning.

Introduction

Knowledge Graphs (KGs) traditionally represent facts as static triplets. Temporal Knowledge Graphs (TKGs) extend this by adding timestamps, enabling the modeling of evolving relationships. The primary challenge in TKGs is extrapolation—predicting future facts based on historical data.

Current research identifies three significant limitations in existing TKGC models:

  1. Implicit Time Modeling: Models often treat time as a simple sequence, ignoring the inherent temporal nature of entities and relations.
  2. Historical Noise: Standard models process all recent snapshots equally. However, many historical events are irrelevant to a specific future prediction, acting as noise that degrades model performance.
  3. Information Leakage: The use of inverse relations (e.g., A visited B vs. B was visited by A) can lead to "shortcuts" during training, resulting in inflated accuracy metrics that do not reflect true predictive power.
An illustration of historical noise: a diplomatic visit to Switzerland (Day 2) is irrelevant to predicting future sanctions between the US and North Korea (Day 4).

Methodology

Re-Temp addresses these challenges through three core architectural innovations:

Explicit Temporal Representation

Re-Temp utilizes a dual-embedding approach for entities. A static embedding captures invariant entity properties, while a dynamic embedding models temporal evolution. This dynamic component is further decomposed into linear "trend" and periodic "seasonal" functions, allowing the model to capture both long-term shifts and recurring patterns in entity behavior.

Relation-Aware Skip Information Flow

To mitigate historical noise, Re-Temp introduces a relation-aware attention mechanism. For any given query, the model evaluates the relevance of previous snapshots. It can "skip" irrelevant historical data, focusing exclusively on the "evidence chain" necessary for the prediction. This mimics human reasoning by prioritizing relevant context over mere chronological proximity.

Two-Phase Forward Propagation

To prevent information leakage, Re-Temp separates original facts from their inverse counterparts during the forward pass. This ensures that the model cannot rely on trivial inverse mappings to achieve high scores, forcing it to learn meaningful temporal patterns.

Results and Discussion

Re-Temp was evaluated against eight state-of-the-art models on six benchmarks, including ICEWS, GDELT, and Wikidata.

  • State-of-the-Art Performance: Re-Temp consistently outperformed all baselines. On the ICEWS14 dataset, it achieved a Mean Reciprocal Rank (MRR) of 48.04%, surpassing the previous best of 46.42%.
  • Ablation Success: The importance of the "skip" mechanism was confirmed through ablation testing. Removing this feature led to a dramatic performance drop (e.g., from 48.04% to 36.56% on ICEWS14), highlighting that noise reduction is critical for accurate extrapolation.
  • Efficiency: Despite its advanced mechanisms, Re-Temp remains computationally efficient, with training times scaling well across different dataset sizes.

Conclusion

Re-Temp represents a significant step forward in Temporal Knowledge Graph Completion. By explicitly modeling time and implementing a relation-aware skip mechanism, it effectively addresses the issues of historical noise and temporal representation. While the model currently faces challenges with "cold start" entities and lacks natural language integration, its superior performance on standard benchmarks establishes a new state-of-the-art for the field.

Summary updated

BibTeX
@inproceedings{wang2023re,
  author = {Kunze Wang and Soyeon Caren Han and Josiah Poon},
  title = {{Re-Temp: Relation-Aware Temporal Representation Learning for Temporal Knowledge Graph Completion}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.findings-emnlp.20},
}
Figure