Lune

ICML2024Top-tier venue

Subgraphormer: Unifying Subgraph GNNs and Graph Transformers via Graph Products

Guy Bar-Shalom, Beatrice Bevilacqua, Haggai Maron

Abstract

In the realm of Graph Neural Networks (GNNs), two exciting research directions have recently emerged: Subgraph GNNs and Graph Transformers. In this paper, we propose an architecture that integrates both approaches, dubbed Subgraphormer, which combines the enhanced expressive power, message-passing mechanisms, and aggregation schemes from Subgraph GNNs with attention and positional encodings, arguably the most important components in Graph Transformers. Our method is based on an intriguing new connection we reveal between Subgraph GNNs and product graphs, suggesting that Subgraph GNNs can be formulated as Message Passing Neural Networks (MPNNs) operating on a product of the graph with itself. We use this formulation to design our architecture: first, we devise an attention mechanism based on the connectivity of the product graph. Following this, we propose a novel and efficient positional encoding scheme for Subgraph GNNs, which we derive as a positional encoding for the product graph. Our experimental results demonstrate significant performance improvements over both Subgraph GNNs and Graph Transformers on a wide range of datasets.

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.

8 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Recipe for a General, Powerful, Scalable Graph Transformer cites Reformer: The Efficient Transformer
  • Balancing Efficiency and Expressiveness: Subgraph GNNs with Walk-Based Centrality cites Recipe for a General, Powerful, Scalable Graph Transformer
  • Balancing Efficiency and Expressiveness: Subgraph GNNs with Walk-Based Centrality cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
  • Balancing Efficiency and Expressiveness: Subgraph GNNs with Walk-Based Centrality cites A Flexible, Equivariant Framework for Subgraph GNNs via Graph Products and Graph Coarsening
  • Can Classic GNNs Be Strong Baselines for Graph-level Tasks? Simple Architectures Meet Excellence cites Recipe for a General, Powerful, Scalable Graph Transformer
  • Can Classic GNNs Be Strong Baselines for Graph-level Tasks? Simple Architectures Meet Excellence cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
  • A Flexible, Equivariant Framework for Subgraph GNNs via Graph Products and Graph Coarsening cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
  • Homomorphism Counts as Structural Encodings for Graph Learning cites Recipe for a General, Powerful, Scalable Graph Transformer
  • Homomorphism Counts as Structural Encodings for Graph Learning cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
  • How Attentive are Graph Attention Networks? cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
  • On The Expressive Power of GNN Derivatives cites Recipe for a General, Powerful, Scalable Graph Transformer
  • On The Expressive Power of GNN Derivatives cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
  • On The Expressive Power of GNN Derivatives cites Balancing Efficiency and Expressiveness: Subgraph GNNs with Walk-Based Centrality
  • On The Expressive Power of GNN Derivatives cites A Flexible, Equivariant Framework for Subgraph GNNs via Graph Products and Graph Coarsening
  • On The Expressive Power of GNN Derivatives cites Homomorphism Counts as Structural Encodings for Graph Learning
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers8

  1. A Flexible, Equivariant Framework for Subgraph GNNs via Graph Products and Graph CoarseningGuy Bar-Shalom, Yam Eitan, Fabrizio Frasca, Haggai MaronNeurIPS 2024 · 9 citations
  2. On The Expressive Power of GNN DerivativesYam Eitan, Moshe Eliasof, Yoav Gelberg, Fabrizio Frasca et al.ICLR 2026 · 1 citation
  3. Balancing Efficiency and Expressiveness: Subgraph GNNs with Walk-Based CentralityJoshua Southern, Yam Eitan, Guy Bar-Shalom, Michael M. Bronstein et al.ICML 2025
  4. Can Classic GNNs Be Strong Baselines for Graph-level Tasks? Simple Architectures Meet ExcellenceYuankai Luo, Lei Shi, Xiao-Ming WuICML 2025
  5. Homomorphism Counts as Structural Encodings for Graph LearningLinus Bao, Emily Jin, Michael M. Bronstein, Ismail Ilkan Ceylan et al.ICLR 2025

Builds on32

  1. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  2. Open Graph Benchmark: Datasets for Machine Learning on GraphsWeihua Hu, Matthias Fey, Marinka Zitnik, Yuxiao Dong et al.NeurIPS 2020 · 3,935 citations
  3. Reformer: The Efficient TransformerNikita Kitaev, Lukasz Kaiser, Anselm LevskayaICLR 2020 · 2,878 citations
  4. How Attentive are Graph Attention Networks?Shaked Brody, Uri Alon, Eran YahavICLR 2022 · 1,717 citations
  5. 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

Related papers

  1. Structure-Aware Transformer for Graph Representation LearningDexiong Chen, Leslie O'Bray, Karsten M. BorgwardtICML 2022 · 349 citations
  2. Are Graph Transformers Necessary? Efficient Long-Range Message Passing with Fractal Nodes in MPNNsJeongwhan Choi, Seungjun Park, Sumin Park, Sung-Bae Cho et al.AAAI 2026 · 2 citations
  3. A Closer Look at Graph Transformers: Cross-Aggregation and BeyondJiaming Zhuo, Ziyi Ma, Yintong Lu, Yuwei Liu et al.NeurIPS 2025 · 4 citations
  4. Do Transformers Really Perform Badly for Graph Representation?Chengxuan Ying, Tianle Cai, Shengjie Luo, Shuxin Zheng et al.NeurIPS 2021 · 1,632 citations
  5. Tokenphormer: Structure-aware Multi-token Graph Transformer for Node ClassificationZijie Zhou, Zhaoqi Lu, Xuekai Wei, Rongqin Chen et al.AAAI 2025 · 5 citations
Dusk over the sea between two cliffs drawn in fine vertical lines