Abstract
Predicting future connections in Temporal Heterogeneous Networks (THNs) is a complex task due to the inherent spatial and temporal heterogeneities of such systems. Current methods often fail to capture fine-grained topological nuances and non-linear evolutionary patterns. This paper proposes the Contrastive Learning-based Link Prediction (CLP) model, which bridges these gaps through a multi-view hierarchical self-supervised architecture. CLP integrates spatial feature modeling via partitioned sub-graphs and dual-channel temporal modeling to capture both short-term and long-term dynamics. Experimental results across four diverse real-world datasets demonstrate that CLP significantly outperforms state-of-the-art models, achieving an average improvement of 10.10% in AUC and 13.44% in Average Precision (AP).
Introduction
Temporal Heterogeneous Networks (THNs), such as social media platforms and e-commerce systems, are characterized by multiple types of nodes and edges that evolve over time. Link prediction in these networks is hindered by two primary challenges:
- Spatial Heterogeneity: Different node and edge types follow distinct distribution patterns. Coarse-grained models often overlook these fine-grained topological differences.
- Temporal Heterogeneity: Network evolution is non-uniform, consisting of both short-term activity bursts and long-term structural shifts.
Existing approaches typically smooth over these differences, leading to suboptimal performance. There is a critical need for models that can capture diverse patterns and integrate them into a cohesive representation.
Methodology: The CLP Framework
The proposed CLP model addresses these challenges through three integrated layers:
Spatial Feature Modeling Layer
This layer utilizes a two-layer hierarchical Graph Attention Network (GAT). To preserve spatial nuances, the network is partitioned into type-specific sub-graphs. This allows the model to learn distinct representations at both the node and edge levels, capturing the unique topological signatures of different entity types.
Temporal Information Modeling Layer
To handle varying temporal scales, CLP employs a dual-channel approach:
- LSTM Channel: Captures long-term evolutionary dependencies across the network's history.
- GRU Channel: Focuses on short-term interactions between adjacent snapshots, preserving immediate dynamic shifts.
Hierarchical Contrastive Learning
The core of CLP is its hierarchical contrastive learning mechanism. By applying InfoNCE loss functions at the node, edge, and time levels, the model contrasts different "views" of the same entity (e.g., GAT-derived vs. GNN-derived features). This self-supervised approach aligns disparate data distributions, effectively bridging the gap between heterogeneous components.
Experimental Evaluation
The model was evaluated on four real-world datasets: Math-overflow, Taobao, OGBN-MAG, and COVID-19. CLP consistently outperformed eight baseline models, including THGAT.
Key Results and Insights
- Quantitative Performance: CLP achieved a 94.27% AP on the OGBN-MAG dataset and showed an average AUC improvement of 10.10% across all benchmarks.
- Ablation Study Insights: Removing specific components of the contrastive loss highlighted their relative importance. Notably, the edge-level contrastive loss was identified as the most critical component; its removal led to a performance drop of up to 35% in AUC on the Taobao dataset, underscoring the importance of connection types in heterogeneous networks.
Conclusion
The CLP framework successfully bridges spatial and temporal heterogeneity in link prediction by leveraging hierarchical contrastive learning. By explicitly modeling fine-grained topological and evolutionary patterns, it sets a new state-of-the-art for THNs. Future work will explore the integration of multimedia content and the application of CLP to anomaly detection in high-speed data streams.
Summary updated