TL;DR
This paper introduces BENCHTEMP, a comprehensive benchmark for Temporal Graph Neural Networks (TGNNs). It addresses the critical lack of standardized datasets, evaluation pipelines, and diverse workloads in previous TGNN research, enabling fair and thorough comparisons of existing models and facilitating future development.
What Problem Does This Paper Address?
Temporal graphs, which model dynamic systems with evolving relationships and features, are crucial for many real-world applications. While numerous Temporal Graph Neural Network (TGNN) models have emerged, their evaluations have been inconsistent. This inconsistency stems from issues like:
- Inconsistent Datasets: Different preprocessing and handling of temporal information.
- Inconsistent Evaluation Pipelines: Varying data loaders, splitting strategies, and evaluation metrics.
- Limited Workload Diversity: A narrow focus on specific tasks and settings (e.g., transductive vs. inductive).
- Lack of Efficient Comparison: Insufficient attention to model efficiency alongside effectiveness.
These issues make it difficult to reliably compare TGNN models and understand their true strengths and weaknesses. BENCHTEMP aims to solve this by providing a unified framework for standardized evaluation.
Methods
The core contribution of BENCHTEMP lies in its comprehensive approach to benchmarking TGNNs:
- Standardized Datasets: The authors curated and standardized a set of popular temporal graph datasets. This involves consistent node feature initialization (setting feature dimension to 172 for all datasets) and a novel node reindexing strategy to handle non-continuous node indices and reduce memory usage.
- Unified Pipeline: BENCHTEMP provides a general, modular pipeline that standardizes the entire TGNN evaluation lifecycle. This pipeline includes modules for datasets, data loading, edge sampling, model execution, early stopping, evaluation, and a leaderboard.
- Diverse Workloads: The benchmark supports various tasks (link prediction, node classification) and settings, including transductive, inductive, inductive "New-Old," and inductive "New-New" scenarios.
- Efficiency Metrics: Beyond performance metrics like AUC and AP, BENCHTEMP incorporates efficiency metrics such as runtime, epochs to convergence, RAM usage, and GPU memory usage.
Datasets
BENCHTEMP includes a curated set of fifteen benchmark temporal graph datasets from various domains. Additionally, the paper introduces six new datasets, including four large-scale ones (eBay-Small, eBay-Large, Taobao-Large, DGraphFin, YouTubeReddit-Small, YouTubeReddit-Large), to further enhance the benchmark's scope and realism. These datasets are publicly available.
Key Insights and Ideas
- The Need for Standardization is Paramount: The paper strongly emphasizes that inconsistent evaluation practices are a major bottleneck in TGNN research, leading to conflicting results and hindering progress.
- Node Feature Dimension Matters: Increasing node feature dimensions (from 4 to 172) generally improves TGNN performance, highlighting the importance of consistent feature representation in benchmarking.
- Temporal Walk Mechanisms Excel at Link Prediction: Models like CAWN and NeurTW, which leverage temporal walk mechanisms to capture structural information and motifs, consistently perform well on link prediction tasks, especially in inductive settings.
- Attention and Memory are Key for Node Classification: Models incorporating temporal memory (like TGN) and temporal attention (like TGAT) show strong performance on node classification tasks, suggesting their ability to capture evolving node representations.
- Efficiency is Crucial for Real-World Deployment: The benchmark's inclusion of efficiency metrics reveals significant trade-offs. While some models achieve high accuracy, they can be prohibitively slow, underscoring the need for efficient TGNN architectures. NAT, for instance, demonstrates a good balance between performance and efficiency.
Key Results
- Comprehensive Model Comparison: BENCHTEMP facilitated an extensive comparison of seven representative TGNN models across multiple datasets, tasks, and settings.
- Performance Insights: The benchmark revealed that models like CAWN and NeurTW often lead in link prediction, while TGN and TGAT show strength in node classification. NAT demonstrated a good balance of performance and efficiency.
- Efficiency Trade-offs: The results highlighted that temporal walk-based models (CAWN, NeurTW) are generally slower but can achieve better accuracy, while models like TGAT and NAT are more efficient.
- New Datasets for Scalability: The introduction of large-scale datasets like eBay-Large and Taobao-Large allows for evaluating TGNNs on more realistic, massive graphs.
Limitations and Future Work
- Implementation Inconsistencies: The authors acknowledge that implementing TGNN models can be challenging due to inconsistencies in their original implementations, which they addressed in BENCHTEMP.
- TGAT Runtime Error: TGAT encountered runtime errors on the UNTrade dataset due to issues finding suitable neighbors within time intervals.
- Future Updates: The authors plan to continuously update BENCHTEMP with newly emerged TGNN models and welcome community contributions to further advance TGNN research. They also suggest further exploration of specific sampling strategies like Historical and Inductive Negative Sampling.
Summary updated