TL;DR
The researchers introduce HG2M+, a framework that distills the complex relational knowledge of Heterogeneous Graph Neural Networks (HGNNs) into simple, lightning-fast Multi-Layer Perceptrons (MLPs). By filtering for reliable teacher predictions and leveraging meta-path-based structural semantics, HG2M+ achieves up to a 379x inference speedup while maintaining or even exceeding the accuracy of state-of-the-art graph models.
What Problem Does This Paper Address?
Heterogeneous Graph Neural Networks (HGNNs) are the gold standard for learning on graphs with multiple node and edge types (e.g., a movie database with actors, directors, and genres). They excel by aggregating information from a node's neighbors across different types of relationships.
However, this power comes at a high cost: inference latency. Because HGNNs depend on the graph structure, they must fetch features from an exponentially growing neighborhood as the model gets deeper. As shown in Figure 1, this makes them difficult to deploy in real-time, large-scale industrial systems with strict latency and memory constraints. While standard MLPs are incredibly fast because they only look at a single node's features, they typically perform poorly because they ignore the rich structural context of the graph.
Methods
The authors propose two versions of their framework: HG2M (a baseline distillation approach) and HG2M+ (the full, optimized version).
- HG2M: Uses standard Knowledge Distillation (KD). A well-trained "teacher" HGNN generates "soft labels" (probability distributions) for nodes. A "student" MLP is then trained to mimic these labels using only the node's own features as input.
- HG2M+: Enhances the distillation process with two novel components to handle the noise and complexity of heterogeneous graphs:
- Reliable Node Distillation (RND): Not all teacher predictions are correct. RND filters out "noisy" labels by selecting only high-confidence, low-uncertainty predictions from the teacher to guide the student.
- Reliable Meta-path Distillation (RMPD): To inject structural knowledge, RMPD identifies "reliable intra-class neighbors" using meta-paths—predefined sequences of node and edge types (e.g., Movie-Actor-Movie). It then transfers knowledge from these neighbors to the target node, helping the MLP "see" the graph structure without actually needing it at runtime.
Datasets
The models were evaluated on six real-world heterogeneous graph datasets:
- Small-scale: TMDB (movies), CroVal (Q&A site), and ArXiv (academic papers).
- Large-scale: Three versions of the IGB dataset (IGB-549K-19, IGB-549K-2K, and IGB-3M-19), with the largest containing over 3 million nodes and 26 million edges.
Key Insights and Ideas
- Structural Independence at Inference: The most significant "aha" moment is that an MLP can achieve HGNN-level accuracy without needing the graph during inference. The graph structure is "baked" into the MLP's weights during the training/distillation phase.
- Reliability Matters: Simply mimicking a teacher isn't enough. By filtering for reliable nodes (RND), the student avoids learning from the teacher's mistakes, which is crucial for generalization.
- Meta-paths as Semantic Bridges: In heterogeneous graphs, different paths carry different meanings (e.g., "co-actor" vs. "co-director"). RMPD uses these paths to provide a richer supervisory signal than simple node-level labels.
- Information Theory Perspective: The authors show that while MLPs usually ignore the mutual information between edges and labels, distillation allows them to approximate the ideal prediction function that accounts for both features and structure.
Key Results
- Massive Speedup: HG2M+ achieved an inference speedup ranging from 39.81x to 379.24x over the teacher HGNN (RSAGE). On the IGB-3M-19 dataset, inference time dropped from 125.15ms to just 0.33ms.
- Accuracy Gains: HG2M+ outperformed vanilla MLPs by an average of 7.78% in accuracy.
- Competitive Performance: In many cases, the student MLP actually outperformed its teacher HGNN, likely due to the noise-filtering effects of the RND component.
- Memory Efficiency: During inference on the largest dataset, HG2M+ used 28x less memory than the HGNN.
Limitations and Future Work
While highly effective, the authors note a few areas for improvement:
- Meta-path Dependency: The RMPD component relies on manually selected meta-paths. If a graph is extremely sparse or meta-paths lack clear semantic meaning, the benefits might diminish.
- Task Specificity: Currently, the framework is designed for node classification. The authors suggest that extending this to link prediction or graph classification is a promising future direction.
- Feature Quality: Since the MLP relies solely on node features at inference, it may still be susceptible to high levels of feature noise, though it handles it better than a vanilla MLP.
Summary updated