[Paper Review] Heterogeneous Graph Attention Network
This paper proposes Heterogeneous Graph Attention Network (HAN), a novel graph neural network that leverages hierarchical attention—node-level and semantic-level—to model heterogeneous graphs with multiple node and edge types. By learning attention weights for both individual neighbors and meta-paths, HAN captures rich semantic information and achieves state-of-the-art performance in node classification and clustering on real-world heterogeneous graphs, with improved interpretability through attention visualization.
Graph neural network, as a powerful graph representation technique based on deep learning, has shown superior performance and attracted considerable research interest. However, it has not been fully considered in graph neural network for heterogeneous graph which contains different types of nodes and links. The heterogeneity and rich semantic information bring great challenges for designing a graph neural network for heterogeneous graph. Recently, one of the most exciting advancements in deep learning is the attention mechanism, whose great potential has been well demonstrated in various areas. In this paper, we first propose a novel heterogeneous graph neural network based on the hierarchical attention, including node-level and semantic-level attentions. Specifically, the node-level attention aims to learn the importance between a node and its metapath based neighbors, while the semantic-level attention is able to learn the importance of different meta-paths. With the learned importance from both node-level and semantic-level attention, the importance of node and meta-path can be fully considered. Then the proposed model can generate node embedding by aggregating features from meta-path based neighbors in a hierarchical manner. Extensive experimental results on three real-world heterogeneous graphs not only show the superior performance of our proposed model over the state-of-the-arts, but also demonstrate its potentially good interpretability for graph analysis.
Motivation & Objective
- To address the challenge of modeling heterogeneous graphs with diverse node types, edge types, and rich semantic relations.
- To incorporate attention mechanisms into graph neural networks for heterogeneous graphs, where traditional GNNs are not directly applicable.
- To learn meaningful representations by jointly modeling node-level attention (importance of neighbors) and semantic-level attention (importance of meta-paths).
- To improve performance and interpretability in node classification and clustering tasks on heterogeneous graphs.
- To demonstrate that attention mechanisms can effectively capture semantic heterogeneity and structural complexity in real-world networks.
Proposed method
- Introduces a hierarchical attention mechanism with two levels: node-level attention to weigh the importance of neighboring nodes based on meta-path context, and semantic-level attention to weigh the importance of different meta-paths.
- Uses meta-paths as structural priors to define neighborhood relations, enabling the model to aggregate features along semantically meaningful paths (e.g., Movie-Actor-Movie, Movie-Director-Movie).
- Employs multi-head attention to stabilize training and improve representation learning, with learnable parameters for attention queries, keys, and values.
- Aggregates features from meta-path-based neighbors using attention-weighted sums, preserving both structural and feature-level information.
- Applies a two-level attention mechanism: first, attention over neighbors within a meta-path; second, attention over different meta-paths to fuse heterogeneous semantic signals.
- Uses t-SNE visualization to project learned node embeddings into 2D space, demonstrating improved clustering and class separation.
Experimental results
Research questions
- RQ1How can attention mechanisms be effectively adapted to heterogeneous graphs with multiple node and edge types?
- RQ2Can hierarchical attention (node-level and semantic-level) improve representation learning in heterogeneous information networks?
- RQ3How do attention weights reflect the semantic importance of different meta-paths in real-world graphs?
- RQ4Does the proposed HAN model outperform existing GNNs and meta-path-based methods in node classification and clustering tasks?
- RQ5Can the learned attention weights provide interpretable insights into the importance of specific meta-paths and neighbors?
Key findings
- HAN achieves state-of-the-art performance on three real-world heterogeneous graphs—IMDB, ACM, and DBLP—in both node classification and clustering tasks.
- On the ACM dataset, HAN achieves a normalized mutual information (NMI) score of 0.842 in clustering, outperforming the second-best method by 2.5%.
- Semantic-level attention assigns higher weights to more informative meta-paths: for example, APCPA receives significantly higher attention than APA or APTPA in DBLP.
- Visualization using t-SNE shows that HAN produces well-separated clusters for authors in different research areas, unlike GCN and GAT, which mix classes.
- The model is robust to hyperparameter choices, with optimal performance achieved at embedding dimension 128 and attention head count 8, while performance degrades with overfitting at higher dimensions.
- Abllation studies confirm that removing either node-level or semantic-level attention leads to significant performance drops, validating the necessity of both attention mechanisms.
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.