Abstract
Graph Neural Networks (GNNs) often face performance degradation when applied to temporal graphs with chronological splits due to distribution shifts in connectivity patterns over time. We introduce IMPaCT GNN, a framework that imposes mathematical invariance across time steps through novel message-passing techniques. By aligning the first and second statistical moments of node representations, IMPaCT mitigates "time-travel" overfitting. Our approach achieves a 3.8% improvement on the ogbn-mag benchmark, demonstrating robust generalization in large-scale dynamic networks.
Introduction: The Challenge of Temporal Distribution Shift
In real-world applications, graph data is naturally temporal. We typically train models on historical data to predict future events—for instance, predicting a research paper's topic based on its citation network. This necessitates a chronological split, where training, validation, and test sets are divided by time.
Standard GNNs struggle in this setting because the underlying graph topology is non-static. A node's "neighborhood" profile in 2010 differs significantly from one in 2024. This structural evolution creates a domain adaptation challenge: models overfit to the specific connectivity patterns of the training years and fail to generalize to the "future" test set.
As shown in the figure above, while a random split shuffles data across the entire timeline, a chronological split creates a distinct boundary between past training data and recent test data, exposing the model to significant distribution shifts.
Methodology: Imposing Invariance (IMPaCT)
The authors propose IMPaCT (Imposing invariance with Message Passing in Chronological split Temporal Graphs). The core idea is to align the statistical moments of node representations across different time steps, ensuring the model learns features that are invariant to the specific year.
1st Moment Alignment: Persistent Message Passing (PMP)
Nodes at the temporal boundaries of a split often receive fewer messages than those in the middle of a training window. PMP addresses this by identifying these imbalances and "duplicating" certain neighbor nodes. This ensures the expected value (the mean) of a message remains invariant regardless of the target node's timestamp. For irregular datasets, a generalized version called GenPMP is employed.
2nd Moment Alignment: JJNORM
To align the variance (2nd moment), the authors introduced JJNORM (Junction and Junction Normalization). While more complex methods like Persistent Numerical Yield (PNY) exist, JJNORM is designed for scalability. It normalizes aggregated messages using "JJ constants" derived from community-level statistics, effectively re-centering and re-scaling data to prevent variance drift over time.
The theoretical framework provided by the authors proves that these alignments minimize the Wasserstein-1 distance between training and testing distributions, providing a mathematical upper bound on generalization error.
Experimental Evaluation
The study evaluates IMPaCT on several high-profile benchmarks from the Open Graph Benchmark (OGB), including ogbn-mag, ogbn-arxiv, and the massive ogbn-papers100m.
Key Results
- Performance Gains: On the
ogbn-magdataset, IMPaCT achieved a 3.8% improvement over the previous state-of-the-art (LDHGNN). - Structural Impact: 1st-moment alignment (PMP) alone provided a 3.0% boost, highlighting that structural balancing is a critical component of temporal graph learning.
- Synthetic Validation: Using a new Temporal Stochastic Block Model (TSBM) generator, the authors confirmed that PMP consistently improves performance across various GNN architectures, including SGC and GCN.
Conclusion and Future Work
IMPaCT demonstrates that distribution shift in graphs is primarily a topological issue—the changing probability of connections over time. By forcing GNNs to produce representations that are "blind" to the specific publication year while retaining structural information, the model learns more robust features.
Future work will focus on scaling the 2nd-moment alignment techniques further and exploring tighter error bounds under more relaxed, non-linear constraints. While JJNORM offers a scalable approximation, fully parallelized implementations could further reduce the overhead for billion-scale graphs.
Summary updated