A Flexible, Equivariant Framework for Subgraph GNNs via Graph Products and Graph Coarsening

Guy Bar-Shalom, Yam Eitan, Fabrizio Frasca, Haggai Maron
2/3/2026

No official code found. Best implementation: BarSGuy/Efficient-Subgraph-GNNs (6 stars, MIT, last commit 2025-02-10).

Abstract

Subgraph GNNs enhance message-passing GNNs expressivity by representing graphs as sets of subgraphs, demonstrating impressive performance across various tasks. However, their scalability is hindered by the need to process large numbers of subgraphs. While previous approaches attempted to generate smaller subsets of subgraphs through random or learnable sampling, these methods often yielded suboptimal selections or were limited to small subset sizes, ultimately compromising their effectiveness. This paper introduces a new Subgraph GNN framework to address these issues. Our approach diverges from most previous methods by associating subgraphs with node clusters rather than with individual nodes. We show that the resulting collection of subgraphs can be viewed as the product of coarsened and original graphs, unveiling a new connectivity structure on which we perform generalized message passing. Crucially, controlling the coarsening function enables meaningful selection of any number of subgraphs. In addition, we reveal novel permutation symmetries in the resulting node feature tensor, characterize associated linear equivariant layers, and integrate them into our Subgraph GNN. We also introduce novel node marking strategies and provide a theoretical analysis of their expressive power and other key aspects of our approach. Extensive experiments on multiple graph learning benchmarks demonstrate that our method is significantly more flexible than previous approaches, as it can seamlessly handle any number of subgraphs, while consistently outperforming baseline approaches. Our code is available at https://github.com/BarSGuy/Efficient-Subgraph-GNNs.

View on arXivView PDF

Code Implementations(1)

MIT

A Flexible, Equivariant Framework for Subgraph GNNs via Graph Products and Graph Coarsening (NeurIPS 2024)

61PythonOct 20, 20241 years agoMIT

Similar Papers

Cite this paper

@article{barshalom2026flexible,
  title  = {A Flexible, Equivariant Framework for Subgraph GNNs via Graph Products and Graph Coarsening},
  author = {Guy Bar-Shalom and Yam Eitan and Fabrizio Frasca and Haggai Maron},
  year   = {2026},
  eprint = {2406.09291},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2406.09291},
  url    = {https://arxiv.org/abs/2406.09291},
  journal = {NEURIPS 2024 2024}
}

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/2406.09291.svg)](https://codeofpaper.com/paper/2406.09291)

Discussion