Polynormer: Polynomial-Expressive Graph Transformer in Linear Time
Abstract
Graph transformers (GTs) have emerged as a promising architecture that is theoretically more expressive than message-passing graph neural networks (GNNs). However, typical GT models have at least quadratic complexity and thus cannot scale to large graphs. While there are several linear GTs recently proposed, they still lag behind GNN counterparts on several popular graph datasets, which poses a critical concern on their practical expressivity. To balance the trade-off between expressivity and scalability of GTs, we propose Polynormer, a polynomial-expressive GT model with linear complexity. Polynormer is built upon a novel base model that learns a high-degree polynomial on input features. To enable the base model permutation equivariant, we integrate it with graph topology and node features separately, resulting in local and global equivariant attention models. Consequently, Polynormer adopts a linear local-to-global attention scheme to learn high-degree equivariant polynomials whose coefficients are controlled by attention scores. Polynormer has been evaluated on $13$ homophilic and heterophilic datasets, including large graphs with millions of nodes. Our extensive experiment results show that Polynormer outperforms state-of-the-art GNN and GT baselines on most datasets, even without the use of nonlinear activation functions. Source code of Polynormer is freely available at: github.com/cornell-zhang/Polynormer.
Benchmark Results
Tested on 9 datasets 11 baseline values reported too low
Tables show presented results in global context (best 3 papers + GCN + MLP).
Classic
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | GraphTARIF | 0.9703
±0.0019 | |
| 2 | GAT | 0.9669
±0.0014 best reported | |
| 3 | GAT+T | 0.9660
±0.0007 | |
| 4 | Polynormer | 0.9657
±0.0023 best reported | |
| 6 | Polynormer-r | 0.9646
±0.0026 | This paper |
| 7 | SAGE | 0.9643
±0.0027 | |
| 8 | GCN | 0.9632
±0.0008 best reported | |
| 11 | NAGphormer | 0.9614
±0.0016 best reported | |
| 12 | Polynormer-v1 | 0.9611
±0.0023 | This paper |
| 13 | Polynormer-v2 | 0.9609
±0.0030 | This paper |
| 21 | APPNP | 0.9432
±0.0014 | prev best: A Quasi-Wasserstein Loss for Learning Graph Neural Networks (WWW 2023) |
| 23 | Exphormer | 0.9569
±0.0039 best reported | best today: Graph Transductive Sharpening: Leveraging Unlabeled Predictions in Node Classification (2026) Difference within reported uncertainty; not counted as underperformance. |
| 33 | GPRGNN | 0.9549
±0.0014 best reported | |
| 44 | NodeFormer | 0.9527
±0.0022 best reported | best at pub: SignGT: Signed Attention-based Graph Transformer for Graph Representation Learning (2023) best today: GrokFormer: Graph Fourier Kolmogorov-Arnold Transformers (ICML 2024) |
| 53 | OrderedGNN | 0.9510
±0.0020 | This paper |
| 54 | DIFFormer | 0.9510
±0.0047 | This paper |
| 56 | GraphSAGE | 0.9508
±0.0026 best reported | best at pub: A Quasi-Wasserstein Loss for Learning Graph Neural Networks (WWW 2023) |
| 57 | GraphGPS | 0.9506
±0.0013 | This paper |
| 75 | GGCN | 0.9450
±0.0011 | This paper |
| 86 | GOAT | 0.9433
±0.0021 best reported | best today: Graph Transductive Sharpening: Leveraging Unlabeled Predictions in Node Classification (2026) Difference within reported uncertainty; not counted as underperformance. |
| 87 | GCNII | 0.9430
±0.0020 | prev best: Structure-Aware DropEdge Towards Deep Graph Convolutional Networks (2023) |
| 133 | PPRGo | 0.9361
±0.0012 | This paper |
| 390 | MLP | 0.9128
±0.0063 | |
| 452 | tGNN | 0.8992
±0.0072 | This paper |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | GraphTARIF | 0.9461
±0.0017 | |
| 2 | GCN | 0.9412
±0.0008 best reported | best at pub: Clarify Confused Nodes via Separated Learning (2023) |
| 3 | GAT | 0.9398
±0.0022 | |
| 6 | Polynormer | 0.9378
±0.0010 best reported | |
| 7 | Polynormer-r | 0.9368
±0.0021 | This paper |
| 8 | SAGE | 0.9351
±0.0006 | |
| 10 | Polynormer-v2 | 0.9325
±0.0022 | This paper |
| 11 | Polynormer-v1 | 0.9318
±0.0018 | This paper |
| 20 | GOAT | 0.9229
±0.0037 best reported | |
| 26 | OrderedGNN | 0.9203
±0.0013 | This paper |
| 27 | DIFFormer | 0.9199
±0.0076 | This paper |
| 30 | GGCN | 0.9181
±0.0020 | |
| 33 | Exphormer | 0.9180
±0.0035 best reported | best today: Graph Transductive Sharpening: Leveraging Unlabeled Predictions in Node Classification (2026) Difference within reported uncertainty; not counted as underperformance. |
| 34 | GraphGPS | 0.9179
±0.0063 best reported | best today: Graph Transductive Sharpening: Leveraging Unlabeled Predictions in Node Classification (2026) Difference within reported uncertainty; not counted as underperformance. |
| 38 | NAGphormer | 0.9169
±0.0030 best reported | |
| 46 | GraphSAGE | 0.9120
±0.0029 | prev best: A Quasi-Wasserstein Loss for Learning Graph Neural Networks (WWW 2023) |
| 48 | NodeFormer | 0.9112
±0.0043 best reported | |
| 52 | GCNII | 0.9104
±0.0041 | |
| 58 | APPNP | 0.9018
±0.0017 | prev best: Node-oriented Spectral Filtering for Graph Neural Networks (2022) |
| 175 | PPRGo | 0.8869
±0.0021 | This paper |
| 320 | MLP | 0.8463 | |
| 374 | tGNN | 0.8340
±0.0133 | This paper |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | GrokFormer | 0.9831
±0.0018 | |
| 2 | PolyFormer | 0.9808
±0.0027 | |
| 3 | SGFormer | 0.9796
±0.0081 | |
| 5 | NAGphormer | 0.9785
±0.0026 best reported | best today: GrokFormer: Graph Fourier Kolmogorov-Arnold Transformers (ICML 2024) |
| 6 | GAT | 0.9782
±0.0028 best reported | best at pub: Clarify Confused Nodes via Separated Learning (2023) best today: GrokFormer: Graph Fourier Kolmogorov-Arnold Transformers (ICML 2024) |
| 7 | GPRGNN | 0.9777
±0.0015 best reported | best at pub: Clarify Confused Nodes via Separated Learning (2023) |
| 9 | GCN | 0.9774
±0.0035 best reported | best at pub: SelfGNN: Self-supervised Graph Neural Networks without explicit negative sampling (WWW 2021) best today: GrokFormer: Graph Fourier Kolmogorov-Arnold Transformers (ICML 2024) |
| 13 | GraphGPS | 0.9760
±0.0005 best reported | best today: GrokFormer: Graph Fourier Kolmogorov-Arnold Transformers (ICML 2024) |
| 17 | SAGE | 0.9739
±0.0018 | |
| 22 | Polynormer-r | 0.9727
±0.0008 | This paper |
| 26 | Polynormer | 0.9722
±0.0006 | This paper |
| 27 | Exphormer | 0.9720
±0.0010 best reported | best today: Revisiting the Necessity of Graph Learning and Common Graph Benchmarks (2024) |
| 31 | GGCN | 0.9707
±0.0005 | This paper |
| 32 | OrderedGNN | 0.9700
±0.0008 | This paper |
| 34 | NodeFormer | 0.9680
±0.0063 best reported | best today: VecFormer: Towards Efficient and Generalizable Graph Transformer with Graph Token Attention (WWW 2026) Difference within reported uncertainty; not counted as underperformance. |
| 40 | DIFFormer | 0.9660
±0.0018 | This paper |
| 42 | APPNP | 0.9654
±0.0007 | |
| 43 | GraphSAGE | 0.9649
±0.0006 | |
| 44 | GOAT | 0.9647
±0.0016 best reported | best today: Graph Transductive Sharpening: Leveraging Unlabeled Predictions in Node Classification (2026) Difference within reported uncertainty; not counted as underperformance. |
| 48 | tGNN | 0.9624
±0.0024 | This paper |
| 59 | GCNII | 0.9597
±0.0011 | |
| 58 | MLP | 0.9597
±0.0007 | |
| 116 | PPRGo | 0.9551
±0.0008 | This paper |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | GCN | 0.9302
±0.0011 best reported | best at pub: Augmentation-Free Graph Contrastive Learning with Performance Guarantee (2022) |
| 2 | RSE + RGCN (70b) | 0.8852
±0.0019 | |
| 3 | LEMP+T | 0.8825 | |
| 9 | SAGE | 0.8771 | |
| 12 | APPNP | 0.8754 best reported | |
| 18 | GCNII | 0.8674 best reported | |
| 31 | GAT | 0.8533 best reported | best at pub: Efficient Tuning and Inference for Large Language Models on Textual Graphs (IJCAI 2024) |
| 48 | NAGphormer | 0.8341
±0.0034 best reported | best today: GrokFormer: Graph Fourier Kolmogorov-Arnold Transformers (ICML 2024) |
| 58 | GPRGNN | 0.8258
±0.0089 best reported | best today: GrokFormer: Graph Fourier Kolmogorov-Arnold Transformers (ICML 2024) |
| 69 | GraphSAGE | 0.7477
±0.0095 | prev best: GNNBenchmark (JMLR 2023) best today: Energy-Balanced Hyperspherical Graph Representation Learning via Structural Binding and Entropic Dispersion (2025) Improvement within reported uncertainty; not highlighted. |
| 74 | NodeFormer | 0.8103
±0.0094 best reported | best at pub: Efficient Tuning and Inference for Large Language Models on Textual Graphs (IJCAI 2024) best today: GrokFormer: Graph Fourier Kolmogorov-Arnold Transformers (ICML 2024) |
| 90 | Polynormer | 0.8026
±0.0092 best reported | best today: Graph Transductive Sharpening: Leveraging Unlabeled Predictions in Node Classification (2026) Difference within reported uncertainty; not counted as underperformance. |
| 97 | Polynormer-r | 0.8010
±0.0067 | This paper |
| 99 | Polynormer-v2 | 0.8001
±0.0055 | This paper |
| 113 | Polynormer-v1 | 0.7953
±0.0083 | This paper |
| 117 | Exphormer | 0.7938
±0.0062 best reported | best today: Graph Transductive Sharpening: Leveraging Unlabeled Predictions in Node Classification (2026) Difference within reported uncertainty; not counted as underperformance. |
| 120 | GraphGPS | 0.7926
±0.0057 best reported | best today: GrokFormer: Graph Fourier Kolmogorov-Arnold Transformers (ICML 2024) Difference within reported uncertainty; not counted as underperformance. |
| 134 | OrderedGNN | 0.7901
±0.0068 | This paper |
| 160 | GGCN | 0.7844
±0.0053 | This paper |
| 176 | GOAT | 0.7796
±0.0063 best reported | |
| 179 | PPRGo | 0.7789
±0.0042 | This paper |
| 237 | MLP | 0.7469
±0.0085 | |
| 245 | DIFFormer | 0.7346
±0.0056 | This paper |
| 261 | tGNN | 0.7149
±0.0105 | This paper |
Heterophily Benchmark
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | Dir-Poly | 0.9451
±0.0022 | |
| 2 | D-CDE | 0.9387
±0.0041 | |
| 3 | LargeScaleNet | 0.9358
±0.0024 | |
| 7 | Polynormer | 0.9266
±0.0060 best reported | best today: Graph Transductive Sharpening: Leveraging Unlabeled Predictions in Node Classification (2026) Difference within reported uncertainty; not counted as underperformance. |
| 8 | Polynormer-r | 0.9255
±0.0037 | This paper |
| 12 | Polynormer-v1 | 0.9213
±0.0050 | This paper |
| 21 | Polynormer-v2 | 0.9133
±0.0039 | This paper |
| 24 | Dir-GNN | 0.9123
±0.0032 | This paper |
| 26 | GraphSAGE | 0.9106
±0.0027 best reported | |
| 37 | Exphormer | 0.8903
±0.0037 | This paper |
| 64 | SAGE | 0.8574
±0.0067 | |
| 76 | OrderedGNN | 0.8288
±0.0071 best reported | |
| 78 | GraphGPS | 0.8272
±0.0068 best reported | best today: Graph Transductive Sharpening: Leveraging Unlabeled Predictions in Node Classification (2026) Difference within reported uncertainty; not counted as underperformance. |
| 81 | G^2-GNN | 0.8216
±0.0078 | This paper |
| 91 | tGNN | 0.7995
±0.0075 | This paper |
| 95 | DIFFormer | 0.7910
±0.0032 | This paper |
| 109 | NodeFormer | 0.7483
±0.0081 best reported | |
| 110 | GGCN | 0.7446
±0.0054 | This paper |
| 112 | NAGphormer | 0.7434
±0.0077 | This paper |
| 117 | GOAT | 0.7159
±0.0125 | This paper |
| 135 | MLP | 0.6665
±0.0047 |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | UniGAP | 0.6375
±0.0110 | |
| 2 | H2GCN + HalfHop | 0.5961
±0.0100 | |
| 3 | GraphSAGE + HalfHop | 0.5897
±0.0150 | |
| 12 | SAGE | 0.5569
±0.0023 | |
| 15 | GraphSAGE | 0.5540
±0.0020 best reported | |
| 18 | Polynormer | 0.5496
±0.0022 best reported | |
| 20 | Polynormer-r | 0.5481
±0.0049 | This paper |
| 21 | Polynormer-v1 | 0.5446
±0.0040 | This paper |
| 22 | Polynormer-v2 | 0.5441
±0.0035 | This paper |
| 32 | Exphormer | 0.5351
±0.0046 | This paper |
| 40 | GraphGPS | 0.5327
±0.0066 best reported | best today: Graph Transductive Sharpening: Leveraging Unlabeled Predictions in Node Classification (2026) Difference within reported uncertainty; not counted as underperformance. |
| 71 | NAGphormer | 0.5126
±0.0072 | This paper |
| 84 | MLP | 0.5058 | |
| 118 | tGNN | 0.4821
±0.0053 | This paper |
| 123 | G^2-GNN | 0.4793
±0.0058 | This paper |
| 124 | Dir-GNN | 0.4789
±0.0039 | This paper |
| 125 | DIFFormer | 0.4784
±0.0065 | This paper |
| 129 | OrderedGNN | 0.4729
±0.0065 | This paper |
| 152 | GOAT | 0.4461
±0.0050 | This paper |
| 160 | NodeFormer | 0.4386
±0.0035 | This paper |
| 165 | GGCN | 0.4300
±0.0032 | This paper |
| # | Model | ROC-AUC ↑ | Paper |
|---|---|---|---|
| 1 | BuNN | 0.9899
±0.0016 | |
| 2 | DC-GNN | 0.9850
±0.0021 | |
| 3 | Tango -GPS | 0.9839
±0.0054 | |
| 5 | Polynormer-r | 0.9746
±0.0036 | This paper |
| 8 | Polynormer | 0.9713
±0.0017 best reported | best today: Relieving the Over-Aggregating Effect in Graph Transformers (NeurIPS 2025) Difference within reported uncertainty; not counted as underperformance. |
| 9 | Polynormer-v1 | 0.9696
±0.0052 | This paper |
| 10 | Polynormer-v2 | 0.9648
±0.0037 | This paper |
| 42 | GraphSAGE | 0.9358
±0.0005 best reported | best today: Gumbel-MPNN: Graph Rewiring with Gumbel-Softmax (2025) Difference within reported uncertainty; not counted as underperformance. |
| 46 | SAGE | 0.9351
±0.0057 | |
| 49 | GraphGPS | 0.9326
±0.0010 best reported | best today: Relieving the Over-Aggregating Effect in Graph Transformers (NeurIPS 2025) |
| 59 | Exphormer | 0.9226
±0.0056 best reported | best today: Even Sparser Graph Transformers (NeurIPS 2024) |
| 61 | tGNN | 0.9193
±0.0077 | This paper |
| 64 | G^2-GNN | 0.9183
±0.0056 | This paper |
| 73 | OrderedGNN | 0.9101
±0.0050 best reported | |
| 75 | DIFFormer | 0.9089
±0.0058 | This paper |
| 105 | GGCN | 0.8754
±0.0122 | This paper |
| 107 | Dir-GNN | 0.8705
±0.0069 | This paper |
| 108 | NodeFormer | 0.8671
±0.0088 | This paper |
| 113 | NAGphormer | 0.8419
±0.0066 | This paper |
| 118 | GOAT | 0.8109
±0.0102 | This paper |
| 156 | MLP | 0.5099
±0.0147 |
| # | Model | ROC-AUC ↑ | Paper |
|---|---|---|---|
| 1 | Polynormer-r | 0.8591
±0.0074 | This paper |
| 2 | DC-GNN | 0.8588
±0.0081 | |
| 3 | TANGO-GPS | 0.8566
±0.0101 | |
| 12 | Polynormer | 0.8509
±0.0021 best reported | best today: Relieving the Over-Aggregating Effect in Graph Transformers (NeurIPS 2025) Difference within reported uncertainty; not counted as underperformance. |
| 39 | GraphGPS | 0.8395
±0.0081 best reported | best today: Relieving the Over-Aggregating Effect in Graph Transformers (NeurIPS 2025) Difference within reported uncertainty; not counted as underperformance. |
| 42 | Exphormer | 0.8377
±0.0078 | This paper |
| 50 | GCN | 0.8364
±0.0067 | |
| 51 | DIFFormer | 0.8357
±0.0068 | This paper |
| 62 | GOAT | 0.8311
±0.0104 | This paper |
| 75 | G^2-GNN | 0.8251
±0.0080 | This paper |
| 77 | GraphSAGE | 0.8243
±0.0044 | prev best: Data Augmentation for Supervised Graph Outlier Detection via Latent Diffusion Models (LoG 2023) |
| 83 | Dir-GNN | 0.8119
±0.0105 | This paper |
| 110 | NAGphormer | 0.7832
±0.0095 | This paper |
| 117 | NodeFormer | 0.7810
±0.0103 | This paper |
| 126 | GGCN | 0.7731
±0.0114 | This paper |
| 135 | OrderedGNN | 0.7560
±0.0136 | This paper |
| 139 | MLP | 0.7362
±0.0020 | |
| 149 | tGNN | 0.7084
±0.0175 | This paper |
| # | Model | ROC-AUC ↑ | Paper |
|---|---|---|---|
| 1 | NID_GAT | 0.9703
±0.0002 | |
| 2 | NID_GCN | 0.9685
±0.0010 | |
| 3 | UniGAP | 0.8421
±0.0080 | |
| 16 | GCN | 0.7902
±0.0060 | |
| 20 | Polynormer-r | 0.7892
±0.0089 | This paper |
| 24 | Polynormer | 0.7866
±0.0050 best reported | best today: Relieving the Over-Aggregating Effect in Graph Transformers (NeurIPS 2025) Difference within reported uncertainty; not counted as underperformance. |
| 46 | GraphSAGE | 0.7644
±0.0062 | prev best: Data Augmentation for Supervised Graph Outlier Detection via Latent Diffusion Models (LoG 2023) |
| 59 | tGNN | 0.7638
±0.0179 | This paper |
| 61 | Dir-GNN | 0.7613
±0.0124 | This paper |
| 66 | GOAT | 0.7576
±0.0166 | This paper |
| 73 | GraphGPS | 0.7548
±0.0066 best reported | best today: Relieving the Over-Aggregating Effect in Graph Transformers (NeurIPS 2025) |
| 78 | OrderedGNN | 0.7509
±0.0100 | This paper |
| 79 | G^2-GNN | 0.7482
±0.0092 | This paper |
| 82 | NodeFormer | 0.7427
±0.0146 | This paper |
| 83 | Exphormer | 0.7394
±0.0106 | This paper |
| 89 | DIFFormer | 0.7215
±0.0131 | This paper |
| 94 | GGCN | 0.7110
±0.0157 | This paper |
| 96 | MLP | 0.7082
±0.0010 | |
| 116 | NAGphormer | 0.6817
±0.0153 | This paper |
