HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Exphormer: Sparse Transformers for Graphs

Hamed Shirzad Ameya Velingker Balaji Venkatachalam Danica J. Sutherland Ali Kemal Sinop

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 \url{https://github.com/hamed1375/Exphormer}.

Code Repositories

hamed1375/exphormer
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
graph-classification-on-cifar10-100kExphormer
Accuracy (%): 74.754±0.194
graph-classification-on-malnet-tinyExphormer
Accuracy: 94.02±0.209
graph-classification-on-mnistExphormer
Accuracy: 98.414±0.038
graph-classification-on-peptides-funcExphormer
AP: 0.6527±0.0043
graph-regression-on-peptides-structExphormer
MAE: 0.2481±0.0007
link-prediction-on-pcqm-contactExphormer
MRR: 0.3637±0.0020
node-classification-on-amz-photoExphormer
Accuracy: 95.35±0.22%
node-classification-on-clusterExphormer
Accuracy: 78.22±0.045
node-classification-on-coauthor-csExphormer
Accuracy: 94.93±0.46%
node-classification-on-coauthor-physicsExphormer
Accuracy: 96.89±0.09%
node-classification-on-coco-spExphormer
macro F1: 0.343±0.0008
node-classification-on-pascalvoc-sp-1Exphormer
macro F1: 0.396±0.0027
node-classification-on-patternExphormer
Accuracy: 86.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
Exphormer: Sparse Transformers for Graphs | Papers | HyperAI