HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Polynormer: Polynomial-Expressive Graph Transformer in Linear Time

Chenhui Deng Zichao Yue Zhiru Zhang

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.

Code Repositories

cornell-zhang/polynormer
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
node-classification-on-amazon-ratingsPolynormer
Accuracy (%): 54.81 ± 0.49
node-classification-on-minesweeperPolynormer
AUCROC: 97.46±0.36
node-classification-on-pokecPolynormer
Accuracy: 86.10±0.05
node-classification-on-questionsPolynormer
AUCROC: 78.92±0.89
node-classification-on-roman-empirePolynormer
Accuracy (% ): 92.55±0.37
node-classification-on-tolokersPolynormer
AUCROC: 85.91±0.74

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Polynormer: Polynomial-Expressive Graph Transformer in Linear Time | Papers | HyperAI