Abstract
Temporal Knowledge Graphs (TKGs) extend traditional knowledge graphs by incorporating time as a fourth dimension, enabling the modeling of dynamic facts. However, existing completion methods often struggle with structural information, temporal sparsity, and varying activity levels of entities. We present the TeMP (Temporal Message Passing) framework, which integrates graph neural networks with temporal dynamics. By explicitly addressing "quiet periods" through data imputation and frequency-based gating, TeMP achieves significant improvements over state-of-the-art methods, including a 10.7% average relative improvement in Hits@10 on benchmark datasets.
Introduction
Knowledge Graphs (KGs) represent facts as triples $(s, r, o)$, such as (Obama, visit, China). Temporal Knowledge Graphs (TKGs) add a temporal dimension, resulting in quadruples $(s, r, o, t)$, e.g., (Obama, visit, China, 2014). The task of Temporal Knowledge Graph Completion (TKGC) involves predicting missing links within these dynamic networks.
Despite progress, current research faces three primary challenges:
- Structural Neglect: Many models prioritize temporal patterns but overlook multi-hop structural dependencies (e.g., knowing an entity's neighbors to predict future interactions).
- Temporal Sparsity: Real-world entities are often inactive for long periods. Static or "stale" representations during these gaps hinder performance.
- Temporal Variability: The frequency of events varies significantly across different entity-relation pairs, requiring adaptive modeling.
The TeMP Framework
The TeMP framework addresses these gaps through a modular encoder-decoder architecture designed to capture both local structure and temporal evolution.
Structural and Temporal Encoding
TeMP utilizes a Relational Graph Convolutional Network (RGCN) as its structural encoder to aggregate information from an entity's neighbors at each discrete time step. This captures the instantaneous "shape" of the graph. To model dynamics over time, the framework employs a temporal encoder, with two variants explored: TeMP-GRU, which uses Recurrent Neural Networks with a decay mechanism, and TeMP-SA, based on Self-Attention mechanisms.
Handling Sparsity and Variability
A core innovation of TeMP is its approach to temporal heterogeneity:
- Data Imputation (IM): To prevent entity representations from becoming "cold" during inactive periods, TeMP carries over a decayed version of the last known state rather than letting the representation go static.
- Frequency-Based Gating (FG): The model employs a gating mechanism that weights structural and temporal embeddings based on the historical frequency of specific patterns. For highly repetitive events, the model relies more heavily on temporal history.
The final representations are processed by a standard KG decoder, such as ComplEx, to score potential missing facts.
Experimental Setup
TeMP was evaluated on three benchmark datasets:
- ICEWS14 & ICEWS05-15: Political event datasets from the Integrated Crisis Early Warning System, characterized by high temporal sparsity.
- GDELT: A subset of the Global Database of Events, Language, and Tone. Unlike ICEWS, GDELT is much denser, with almost all entities active at every time step.
Results and Discussion
TeMP-GRU and TeMP-SA established new state-of-the-art performance levels, particularly on the sparse ICEWS datasets.
Key Findings
- State-of-the-Art Gains: TeMP demonstrated an 8.0% to 10.7% relative improvement in Hits@10 over previous neural methods on ICEWS.
- The Power of Structure: Even a static baseline (SRGCN) using only message passing performed competitively, underscoring the importance of multi-hop structural information.
- The "Copying" Effect: A simple rule-based baseline, Temporal Exponential Decay (TED), outperformed many complex models on the dense GDELT dataset. This suggests that GDELT relies heavily on replication effects, whereas TeMP's sophisticated gating is more beneficial for sparse data.
- Ablation Success: Combining imputation and gating provided a significant performance boost (3.3% on ICEWS14), validating the necessity of modeling temporal gaps in real-world data.
Conclusion and Future Work
The TeMP framework demonstrates that integrating structural message passing with explicit handling of temporal sparsity is vital for TKG completion. While highly effective on discrete snapshots, future work could extend TeMP to continuous-time domains. Additionally, more sophisticated imputation methods and automated regime detection (sparse vs. dense) could further enhance the model's versatility across diverse datasets.
Summary updated