TL;DR
Temporal Graph Networks (TGNs) are powerful tools for modeling dynamic systems, but they are prone to overfitting because they often treat all historical data with equal importance. This paper introduces MeTA (Memory Tower Augmentation), a novel framework that adaptively applies data augmentation. By injecting more noise into less informative "distant" data while preserving the signal in critical "recent" interactions, MeTA significantly boosts model generalization without increasing inference costs.
The Challenge of Overfitting in Temporal Graphs
Many real-world systems—from social networks to financial transactions—are best represented as temporal graphs, where edges (interactions) have specific timestamps. While TGNs excel at modeling these dynamics, their high complexity makes them susceptible to overfitting. They often "memorize" random noise instead of learning the underlying semantic patterns.
Standard data augmentation (DA) helps combat overfitting in images or text, but it is tricky to apply to temporal graphs. In a graph, not all edges are equally important: an interaction that happened five minutes ago is usually more predictive of a user's next move than one from last year. Similarly, direct neighbors are more informative than nodes several "hops" away. Applying the same amount of noise to every edge is suboptimal. The core challenge is to apply adaptive DA magnitudes—more noise for less important data—efficiently.
The MeTA Framework
To solve this, the authors propose the MeTA (Memory Tower Augmentation) module. Instead of a single memory stream, MeTA uses a "tower" of memory modules with shared weights to process graphs with different noise magnitudes.
Key components of the architecture include:
- Multi-level Hierarchy: Level 1 processes data with low noise (low DA magnitude), while higher levels (e.g., Level 2) process data with higher noise. Predictions are always made using the "cleaner" Level 1.
- Cross-level Propagation: When updating a node's state, the model pulls information from its neighbors' states at higher (noisier) levels. This naturally applies more noise to topologically distant information.
- Memory Transition: Periodically, the memory states from higher levels are moved down to lower levels. Because older interactions "sink" through this process, they effectively receive higher cumulative noise than recent ones.
To support this framework, three specific DA strategies are introduced:
- Perturb Time: Adding Gaussian noise to edge timestamps to simulate realistic "time shifts."
- Remove Edges: Randomly dropping edges to simulate missing data.
- Add Edges with Perturbed Time: Creating synthetic interactions based on existing ones to model repetitive behaviors.
Key Insights
- Informativeness is Spatio-Temporal: The "signal" in a temporal graph decays over time and distance. Adaptive DA exploits this by being gentle with recent/local data and aggressive with old/distant data.
- Efficiency is Maintained: A naive approach to adaptive DA (re-feeding the entire graph for every prediction) would result in $O(N^2)$ complexity. MeTA maintains the $O(N)$ efficiency of standard TGNs by using the tower structure and periodic transitions.
- Zero Inference Overhead: Because DA and the multi-level tower are only used during training, the final model performs inference just as fast as a standard TGN.
- Time Perturbation Matters: Among the DA strategies, perturbing timestamps was particularly effective, suggesting that TGNs are highly sensitive to precise timing, which can often be noisy in real-world logs.
Results and Performance
The researchers evaluated MeTA on three standard temporal graph benchmarks: Wikipedia (editing bans), Reddit (posting bans), and MOOC (course dropouts). MeTA consistently improved the performance of popular TGN models (like TGN and DyRep) across all datasets for both edge prediction and node classification.
- Edge Prediction: In transductive settings, adding MeTA to a standard TGN improved accuracy by up to 3.0% on the MOOC dataset and 2.0% on Wikipedia.
- Inductive Generalization: The gains were even more pronounced when predicting interactions for nodes never seen during training, highlighting the framework's superior ability to generalize to new data.
- Training Speed: While MeTA (with $L=2$ levels) takes slightly longer per epoch than a standard TGN, it is orders of magnitude faster than baseline adaptive approaches while achieving better accuracy.
Future Directions
While effective, the current DA strategies may not capture all types of realistic noise found in complex systems (e.g., malicious bot behavior or systemic sensor failures). Future research could explore more sophisticated, learnable DA strategies, apply the MeTA concept to non-RNN dynamic architectures, and investigate its scalability on extremely large-scale graphs with millions of nodes.
Summary updated