Abstract
Graph Neural Networks (GNNs) typically rely on the homophily assumption, where connected nodes share similar labels. However, real-world graphs often exhibit a mixture of homophilic and heterophilic patterns. We present MoE-NP (Mixture of Experts for Node Patterns), a framework that adaptively selects the optimal GNN expert for each node based on local and global structural context. MoE-NP achieves state-of-the-art performance across diverse benchmarks by effectively managing intra-graph diversity.
Introduction
The "homophily assumption"—the idea that nodes are likely to share labels with their neighbors—is a cornerstone of traditional Graph Neural Network (GNN) design. While effective for many citation networks, this assumption fails in heterophilic graphs, such as dating apps or transaction networks, where connections often form between dissimilar entities.
Current research often treats graphs as monolithic entities, applying a single mathematical filter across all nodes. We argue that real-world graphs are inherently heterogeneous; a single graph can contain clusters of homophily alongside outliers and unique connectivity patterns. To address this, we propose MoE-NP (Mixture of Experts for Node Patterns), which dynamically routes nodes to specialized "expert" models.
The MoE-NP Framework
MoE-NP consists of three primary components designed to capture and act upon node-level diversity:
- Node Pattern Extractor: This module identifies a node's "local signature." Since labels are unknown at test time, it uses random walks to sample neighborhoods and an Edge Discriminator (MLP) to predict relationship types based on features and node degrees.
- Gating Model: This component serves as the system's decision-maker. It evaluates the local pattern against the global graph pattern (the aggregate of all local signatures) to output selection weights for the experts.
- The Experts: The framework employs a diverse set of predictors, including standard GCNs (optimized for homophily), high-pass GNNs (optimized for heterophily), and MLPs (which ignore structure to focus on node attributes).
Empirical Motivation: Pattern Diversity
The fundamental premise of MoE-NP is that intra-graph diversity is a ubiquitous feature of real-world data. As shown in the figure below, even standard benchmarks exhibit significant variance in local homophily and node degrees.
A "one-size-fits-all" GNN is mathematically constrained when faced with such diversity. A filter that performs well on high-degree, homophilic nodes will likely fail on low-degree, heterophilic outliers.
Why a Mixture of Experts?
The necessity of a mixture-of-experts approach is clearly demonstrated by the performance trade-offs between different GNN architectures. As illustrated in the following chart, low-pass GNNs (typically used for homophily) see a sharp decline in accuracy as homophily decreases. Conversely, high-pass GNNs are better suited for low-homophily regions.
By leveraging a gating mechanism, MoE-NP ensures that each node is processed by the architecture most suited to its local structural context.
Key Results and Insights
MoE-NP was evaluated on seven widely-used benchmarks, ranging from citation networks (Cora, PubMed) to webpage links (Texas, Chameleon) and social co-occurrence (Actor). The model achieved the highest average rank (1.43) among seven state-of-the-art baselines.
Significant performance gains were observed in both homophilic and heterophilic settings:
- PubMed: Improved accuracy by 4.4% over the best baseline.
- Actor: Improved accuracy by 3.4%.
Beyond accuracy, the study highlighted the importance of global context. Ablation studies showed that the gating network performs significantly better when it "understands" the overall vibe of the graph. Furthermore, the authors introduced a "few-samples" training trick—training experts on a smaller subset initially—to prevent the gating network from converging on suboptimal, "lazy" routing strategies.
Conclusion
MoE-NP demonstrates that adaptivity is key to handling the complexity of real-world graphs. By moving away from rigid, monolithic architectures and embracing a mixture-of-experts approach, we can build GNNs that are robust to the diverse structural patterns found within a single network. Future work will focus on integrating more complex expert models and refining the gating mechanisms for even more nuanced pattern recognition.
Summary updated