Abstract
Representing nodes in temporal networks is challenging due to rapidly changing topologies and evolving user preferences. This paper introduces the Dynamic Preference Structure (DPS) framework, which adaptively samples neighbors using a dual-sampler approach. By combining a personalized Time Decay Sampler (TDS) with a Gumbel Attention Sampler (GAS), DPS captures both temporal decay patterns and semantic proximity. Experimental results across 12 real-world datasets demonstrate that DPS significantly outperforms state-of-the-art graph neural networks and recurrent models in link prediction and node classification tasks.
Introduction
Most real-world networks—from social media platforms to financial transaction systems—are inherently temporal. Interactions occur at specific timestamps, and the underlying graph structure is in a constant state of flux. Traditional Graph Neural Networks (GNNs) often rely on static snapshots or heuristic sampling methods (e.g., uniform sampling or most-recent-N neighbors), which fail to capture the nuanced, personalized evolution of node preferences. A user's interest might shift from one genre to another over time, and a model must adapt to these "dynamic preference structures" to remain accurate.
The DPS Framework
The proposed DPS framework addresses these limitations by moving away from fixed sampling rules. Instead, it employs a two-stage process: Structure Sampling and Graph Fusion.
Structure Sampling
DPS utilizes two distinct, trainable samplers to identify the most relevant neighbors for a node at any given time:
- Time Decay Sampling (TDS): This sampler focuses on temporal dynamics. Recognizing that different nodes have different "memories," TDS learns a personalized decay rate ($\lambda_u$) for each node. This allows the model to weight historical interactions based on their temporal relevance to the current state.
- Gumbel Attention Sampling (GAS): This sampler captures semantic and structural proximity. By employing the Gumbel-softmax trick, the model makes the discrete neighbor selection process differentiable, allowing it to learn which neighbors are most informative based on their features and high-order connectivity.
Graph Fusion
The outputs from TDS and GAS represent different aspects of the network (temporal vs. semantic). To create a unified node representation, DPS uses an attention-based fusion layer. This layer intelligently weights the heterogeneous embeddings, ensuring the final representation is optimized for downstream tasks like link prediction.
Experimental Evaluation
The researchers evaluated DPS on 12 diverse real-world temporal datasets, focusing on two primary tasks: link prediction and node classification.
Link Prediction and Node Classification
On 10 datasets ranging from small workplace networks to large-scale interaction graphs like ia-slashdot, DPS consistently outperformed baselines such as TGAT and APAN. Notably, it achieved improvements of up to 8.4% in accuracy and 6.1% in AUC on the most challenging datasets.
For node classification, the model was tested on Wikipedia and Reddit datasets to predict user bans. Despite extreme label imbalance (e.g., 0.05% positive labels on Reddit), DPS achieved superior AUC scores (0.902 for Wikipedia and 0.703 for Reddit), demonstrating its ability to extract signal from noisy, sparse data.
Key Insights
- Personalization is Crucial: Learning node-specific decay rates is significantly more effective than applying a global temporal decay constant. Every node in a network has a unique historical influence pattern.
- Hybrid Sampling Synergy: Ablation studies confirm that TDS excels in sparse networks by focusing on time, while GAS is vital for capturing semantics in dense regions. Their combination provides a robust "best of both worlds" representation.
- GNN Superiority: The results reinforce that GNN-based architectures are better suited for temporal networks than RNN-based models (like JODIE) because they can effectively model high-order relationships and collaborative filtering signals (e.g., "friends of friends").
- Hyperparameter Robustness: As shown in the experimental results, the model maintains stable performance across different configurations (such as varying attention heads), indicating that the learnable sampling strategy effectively handles the heavy lifting of feature selection.
Conclusion
The DPS framework represents a significant step forward in temporal network embedding. By adaptively learning "when" and "why" interactions matter through personalized sampling and fusion, it provides a powerful tool for modeling evolving systems. Future work will explore self-supervised pretraining tasks and methods to enhance the interpretability of the learned preference structures, allowing researchers to see exactly which historical interactions drive future predictions.
Summary updated