Towards Foundation Model on Temporal Knowledge Graph Reasoning

Jiaxin Pan, Mojtaba Nayyeri, Osama Mohammed, Daniel Hernández, Rongchuan Zhang, Cheng Cheng, Steffen StaabarXiv 2025

Abstract

Temporal Knowledge Graphs (TKGs) store temporal facts with quadruple formats (s, p, o, t). Existing Temporal Knowledge Graph Embedding (TKGE) models perform link prediction tasks in transductive or semi-inductive settings, which means the entities, relations, and temporal information in the test graph are fully or partially observed during training. Such reliance on seen elements during inference limits the models' ability to transfer to new domains and generalize to real-world scenarios. A central limitation is the difficulty in learning representations for entities, relations, and timestamps that are transferable and not tied to dataset-specific vocabularies. To overcome these limitations, we introduce the first fully-inductive approach to temporal knowledge graph link prediction. Our model, POSTRA, employs sinusoidal positional encodings to capture fine-grained temporal patterns and generates adaptive entity and relation representations using message passing conditioned on both local and global temporal contexts. Our model design is agnostic to temporal granularity and time span, effectively addressing temporal discrepancies across TKGs and facilitating time-aware structural information transfer. As a pretrained, scalable, and transferable model, POSTRA demonstrates strong zero-shot performance on unseen temporal knowledge graphs, effectively generalizing to novel entities, relations, and timestamps. Extensive theoretical analysis and empirical results show that a single pretrained model can improve zero-shot performance on various inductive temporal reasoning scenarios, marking a significant step toward a foundation model for temporal KGs.

Introduction: The Challenge of Fully-Inductive Reasoning

Knowledge Graphs (KGs) represent facts as triples (subject, predicate, object). Temporal Knowledge Graphs (TKGs) add a fourth dimension: time. For example, (Barack Obama, Host a visit, Xi Jinping, 2014-11-10).

The primary limitation of current TKG models is their reliance on a fixed vocabulary. Most models are transductive (requiring entities to be seen during training) or semi-inductive (handling new entities but requiring seen relations or timeframes). Traditional models fail when asked to predict events in entirely new domains or time periods because they have not learned the specific entities or timestamps involved.

Comparison of transductive, semi-inductive, and fully-inductive inference settings in TKGs.

To address this, we introduce POSTRA (POsitional Time-aware and Transferable Representations), the first fully-inductive reasoning model for TKGs. POSTRA is designed to learn the underlying logic of how events unfold over time, allowing it to generalize to completely unseen domains without any fine-tuning.

Methodology: The POSTRA Architecture

POSTRA's architecture relies on three core pillars to achieve vocabulary-agnostic and granularity-independent reasoning:

  1. Relational Structure Learning: Instead of learning embeddings for specific relation names, POSTRA learns how relations interact. It uses a "relation-relation interaction graph" to identify universal patterns (e.g., the structural similarity between "negotiation" and "treaty" sequences across different datasets).
  2. Sinusoidal Temporal Embeddings: Utilizing sine and cosine functions to encode time, the model focuses on relative temporal ordering rather than absolute dates. This makes the model granularity-agnostic, allowing it to process data measured in minutes, days, or years.
  3. Dual Quadruple Learning: The model processes information at two scales: a Global scale to aggregate information across the entire graph for long-term dependencies, and a Local scale to focus on immediate, "bursty" event patterns around a specific query.
POSTRA facilitates the transfer of structural and temporal logic between disparate domains, such as political events and biographical history.

Experimental Results and Key Insights

POSTRA was evaluated across five diverse TKG benchmarks, including ICEWS, GDELT (15-minute granularity), and YAGO (yearly granularity). The researchers performed cross-dataset evaluation, training on one domain and testing on another with zero overlap in entities or relations.

Key findings include:

  • Zero-Shot Superiority: When trained on ICEWS14 and tested on the vastly different YAGO dataset, POSTRA achieved a Mean Reciprocal Rank (MRR) of 87.9, significantly outperforming baselines like ULTRA (63.7) and INGRAM (17.5).
  • Granularity Transfer: The model successfully transferred knowledge from daily-interval datasets to the 15-minute intervals of GDELT, proving its robustness to different time scales.
  • Structural Pattern Recognition: POSTRA outperformed baselines by over 10 points in identifying symmetric and inverse temporal patterns, demonstrating a deep understanding of temporal logic.

Conclusion and Future Work

POSTRA represents a major step toward a "foundation model" for temporal reasoning. By prioritizing relative time and structural patterns over fixed vocabularies, it achieves unprecedented generalization. While currently focused on link prediction, future work aims to extend POSTRA to support time-prediction tasks and explore more efficient architectures for extremely dense, large-scale temporal graphs.

Summary updated

BibTeX
@misc{pan2025towards,
  author = {Jiaxin Pan and Mojtaba Nayyeri and Osama Mohammed and Daniel Hernández and Rongchuan Zhang and Cheng Cheng and Steffen Staab},
  title = {{Towards Foundation Model on Temporal Knowledge Graph Reasoning}},
  year = {2025},
  eprint = {2506.06367},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.06367},
}
Figure