[Paper Review] Heterogeneous Temporal Graph Neural Network
This paper proposes Heterogeneous Temporal Graph Neural Network (HTGNN), a novel GNN framework that jointly models heterogeneous spatial dependencies and temporal dynamics through a hierarchical aggregation mechanism—comprising intra-relation, inter-relation, and across-time aggregations—achieving state-of-the-art performance on real-world heterogeneous temporal graphs like OGBN-MAG and COVID-19 datasets.
Graph neural networks (GNNs) have been broadly studied on dynamic graphs for their representation learning, majority of which focus on graphs with homogeneous structures in the spatial domain. However, many real-world graphs - i.e., heterogeneous temporal graphs (HTGs) - evolve dynamically in the context of heterogeneous graph structures. The dynamics associated with heterogeneity have posed new challenges for HTG representation learning. To solve this problem, in this paper, we propose heterogeneous temporal graph neural network (HTGNN) to integrate both spatial and temporal dependencies while preserving the heterogeneity to learn node representations over HTGs. Specifically, in each layer of HTGNN, we propose a hierarchical aggregation mechanism, including intra-relation, inter-relation, and across-time aggregations, to jointly model heterogeneous spatial dependencies and temporal dimensions. To retain the heterogeneity, intra-relation aggregation is first performed over each slice of HTG to attentively aggregate information of neighbors with the same type of relation, and then intra-relation aggregation is exploited to gather information over different types of relations; to handle temporal dependencies, across-time aggregation is conducted to exchange information across different graph slices over the HTG. The proposed HTGNN is a holistic framework tailored heterogeneity with evolution in time and space for HTG representation learning. Extensive experiments are conducted on the HTGs built from different real-world datasets and promising results demonstrate the outstanding performance of HTGNN by comparison with state-of-the-art baselines. Our built HTGs and code have been made publicly accessible at: https://github.com/YesLab-Code/HTGNN.
Motivation & Objective
- Address the challenge of representation learning on heterogeneous temporal graphs (HTGs), which evolve dynamically in both structure and features.
- Overcome the limitations of existing models that process spatial and temporal dependencies serially and are sensitive to graph characteristics.
- Develop a unified framework that preserves graph heterogeneity while modeling joint spatial-temporal interactions in dynamic HTGs.
- Enable agnostic performance across diverse HTG types, such as those with evolving structures (e.g., academic networks) or changing node features (e.g., epidemiological networks).
Proposed method
- Propose a hierarchical aggregation mechanism in each HTGNN layer: intra-relation aggregation for neighbor information collection within the same relation type.
- Apply inter-relation aggregation to aggregate information across different relation types, preserving heterogeneity in spatial structure.
- Introduce across-time aggregation to exchange information across temporal slices, modeling temporal evolution explicitly.
- Design a holistic, end-to-end framework that processes spatial and temporal dependencies jointly rather than sequentially.
- Utilize attention mechanisms in intra-relation and inter-relation modules to weigh neighbor contributions dynamically.
- Integrate residual connections and normalization to mitigate over-smoothing and improve training stability across multiple layers.
Experimental results
Research questions
- RQ1How can a GNN model effectively capture both heterogeneous spatial dependencies and temporal dynamics in evolving graphs?
- RQ2Can a unified framework outperform specialized models tailored for either structural or feature-based dynamics in HTGs?
- RQ3To what extent do intra-relation, inter-relation, and across-time aggregations contribute to representation learning in HTGs?
- RQ4How sensitive is the proposed HTGNN to hyperparameters such as model depth, embedding dimension, and time window size?
- RQ5Does joint modeling of spatial and temporal dimensions lead to better generalization across diverse HTG characteristics?
Key findings
- HTGNN achieves the highest AUC of 91.01±0.77 and AP of 89.18±1.24 on the OGBN-MAG and COVID-19 datasets, respectively, outperforming both HTGNN ST and HTGNN TS variants.
- HTGNN ST performs better on OGBN-MAG (AUC: 89.35±0.81), where structural dynamics dominate, while HTGNN TS excels on the COVID-19 dataset (AUC: 88.01±0.71), where feature dynamics prevail.
- Ablation studies confirm that all three components—inter-relation, intra-relation, and across-time aggregations—are essential, with the full model outperforming variants that omit any one.
- The model exhibits sensitivity to depth, with performance peaking at 3–4 layers before declining due to over-smoothing.
- Larger embedding dimensions initially improve performance but lead to overfitting when set too high, indicating an optimal range for representation capacity.
- Time window size has a non-monotonic effect: performance improves with larger windows up to a point, after which fluctuations occur due to noise or redundancy in historical data.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.