Abstract
Graph Neural Networks (GNNs) often struggle with heterophilic graphs where connected nodes possess different labels or features. While Cellular Sheaves offer a mathematically principled way to model such complex relationships through local vector spaces and transport maps, existing Neural Sheaf Diffusion (NSD) models are limited by their spatial, one-hop update nature. This paper introduces Polynomial Neural Sheaf Diffusion (PolyNSD), a framework that shifts sheaf diffusion into the spectral domain. By utilizing learnable degree-$K$ polynomials of a rescaled sheaf Laplacian, PolyNSD enables multi-hop receptive fields within a single layer. Our approach significantly improves performance on heterophilic benchmarks while reducing computational overhead through diagonal restriction maps.
Introduction
The fundamental assumption of homophily—that "like attracts like" in a graph—underpins the success of many standard GNN architectures. However, real-world graphs often exhibit heterophily, where edges connect dissimilar nodes. In such scenarios, standard message-passing schemes act as low-pass filters that wash away critical high-frequency information, leading to oversmoothing.
Cellular sheaves were recently introduced to address this by assigning a vector space (stalk) to each node and edge, with linear maps (restriction maps) defining how information flows. While promising, first-generation Neural Sheaf Diffusion (NSD) models are primarily spatial, performing expensive one-hop updates that scale poorly and are prone to "oversquashing," where information from distant nodes is lost during propagation.
Methods: Spectral Sheaf Filtering
PolyNSD reimagines sheaf diffusion as a spectral filtering problem. Instead of iterative spatial updates, we apply a polynomial filter directly to the sheaf Laplacian. This allows the model to capture long-range dependencies efficiently.
As illustrated in the architecture overview, the process involves several key stages:
- Lifting and Cochain Formulation: Node features are lifted into a higher-dimensional sheaf space using an MLP, forming a 0-cochain $X \in \mathbb{R}^{(Nd) \times F}$.
- Sheaf Laplacian Construction: Restriction maps are learned (often as simple diagonal matrices) to construct the sheaf Laplacian $L_\mathcal{F}$.
- Spectral Rescaling: To ensure stability for polynomial evaluation, the Laplacian is rescaled to the interval $[-1, 1]$ using an estimated spectral upper bound $\lambda_{max}$.
- Polynomial Evaluation: We use stable Chebyshev polynomials $T_k(\tilde{L})$ to compute a $K$-hop filter. This allows the model to aggregate information from a wide neighborhood in a single layer.
- High-Pass Correction and Gating: To preserve sharp features in heterophilic graphs, a learnable high-pass skip connection is added. The final update uses a gated residual mechanism to balance new information with the existing state.
A major innovation is the use of Diagonal Decoupling. We demonstrate that complex, dense restriction maps are unnecessary when paired with a powerful spectral filter. Using diagonal maps drastically reduces the number of parameters and memory footprint without sacrificing accuracy.
Experimental Results
We evaluated PolyNSD on a comprehensive suite of node classification benchmarks, ranging from highly heterophilic (Texas, Wisconsin) to highly homophilic (Cora, Pubmed).
As shown in the results table, PolyNSD variants (DiagPolySD, BundlePolySD, GeneralPolySD) consistently achieve state-of-the-art or competitive performance. Notably, on the Squirrel and Chameleon datasets, PolyNSD significantly outperforms the original NSD models. The efficiency gains are also substantial; by utilizing diagonal maps, PolyNSD achieves these results with a fraction of the parameters and runtime required by dense-map models.
Key Insights
- Spectral Interpretability: The learned polynomial coefficients provide a direct look into the model's behavior. Homophilic datasets typically result in low-pass filters, while heterophilic ones induce high-pass or band-pass responses to highlight disagreements between nodes.
- Robustness to Depth: Unlike many GNNs that fail after a few layers, PolyNSD remains stable and accurate even at extreme depths (up to 32 layers), effectively mitigating the oversmoothing issues that plague traditional architectures.
- Mitigating Pathologies: By providing a $K$-hop reach in one layer, PolyNSD reduces the bottleneck effect of oversquashing, maintaining sensitivity to distant nodes more effectively than standard spatial models.
Conclusion
Polynomial Neural Sheaf Diffusion represents a significant step forward in graph representation learning. By combining the geometric flexibility of cellular sheaves with the power of spectral filtering, PolyNSD offers a robust, efficient, and interpretable solution for both homophilic and heterophilic graphs. Future work will explore extending this framework to link prediction and larger-scale graph tasks.
Summary updated