Abstract
Heterogeneous Graph Neural Networks (HGNNs) are powerful tools for modeling complex systems with multiple node and edge types. However, existing models often overlook critical structural information, such as node centrality and the shared local topology of meta-path instances. This paper introduces the Structure-Aware Heterogeneous Graph Neural Network (SHGNN), which addresses these limitations by explicitly encoding node importance and employing a novel tree-based attention mechanism. Experimental results on IMDB, DBLP, and ACM datasets demonstrate that SHGNN achieves state-of-the-art performance in node classification and clustering tasks.
Introduction
Real-world data, ranging from academic citation networks to movie databases, is inherently heterogeneous. To process such data, researchers typically rely on meta-paths—predefined sequences of node types—to capture semantic relationships. Despite their success, current HGNNs suffer from two primary structural blind spots. First, they often ignore node centrality, treating nodes of the same type as structurally equivalent even when their roles in the network differ significantly. For example, in the IMDB dataset, 99.9% of movie nodes have the same degree, making it impossible for standard models to distinguish blockbusters from indie films based on connectivity alone. Second, they treat meta-path instances as isolated sequences, failing to recognize the "tree-like" local structures formed when multiple paths share intermediate nodes.
Methodology
SHGNN incorporates structural awareness through a multi-stage pipeline designed to inject topological context into the learning process:
- Feature Propagation: To handle nodes without intrinsic features (e.g., directors in a movie graph), SHGNN propagates features from primary nodes to ensure a consistent semantic baseline across the network.
- Node Centrality Encoding: The model calculates "meta-path coverage"—the frequency with which a node appears in meta-path instances—as a proxy for structural importance. This centrality value is converted into an embedding and concatenated with node features.
- Tree-attention Aggregator: Instead of flat sequences, SHGNN expands meta-paths into tree structures rooted at the target node. A cosine-similarity-based attention mechanism aggregates information from leaf nodes up to the root, preserving the local structural context and accounting for shared intermediate neighbors.
- Meta-path Aggregator: Finally, a high-level attention mechanism fuses information from different meta-path trees (e.g., Movie-Actor-Movie and Movie-Director-Movie) to form the final node representation.
Experimental Results
The authors evaluated SHGNN against strong baselines like HAN and MAGNN on three benchmarks: IMDB, DBLP, and ACM.
- Node Classification: SHGNN achieved a 3% to 5% improvement in Macro-F1 scores on the IMDB dataset compared to the previous state-of-the-art (MAGNN-AC).
- Node Clustering: The model showed a dramatic 20% relative improvement in the Adjusted Rand Index (ARI) on IMDB, indicating superior capture of natural data groupings.
- Visualization: t-SNE plots revealed that SHGNN produces tighter and more distinct clusters, minimizing class overlap compared to traditional HGNNs.
Conclusion
SHGNN demonstrates that structural awareness—specifically node centrality and tree-based neighborhood modeling—is crucial for effective learning on heterogeneous graphs. By modeling neighborhoods as trees rather than sets of independent paths, the model more accurately reflects the closeness of nodes. While the model currently relies on human-defined meta-paths, future work will focus on automated path discovery and scaling the tree-attention mechanism to massive, dynamic networks.
Summary updated