Piecewise Constant Spectral Graph Neural Network

Vahan Martirosyan, Jhony H. Giraldo, Fragkiskos D. Malliaros

TL;DR

PieCoN introduces a novel spectral Graph Neural Network (GNN) that combines adaptive, piecewise constant filters with traditional polynomial filters. By partitioning the graph's eigenvalue spectrum, it successfully captures sharp spectral discontinuities—such as highly repeated zero eigenvalues—leading to state-of-the-art performance, particularly on heterophilic graph datasets.

What Problem Does This Paper Address?

Spectral GNNs operate in the graph's frequency domain, using the eigenvalues and eigenvectors of graph matrices (like the Laplacian) to perform convolutions. To avoid the high computational cost of full eigendecomposition, standard spectral GNNs approximate these filters using low-degree polynomials.

However, polynomials are inherently smooth and continuous. This makes them fundamentally ill-suited for capturing sharp transitions or isolating specific frequency bands. In real-world graphs, certain eigenvalues (especially zero) often have high multiplicity due to duplicate sub-structures or disconnected components. Low-degree polynomials smooth right over these critical spikes, while high-degree polynomials are computationally expensive and prone to overfitting.

Methods

The authors propose the Piecewise Constant Spectral Graph Neural Network (PieCoN) to bridge this gap by combining the smooth interpolation of polynomials with the sharp flexibility of constant filters.

  1. Adaptive Spectrum Partitioning: Instead of using fixed intervals, PieCoN uses a thresholding algorithm (Algorithm 1) that analyzes the derivative of sorted eigenvalues to find natural gaps and boundaries in the graph's spectrum (see Figure 3).
  2. Piecewise Constant Filters: For each identified interval, PieCoN constructs a binary diagonal matrix to isolate that specific frequency band, allowing the model to create sharp, discontinuous step functions (see Figure 4).
  3. Positive/Negative Splitting: To ensure meaningful feature aggregation and prevent arbitrary cancellations, the constant filters are explicitly split into positive and negative parts.
  4. Hybrid Architecture: The model combines these localized constant filters with global polynomial filters (Figure 5), applying them simultaneously to the input features.
Overview of the PieCoN architecture, combining adaptive constant filters and polynomial filters.

Datasets

The model was evaluated on nine standard node classification benchmarks, categorized by their homophily ratios:

  • Heterophilic Graphs (neighbors often have different labels): Chameleon, Squirrel, Actor, Amazon-Ratings, Texas.
  • Homophilic Graphs (neighbors often share the same label): Cora, Citeseer, Amazon-Photo, Pubmed.

Key Insights and Ideas

  • The Importance of Eigenvalue Zero: The paper demonstrates that real-world graphs frequently exhibit a high multiplicity of the eigenvalue 0 due to duplicate structural motifs (Theorem 3). PieCoN's ability to abruptly drop or spike at exactly 0 allows it to leverage this structural information far better than smooth polynomial baselines.
  • The Mathematical Limit of Polynomials: The authors provide a theoretical error bound (Theorem 2) proving that polynomial filters face a fundamental bottleneck when approximating jump discontinuities. Piecewise constant functions elegantly bypass this limitation.
  • Invariance Guarantees: The authors mathematically prove that PieCoN's constant filters remain invariant to eigenvector sign flips and basis changes, ensuring stable and consistent representations regardless of the underlying numerical eigendecomposition method used.

Key Results

PieCoN achieved the highest node classification accuracy on 7 out of the 9 benchmark datasets, showing particularly strong performance on heterophilic graphs:

  • Chameleon: Reached 75.75% accuracy (a notable improvement over JacobiConv's 73.92%).
  • Squirrel: Reached 65.67% accuracy (compared to JacobiConv's 57.38%).
  • Amazon-Ratings: Reached 52.37% accuracy.

On homophilic datasets (like Cora and Pubmed), PieCoN remained highly competitive with existing state-of-the-art methods, proving that its discontinuous filtering capabilities do not disrupt performance in traditional graph settings. Furthermore, during the model propagation phase, PieCoN's constant filters proved to be significantly faster per epoch than high-degree polynomial alternatives.

Limitations and Future Work

  • Scalability Bottleneck: PieCoN requires an initial exact eigendecomposition, which scales at $O(n^3)$. While this is a one-time preprocessing step (taking about 8 minutes for a 25,000-node graph on an NVIDIA A100), it currently prevents the model from scaling directly to massive graphs with millions of nodes without utilizing graph sampling or partitioning techniques.
  • Hard Thresholding: The adaptive interval partitioning currently relies on a hard-thresholding heuristic based on eigenvalue derivatives. The authors note that exploring soft or fully learnable partitioning strategies could be a promising direction for future optimization.

Summary updated

BibTeX
@article{martirosyan2025piecewise,
  author = {Vahan Martirosyan and Jhony H. Giraldo and Fragkiskos D. Malliaros},
  title = {{Piecewise Constant Spectral Graph Neural Network}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=sTdVnDW0HX},
}
Figure