A Unified Temporal Knowledge Graph Reasoning Model Towards Interpolation and Extrapolation

Kai Chen, Ye Wang, Yitong Li, Aiping Li, Han Yu, Xin Song

Abstract

Temporal knowledge graph (TKG) reasoning has two settings: interpolation reasoning and extrapolation reasoning. Both of them draw plenty of research interest and have great significance. Methods of the former de-emphasize the temporal correlations among facts sequences, while methods of the latter require strict chronological order of knowledge and ignore inferring clues provided by missing facts of the past. These limit the practicability of TKG applications as almost all of the existing TKG reasoning methods are designed specifically to address either one setting. To this end, this paper proposes an original Temporal PAth-based Reasoning (TPAR) model for both the interpolation and extrapolation reasoning settings. TPAR performs a neural-driven symbolic reasoning fashion that is robust to ambiguous and noisy temporal data, and with fine interpretability as well. Comprehensive experiments show that TPAR outperforms SOTA methods on the link prediction task for both the interpolation and the extrapolation settings. A novel pipeline experimental setting is designed to evaluate the performances of SOTA combinations and the proposed TPAR towards interpolation and extrapolation reasoning. And more diverse experiments are conducted to show the robustness and interpretability of TPAR.

Introduction

Knowledge Graphs (KGs) represent facts as triples (subject, relation, object). Temporal Knowledge Graphs (TKGs) extend this by adding a time dimension, representing facts as quadruples $(s, r, o, t)$. Reasoning in TKGs typically falls into two distinct categories: interpolation and extrapolation. Interpolation involves filling in missing historical facts within a known timeframe, while extrapolation focuses on predicting future events based on historical data.

Historically, models have been specialized for one task or the other. Interpolation models often neglect the chronological flow of events, while extrapolation models often enforce a rigid chronological order that prevents them from utilizing historical gaps effectively. TPAR (Temporal PAth-based Reasoning) addresses this by providing a unified framework that treats these tasks as interconnected, leveraging historical understanding to improve future predictions.

Methodology

TPAR adopts a neural-symbolic approach, combining the flexibility of deep learning with the logical clarity of path-based reasoning. The model's core is a neural-driven symbolic reasoning engine designed to be robust against noisy temporal data.

Recursive Encoding and Time Representation

Inspired by the Bellman-Ford shortest-path algorithm, TPAR recursively encodes entity representations by traversing temporal paths. This process allows the model to "relax" strict chronological constraints, gathering evidence from various timestamps to build a comprehensive context for a query.

Recursive encoding process in TPAR.

To handle the temporal dimension, TPAR utilizes a dual-encoding scheme for relative time. It employs sine functions to capture periodic patterns (e.g., recurring political events) and linear components to model non-periodic evolving dynamics. An attention-based message-passing mechanism then weighs the relevance of different temporal links during path traversal, ensuring the most pertinent historical evidence is prioritized.

Experimental Results

TPAR was evaluated on standard TKG benchmarks including ICEWS14, ICEWS05-15, YAGO, and WIKI. The model consistently outperformed state-of-the-art (SOTA) baselines in both interpolation and extrapolation settings.

Performance and Robustness

In interpolation tasks on ICEWS14, TPAR achieved a Mean Reciprocal Rank (MRR) of 65.07%, surpassing previous benchmarks. In extrapolation, it reached 46.89% MRR, outperforming specialized models like RPC.

Performance comparison across different sparsity ratios.

A key strength of TPAR is its robustness to data sparsity. As shown in the experimental results, TPAR maintains a significant performance lead even when a large portion of the training data is removed, demonstrating its ability to extract meaningful patterns from limited information.

The Pipeline Setting

The researchers introduced a novel "pipeline" experiment where the model must first perform interpolation to complete a fragmented history and then use that completed history for extrapolation. This experiment confirmed that TPAR's ability to "look back" and fill gaps directly contributes to its superior predictive power for future events.

Conclusion

TPAR represents a significant advancement in TKG reasoning by unifying interpolation and extrapolation. By relaxing strict chronological constraints and employing a neural-symbolic architecture, it provides both high performance and interpretability. Future work will focus on refining hyperparameter sensitivity and incorporating explicit causal attention mechanisms to better distinguish between correlation and causation in historical data.

Summary updated

BibTeX
@inproceedings{chen2024unified,
  author = {Kai Chen and Ye Wang and Yitong Li and Aiping Li and Han Yu and Xin Song},
  title = {{A Unified Temporal Knowledge Graph Reasoning Model Towards Interpolation and Extrapolation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  url = {https://openreview.net/forum?id=grBsdctA2E},
}
Figure