Abstract
Existing message passing neural networks for heterogeneous graphs rely on the concepts of meta-paths or meta-graphs due to the intrinsic nature of heterogeneous graphs. However, the meta-paths and meta-graphs need to be pre-configured before learning and are highly dependent on expert knowledge to construct them. To tackle this challenge, we propose a novel concept of meta-node for message passing that can learn enriched relational knowledge from complex heterogeneous graphs without any meta-paths and meta-graphs by explicitly modeling the relations among the same type of nodes. Unlike meta-paths and meta-graphs, meta-nodes do not require any pre-processing steps that require expert knowledge. Going one step further, we propose a meta-node message passing scheme and apply our method to a contrastive learning model. In the experiments on node clustering and classification tasks, the proposed meta-node message passing method outperforms state-of-the-arts that depend on meta-paths. Our results demonstrate that effective heterogeneous graph learning is possible without the need for meta-paths that are frequently used in this field.
1. Introduction
Graph Neural Networks (GNNs) have seen remarkable success in homogeneous domains, but real-world data is often heterogeneous, consisting of multiple node and edge types. A classic example is a movie database containing movies, actors, directors, and producers. Traditionally, learning from such graphs has required "meta-paths"—expert-defined sequences of relationships (e.g., Movie-Actor-Movie) that guide the model on how nodes are related.
However, meta-paths introduce several challenges: they depend heavily on domain expertise, create information bottlenecks in sparse or noisy graphs, and are computationally expensive to calculate. This paper introduces the Meta-node, a virtual hub for each node type that allows for direct intra-type communication, bypassing the need for manual path engineering.
2. Proposed Method: Meta-node Message Passing
The core innovation is the Meta-node Message Passing Layer (MN-MPL). Instead of following predefined paths, we introduce a virtual "meta-node" for every node type in the graph.
2.1 Message Passing Architecture
The MN-MPL processes information through three concurrent streams to update a node's representation:
- Identity: The node retains its own current state ($h_i^{(l)}$).
- Inter-type Relations (Neighborhood): The node aggregates information from its direct neighbors of different types, similar to standard GNN behavior.
- Intra-type Relations (Meta-node): Every node of a specific type sends a message to its corresponding Meta-node. The Meta-node aggregates these messages and broadcasts a summary back to all nodes of that type.
This mechanism creates a "one-hop shortcut," allowing nodes of the same type to communicate regardless of their distance in the original graph. To ensure scalability and prevent over-squashing, we use a random sampling technique, connecting only a subset ($r\%$) of nodes to the meta-node during each training epoch. This architecture is further enhanced by a contrastive learning framework based on Deep Graph Infomax.
3. Experiments and Results
We evaluated our approach on four standard benchmarks: DBLP (bibliography), ACM (research papers), AMiner (academic network), and Freebase (knowledge graph).
3.1 Performance and Robustness
The Meta-node approach consistently matched or exceeded state-of-the-art (SOTA) performance in node classification and clustering. On the DBLP dataset, our model achieved a Macro-F1 score of 93.43%, surpassing the previous SOTA (HeCo) at 91.28%. In clustering tasks, it reached an NMI of 78.39%, compared to HeCo's 74.51%.
A key finding is the model's robustness to data sparsity. When graphs were thinned by up to 80%, meta-path-based models saw significant performance drops because their required paths were broken. In contrast, the Meta-node approach maintained high accuracy because it does not rely on specific edge sequences to facilitate communication between nodes of the same type.
4. Conclusion
By replacing rigid, expert-designed meta-paths with flexible meta-nodes, we provide a more robust and efficient framework for heterogeneous graph learning. Future work will focus on integrating attention mechanisms to weight intra-type messages more effectively and incorporating distance-aware features to refine the global aggregation process.
Summary updated