TL;DR
Dynamic Graph Neural Networks (DGNNs) often assume that finer-grained timestamps lead to better performance, but does temporal resolution truly help? This paper systematically benchmarks three DGNN architectures and a memorization baseline across four time granularities (seconds, minutes, hours, days) and three negative sampling regimes. The authors discover that training on the finest granularity is not always optimal—finer timestamps can inject noise—and that robust memory mechanisms (like GRU forget gates in TGN) are critical when temporal resolution is degraded.
What Problem Does This Paper Address?
Temporal graphs model systems where relationships continuously evolve—such as social networks, recommender systems, and communication logs. While state-of-the-art DGNNs achieve near-perfect performance under standard random negative sampling, prior work demonstrated that realistic evaluation regimes (e.g., historical or inductive negative sampling) dramatically expose their weaknesses.
A critical yet under-explored axis in dynamic graph analysis is time granularity: the temporal resolution at which edges are recorded or aggregated. Finer granularities (seconds) may introduce training noise and high computational costs, while coarser granularities (hours or days) can sacrifice vital temporal ordering. This paper investigates how time granularity interacts with model architecture, dataset domain, and negative sampling strategies in dynamic link prediction.
Methods
The authors evaluate dynamic link prediction by training models under one time granularity and testing both within and across granularities (cross-granularity evaluation):
- Granularities Examined: Four temporal scales—Second, Minute, Hour, and Day.
- Leakage-Free Splitting: The authors introduce a day-anchored chronological split (approximately 70% train, 15% validation, 15% test by total days) across all datasets, ensuring consistent split timestamps regardless of granularity and preventing temporal leakage.
- Evaluated Models:
- EdgeBank (non-parametric memorization baseline with infinite memory $\text{EdgeBank}_\infty$ and time-windowed memory $\text{EdgeBank}_{tw}$).
- JODIE (recurrent trajectory-based embedding updates).
- DyRep (temporal point-process combined with graph attention).
- TGN (Temporal Graph Networks) (message passing coupled with GRU-based node memory modules).
- Negative Sampling (NS) Regimes: Evaluated using Random NS (RandNS), Historical NS (HistNS, sampling previously seen but non-recurring edges), and Inductive NS (InduNS, sampling completely unobserved edges).
- Metrics: AU-ROC and Average Precision (AP).
Datasets
The study benchmarks seven popular dynamic graph datasets across diverse domains (all processed without static node/edge features, focusing solely on edge additions):
- Wikipedia (Social / Interaction, 1 month)
- Reddit (Social / Interaction, 1 month)
- MOOC (Interaction, 1 month)
- LastFM (Interaction, 4 years)
- Enron (Social email communication, 3 years)
- Social Evolution (Proximity cellphone calls, 1 year)
- UCI (Social online chat, 196 days)
The coarsest common feasible granularity was found to be "Day," as coarser aggregations (e.g., "Month") left insufficient validation and test intervals for shorter datasets like Wikipedia and MOOC.
Key Insights and Ideas
- Finer is not always better: Models trained on minute or hour granularities frequently match or slightly surpass models trained on seconds (e.g., TGN-minute outperforms TGN-second on MOOC and LastFM). Second-level timestamps often add high-frequency noise rather than predictive signal.
- Resolution matching matters: When predicting links at a coarse target interval (e.g., day), models trained on day or hour granularities substantially outperform models trained on seconds or minutes, despite the coarse models having discarded exact timestamp ordering.
- Architectural memory dictates robustness: TGN consistently dominates across granularities. Its GRU-based memory with forget gates allows it to retain vital long-range information while resisting memory dilution from repeated updates. In contrast, JODIE and DyRep rely on vanilla RNN updates that degrade rapidly under coarser resolutions.
- The "Hairball" and "Black Hole" trap: Repeated edge additions without deletions cause dynamic graphs to morph into dense "hairballs" containing locally dense topological "black holes" (over 90% of edges are duplicates in extreme cases). In RandNS, models achieve deceptively high scores simply by predicting whether an edge belongs to a dense cluster. Under harder sampling (HistNS and InduNS), JODIE's performance plummets to the bottom, while the simple memorization baseline $\text{EdgeBank}_{tw}$ frequently outperforms complex DGNNs.
Key Results
- Overall Ranking: In HistNS and InduNS settings, TGN variants rank #1 to #3 across nearly all time granularities.
- The Fall of JODIE: Under RandNS, JODIE achieves ranks 1–4 (with AU-ROC often $>0.99$). However, on HistNS and InduNS, JODIE consistently plunges to the worst ranks (11–14).
- Strong Baseline: $\text{EdgeBank}_{tw}$ places #2 to #3 in historical negative sampling across granularities, outperforming both DyRep and JODIE.
Limitations and Future Work
- Transductive Evaluation Only: Experiments only evaluated nodes observed during training; inductive node link prediction across granularities remains unaddressed.
- Edge Accumulation Without Deletion: Graphs only model edge additions without expiration or deletion, compounding the dense "hairball" artifact.
- Resource Cost: Training and evaluating 140 model permutations across multiple runs required significant compute (Google Colab A100 GPUs).
- Future Directions: Moving toward data-driven, learnable time granularities rather than fixed human-defined intervals (second, minute, hour, day), incorporating edge de-duplication with recurrence frequency modeling, and expanding beyond link prediction to node-level and graph-level temporal benchmarks.
Summary updated