Skip to main content
QUICK REVIEW

[Paper Review] Polynormer: Polynomial-Expressive Graph Transformer in Linear Time

Chenhui Deng, Zichao Yue|arXiv (Cornell University)|Mar 2, 2024
Neural Networks and ApplicationsComputer Science5 citations
TL;DR

Polynormer introduces a polynomial-expressive graph transformer with linear-time local-to-global attention, achieving high expressivity without dense attention and outperforming baselines on both homophilic and heterophilic graphs.

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.

Motivation & Objective

  • Motivate the need for scalable yet expressive graph transformers that surpass traditional GNN expressivity.
  • Propose a polynomial-expressive GT that yields high-degree polynomial mappings of node features.
  • Design permutation-equivariant local and global attention mechanisms to achieve linear-time complexity.
  • Demonstrate scalability to graphs with millions of nodes across homophilic and heterophilic settings.
  • Evaluate Polynormer extensively against GNN and GT baselines on 13 datasets and large graphs.

Proposed method

  • Define a base polynomial-expressive model where each layer computes X^{(l)} = (W^{(l)} X^{(l-1)}) ⊙ (X^{(l-1)} + B^{(l)}) to achieve 2^L polynomial expressivity.
  • Derive two equivariant attention modules (local and global) by replacing B with node-shared biases and using either graph topology (A) or a linearized global attention kernel.
  • Introduce a local-to-global attention architecture where a local attention block with sparse adjacency A is followed by a linear-time global attention block with a kernelized formulation.
  • Ensure linear-time complexity: local attention O(md + nd^2) and global attention O(nd^2) with the kernel trick.
  • Optionally enable ReLU activations (Polynormer-r) to further boost performance while preserving the polynomial-expressive core.
  • Provide implementation guidance and theoretical connections to WL expressivity.

Experimental results

Research questions

  • RQ1Can a graph transformer learning high-degree polynomials achieve expressivity on graphs while maintaining linear-time complexity?
  • RQ2How can permutation equivariance be ensured when integrating graph topology and node features into polynomial coefficients?
  • RQ3Does a local-to-global attention scheme outperform prior local-and-global designs while enabling scalability to large graphs?
  • RQ4What performance gains do polynomial-expressive transformers provide on homophilic and heterophilic graphs compared with state-of-the-art baselines?

Key findings

  • Polynormer achieves 2^L polynomial expressivity with an L-layer base model.
  • Equivariant local attention uses A as sparse weights; equivariant global attention uses a kernelized, linear-time form of softmax attention.
  • Local-to-global Polynormer achieves linear complexity and outperforms state-of-the-art GNNs and GTs on most datasets.
  • Polynormer-r (with ReLU) further improves accuracy on many datasets, including large-scale graphs.
  • Extensive experiments on 13 datasets (including large graphs with millions of nodes) demonstrate strong performance on both homophilic and heterophilic graphs.
  • The architecture avoids dense attention and heavy PE/SE overheads, while enabling high polynomial expressivity.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.