Exphormer: Sparse Transformers for Graphs

Hamed Shirzad, Ameya Velingker, Balaji Venkatachalam, Danica J. Sutherland, Ali Kemal Sinop
3/10/2023
cs.LG

Official code: hamed1375/Exphormer (193 stars, MIT, last commit 2024-02-26).

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}.

View on arXivView PDF

Code Implementations(1)

MIT

Exphormer: Sparse Transformer for Graphs

19324PythonMar 5, 20232 years agoMIT

Similar Papers

Cite this paper

@article{shirzad2023exphormer,
  title  = {Exphormer: Sparse Transformers for Graphs},
  author = {Hamed Shirzad and Ameya Velingker and Balaji Venkatachalam and Danica J. Sutherland and Ali Kemal Sinop},
  year   = {2023},
  eprint = {2303.06147},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.06147v2},
  journal = {ICML 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2303.06147.svg)](https://codeofpaper.com/paper/2303.06147)

Discussion