Node-wise Filtering in Graph Neural Networks: A Mixture of Experts Approach
Haoyu Han, Juanhui Li, Wei Huang, Xianfeng Tang, Hanqing Lu, Chen Luo, Hui Liu, Jiliang Tang
TL;DR
The paper addresses node classification on graphs with mixed homophilic and heterophilic patterns, showing that a single global filter can underperform across nodes. It introduces Node-MoE, a mixture-of-experts framework that assigns different filters to individual nodes via a gating model informed by node features and local context, with diverse expert GNNs and a filter-smoothing loss. Theoretical insights based on a mixed CSBM model demonstrate that per-pattern filtering yields near-linear separability for all nodes, while comprehensive experiments across seven datasets establish robust, state-of-the-art performance on both homophilic and heterophilic graphs. This approach offers a scalable, adaptable solution for complex real-world graphs where structural patterns vary across communities and nodes, advancing practical graph representation learning.
Abstract
Graph Neural Networks (GNNs) have proven to be highly effective for node classification tasks across diverse graph structural patterns. Traditionally, GNNs employ a uniform global filter, typically a low-pass filter for homophilic graphs and a high-pass filter for heterophilic graphs. However, real-world graphs often exhibit a complex mix of homophilic and heterophilic patterns, rendering a single global filter approach suboptimal. In this work, we theoretically demonstrate that a global filter optimized for one pattern can adversely affect performance on nodes with differing patterns. To address this, we introduce a novel GNN framework Node-MoE that utilizes a mixture of experts to adaptively select the appropriate filters for different nodes. Extensive experiments demonstrate the effectiveness of Node-MoE on both homophilic and heterophilic graphs.
