Exphormer: Sparse Transformers for Graphs
Hamed Shirzad, Ameya Velingker, Balaji Venkatachalam, Danica J. Sutherland, Ali Kemal Sinop
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 https://github.com/hamed1375/Exphormer.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
90 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Cooperative Graph Neural Networks cites A Generalization of ViT/MLP-Mixer to Graphs
- Recipe for a General, Powerful, Scalable Graph Transformer cites Big Bird: Transformers for Longer Sequences
- Recipe for a General, Powerful, Scalable Graph Transformer cites Graph Neural Networks Exponentially Lose Expressive Power for Node Classification
- Recipe for a General, Powerful, Scalable Graph Transformer cites Principal Neighbourhood Aggregation for Graph Nets
- Forest-Based Graph Learning for Semi-Supervised Node Classification cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
- VCR-Graphormer: A Mini-batch Graph Transformer via Virtual Connections cites Recipe for a General, Powerful, Scalable Graph Transformer
- VCR-Graphormer: A Mini-batch Graph Transformer via Virtual Connections cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
- A Generalization of ViT/MLP-Mixer to Graphs cites Recipe for a General, Powerful, Scalable Graph Transformer
- A Generalization of ViT/MLP-Mixer to Graphs cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
- Polynormer: Polynomial-Expressive Graph Transformer in Linear Time cites Recipe for a General, Powerful, Scalable Graph Transformer
- Polynormer: Polynomial-Expressive Graph Transformer in Linear Time cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
- Polynormer: Polynomial-Expressive Graph Transformer in Linear Time cites Graph Neural Networks Exponentially Lose Expressive Power for Node Classification
- Principal Neighbourhood Aggregation for Graph Nets cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
Cited by top-tier papers90
- A Generalization of ViT/MLP-Mixer to GraphsXiaoxin He, Bryan Hooi, Thomas Laurent, Adam Perold et al.ICML 2023 · 135 citations
- Forest-Based Graph Learning for Semi-Supervised Node ClassificationJin Li, Shenghao Gao, Kaichen Zhang, Xinlong Chen et al.ICLR 2026 · 132 citations
- Polynormer: Polynomial-Expressive Graph Transformer in Linear TimeChenhui Deng, Zichao Yue, Zhiru ZhangICLR 2024 · 81 citations
- Cooperative Graph Neural NetworksBen Finkelshtein, Xingyue Huang, Michael M. Bronstein, Ismail Ilkan CeylanICML 2024 · 57 citations
- VCR-Graphormer: A Mini-batch Graph Transformer via Virtual ConnectionsDongqi Fu, Zhigang Hua, Yan Xie, Jin Fang et al.ICLR 2024 · 47 citations
Builds on18
- Open Graph Benchmark: Datasets for Machine Learning on GraphsWeihua Hu, Matthias Fey, Marinka Zitnik, Yuxiao Dong et al.NeurIPS 2020 · 3,935 citations
- Big Bird: Transformers for Longer SequencesManzil Zaheer, Guru Guruganesh, Kumar Avinava Dubey, Joshua Ainslie et al.NeurIPS 2020 · 3,159 citations
- Recipe for a General, Powerful, Scalable Graph TransformerLadislav Rampásek, Michael Galkin, Vijay Prakash Dwivedi, Anh Tuan Luu et al.NeurIPS 2022 · 1,216 citations
- Principal Neighbourhood Aggregation for Graph NetsGabriele Corso, Luca Cavalleri, Dominique Beaini, Pietro Liò et al.NeurIPS 2020 · 914 citations
- Graph Neural Networks Exponentially Lose Expressive Power for Node ClassificationKenta Oono, Taiji SuzukiICLR 2020 · 864 citations
Related papers
- Even Sparser Graph TransformersHamed Shirzad, Honghao Lin, Balaji Venkatachalam, Ameya Velingker et al.NeurIPS 2024 · 18 citations
- Primphormer: Efficient Graph Transformers with Primal RepresentationsMingzhen He, Ruikai Yang, Hanling Tian, Youmei Qiu et al.ICML 2025
- Do Transformers Really Perform Badly for Graph Representation?Chengxuan Ying, Tianle Cai, Shengjie Luo, Shuxin Zheng et al.NeurIPS 2021 · 1,632 citations
- VecFormer: Towards Efficient and Generalizable Graph Transformer with Graph Token AttentionJingbo Zhou, Jun Xia, Siyuan Li, Yunfan Liu et al.WWW 2026
- PolyFormer: Scalable Node-wise Filters via Polynomial Graph TransformerJiahong Ma, Mingguo He, Zhewei WeiKDD 2024 · 6 citations
