ICML 2023

Exphormer: Sparse Transformers for Graphs

Hamed Shirzad, A. Velingker, B. Venkatachalam, Danica J. Sutherland, A. Sinop

Main figure for Exphormer: Sparse Transformers for Graphs

Abstract

Graph transformers have emerged as a promising architecture for a variety of graph learning and representation tasks. Despite their successes, though, it remains challenging to scale graph transformers to large graphs while maintaining accuracy competitive with message-passing networks. In this paper, we introduce Exphormer, a framework for building powerful and scalable graph transformers. Exphormer consists of a sparse attention mechanism based on two mechanisms: virtual global nodes and expander graphs, whose mathematical characteristics, such as spectral expansion, pseduorandomness, and sparsity, yield graph transformers with complexity only linear in the size of the graph, while allowing us to prove desirable theoretical properties of the resulting transformer models. We show that incorporating Exphormer into the recently-proposed GraphGPS framework produces models with competitive empirical results on a wide variety of graph datasets, including state-of-the-art results on three datasets. We also show that Exphormer can scale to datasets on larger graphs than shown in previous graph transformer architectures. Code can be found at.

Proposed method: Exphormer

Benchmark Results

Tested on 1 dataset

Tables show presented results in global context (best 3 papers + GCN + MLP).

LRGB

#ModelMRR ↑Paper
1
FloydNet
0.6143
2
Exphormer
actual #2 vs paper #36 34 places worse
0.4737 ±0.0024
best reported
actual #2 vs paper #36 34 places worse
paper 0.3637 ±0.0020
paper 0.3637 ±0.0020 Δ today 0.1100
3
Exphormer + LapPE
0.4737 ±0.0024
8
GatedGCN
0.4670 ±0.0004
16
GIN
0.4617 ±0.0005
64
GraphGPS
0.3337 ±0.0006
This paper
SOTA performance (not significantly different from the best) Baseline / comparison (this paper) Global context (other papers) Best today — OK at publication; today's leaderboard best is elsewhere