Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Polynormer: Polynomial-Expressive Graph Transformer in Linear Time

About

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.

Chenhui Deng, Zichao Yue, Zhiru Zhang• 2024

Related benchmarks

TaskDatasetResultRank
Node ClassificationCora
Accuracy83.43
885
Node ClassificationPubmed
Accuracy90.44
742
Node ClassificationChameleon
Accuracy41.97
549
Node ClassificationSquirrel
Accuracy41.97
500
Node ClassificationPubmed
Accuracy87.34
307
Node ClassificationCiteseer
Accuracy76.77
275
Node ClassificationwikiCS
Accuracy80.26
198
Node ClassificationPhoto
Mean Accuracy96.46
165
Node ClassificationAmazon Photo
Accuracy96.57
150
Node ClassificationPhysics
Accuracy97.27
145
Showing 10 of 65 rows

Other info

Code

Follow for update