Graph Neural Networks with Learnable and Optimal Polynomial Bases
Abstract
Polynomial filters, a kind of Graph Neural Networks, typically use a predetermined polynomial basis and learn the coefficients from the training data. It has been observed that the effectiveness of the model is highly dependent on the property of the polynomial basis. Consequently, two natural and fundamental questions arise: Can we learn a suitable polynomial basis from the training data? Can we determine the optimal polynomial basis for a given graph and node features? In this paper, we propose two spectral GNN models that provide positive answers to the questions posed above. First, inspired by Favard's Theorem, we propose the FavardGNN model, which learns a polynomial basis from the space of all possible orthonormal bases. Second, we examine the supposedly unsolvable definition of optimal polynomial basis from Wang&Zhang (2022) and propose a simple model, OptBasisGNN, which computes the optimal basis for a given graph structure and graph signal. Extensive experiments are conducted to demonstrate the effectiveness of our proposed models. Our code is available at https://github.com/yuziGuo/FarOptBasis.
Benchmark Results
Tested on 5 datasets 4 baseline values reported too low
Tables show presented results in global context (best 3 papers + GCN + MLP).
OGB
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | SGC | 0.7910 | |
| 2 | GAMLP | 0.7036
±0.0002 | |
| 3 | GLEM-GNN | 0.7036
±0.0002 | |
| 18 | OptBasisGNN | 0.6722
±0.0015 | This paper |
| 21 | ChebNetII | 0.6718
±0.0032 | This paper |
| 35 | SAGE | 0.6644
±0.0017 | |
| 95 | MLP | 0.4960
±0.0030 |
Heterophilic Graphs
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | DiGGR | 0.4535
±0.0353 | |
| 2 | TRIGON | 0.4402
±0.0028 | |
| 3 | DoG | 0.4320
±0.0120 | |
| 4 | FavardGNN | 0.4305
±0.0053 | This paper |
| 11 | OptBasisGNN | 0.4239
±0.0052 | This paper |
| 21 | BernNet | 0.4179
±0.0101 best reported | best at pub: Convolutional Neural Networks on Graphs with Chebyshev Approximation, Revisited (NeurIPS 2022) best today: $P^2$GNN: Two Prototype Sets to boost GNN Performance (2026) Difference within reported uncertainty; not counted as underperformance. |
| 22 | ChebNetII | 0.4175
±0.0107 | This paper |
| 34 | JacobiConv | 0.4117
±0.0064 | This paper |
| 41 | APPNP | 0.4046
±0.0064 best reported | best at pub: Convolutional Neural Networks on Graphs with Chebyshev Approximation, Revisited (NeurIPS 2022) best today: A Quasi-Wasserstein Loss for Learning Graph Neural Networks (WWW 2023) Difference within reported uncertainty; not counted as underperformance. |
| 42 | MLP | 0.4026
±0.0108 best reported | best at pub: Heterophily-Aware Graph Attention Network (2023) Difference within reported uncertainty; not counted as underperformance. |
| 53 | GPR-GNN | 0.3992
±0.0067 best reported | best at pub: Convolutional Neural Networks on Graphs with Chebyshev Approximation, Revisited (NeurIPS 2022) best today: Piecewise Constant Spectral Graph Neural Network (TMLR 2025) Difference within reported uncertainty; not counted as underperformance. |
| 68 | GraphSAGE | 0.3899
±0.0085 | |
| 88 | ChebNet | 0.3802
±0.0023 best reported | best at pub: Node-oriented Spectral Filtering for Graph Neural Networks (2022) Difference within reported uncertainty; not counted as underperformance. |
| 111 | ARMA | 0.3767
±0.0054 | This paper |
| 135 | GCN | 0.3690 best reported | best at pub: Beyond Low-frequency Information in Graph Convolutional Networks (AAAI 2021) |
LINKX Benchmarks
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | DC-GNN | 0.8669
±0.0022 | |
| 2 | M2M-GNN | 0.8594
±0.0040 | |
| 3 | GloGNN | 0.8574
±0.0042 | |
| 6 | FavardGNN | 0.8492
±0.0041 | This paper |
| 7 | ChebNetII | 0.8486
±0.0033 | This paper |
| 8 | OptBasisGNN | 0.8485
±0.0039 | This paper |
| 11 | LINKX | 0.8471
±0.0052 | This paper |
| 17 | MixHop | 0.8363
±0.0054 best reported | best at pub: Uplifting Message Passing Neural Network with Graph Original Information (2022) Difference within reported uncertainty; not counted as underperformance. |
| 20 | GPR-GNN | 0.8354
±0.0032 | This paper |
| 23 | BernNet | 0.8326
±0.0029 | This paper |
| 27 | GCNII | 0.8292
±0.0059 | This paper |
| 29 | GIN | 0.8268
±0.0032 | |
| 31 | GCN | 0.8247
±0.0027 | This paper |
| 40 | LINK | 0.8079
±0.0049 | This paper |
| 51 | MLP | 0.7534
±0.0064 best reported | best at pub: Convolutional Neural Networks on Graphs with Chebyshev Approximation, Revisited (NeurIPS 2022) best today: Clarify Confused Nodes via Separated Learning (2023) |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | SAGE | 0.8597
±0.0021 | |
| 2 | Polynormer | 0.8595
±0.0007 | |
| 3 | NID_SAGE | 0.8563
±0.0031 | |
| 5 | OptBasisGNN | 0.8283
±0.0004 | This paper |
| 6 | ChebNetII | 0.8233
±0.0028 | This paper |
| 7 | LINKX | 0.8204
±0.0007 | This paper |
| 9 | BernNet | 0.8167
±0.0017 | This paper |
| 10 | MixHop | 0.8107
±0.0016 | This paper |
| 13 | GPR-GNN | 0.8074
±0.0022 | This paper |
| 14 | LINK | 0.8054
±0.0003 | This paper |
| 16 | GCNII | 0.7894
±0.0011 | This paper |
| 23 | GCN | 0.7601
±0.0049 best reported | best at pub: Convolutional Neural Networks on Graphs with Chebyshev Approximation, Revisited (NeurIPS 2022) best today: Mixture of Weak & Strong Experts on Graphs (ICLR 2023) |
| 24 | GraphSAGE | 0.7576
±0.0004 | |
| 31 | MLP | 0.7048
±0.0077 best reported | best at pub: FMP: Toward Fair Graph Message Passing against Topology Bias (2022) |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | DGT | 0.6609
±0.0022 | |
| 2 | ICG_u-NN | 0.6608
±0.0074 | |
| 3 | LINKX | 0.6606
±0.0019 | This paper |
| 6 | MixHop | 0.6564
±0.0027 | prev best: Deformable Graph Transformer (2022) |
| 9 | OptBasisGNN | 0.6517
±0.0016 | This paper |
| 11 | ChebNetII | 0.6503
±0.0027 | This paper |
| 13 | LINK | 0.6485
±0.0021 | This paper |
| 14 | GraphSAGE | 0.6473
±0.0011 | |
| 16 | GCN | 0.6434
±0.0012 best reported | best at pub: Deformable Graph Transformer (2022) |
| 18 | BernNet | 0.6427
±0.0031 | This paper |
| 19 | FavardGNN | 0.6426
±0.0012 | This paper |
| 23 | GCNII | 0.6339
±0.0061 | This paper |
| 27 | GPR-GNN | 0.6259
±0.0038 | This paper |
| 33 | MLP | 0.6114
±0.0006 best reported | best at pub: Deformable Graph Transformer (2022) |
