Abstract
Heterogeneous Graph Neural Networks (HGNNs) have traditionally relied on complex, multi-layered architectures and computationally expensive attention mechanisms to capture rich semantic information. We present SeHGNN (Simple and Efficient Heterogeneous Graph Neural Network), a model that challenges this complexity. By employing pre-computed mean aggregation for neighbors and a single-layer architecture utilizing long metapaths, SeHGNN achieves state-of-the-art performance. Crucially, it offers dramatic efficiency gains, outperforming existing heavyweights like MAGNN while being up to 500x faster.
Introduction
Heterogeneous graphs, which contain multiple types of nodes and edges, are essential for representing complex real-world data like citation networks or knowledge graphs. While HGNNs have been developed to exploit this richness, many current models are "bloated," inheriting mechanisms like multi-head attention and deep stacking from homogeneous GNNs without sufficient justification. This complexity results in significant computational overhead, hindering scalability. SeHGNN addresses this by simplifying the architecture to improve speed without sacrificing predictive power.
Methodology
SeHGNN is built upon three primary architectural innovations designed to maximize efficiency and semantic clarity.
1. Simplified Neighbor Aggregation
Instead of the standard practice of calculating attention weights for every neighbor during every training epoch, SeHGNN utilizes a lightweight mean aggregator. Since this process is parameter-free and linear, it can be pre-computed once before training begins, removing a major computational bottleneck.
2. Single-Layer with Long Metapaths
To avoid "semantic blurring"—where intermediate vectors become a mixture of different semantics too early—SeHGNN avoids deep stacking. Instead, it uses a single-layer structure combined with long metapaths (e.g., 4-hop paths like Author-Paper-Subject-Paper-Author). This allows the model to capture high-level semantics while keeping different signals distinct until the final fusion step.
3. Transformer-based Semantic Fusion
To integrate information from various metapaths, SeHGNN employs a Transformer-style module. This component learns to weight the importance of different semantic paths for each node's representation. Additionally, the model incorporates Label Propagation by pre-computing label distributions across metapaths, treating them as auxiliary features.
Experimental Setup
The model was evaluated on several prominent benchmarks:
- HGB Benchmark: Includes DBLP, ACM, IMDB, and Freebase datasets for node classification.
- OGB Challenge: The
ogbn-magdataset, featuring over 1.9 million nodes and 21 million edges, was used to assess scalability on real-world scales.
Results and Discussion
SeHGNN demonstrates a superior balance between accuracy and computational efficiency.
Performance and Efficiency
SeHGNN achieved the top position on the HGB benchmark and outperformed all baselines on the ogbn-mag leaderboard. As shown in Figure 4, the efficiency gains are substantial. On the DBLP dataset, SeHGNN is 25x faster than HAN, 38x faster than HGT, and 500x faster than MAGNN.
Key Insights
- Neighbor Attention vs. Semantic Attention: The authors found that while "semantic attention" (choosing between metapaths) is vital, "neighbor attention" (choosing between specific neighbors) is often redundant. Simple averaging is sufficient and significantly cheaper.
- The Multi-Layer Trap: Stacking layers in HGNNs can be counterproductive. A single-layer approach with long metapaths preserves semantic integrity more effectively.
Conclusion
SeHGNN proves that simplification can lead to both better performance and higher efficiency in heterogeneous graph learning. While it currently relies on manually defined metapaths and has some memory overhead for pre-computation, its speed and accuracy set a new standard for the field. Future work may explore automated metapath discovery and adaptation for dynamic graphs.
Summary updated