Abstract
Graph Neural Networks (GNNs) have achieved significant success across various domains by leveraging graph structures in data. Existing spectral GNNs, which use low-degree polynomial filters to capture graph spectral properties, may not fully identify the graph's spectral characteristics because of the polynomial's small degree. However, increasing the polynomial degree is computationally expensive and beyond certain thresholds leads to performance plateaus or degradation. In this paper, we introduce the Piecewise Constant Spectral Graph Neural Network (PieCoN) to address these challenges. PieCoN combines constant spectral filters with polynomial filters to provide a more flexible way to leverage the graph structure. By adaptively partitioning the spectrum into intervals, our approach increases the range of spectral properties that can be effectively learned. Experiments on nine benchmark datasets, including both homophilic and heterophilic graphs, demonstrate that PieCoN is particularly effective on heterophilic datasets, highlighting its potential for a wide range of applications.
Introduction
Spectral Graph Neural Networks (GNNs) define convolution operations in the graph's spectral domain. Traditionally, these models approximate spectral filters using low-degree polynomials (e.g., ChebNet, GCN, JacobiConv). While polynomials are computationally efficient and provide a degree of "smoothness" that filters out noise, they suffer from a fundamental limitation: they cannot easily capture sharp transitions or localized "spikes" in the eigenvalue spectrum.
In many real-world graphs, specific eigenvalues—most notably zero—exhibit high multiplicity due to structural motifs or disconnected components. A smooth polynomial filter cannot isolate these specific points without affecting the broader spectrum. To address this, we present PieCoN (Piecewise Constant Spectral Graph Neural Network), a hybrid architecture that integrates piecewise constant filters with traditional polynomials.
The PieCoN Framework
PieCoN moves beyond the "smoothness" constraint by adaptively partitioning the graph's eigenvalue spectrum into discrete intervals. This allows the model to learn independent weights for different frequency bands, effectively creating "sharp" filters where needed.
The architecture consists of three primary stages:
- Adaptive Spectrum Partitioning: Using a derivative-based thresholding algorithm, PieCoN identifies "significant gaps" in the sorted eigenvalues of the graph Laplacian. This segments the spectrum into $K$ intervals.
- Hybrid Filtering: The model employs two sets of basis filters:
- Constant Spectral Filters ($T_k$): These are indicator functions that are active only within a specific spectral interval.
- Polynomial Filters ($\hat{A}^p$): Traditional polynomial bases that capture local neighborhood information.
- Aggregation: The final filter is a learnable linear combination of these bases, allowing the model to benefit from both the local smoothness of polynomials and the global structural awareness of constant filters.
Capturing Sharp Spectral Features
The primary advantage of PieCoN is its ability to model discontinuities. Theoretical analysis shows that polynomial filters have a non-zero lower bound on approximation error when trying to fit "jump" functions. By incorporating piecewise constant components, PieCoN bypasses this limitation.
As shown in the comparison above, traditional models like JacobiConv produce smooth curves that may miss critical structural information at specific eigenvalues. PieCoN, however, can create sharp drops or peaks, which is particularly useful for handling the "zero eigenvalue" problem common in complex graph structures.
Experimental Evaluation
PieCoN was evaluated across nine benchmark datasets, spanning both homophilic (where similar nodes connect) and heterophilic (where dissimilar nodes connect) graphs.
- Heterophilic Performance: PieCoN achieved state-of-the-art results on heterophilic datasets such as Squirrel and Amazon-Ratings, outperforming previous methods by up to 2.09%. This suggests that the ability to isolate specific spectral bands is crucial for graphs where local neighborhood smoothing is counterproductive.
- Homophilic Robustness: On homophilic datasets like Cora and Pubmed, PieCoN remained highly competitive, demonstrating that its increased flexibility does not come at the cost of performance on simpler graph structures.
- Computational Efficiency: The propagation complexity remains linear with respect to the number of edges, making it comparable to other modern spectral GNNs despite the added expressivity.
Conclusion and Future Work
PieCoN introduces a novel way to balance smoothness and sharpness in spectral GNNs. By adaptively partitioning the spectrum, it captures structural nuances that polynomials miss. While the initial $O(n^3)$ eigendecomposition is a precomputation hurdle for massive graphs, the performance gains—especially on heterophilic data—mark a significant step forward. Future research will focus on "soft" learnable boundaries for spectral intervals and scaling techniques for million-node graphs.
Summary updated