Abstract
In this paper, we propose the Graph Temporal Edge Aggregation (GTEA) framework for inductive learning on Temporal Interaction Graphs (TIGs). Different from previous works, GTEA models the temporal dynamics of interaction sequences in the continuous-time space and simultaneously takes advantage of both rich node and edge/interaction attributes in the graph. Concretely, we integrate a sequence model with a time encoder to learn pairwise interactional dynamics between two adjacent nodes. This helps capture complex temporal interactional patterns of a node pair along the history, which generates edge embeddings that can be fed into a GNN backbone. By aggregating features of neighboring nodes and the corresponding edge embeddings, GTEA jointly learns both topological and temporal dependencies of a TIG. In addition, a sparsity-inducing self-attention scheme is incorporated for neighbor aggregation, which highlights more important neighbors and suppresses trivial noises for GTEA. By jointly optimizing the sequence model and the GNN backbone, GTEA learns more comprehensive node representations capturing both temporal and graph structural characteristics. Extensive experiments on five large-scale real-world datasets demonstrate the superiority of GTEA over other inductive models.
Introduction
Temporal Interaction Graphs (TIGs) are ubiquitous in real-world applications, representing sequences of events such as financial transactions or user-item interactions. Unlike static graphs, TIGs contain edges that evolve over time. Existing methods often struggle with two main issues: "snapshotting," which loses fine-grained temporal data, and "node-centric mixing," where a node's entire history is aggregated into a single timeline, potentially drowning out rare but critical signals (like fraudulent activity) amidst normal behavior.
GTEA addresses these by focusing on the specific sequence of interactions between pairs of nodes, preserving the unique context of each relationship. Furthermore, GTEA is designed to be inductive, allowing it to generalize to new, unseen nodes that join the network after training.
Methodology
The GTEA framework consists of three core innovations that allow it to capture complex temporal and structural dependencies:
- Pairwise Interaction Modeling: Instead of aggregating a node's entire history, GTEA uses sequence models (e.g., LSTM or Transformers) to process the specific sequence of events on an edge $(u, v)$. This captures relationship-specific dynamics.
- Continuous Time Encoding: To handle irregular timing between events, GTEA integrates a time-encoding scheme (based on Time2Vec) that maps intervals into a vector space, learning periodicities in continuous time.
- Sparsity-Inducing Self-Attention: In large networks, many neighbors are "noise." GTEA employs a sparse attention mechanism that truncates low-weight neighbor contributions to zero, focusing the model on the most informative connections.
These components are integrated into a GNN backbone where temporal edge embeddings and neighbor features are aggregated to produce final node representations $z_u^L$ for downstream classification.
Experimental Results
The authors evaluated GTEA against several baselines, including GCN, GraphSAGE, and TGAT, across five large-scale datasets: Mobile-Pay, Ethereum Phishing (Phish-L/S), Wikipedia, and Reddit.
- Node Classification: On the Mobile-Pay dataset, GTEA achieved an F1-score of 0.7990, significantly outperforming the state-of-the-art TGAT (0.7212).
- Link Prediction: On the Reddit dataset, GTEA reached an accuracy of 0.8865, compared to 0.8418 for TGAT.
- Ablation Insights: The inclusion of the Time Encoder (+T) and the use of sparse attention were critical. In the Mobile-Pay dataset, sparse attention zeroed out 40-70% of noisy neighbors, drastically improving the signal-to-noise ratio for anomaly detection.
Conclusion
GTEA provides a robust framework for inductive learning on temporal graphs by prioritizing pairwise interactional dynamics and employing sparsity to filter network noise. By modeling interactions in continuous time and maintaining relationship-specific context, it sets a new benchmark for fraud detection and link prediction in dynamic environments.
Summary updated