Temporal receptive field in dynamic graph learning: A comprehensive analysis

Yannis Karmim, Leshanshui Yang, Raphaël Fournier-S'niehotta, Clément Chatelain, Sébastien Adam, Nicolas ThomearXiv 2024 · DOI

Introduction

In machine learning, the prevailing wisdom often suggests that more data leads to better performance. When predicting future states in dynamic systems, it is intuitive to assume that the entire historical record provides the best context. However, research by Yannis Karmim and colleagues challenges this assumption in the domain of dynamic graphs. This paper formalizes the concept of the Temporal Receptive Field (TRF)—the specific window of past snapshots used to predict future links—and demonstrates that "more history" often introduces detrimental noise.

Problem Formulation: The "Goldilocks" of History

Dynamic graphs represent interactions that evolve over time, such as social network friendships or global trade routes. A fundamental task is Dynamic Link Prediction: determining whether an edge will exist between two nodes at time $t+1$ given a sequence of previous snapshots.

Conceptual overview of the Temporal Receptive Field (TRF) in dynamic link prediction.

While significant effort has been directed toward developing sophisticated architectures like RNNs and Transformers to capture temporal dynamics, the question of the optimal historical look-back window has been largely overlooked. Most existing implementations default to using either the immediate past snapshot or the entire available sequence. This study addresses this gap by investigating how to find the "just right" temporal window that maximizes predictive accuracy while minimizing noise.

Methodology

The authors conduct a systematic analysis of Discrete Time Dynamic Graph Neural Networks (DTDGNNs), categorizing them into two primary paradigms:

  1. Enc(H): Models that encode each graph snapshot into hidden states, followed by a temporal encoder (e.g., DySAT, GCLSTM).
  2. Enc($\Theta$): Models where the parameters of the graph encoder itself evolve over time (e.g., EvolveGCN).

The experimental framework compares three scenarios for the temporal window ($\tau$):

  • $\tau_1$: Utilizing only the most recent snapshot (no dynamic history).
  • $\tau_\infty$: Utilizing the entire available history.
  • $\tau^*$: Determining the optimal window size through systematic grid search.

Experimental Setup

The study benchmarks five model architectures across ten diverse datasets covering various domains including Politics (CanParl, USLegis, UNVote), Economics (Trade), Social networks (UCI-Message, Enron), Infrastructure (AS733), and Trust networks (Bitcoin-OTC, Bitcoin-Alpha).

Key Results and Insights

The quantitative results reveal that optimizing the TRF leads to substantial performance gains across different architectures.

Comparison of Average Precision (AP) between the optimal window size ($\tau^*$) and full history ($\tau=\infty$) across four DTDGNN architectures.

The "History Trap"

For many datasets, using the full history ($\tau_\infty$) degrades performance compared to using only the most recent snapshot ($\tau_1$). In the UNVote dataset, for instance, historical alliances from decades ago often act as noise rather than useful predictors for current voting patterns.

Model-Specific Memory and Dataset Volatility

The impact of history varies by architecture and domain:

  • Architecture Sensitivity: Models like DySAT and STGCN generally benefit from longer sequences, whereas EGCN and GCLSTM often perform better with shorter, more recent windows.
  • Domain Characteristics: "Fast" networks like the AS733 router network exhibit Markovian properties where the immediate past is the primary predictor. Conversely, trust networks like Bitcoin-OTC require broader context as reputations are established over longer durations.

Performance Gains

Selecting the optimal window size ($\tau^*$) yielded an average precision (AP) increase of +3.40 points for EvolveGCN and +3.24 points for GCLSTM over the full-history baseline. In several instances, models using zero historical context ($\tau_1$) outperformed those using the full history, underscoring the prevalence of noise in long-term graph data.

Conclusion and Future Work

This research highlights that the Temporal Receptive Field is a critical hyperparameter in dynamic graph learning. To facilitate further research, the authors have released BenchmarkTW, a suite for standardized temporal window evaluation. Future directions include extending this analysis to Continuous Time Dynamic Graphs (CTDG) and developing automated mechanisms to dynamically adapt the window size during training.

Summary updated

BibTeX
@misc{karmim2024temporal,
  author = {Yannis Karmim and Leshanshui Yang and Raphaël Fournier-S'niehotta and Clément Chatelain and Sébastien Adam and Nicolas Thome},
  title = {{Temporal receptive field in dynamic graph learning: A comprehensive analysis}},
  year = {2024},
  eprint = {2407.12370},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.12370},
}
Figure