TGB 2.0: A Benchmark for Learning on Temporal Knowledge Graphs and Heterogeneous Graphs

Julia Gastinger, Shenyang Huang, Michael Galkin, Erfan Loghmani, Ali Parviz, Farimah Poursafaei, Jacob Danovitch, Emanuele Rossi, Ioannis Koutis, Heiner Stuckenschmidt, Reihaneh Rabbany, Guillaume Rabusseau

TL;DR

This paper introduces TGB 2.0, a comprehensive benchmark for evaluating models on temporal knowledge graphs (TKGs) and temporal heterogeneous graphs (THGs). It addresses the critical need for larger, more realistic datasets and a standardized, reproducible evaluation framework, paving the way for more robust and scalable research in this domain.

What Problem Does This Paper Address?

Modeling real-world data often requires capturing complex relationships between entities that evolve over time. Temporal Knowledge Graphs (TKGs) and Temporal Heterogeneous Graphs (THGs) are powerful tools for this, but the field of machine learning on these graphs faces significant challenges. Firstly, existing benchmarks are often too small to reflect real-world scenarios, hindering the development of scalable models. Secondly, evaluation methodologies are inconsistent, making it difficult to compare different approaches fairly and leading to over-optimistic performance claims. This paper aims to bridge this gap by introducing TGB 2.0, a benchmark designed to provide a more realistic, reproducible, and challenging evaluation environment.

Methods

TGB 2.0 introduces a novel benchmarking framework that extends the existing Temporal Graph Benchmark (TGB) by incorporating multi-relational temporal graph datasets. The core of TGB 2.0 lies in its eight new datasets, four TKGs and four THGs, which are significantly larger than their predecessors, spanning diverse domains and up to 53 million edges. The framework also provides an automated evaluation pipeline that standardizes the process of dataset downloading, processing, and benchmarking. A key aspect of their evaluation protocol is the focus on dynamic link property prediction, treated as a ranking problem. They employ a time-aware filtered Mean Reciprocal Rank (MRR) and a novel negative sampling strategy that considers edge types to ensure more realistic evaluations, especially on large datasets.

Datasets

TGB 2.0 introduces eight new datasets:

  • Temporal Knowledge Graphs (TKGs):
    • tkgl-smallpedia: Extracted from Wikidata, focusing on entities with IDs under 1 million.
  • tkgl-polecat: Based on the POLECAT dataset, recording socio-political actor interactions.
  • tkgl-icews: Derived from ICEWS Coded Event Data, covering political events.
  • tkgl-wikidata: A superset of tkgl-smallpedia, using a larger portion of Wikidata.
  • Temporal Heterogeneous Graphs (THGs):
    • thgl-software: Based on Github data, modeling user interactions with software projects.
  • thgl-forum: Based on Reddit data, modeling user and subreddit interactions.
  • thgl-myket: An original dataset from the Myket Android app market, tracking user-app interactions.
  • thgl-github: Another dataset from GH Arxiv, tracking user, pull request, and repository interactions.

These datasets are significantly larger than existing ones, with tkgl-wikidata and thgl-myket being particularly notable for their scale.

Key Insights and Ideas

  • Scalability is Paramount: The most striking insight is that most existing methods struggle to scale to the larger datasets in TGB 2.0, often running out of memory or time. This highlights a critical need for research into more efficient and scalable temporal graph learning algorithms.
  • Heuristics Can Be Competitive: Surprisingly, simple heuristic baselines (like RecB and EdgeBank) often perform competitively with more sophisticated deep learning models, especially on TKGs. This underscores the importance of including strong baselines in evaluations and suggests that current complex models may not always offer a significant advantage.
  • Edge Type Matters: For THGs, methods that effectively leverage edge-type information demonstrate significantly improved performance, emphasizing the richness of relational information in these graphs.
  • Recurrency is Key for TKGs: For TKGs, a strong correlation is observed between the "recurrency degree" of a relation type and method performance. This suggests that relations that occur frequently and consistently over time are easier to predict, while low-recurrency relations present a greater challenge.

Key Results

The paper presents extensive experimental results across the new datasets. While specific MRR scores vary by dataset and method, the general trend is that:

  • Heuristic baselines like RecB often achieve top performance on smaller TKG datasets (tkgl-smallpedia, tkgl-icews).
  • Sophisticated methods like RE-GCN and CEN struggle to scale to larger TKG datasets (tkgl-wikidata), often resulting in OOM errors.
  • For THGs, STHN shows strong performance on thgl-software but is highly memory-intensive. TGN, even with edge-type information, faces scalability issues on larger THG datasets.
  • Runtime analysis reveals significant differences, with some methods taking days to train, further emphasizing the scalability challenge.

Limitations and Future Work

The authors acknowledge several limitations:

  • Continuous-time for THGs: The current THG datasets are in a continuous-time format. While this is often considered more general, many THG methods are designed for discrete time. Future work could include discretized versions for comparative analysis.
  • Domain Diversity: TGB 2.0 currently covers five domains. Expanding this to include domains like biological networks and citation networks would enhance its comprehensiveness.
  • Scalability: As highlighted, the primary limitation is the lack of scalability of current methods to large-scale temporal graphs. This is a major area for future research.
  • Heuristic Performance: The strong performance of heuristics suggests room for improvement in complex models, perhaps by better incorporating temporal dynamics or relational information.

Future work will focus on expanding the dataset collection, improving the benchmark's reproducibility, and addressing the scalability challenges identified.

Summary updated

BibTeX
@inproceedings{gastinger2024tgb,
  author = {Julia Gastinger and Shenyang Huang and Michael Galkin and Erfan Loghmani and Ali Parviz and Farimah Poursafaei and Jacob Danovitch and Emanuele Rossi and Ioannis Koutis and Heiner Stuckenschmidt and Reihaneh Rabbany and Guillaume Rabusseau},
  title = {{TGB 2.0: A Benchmark for Learning on Temporal Knowledge Graphs and Heterogeneous Graphs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=Oj6A3pSkyS},
}
Figure