Abstract
Graph Neural Networks (GNNs) have emerged as the standard for learning representations from graph-structured data. While traditional architectures relying on message-passing mechanisms excel in homophilic settings, they essentially function as fixed low-pass filters. However, this smoothing operation limits their ability to generalize to heterophilic graphs, where connected nodes often exhibit dissimilar labels and high-frequency signals are crucial for discrimination. Furthermore, existing Mixture-of-Experts (MoE) methods for graphs often suffer from local-view routing, failing to capture global structural context during expert selection. To address these challenges, this paper proposes SS-AdaMoE, a novel Spatio-Spectral Adaptive Mixture of Experts framework designed for robust node classification across diverse graph patterns. Specifically, a Dual-Domain Expert System is constructed, integrating heterogeneous spatial aggregators with learnable spectral filters based on Bernstein polynomials. This allows the model to adaptively capture arbitrary frequency responses—including high-pass and band-pass signals—which are overlooked by standard GNNs. To resolve the locality bias, a Hierarchical Global-Prior Gating Network augmented by a Linear Graph Transformer is introduced, ensuring that expert selection is guided by both local node features and global topological awareness. Extensive experiments are conducted on five benchmark datasets spanning both homophilic and heterophilic networks. The results demonstrate that SS-AdaMoE consistently outperforms baselines, achieving accuracy improvements of up to 2.65% on Chameleon and 1.41% on Roman-empire over the strongest MoE baseline, while surpassing traditional GCN architectures by margins exceeding 28% on heterophilic datasets such as Texas. These findings validate that the synergy of learnable spectral priors and global gating effectively bridges the gap between spatial aggregation and spectral filtering.
1. Introduction
Graph Neural Networks (GNNs) have emerged as the de facto standard for learning representations from graph-structured data, achieving remarkable success in tasks such as node classification, link prediction, and graph clustering [1,2]. Traditional GNN architectures, such as GCN [1] and GAT [2], typically rely on a message-passing mechanism that aggregates information from local neighborhoods. While effective on homophilic graphs (where connected nodes share similar labels), these methods often struggle to generalize to heterophilic graphs, where edges connect nodes with dissimilar features or labels. This limitation stems from the fact that standard aggregation acts as a low-pass filter, smoothing out high-frequency signals that are crucial for distinguishing nodes in heterophilic settings [3].
To illustrate the fundamental challenge, we conduct an empirical analysis on representative datasets. As shown in Figure 1, we examine two contrasting graph types: Cora (a homophilic citation network) and Squirrel (a heterophilic Wikipedia network). Figure 1a reveals a striking dichotomy in node connectivity patterns—Cora exhibits a local homophily ratio concentrated around = 0.81, indicating that most nodes are surrounded by similar neighbors. In contrast, Squirrel shows a much lower homophily ratio ( = 0.32), where nodes frequently connect to dissimilar peers.
Figure 1.
Motivation: Diverse Graph Patterns Require Adaptive Spectral Processing. (a) Node homophily distribution shows distinct connectivity patterns: Cora vs. Squirrel. (b) Spectral energy distribution reveals fundamentally different frequency characteristics.
More critically, Figure 1b demonstrates the spectral energy distribution across different frequency bands (measured by graph Laplacian eigenvalues ). For Cora, an overwhelming 65% of signal energy resides in the low-frequency band [0, 0.4), making low-pass filtering (smoothing) highly effective. However, Squirrel presents a fundamentally different picture: only 25% of energy is in the low-frequency range, while mid-to-high frequencies ([0.4, 2.0]) account for 75% of the signal. This stark difference explains why traditional GNNs, which act as fixed low-pass filters, excel on Cora but suffer significant performance degradation on Squirrel.
This observation leads to a critical insight: diverse graph patterns require adaptive spectral processing. A single, universal filtering strategy cannot simultaneously handle both smoothing (for homophilic clusters) and sharpening (for heterophilic structures). This motivates our core design principle: constructing multiple specialized experts with learnable frequency responses and dynamically routing nodes to the appropriate experts based on their global structural roles.
To address the diversity of graph patterns, recent studies have introduced the Mixture of Experts (MoE) architecture into the graph domain [4,5]. The core idea of MoE is to train multiple specialized sub-models (experts) and a gating network to dynamically assign input data to the most appropriate experts. For instance, GMoE [4] utilizes experts with varying receptive fields to capture multi-scale spatial information. More recently, Node MoE [5] incorporated fixed high-pass and low-pass filters as experts to handle varying frequency components. Despite these advancements, existing MoE-based GNNs still face two fundamental limitations.
First, there is a lack of learnable spectral adaptation. Current methods either operate solely in the spatial domain (ignoring spectral characteristics) or rely on fixed, pre-defined filters (e.g., Node MoE). These rigid designs fail to adaptively capture the complex, data-driven frequency patterns inherent in real-world graphs, such as band-pass signals representing community structures. Second, the gating mechanisms are notoriously short-sighted. Most existing gating networks make routing decisions based on local node features or limited random walks (e.g., MoE-NP [6]). They lack a global perception of the graph topology, making it difficult to determine a node’s structural role within the entire graph context. Furthermore, training MoE models on graphs is prone to “expert collapse,” where the gating network trivially routes all nodes to a single expert, rendering the ensemble ineffective.
To overcome these challenges, we propose a novel framework named Spatio-Spectral Adaptive Mixture of Experts (SS-AdaMoE). Unlike previous works that isolate spatial and spectral domains, our model constructs a dual-domain expert system. We introduce learnable spectral experts based on Bernstein polynomials [7] to adaptively capture arbitrary frequency responses (low, high, and band-pass), complementing traditional spatial experts (e.g., GCN, GAT). To ensure precise expert routing, we design a Hierarchical Global-Prior Gating Network. This module leverages a lightweight Graph Transformer [8] to extract global contextual information and combines it with topological metrics (e.g., centrality, homophily ratio) to guide the selection of experts. This ensures that the routing decision considers not just the node’s local neighborhood, but its structural position in the global graph. Additionally, we employ contrastive learning regularization to enforce expert diversity and prevent collapse.
Our main contributions are summarized as follows:
- Spatio-Spectral Dual-Domain Experts: Through empirical analysis (Figure 1), we identify the necessity of adaptive spectral processing. We propose the first MoE GNN architecture that integrates learnable Bernstein polynomial spectral filters with spatial GNNs, enabling the model to handle both homophilic and heterophilic graphs effectively.
- Global-Prior Gating Mechanism: We design a hierarchical gating network incorporating a Graph Transformer and structural priors, solving the local-vision limitation of existing MoE routers.
- Effective Optimization: We introduce auxiliary contrastive loss and load-balancing mechanisms that successfully mitigate expert collapse.
- State-of-the-Art Performance: Extensive experiments on five benchmark datasets demonstrate that SS-AdaMoE significantly outperforms existing baselines, particularly in heterophilic scenarios.
2. Related Work
2.1. Graph Neural Networks and Spectral Filtering
Graph Neural Networks (GNNs) have revolutionized graph representation learning. Spatial-based methods, such as GCN [1] and GAT [2], aggregate information from local neighbors, effectively acting as low-pass filters that smooth node features. While powerful on homophilic graphs, these methods often fail on heterophilic graphs where connected nodes exhibit dissimilar features [3]. To address this, spectral GNNs are used. Geom-GCN [9] and H2GCN [3], incorporated geometric embeddings or ego-neighbor separation. ChebNet [10] approximated spectral filters using Chebyshev polynomials. JacobiConv [11] demonstrated that Jacobi polynomials provide a more flexible orthogonal basis for graph signal processing. More recently, GPRGNN [12] and BernNet [7] introduced learnable polynomial filters to capture arbitrary frequency responses, allowing them to model high-frequency and band-pass signals essential for heterophilic and community-structured data. FAGCN [13] allows nodes to adaptively combine low-pass and high-pass signals using a scalar gating mechanism. ACM-GNN [14] exploits adaptive channel mixing to filter different frequency components. Spatio-Spectral GNN [15] rigorously demonstrated the necessity of decoupling spatial and spectral components for optimal graph modeling. However, most spectral models like BernNet use a single global filter strategy for all nodes or channels, lacking the flexibility to adaptively select different filtering strategies for different regions of the graph. Recent work by Luan et al. [16] provides a comprehensive taxonomy of heterophilic graph patterns, categorizing them into benign, ambiguous, and malignant types, and demonstrating that different heterophily types require fundamentally different processing strategies. Our SS-AdaMoE addresses this by treating spectral filters as selectable experts, enabling per-node adaptive filtering.
2.2. Mixture of Experts (MoE) on Graphs
The Mixture of Experts (MoE) architecture scales model capacity by selectively activating a subset of sub-models (experts) for each input. In the graph domain, GMoE [4] was one of the first attempts, employing experts with varying hop distances to capture multi-scale spatial information. Graph Transformers like GraphGPS [17] and Specformer [18] have been proposed to capture long-range dependencies. Although powerful, their quadratic complexity poses scalability challenges. Recently, Node MoE [5] introduced spectral domain concepts into MoE by using fixed low-pass and high-pass filters as experts but it cannot adapt to complex band-pass patterns during training. Similarly, MoE-NP [6] utilizes a node-wise predictor for routing. Existing MoE GNNs exhibit two major drawbacks. They lack spectral learnability and suffer from local-view routing. The gating networks in these models typically rely on local node features or random walks, failing to consider the node’s structural role in the global graph topology, which often leads to suboptimal expert selection and expert collapse [19].
3. Methodology
3.1. Preliminaries and Problem Formulation
Notations and Problem Definition
Let denote an undirected graph, where is the set of N nodes and is the set of edges. The topological structure is represented by the adjacency matrix , where if and 0 otherwise. Each node is associated with a feature vector, forming the feature matrix , where F is the dimension of input features.
Problem Formulation. Given the graph , the feature matrix , and a label set , the goal of semi-supervised node classification is to learn a function . The model is trained on a small subset of labeled nodes to predict the labels for the remaining unlabeled nodes .
3.2. Overview of SS-AdaMoE
We consider the semi-supervised node classification problem on a graph with N nodes, described by an adjacency matrix and a node feature matrix . The fundamental challenge lies in the dichotomy between homophilic and heterophilic structures, which require distinct processing strategies—smoothing for the former and sharpening for the latter. To address this, we propose the Spatio-Spectral Adaptive Mixture of Experts (SS-AdaMoE).
As illustrated in Figure 2, the framework operates in a decoupled manner. The input graph is simultaneously processed by a Dual-Domain Expert System, comprising a bank of spectral filters and spatial aggregators, and a Hierarchical Global-Prior Gating Network. The gating network, enhanced by a Graph Transformer, assesses the global structural role of each node to dynamically assign importances to the experts. The final node representation is a weighted fusion of expert outputs, optimized via a composite objective function including contrastive regularization.
Figure 2.
Overview of SS-AdaMoE.
3.3. Spatio-Spectral Dual-Domain Expert System
Existing MoE methods for graphs often suffer from limited expert diversity, typically employing variations of the same aggregation mechanism. To achieve comprehensive coverage of graph patterns, we design a heterogeneous set of experts spanning both spectral and spatial domains.
3.3.1. Learnable Spectral Experts
Spectral Graph Theory provides a rigorous tool for analyzing graph signals. Let denote the normalized graph Laplacian with eigenvalues . To enable adaptive spectral filtering, we employ Bernstein polynomial basis functions to approximate arbitrary filter functions . The K-th order Bernstein approximation of the spectral filter is defined as:
where are learnable filter coefficients that are updated via gradient descent during training. The Bernstein basis forms a partition of unity on , ensuring non-negative interpolation and numerical stability. In practice, we avoid explicit eigendecomposition by computing the Bernstein basis via Chebyshev polynomial recurrence on the rescaled Laplacian with eigenvalues in :
The final filtered output is then , where the Bernstein coefficients control the frequency response shape. This formulation has complexity, avoiding the cost of eigendecomposition.
By constraining the initialization of , we instantiate three spectral experts with distinct frequency biases while allowing all coefficients to adapt during training:
- Low-Pass Expert (): Initialized with monotonically decreasing coefficients , which concentrate energy at low eigenvalues (). This configuration suppresses high-frequency oscillations, performing denoising suitable for homophilic regions.
- High-Pass Expert (): Initialized with monotonically increasing coefficients , which amplify high eigenvalues (). This preserves high-frequency differences between neighboring nodes, enabling discrimination in heterophilic graphs.
- Band-Pass Expert (): Initialized with a Gaussian-shaped profile centered at , designed to capture mid-frequency information often associated with community structures.
Preventing expert drift. Although are learnable, the diversity loss (Section 3.5) explicitly penalizes similar expert outputs, preventing the High-Pass expert from drifting toward a redundant Low-Pass configuration. We empirically verify in Section 4 that the learned frequency responses remain well-separated after training.
3.3.2. Spatial Experts
While the spectral experts are adept at manipulating global frequency components, they treat the graph structure implicitly through the Laplacian eigendecomposition (or its polynomial approximation). To fully capture the localized topological semantics and ensure the model remains robust to local structural variations, we construct a diverse group of Spatial Experts.
This group consists of four distinct Graph Neural Network architectures: GCN [1], GraphSAGE [20], GAT [2], and JKNet [21]. Unlike spectral filters which operate on the entire graph signal, these spatial experts perform message passing directly on the graph topology . Let denote the node representation matrix at layer l, with . The specific formulations for each expert are defined as follows:
- (1)
- Graph Convolutional Network (GCN) Expert ()
The GCN expert serves as the foundational isotropic low-pass filter, capturing the smoothed features of the immediate 1-hop neighborhood. It employs the symmetric normalized renormalization trick to prevent numerical instability and exploding gradients. The propagation rule for the GCN expert is formally defined as:
where is the adjacency matrix with added self-loops, is the corresponding degree matrix with , is the learnable weight matrix, and is the non-linear activation function (e.g., ReLU). This expert is particularly effective for nodes within homophilic clusters where neighbor averaging reinforces the signal.
- (2)
- GraphSAGE Expert ()
To address the limitations of GCN in distinguishing a node’s own features from its neighbors, the GraphSAGE expert utilizes an inductive aggregation mechanism. It explicitly concatenates the node’s current representation with the aggregated representation of its neighbors. We employ the Mean Aggregator for its efficiency and robustness to noise. The update rule for a node v is given by:
where denotes the set of neighbors of v, and represents the concatenation operation. By separating self-information from neighborhood information, provides the gating network with a “conservative” option, which is crucial for boundary nodes in heterophilic graphs.
- (3)
- Graph Attention Network (GAT) Expert ()
Standard GCN and GraphSAGE assume isotropic contributions from neighbors. However, in real-world graphs, not all neighbors are equally informative. The GAT expert introduces an anisotropic mechanism using learnable attention coefficients to dynamically weigh neighbor contributions. The representation is computed as:
The attention coefficients are derived using a shared attention mechanism :
This attention mechanism allows to act as a “soft selector,” filtering out irrelevant or noisy connections while preserving useful structural context.
- (4)
- Jumping Knowledge Expert ()
Deep GNNs often suffer from the over-smoothing problem, where node representations become indistinguishable as the number of layers increases. To capture multi-scale structural information, we incorporate a Jumping Knowledge Network (JKNet) as a specialized expert. aggregates representations from all intermediate layers, allowing the model to leverage both local (low-level) and global (high-level) features adaptively:
where is set to a concatenation-projection operation in our implementation. This ensures that the expert system can access information from varying structural depths (receptive fields) simultaneously.
3.4. Hierarchical Global-Prior Gating Network
The efficacy of an MoE model depends heavily on its routing policy. Standard routing mechanisms in GNNs typically rely on local node features, which leads to suboptimal decisions as nodes with similar local features may play vastly different roles in the global topology. We propose a hierarchical gating network that integrates global context and structural priors.
Global Context Extraction via Graph Transformer. To overcome the locality bias of message passing, we introduce a lightweight Linear Graph Transformer at the first level of the gating network. Unlike standard Transformers with quadratic complexity , we adopt the linear attention mechanism [22], which decomposes the attention computation as , where is a feature map (we use ). By computing first, the overall complexity reduces from to , which is linear in N for fixed d. This produces a global context vector for each node v, encapsulating all-pair interactions across the graph and allowing the router to perceive the node’s position relative to the entire graph topology.
Structural Feature Augmentation. At the second level, we explicitly inject inductive biases by extracting a structural feature vector . This vector concatenates three types of pre-computed metrics: (1) Centrality measures (Degree and PageRank, computed via power iteration with 20 iterations at cost) to identify hub nodes; (2) Clustering coefficients (, skipped for graphs with ) to detect local tightness; and (3) Local Homophily Ratios, which provide a strong prior for choosing between low-pass and high-pass experts. These structural features are computed once as a preprocessing step and cached, incurring no additional cost during training iterations.
Differentiable Routing Mechanism. The final gating decision is derived by fusing the local feature , global context , and structural prior through a Multi-Layer Perceptron (MLP). To enable end-to-end training with discrete expert selection, we utilize the Gumbel-Softmax relaxation. The gating weight is computed as:
where represents i.i.d samples from the Gumbel distribution, and is the temperature parameter. We fix throughout training. A lower sharpens the routing distribution toward hard selection, while a higher produces a more uniform distribution. We selected as it provides a balanced trade-off between exploration and exploitation; preliminary experiments confirm that performance is relatively stable for . During inference, Gumbel noise is removed and standard softmax is used.
To achieve dynamic computation allocation, we employ an Entropy-based Adaptive Top-K strategy. We calculate the normalized entropy of the gating distribution as
The number of active experts is then determined by a thresholding function:
This allows the model to utilize more experts for ambiguous boundary nodes while conserving resources for straightforward nodes. The threshold values 0.5 and 0.8 are chosen based on information-theoretic considerations: corresponds to an effective perplexity of (moderate uncertainty), while corresponds to (high uncertainty approaching uniform distribution over experts). The resulting expert allocation (42.9% nodes use , 34.1% use , 23.0% use , as shown in Section 4.4) empirically confirms the effectiveness of these thresholds.
3.5. Optimization and Regularization
Training MoE models on graphs presents a unique challenge known as “expert collapse,” where the gating network converges to a trivial solution by routing all nodes to a single expert. To enforce expert specialization and load balancing, we minimize a composite loss function :
Here, is the standard cross-entropy loss for node classification. We introduce two auxiliary regularization terms to ensure the robustness of the expert system.
Expert-Level Contrastive Loss (). To maximize the representational distance between different experts, we explicitly penalize the similarity between their outputs. Ensuring that spectral and spatial experts learn distinct features is crucial for the dual-domain design. We define this loss as the mean pairwise cosine similarity between the output representations of all experts:
where denotes the aggregated output representation of the i-th expert for the current batch (computed as the mean over all nodes in the batch). Minimizing this term encourages experts to produce diverse output distributions at the batch level, effectively preventing feature redundancy and promoting functional specialization among experts.
Load Balancing Loss (). To prevent the “winner-takes-all” phenomenon, we impose a penalty on the deviation of expert utilization from a uniform distribution. We define the soft utilization rate of expert m using the differentiable gating weights: , where is the Gumbel-Softmax gate weight for node v on expert m. Since is a continuous relaxation produced by the Gumbel-Softmax mechanism, this formulation is fully differentiable and allows gradient flow during backpropagation. We model the load balancing loss as the Mean Squared Error (MSE) between the actual utilization and the ideal uniform probability :
By minimizing , the model is incentivized to distribute the computational workload evenly across all experts, ensuring that no single expert dominates the decision process.
4. Experiments
4.1. Experimental Setup
Datasets. We conduct comprehensive experiments on five widely adopted benchmark datasets that collectively span the full spectrum of graph homophily characteristics. Our dataset selection follows a principled stratification strategy designed to evaluate model performance across distinct structural regimes, including datasets identified as exhibiting challenging heterophily patterns [16]. We include Cora [23], a canonical citation network which exhibits strong homophily (), meaning that connected nodes predominantly share similar class labels. We evaluate on the heterophilic Texas dataset from the WebKB collection [24], which is characterized by an extremely low homophily ratio (). In this graph, edges frequently connect nodes with dissimilar labels, presenting a fundamental challenge to traditional message-passing schemes. We include Chameleon [3] and Actor [9], which exhibit moderate-to-low homophily levels ( for Chameleon, for Actor) and contain complex community structures with varying local homophily patterns. Finally, we include Roman-empire [25], a recently proposed heterophilic benchmark () derived from the Roman Empire Wikipedia article, where nodes represent words and edges connect sequential or syntactically related words. This dataset exhibits particularly challenging heterophily with 18 classes and complex structural patterns, serving as a rigorous testbed for evaluating adaptive spectral processing.
Baselines. To contextualize the contributions of SS-AdaMoE, we conduct extensive comparisons against nine representative methods spanning multiple methodological paradigms. Our baseline selection encompasses GCN [1], the foundational graph convolutional network that performs symmetric normalized aggregation; MLP, a feature-only baseline that ignores graph structure entirely to isolate the contribution of topology; HighPassGCN [3], a heterophily-specialized method that applies high-pass filtering; ACMGCN [14], which combines multiple graph convolution bases with adaptive channel mixing; LINK [26], which decouples feature transformation from graph structure; LSGNN [15], a recent method employing learnable spectral graph filters; GloGNN [27], which augments GNNs with global attention mechanisms; MoE-NP [6], a Mixture-of-Experts approach that introduces node-level predictive routing; and Node-MoE [5], the state-of-the-art MoE method for graphs that incorporates fixed spectral filters as experts. All baselines are re-implemented using their officially released code, and hyperparameters are tuned from scratch on each dataset via grid search to ensure a fair comparison. This comprehensive baseline suite allows us to isolate the specific contributions of our learnable spectral experts and hierarchical global gating mechanism relative to prior spatial GNNs, heterophily-aware methods, spectral approaches, and MoE architectures.
Implementation Details. All models are implemented in PyTorch (version 2.9.1) and PyG (version 2.7.0). For SS-AdaMoE, we set the number of experts (three spectral, four spatial), the Bernstein polynomial order , and the network depth to two layers. The Graph Transformer in the gating network uses two layers with linear attention. We employ the Adam optimizer with separate learning rates for the expert networks and the gating network: the expert learning rate is searched within with weight decay within , while the gating network learning rate is scaled by a ratio relative to the expert learning rate. This decoupled learning rate strategy is motivated by the observation that the gating network and experts converge at different rates, and the optimal ratio is dataset-dependent (see Section 4.5). The temperature for Gumbel-Softmax is fixed at 1.0. The hyperparameters (contrastive) and (load balancing) are tuned via grid search from . Gradient clipping with a maximum norm of 0.5 is applied. Early stopping with a patience of 20 epochs is used based on validation accuracy. All results are averaged over five pre-defined data splits.
Evaluation Metrics. We adopt two primary evaluation metrics: (1) node classification accuracy on the held-out test set, which directly measures the model’s predictive ability, and (2) Macro-F1 score, which computes the unweighted mean of per-class F1 scores and provides a more balanced assessment on class-imbalanced datasets. Beyond these standard metrics, we report auxiliary measurements for deeper insights: routing entropy , expert utilization rates, and inference efficiency (time per sample and FLOPs).
4.2. Main Results and Comparative Analysis
Table 1 and Figure 3 present the comparative performance across graph benchmarks spanning the full spectrum of homophily ratios. Both classification accuracy and Macro-F1 are reported, providing a comprehensive assessment of model effectiveness. The results provide compelling empirical evidence for the superiority of the proposed SS-AdaMoE framework.
Table 1.
Node classification performance (Accuracy % and Macro-F1 %) over 5 pre-defined splits. The best results are highlighted in bold, and the second-best are underlined.
Figure 3.
Performance comparison across representative datasets. (a) Classification accuracy (%). (b) Macro-F1 score (%). The red annotations above SS-AdaMoE bars indicate the improvement over the strongest baseline; gray annotations indicate cases where a baseline achieves slightly higher performance.
Strong performance on heterophilic datasets. The most significant contribution of SS-AdaMoE is observed on heterophilic datasets. On Texas (), SS-AdaMoE achieves an accuracy of 83.05%, representing a remarkable improvement of +28.31% over GCN (54.74%). On Actor (), our model achieves 38.39% accuracy with a Macro-F1 of 33.44%, outperforming MoE-NP by +1.89% in accuracy. On Chameleon (), SS-AdaMoE achieves 73.45%, surpassing the strongest MoE baseline MoE-NP by +2.65%. These gains are directly attributable to the High-Pass and Band-Pass Spectral Experts, which preserve the high-frequency boundary information that is crucial for distinguishing nodes in heterophilic settings.
Robust performance on homophilic datasets. A common failure mode of heterophily-specialized GNNs (e.g., HighPassGCN) is performance degradation on homophilic benchmarks. SS-AdaMoE avoids this trade-off. On Cora (), our model achieves the highest accuracy of 88.26%, outperforming Node-MoE (87.92%) and MoE-NP (87.80%). This confirms that our Hierarchical Global-Prior Gating correctly identifies the homophilic nature of citation networks and preferentially routes nodes to the Low-Pass Spectral Expert and GCN Expert.
Strong generalization on challenging heterophilic benchmarks. On Roman-empire (), a recently proposed benchmark with 18 classes and particularly challenging heterophily patterns, SS-AdaMoE achieves 68.35% accuracy and 58.24% Macro-F1, outperforming all baselines including Node-MoE (66.94%) and MoE-NP (66.50%). This demonstrates that our learnable spectral experts can adapt to diverse and complex heterophilic structures beyond the commonly used WebKB and Wikipedia benchmarks.
Comparison with MoE baselines. Comparing SS-AdaMoE with Node-MoE (which uses fixed spectral filters) and MoE-NP (which relies on spatial routing), our results demonstrate the necessity of the Dual-Domain design. SS-AdaMoE outperforms Node-MoE on Chameleon (+3.45%), Roman-empire (+1.41%), Actor (+2.07%), and Cora (+0.34%). On Texas, Node-MoE achieves a slightly higher accuracy (83.53% vs. 83.05%), but with substantially larger variance (±6.36 vs. ±5.10), indicating less stable performance. Overall, the consistent gains across four out of five datasets validate that learnable Bernstein polynomial filters provide superior adaptability over fixed spectral decompositions.
4.3. Ablation Studies
To rigorously validate our architectural choices, we conduct fine-grained ablation studies on Cora (homophilic), Texas (heterophilic), and Roman-empire (challenging heterophilic) in Table 2. The ablation is organized into two groups: expert composition and gating network design.
Table 2.
Fine-grained ablation study of key components on Cora (Homophilic), Texas, and Roman-empire (Heterophilic) datasets. Results are reported as Accuracy (%) over 5 pre-defined splits. Full model maintains the best performance across diverse graph patterns.
Ablation on expert groups. Removing the entire spectral expert group (w/o Spectral Experts) results in a highly asymmetric performance drop. On Cora, the drop is marginal (), as spatial GCN experts naturally act as low-pass filters sufficient for homophily. However, on Texas, performance decreases by (from 83.05% to 74.50%), and on Roman-empire by . This demonstrates that spatial experts alone cannot model the high-frequency dynamics required for heterophilic graphs.
Examining individual spectral experts reveals complementary roles. Removing the High-Pass Expert alone causes a drop on Texas (the most heterophilic dataset), confirming its critical role in preserving discriminative high-frequency signals. The Band-Pass Expert removal has a smaller but consistent effect ( on Texas, on Roman-empire), validating its contribution to capturing community-level structures.
Removing the spatial expert group (w/o Spatial Experts) leads to notable drops on Cora () and Texas (), confirming that spatial aggregation provides complementary local topological information that spectral filters alone cannot fully capture.
Ablation on Gating Network Design. Replacing the Graph Transformer-based gating with a local MLP (w/o Global Context) degrades accuracy on all datasets, with the largest drop on Texas () and Roman-empire (). This suggests that routing decisions in heterophilic graphs are heavily reliant on understanding the node’s broader structural role, which is only captured by the Global Context module.
Removing structural features (w/o Struct. Features) causes moderate drops across datasets ( on Texas), confirming the value of injecting explicit topological priors into the routing decision.
Forcing a fixed number of experts (Fixed K = 2) leads to consistent but smaller drops, validating the entropy-based adaptive strategy. The model benefits from dynamically allocating computation: some nodes are “easy” and require only one expert, while boundary nodes benefit from multi-expert ensembles.
4.4. Mechanism Analysis
We visualize the internal behavior of SS-AdaMoE to verify that the model learns non-trivial routing strategies (see Figure 4).
Figure 4.
Mechanism analysis: (a) Gating entropy during training; (b) Adaptive K value distribution.
A pervasive challenge in MoE training is “Expert Collapse,” where the gate trivially routes all inputs to a single expert. Figure 4a plots the Gating Entropy over training epochs.
The entropy curve does not decay to zero but stabilizes at a high level. This provides empirical proof that our Contrastive Loss () and Load Balancing Loss () effectively enforce a diverse utilization of experts. The model actively maintains a portfolio of specialized experts rather than degenerating into a single generic model.
The pie chart in Figure 4b illustrates the distribution of the active expert count K. A significant portion of nodes (42.9%) activate only expert, while 23.0% activate . This confirms the efficiency of our design. The model has learned a resource-allocation policy: it saves computation on distinct, easy-to-classify nodes (likely inside homophilic clusters) and invests more computational budget on ambiguous boundary nodes. This explains why SS-AdaMoE achieves high accuracy without an explosion in inference cost.
4.5. Parameter Sensitivity and Efficiency Analysis
Figure 5 demonstrates the model’s sensitivity. Performance peaks around (Figure 5a). A smaller number lacks the basis functions to cover the spatial-spectral domain, while a larger number leads to overfitting. Additionally, the sharp performance drop when the load balance weight is near 0 (Figure 5b) underscores the criticality of regularization.
Figure 5.
Parameter sensitivity analysis: (a) impact of the maximum expert number (K); (b) impact of the load balancing loss weight (); (c) impact of the dropout ratio; (d) impact of the hidden dimension.
4.6. Efficiency Frontier
Figure 6 plots Model Accuracy against Parameter Count. While SS-AdaMoE has more parameters than a simple MLP, it occupies the Pareto-optimal frontier (top-right quadrant). Specifically, SS-AdaMoE achieves significantly higher accuracy than MoE-NP with a comparable parameter budget. This efficiency stems from the Linear Graph Transformer ( complexity, linear in N) in the gating network, which provides global awareness without the quadratic cost of standard transformers.
Figure 6.
Model efficiency analysis.
4.7. Computational Complexity Analysis
We provide a holistic complexity analysis of the full SS-AdaMoE pipeline. Let N denote the number of nodes, the number of edges, d the hidden dimension, and K the polynomial order.
- Spectral experts: Each Bernstein filter requires K sparse matrix-vector multiplications via the Chebyshev recurrence (Equation (2)), costing per expert. With 3 spectral experts, the total is .
- Spatial experts: GCN, GraphSAGE, GAT, and JKNet each cost per layer, where L is the number of layers. GAT incurs an additional attention computation of .
- Gating Network: The linear graph transformer costs (linear in N). Structural features (PageRank, clustering, degree) are pre-computed once at and cached. The MLP router costs .
- Overall: The dominant cost is , which scales linearly with both N and for fixed d, K, and L.
5. Conclusions
In this paper, we proposed SS-AdaMoE, a novel Mixture of Experts framework designed to address the adaptability limitations of Graph Neural Networks in handling diverse graph patterns. By constructing a Spatio-Spectral Dual-Domain Expert System, we successfully bridged the gap between spatial aggregation and spectral filtering. Specifically, the introduction of learnable Bernstein polynomial filters enables the model to adaptively capture high-frequency and band-pass signals, which are crucial for heterophilic graphs but overlooked by traditional methods. Furthermore, our Hierarchical Global-Prior Gating Network, augmented by a Linear Graph Transformer with complexity, resolves the myopia of existing routing mechanisms, ensuring that expert selection is guided by both global structural context and local features.
Extensive experiments on five benchmark datasets demonstrate the superiority of our framework. SS-AdaMoE achieves the best results on Actor, Chameleon, and Roman-empire among all compared methods, and delivers competitive performance on Texas, while maintaining robust accuracy on homophilic citation networks. Fine-grained ablation studies confirm that the synergy between learnable spectral experts and global gating is the key driver of these performance gains, with spectral experts contributing up to 8.55% accuracy improvement on strongly heterophilic graphs.
Limitations and Future Work
Despite the promising results, our work has certain limitations. First, although we utilize linear attention, the computational overhead of the gating network remains higher than simple MLP-based routers, potentially limiting scalability on ultra-large-scale graphs (e.g., millions of nodes). Second, the current expert selection is performed at the node level; exploring edge-level or subgraph-level routing could offer finer granularity. Third, our evaluation focuses on node classification; extending to link prediction and graph classification remains future work.
In future work, we plan to (1) investigate sparse attention mechanisms to further reduce the complexity of the global gating network; (2) extend the SS-AdaMoE framework to inductive learning settings and other graph tasks; and (3) evaluate on a broader range of heterophilic benchmarks, including the ambiguous and malignant heterophily categories identified in recent literature [16].
Author Contributions
Conceptualization, X.K. and F.Z.; methodology, X.K.; software, X.K.; validation, T.Y. and X.K.; formal analysis, X.K. and T.Y.; investigation, X.K. and Y.G.; resources, F.Z.; data curation, T.Y. and Y.G.; writing—original draft preparation, X.K.; writing—review and editing, F.Z. and L.W.; visualization, X.K.; supervision, F.Z.; project administration, F.Z.; funding acquisition, F.Z. All authors have read and agreed to the published version of the manuscript.
Funding
The authors wish to acknowledge with financial support of this research by the research start-up funding for high-level talent of Jiangsu University of Science and Technology (Grant No. 1022932208 and Grant No. 1132932301).
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
To ensure reproducibility and facilitate community adoption, the complete implementation of the proposed SS-AdaMoE framework is publicly available on GitHub at https://github.com/XilinKang/SS-AdaMoE (accessed on 16 March 2026). The repository includes the full PyTorch implementation, pre-trained models, and comprehensive training scripts. The benchmark datasets used in this study (Cora, Citeseer, etc.) are publicly available via the PyTorch Geometric library.
Acknowledgments
We express our gratitude to the editor and reviewers for providing valuable suggestions aimed at enhancing the caliber of this paper.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Kipf, T.N.; Welling, M. Semi-Supervised Classification with Graph Convolutional Networks. In Proceedings of the International Conference on Learning Representations (ICLR), Toulon, France, 24–26 April 2017. [Google Scholar]
- Veličković, P.; Cucurull, G.; Casanova, A.; Romero, A.; Lio, P.; Bengio, Y. Graph Attention Networks. In Proceedings of the International Conference on Learning Representations (ICLR), Vancouver, BC, Canada, 30 April–3 May 2018. [Google Scholar]
- Zhu, J.; Yan, Y.; Zhao, L.; Heimann, M.; Akoglu, L.; Koutra, D. Beyond homophily in graph neural networks: Current limitations and effective designs. In Proceedings of the 34th International Conference on Neural Information Processing Systems, Vancouver, BC, Canada, 6–12 December 2020. [Google Scholar]
- Yin, H.; Zhang, M.; Wang, Y.; Li, J.; Pan, S. Graph Mixture of Experts: Learning on Large-Scale Graphs with Explicit Diversity Modeling. In Proceedings of the International Conference on Learning Representations (ICLR), Kigali, Rwanda, 1–5 May 2023. [Google Scholar]
- Han, H.; Liu, X.; Feng, F.; Chua, T.S. Node-wise Filtering in Graph Neural Networks: A Mixture of Experts Approach. In Proceedings of the International Conference on Machine Learning (ICML), Vienna, Austria, 21–27 July 2024. [Google Scholar]
- Zhang, J.; Smith, J. Mixture of Experts for Node Classification. arXiv 2024, arXiv:2412.00418. [Google Scholar] [CrossRef] [Scilit]
- Wang, X.; Zhang, M. How Powerful are Spectral Graph Neural Networks. In Proceedings of the International Conference on Machine Learning (ICML), Baltimore, MD, USA, 17–23 July 2022. [Google Scholar]
- Wu, Q.; Zhao, W.; Li, Z.; Wipf, D.; Yan, J. NodeFormer: A Scalable Graph Structure Learning Transformer for Node Classification. In Proceedings of the Advances in Neural Information Processing Systems (NeurIPS), New Orleans, LA, USA, 28 November–9 December 2022. [Google Scholar]
- Pei, H.; Wei, B.; Chang, K.C.C.; Lei, Y.; Yang, B. Geom-GCN: Geometric Graph Convolutional Networks. In Proceedings of the 8th International Conference on Learning Representations, ICLR 2020, Addis Ababa, Ethiopia, 26–30 April 2020. [Google Scholar]
- Defferrard, M.; Bresson, X.; Vandergheynst, P. Convolutional Neural Networks on Graphs with Fast Localized Spectral Filtering. In Proceedings of the Advances in Neural Information Processing Systems (NeurIPS), Barcelona, Spain, 5–10 December 2016. [Google Scholar]
- Wang, T.; Jin, D.; Wang, R.; He, D.; Huang, Y. Powerful graph convolutional networks with adaptive propagation mechanism for homophily and heterophily. In Proceedings of the AAAI Conference on Artificial Intelligence, Online, 22 February–1 March 2022; Volume 36, pp. 4210–4218. [Google Scholar]
- Chien, E.; Peng, J.; Li, P.; Milenkovic, O. Adaptive Universal Generalized PageRank Graph Neural Network. In Proceedings of the International Conference on Learning Representations (ICLR), Virtual Event, 3–7 May 2021. [Google Scholar]
- Bo, D.; Wang, X.; Shi, C.; Shen, H. Beyond low-frequency information in graph convolutional networks. In Proceedings of the AAAI Conference on Artificial Intelligence, Virtual, 2–9 February 2021; Volume 35, pp. 3950–3957. [Google Scholar]
- Luan, S.; Hua, C.; Lu, Q.; Zhu, J.; Zhao, M.; Zhang, S.; Chang, X.W.; Precup, D. Revisiting heterophily for graph neural networks. Adv. Neural Inf. Process. Syst. 2022, 35, 1362–1375. [Google Scholar]
- Chen, D.; Pellizzoni, P.; Borgwardt, K. Spatio-Spectral Graph Neural Networks. In Proceedings of the Advances in Neural Information Processing Systems (NeurIPS), Vancouver, BC, Canada, 10–15 December 2024. [Google Scholar]
- Luan, S.; Hua, C.; Lu, Q.; Ma, L.; Wu, L.; Wang, X.; Xu, M.; Chang, X.-W.; Precup, D.; Ying, R.; et al. The Heterophilic Graph Learning Handbook: Benchmarks, Models, Theoretical Analysis, Applications and Challenges. arXiv 2024, arXiv:2407.09618. [Google Scholar] [CrossRef] [Scilit]
- Rampášek, L.; Galkin, M.; Dwivedi, V.P.; Luu, A.T.; Wolf, G.; Beressy, D. Recipe for a General, Powerful, Scalable Graph Transformer. In Proceedings of the Advances in Neural Information Processing Systems (NeurIPS), New Orleans, LA, USA, 28 November–9 December 2022. [Google Scholar]
- Bo, D.; Shi, C.; Wang, L.; Liao, R. Specformer: Spectral Graph Neural Networks Meet Transformers. In Proceedings of the ICLR; OpenReview.net, Kigali, Rwanda, 5 May 2023. [Google Scholar]
- Li, P.; Zhang, Z.; Yadav, P.; Sung, Y.L.; Cheng, Y.; Bansal, M.; Chen, T. Merge, Then Compress: Demystify Efficient SMoE with Hints from Its Routing Policy. In Proceedings of the International Conference on Learning Representations (ICLR), Vienna, Austria, 7–11 May 2024. [Google Scholar]
- Hamilton, W.L.; Ying, R.; Leskovec, J. Inductive representation learning on large graphs. In Proceedings of the 31st International Conference on Neural Information Processing Systems, Long Beach, CA, USA, 4–9 December 2017; NIPS’17. pp. 1025–1035. [Google Scholar]
- Xu, K.; Li, C.; Tian, Y.; Sonobe, T.; Kawarabayashi, K.-i.; Jegelka, S. Representation Learning on Graphs with Jumping Knowledge Networks. In Proceedings of the 35th International Conference on Machine Learning, Stockholm, Sweden, 10–15 July 2018; Dy, J., Krause, A., Eds.; Proceedings of Machine Learning Research; PMLR: New York, NY, USA, 2018; Volume 80, pp. 5453–5462. [Google Scholar]
- Katharopoulos, A.; Vyas, A.; Pappas, N.; Fleuret, F. Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention. In Proceedings of the 37th International Conference on Machine Learning, Virtual, 13–18 July 2020; Proceedings of Machine Learning Research; PMLR: New York, NY, USA, 2020; Volume 119, pp. 5156–5165. [Google Scholar]
- McCallum, A.; Nigam, K.; Rennie, J.; Seymore, K. Automating the Construction of Internet Portals with Machine Learning. Inf. Retr. 2000, 3, 127–163. [Google Scholar] [CrossRef] [Scilit]
- Ghani, R.; Jones, R.; Mladenic, D.; Nigam, K.; Slattery, S. Data mining on symbolic knowledge extracted from the web. In Proceedings of the Workshop on Text Mining at the Sixth ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, Boston, MA, USA, 20–23 August 2000; Volume 56. [Google Scholar]
- Platonov, O.; Kuznedelev, D.; Babenko, A.; Prokhorenkova, L. A Critical Look at the Evaluation of GNNs under Heterophily: Are We Really Making Progress? arXiv 2023, arXiv:2302.11640. [Google Scholar]
- Lim, D.; Hohne, F.; Li, X.; Huang, S.L.; Gupta, V.; Bhalerao, O.; Lim, S.N. Large Scale Learning on Non-Homophilous Graphs: New Benchmarks and Strong Simple Methods. In Proceedings of the Advances in Neural Information Processing Systems (NeurIPS), Online, 6–14 December 2021. [Google Scholar]
- Li, X.; Zhu, R.; Cheng, Y.; Shan, C.; Luo, S.; Li, D.; Qian, W. GloGNN: Global Structural Information for Effective Node Classification in Heterophilic Graphs. In Proceedings of the ACM Web Conference, Virtual Event, Lyon, France, 25–29 April 2022. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.





