[Paper Review] HMSG: Heterogeneous Graph Neural Network based on Metapath Subgraph Learning
HMSG proposes a heterogeneous graph neural network that decomposes graphs into metapath-based subgraphs to jointly capture structural, semantic, and attribute information from both homogeneous and heterogeneous neighbors. By applying type-specific message passing and attention-based aggregation across subgraphs, HMSG achieves state-of-the-art performance across node classification, clustering, and link prediction tasks on multiple benchmark datasets.
Many real-world data can be represented as heterogeneous graphs with different types of nodes and connections. Heterogeneous graph neural network model aims to embed nodes or subgraphs into low-dimensional vector space for various downstream tasks such as node classification, link prediction, etc. Although several models were proposed recently, they either only aggregate information from the same type of neighbors, or just indiscriminately treat homogeneous and heterogeneous neighbors in the same way. Based on these observations, we propose a new heterogeneous graph neural network model named HMSG to comprehensively capture structural, semantic and attribute information from both homogeneous and heterogeneous neighbors. Specifically, we first decompose the heterogeneous graph into multiple metapath-based homogeneous and heterogeneous subgraphs, and each subgraph associates specific semantic and structural information. Then message aggregation methods are applied to each subgraph independently, so that information can be learned in a more targeted and efficient manner. Through a type-specific attribute transformation, node attributes can also be transferred among different types of nodes. Finally, we fuse information from subgraphs together to get the complete representation. Extensive experiments on several datasets for node classification, node clustering and link prediction tasks show that HMSG achieves the best performance in all evaluation metrics than state-of-the-art baselines.
Motivation & Objective
- To address the limitation of existing heterogeneous GNNs that either ignore heterogeneous neighbors or treat all neighbors uniformly.
- To capture richer structural, semantic, and attribute information by decomposing heterogeneous graphs into metapath-based subgraphs.
- To improve node representation learning by separately aggregating messages from homogeneous and heterogeneous neighbors using type-specific transformations.
- To achieve superior performance on downstream tasks such as node classification, clustering, and link prediction.
Proposed method
- The model constructs multiple metapath-based subgraphs (both homogeneous and heterogeneous) from the original heterogeneous graph to preserve specific semantic and structural relationships.
- For each subgraph, message passing is performed independently using a graph convolutional network to aggregate neighborhood information.
- A type-specific attribute transformation layer is applied to transfer and align node attributes across different node types.
- An attention mechanism is used to dynamically aggregate representations from multiple subgraphs, enabling adaptive weighting of subgraph contributions.
- The final node representation is obtained by fusing the outputs from all subgraphs through concatenation and non-linear transformation.
Experimental results
Research questions
- RQ1Can a heterogeneous GNN model that treats homogeneous and heterogeneous neighbors differently achieve better performance than models that aggregate them uniformly?
- RQ2How effectively can metapath-based subgraph decomposition preserve semantic and structural information in heterogeneous graphs?
- RQ3Does incorporating type-specific attribute transformations improve representation learning in heterogeneous graphs?
- RQ4Can attention-based fusion of multiple metapath subgraphs lead to more robust and generalizable node embeddings?
Key findings
- HMSG achieves the best performance across all evaluation metrics on node classification, outperforming state-of-the-art models on ACM, IMDB, and Amazon Review datasets.
- On the link prediction task, HMSG achieves an AUC of 82.14% and AP of 81.37% on Review-I, and 78.96% AUC and 79.05% AP on Review-II, significantly outperforming all baselines.
- The ablation study confirms that including both homogeneous and heterogeneous subgraphs improves performance, with the self-attention variant (HMSG_atten) yielding the best overall results.
- Graph convolution-based models like HMSG consistently outperform random-walk-based methods such as metapath2vec and node2vec in all tasks, highlighting the advantage of inductive message passing.
- The variant using only homogeneous subgraphs (HMSG_ho) performs poorly on most tasks, validating the necessity of incorporating heterogeneous neighbors.
- The use of type-specific attribute transformation and attention-based aggregation leads to significant performance gains, especially in link prediction and clustering tasks.
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.