Introduction
Real-world data, such as email systems or academic citation networks, is inherently heterogeneous, consisting of multiple node types (e.g., Senders, Messages, IP Addresses) and diverse relationships. To model these complex structures, researchers typically employ metapaths—sequences of relations like Sender → Message → IP. However, current Heterogeneous Graph Neural Networks (HGNNs) face significant challenges: they often ignore the hierarchical relationships between metapaths, struggle with scalability on "web-scale" graphs, and fail to integrate label information effectively within specific metapath contexts.
The HetTree Approach
HETTREE addresses these limitations by organizing complex graph relationships into a hierarchical Semantic Tree. This structure recognizes that many metapaths are extensions or "children" of others (e.g., Sender → Message is a prefix of Sender → Message → IP).
Methods
The HETTREE pipeline consists of three primary stages:
- Offline Aggregation & Semantic Tree Construction: To ensure scalability, the model pre-computes feature and label aggregations for all metapaths up to a specified depth. These are then organized into a Semantic Tree where parent nodes represent prefixes of their children.
- Metapath Feature Transformation: HETTREE precisely pairs aggregated features with labels from the same specific metapath, providing the model with a richer, more accurate context of influence.
- Subtree Attention: A novel subtree attention mechanism calculates weights for child nodes based on their relationship to the entire local subtree structure. This allows the model to dynamically emphasize the most informative branches during bottom-up aggregation.
Experimental Results
The authors evaluated HETTREE on diverse benchmarks, including the HGB datasets (DBLP, IMDB, ACM, Freebase), the large-scale ogbn-mag citation graph (1.9M nodes), and a massive commercial email security dataset.
Performance and Scalability
HETTREE achieved state-of-the-art accuracy across all HGB datasets and outperformed high-performance models like GAMLP and SeHGNN on ogbn-mag with a test accuracy of 55.54%. In real-world email security tasks, HETTREE demonstrated a superior ROC curve, effectively distinguishing compromised accounts in noisy environments.
Crucially, HETTREE maintains a significantly lower computational footprint. By decoupling the expensive aggregation step into an offline phase, the model achieves the lowest epoch time and memory usage among top-performing baselines.
Conclusion
HETTREE represents a significant advancement in HGNNs by leveraging the hierarchical nature of metapaths. Its combination of Semantic Tree organization, subtree attention, and efficient offline aggregation allows it to deliver superior performance on large-scale, real-world heterogeneous graphs while remaining computationally practical for production environments.
Summary updated