Can Graph Neural Networks Count Substructures?
Not on the map. Why?
Abstract (arXiv)
The ability to detect and count certain substructures in graphs is important for solving many tasks on graph-structured data, especially in the contexts of computational chemistry and biology as well as social network analysis. Inspired by this, we propose to study the expressive power of graph neural networks (GNNs) via their ability to count attributed graph substructures, extending recent works that examine their power in graph isomorphism testing and function approximation. We distinguish between two types of substructure counting: induced-subgraph-count and subgraph-count, and establish both positive and negative answers for popular GNN architectures. Specifically, we prove that Message Passing Neural Networks (MPNNs), 2-Weisfeiler-Lehman (2-WL) and 2-Invariant Graph Networks (2-IGNs) cannot perform induced-subgraph-count of substructures consisting of 3 or more nodes, while they can perform subgraph-count of star-shaped substructures. As an intermediary step, we prove that 2-WL and 2-IGNs are equivalent in distinguishing non-isomorphic graphs, partly answering an open problem raised in Maron et al. (2019). We also prove positive results for k-WL and k-IGNs as well as negative results for k-WL with a finite number of iterations. We then conduct experiments that support the theoretical results for MPNNs and 2-IGNs. Moreover, motivated by substructure counting and inspired by Murphy et al. (2019), we propose the Local Relational Pooling model and demonstrate that it is not only effective for substructure counting but also able to achieve competitive performance on molecular prediction tasks.
Key facts. Cited by 236 papers in the map (data through 14 Oct 2026). First posted on arXiv 10 Feb 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 24; 2022: 53; 2023: 59; 2024: 59; 2025: 25; 2026: 16.
236 papers.
Sort:
By area:
- 2022DiGress: Discrete Denoising diffusion for graph generationcited by 520
- 2021Weisfeiler and Lehman Go Topological: Message Passing Simplicial Networkscited by 221
- 2021Weisfeiler and Lehman Go Cellular: CW Networkscited by 218
- 2022Pure Transformers are Powerful Graph Learnerscited by 188
- 2022Sign and Basis Invariant Networks for Spectral Graph Representation Learningcited by 179
- 2022How Powerful are Spectral Graph Neural Networkscited by 169
- 2021From Stars to Subgraphs: Uplifting Any GNN with Local Structure Awarenesscited by 155
- 2021Equivariant Subgraph Aggregation Networkscited by 154
- 2022Learning Causally Invariant Representations for Out-of-Distribution Generalization on Graphscited by 144
- 2021Nested Graph Neural Networkscited by 137
- 2021Scalars are universal: Equivariant machine learning, structured like classical physicscited by 127
- 2023Rethinking the Expressive Power of GNNs via Graph Biconnectivitycited by 119
38 more
- 2021Geometric Deep Learning on Molecular Representationscited by 113
- 2022Understanding and Extending Subgraph GNNs by Rethinking Their Symmetriescited by 112
- 2022The CLRS Algorithmic Reasoning Benchmarkcited by 106
- 2021Breaking the Limits of Message Passing Graph Neural Networkscited by 101
- 2022Equivariant and Stable Positional Encoding for More Powerful Graph Neural Networkscited by 94
- 2022A Generalization of ViT/MLP-Mixer to Graphscited by 93
- 2022How Powerful are K-hop Message Passing Graph Neural Networkscited by 90
- 2021Topological Graph Neural Networkscited by 87
- 2024GFT: Graph Foundation Model with Transferable Tree Vocabularycited by 85
- 2021Size-Invariant Graph Representations for Graph Classification Extrapolationscited by 84
- 2022Graph Neural Networks for Link Prediction with Subgraph Sketchingcited by 81
- 2022BOND: Benchmarking Unsupervised Outlier Node Detection on Static Attributed Graphscited by 80
- 2024Simple Is Effective: The Roles of Graphs and Large Language Models in Knowledge-Graph-Based Retrieval-Augmented Generationcited by 80
- 2024Discrete-state Continuous-time Diffusion for Graph Generationcited by 76
- 2023A Comprehensive Survey on Deep Graph Representation Learningcited by 72
- 2022A Survey on Graph Representation Learning Methodscited by 66
- 2021Reconstruction for Powerful Graph Representationscited by 65
- 2022Expressiveness and Approximation Properties of Graph Neural Networkscited by 64
- 2023A Complete Expressiveness Hierarchy for Subgraph GNNs via Subgraph Weisfeiler-Lehman Testscited by 64
- 2022Theory of Graph Neural Networks: Representation and Learningcited by 61
- 2021On Provable Benefits of Depth in Training Graph Convolutional Networkscited by 58
- 2022GraphWorld: Fake Graphs Bring Real Insights for GNNscited by 56
- 2022Boosting the Cycle Counting Power of Graph Neural Networks with I2-GNNscited by 56
- 2023How does over-squashing affect the power of GNNs?cited by 53
- 2021Graph Neural Networks with Local Graph Parameterscited by 52
- 2022Graph Pooling for Graph Neural Networks: Progress, Challenges, and Opportunitiescited by 52
- 2023Realistic Synthetic Financial Transactions for Anti-Money Laundering Modelscited by 50
- 2022A Theoretical Comparison of Graph Neural Network Extensionscited by 48
- 2021Walking Out of the Weisfeiler Leman Hierarchy: Graph Learning Beyond Message Passingcited by 47
- 2022Message passing all the way upcited by 47
- 2022GStarX: Explaining Graph Neural Networks with Structure-Aware Cooperative Gamescited by 42
- 2023MUDiff: Unified Diffusion for Complete Molecule Generationcited by 42
- 2023Generalization in Graph Neural Networks: Improved PAC-Bayesian Bounds on Graph Diffusioncited by 40
- 2021Autobahn: Automorphism-based Graph Neural Netscited by 39
- 2024Beyond Weisfeiler-Lehman: A Quantitative Framework for GNN Expressivenesscited by 39
- 2023Equivariant Polynomials for Graph Neural Networkscited by 38
- 2022SpeqNets: Sparsity-aware Permutation-equivariant Graph Networkscited by 37
- 2023RetroBridge: Modeling Retrosynthesis with Markov Bridgescited by 36
50 most cited of 236 All 236 (JSON)
- 2026Random Probing for Structural Self-Interactions in Graph Neural Networks13 Oct 2026
- 2026WOMBAT: Whitebox Oracle for Molecular Benchmarking and Attribution Testing30 Sep 2026
- 2026PreGress: Ranking-Native Pre-training and Prompting for Graph Node Ranking10 Aug 2026
- 2026Do Sheaf Neural Networks Use Holonomy? A Measure--Intervene--Control Study21 Jul 2026
- 2026Multimodal Molecular Representation Learning with Graph Neural Networks, Deep & Cross Networks, and SMILES Embeddings7 Jul 2026
- 2026Scalable Message-Passing Quantum Graph Neural Networks in the Weisfeiler-Leman Hierarchy25 Jun 2026
- 2026Beyond Soft Masks: Hard-Perturbation Mixup Explainer for Robust GNN Explainability4 Jun 2026
- 2026Lost in Tokenization: Fundamental Trade-offs in Graph Tokenization for Transformers21 May 2026
- 2026KGPFN: Unlocking the Potential of Knowledge Graph Foundation Model via In-Context Learning14 May 2026
- 2026A Survey on GNN-based Link Prediction: Techniques, Applications, and Challenges29 Apr 2026
- 2026The Logical Expressiveness of Topological Neural Networks21 Apr 2026
- 2026Contraction and Hourglass Persistence for Learning on Graphs, Simplices, and Cells19 Apr 2026
38 more
- 2026Weisfeiler and Lehman Go Categorical6 Feb 2026
- 2026Plain Transformers are Surprisingly Powerful Link Predictors2 Feb 2026
- 2026FloydNet: A Learning Paradigm for Global Relational Reasoning27 Jan 2026
- 2026XIMP: Cross Graph Inter-Message Passing for Molecular Property Prediction26 Jan 2026
- 2025Semantic Refinement with LLMs for Graph Representations24 Dec 2025
- 2025Chromatic Feature Vectors for 2-Trees: Exact Formulas for Partition Enumeration with Network Applications8 Dec 2025
- 2025Explainable Graph Representation Learning via Graph Pattern Analysis4 Dec 2025
- 2025On topological descriptors for graph products12 Nov 2025
- 2025Message Passing on the Edge: Towards Scalable and Expressive GNNs15 Oct 2025
- 2025Toward a Unified Geometry Understanding: Riemannian Diffusion Framework for Graph Generation and Prediction6 Oct 2025
- 2025On The Expressive Power of GNN Derivatives2 Oct 2025
- 2025LEAP: Local ECT-Based Learnable Positional Encodings for Graphs1 Oct 2025
- 2025MoSE: Unveiling Structural Patterns in Graphs via Mixture of Subgraph Experts11 Sep 2025
- 2025What Expressivity Theory Misses: Message Passing Complexity for GNNs1 Sep 2025
- 2025Graph Persistence goes Spectral6 Jun 2025
- 2025Visual Graph Arena: Evaluating Visual Conceptualization of Vision and Multimodal Large Language Models6 Jun 2025
- 2025Studying and Improving Graph Neural Network-based Motif Estimation30 May 2025
- 2025Chordless Structure: A Pathway to Simple and Expressive GNNs25 May 2025
- 2025Graph Alignment for Benchmarking Graph Neural Networks and Learning Positional Encodings19 May 2025
- 2025Open Your Eyes: Vision Enhances Message Passing Neural Networks in Link Prediction13 May 2025
- 2025BEACON: A Benchmark for Efficient and Accurate Counting of Subgraphs15 Apr 2025
- 2025Depth-Width tradeoffs in Algorithmic Reasoning of Graph Tasks with Transformers3 Mar 2025
- 2025Learning Exposure Mapping Functions for Inferring Heterogeneous Peer Effects3 Mar 2025
- 2025Homomorphism Expressivity of Spectral Invariant Graph Neural Networks1 Mar 2025
- 2025Graph Self-Supervised Learning with Learnable Structural and Positional Encodings22 Feb 2025
- 2025Towards Invariance to Node Identifiers in Graph Neural Networks19 Feb 2025
- 2025Graph Neural Networks for Databases: A Survey18 Feb 2025
- 2025Beyond Message Passing: Neural Graph Pattern Machine30 Jan 2025
- 2025Balancing Efficiency and Expressiveness: Subgraph GNNs with Walk-Based Centrality6 Jan 2025
- 2024Line Graph Vietoris-Rips Persistence Diagram for Topological Graph Representation Learning23 Dec 2024
- 2024Towards Graph Foundation Models: Learning Generalities Across Graphs via Task-Trees21 Dec 2024
- 2024Machines and Mathematical Mutations: Using GNNs to Characterize Quiver Mutation Classes12 Nov 2024
- 2024Learning From Graph-Structured Data: Addressing Design Issues and Exploring Practical Applications in Graph Representation Learning9 Nov 2024
- 2024GFT: Graph Foundation Model with Transferable Tree Vocabulary9 Nov 2024
- 2024Graph neural networks and non-commuting operators6 Nov 2024
- 2024Simple Is Effective: The Roles of Graphs and Large Language Models in Knowledge-Graph-Based Retrieval-Augmented Generation28 Oct 2024
- 2024Towards Stable, Globally Expressive Graph Representations with Laplacian Eigenvectors13 Oct 2024
- 2024How Do Large Language Models Understand Graph Patterns? A Benchmark for Graph Pattern Comprehension4 Oct 2024
50 newest of 236 All 236 (JSON)
- 2022DiGress: Discrete Denoising diffusion for graph generationcited by 520
- 2024Discrete-state Continuous-time Diffusion for Graph Generationcited by 76
- 2023Sparse Training of Discrete Diffusion Models for Graph Generationcited by 27
- 2024Unifying Generation and Prediction on Graphs with Latent Graph Diffusioncited by 25
- 2025Toward a Unified Geometry Understanding: Riemannian Diffusion Framework for Graph Generation and Predictioncited by 2
- 2025Toward a Unified Geometry Understanding: Riemannian Diffusion Framework for Graph Generation and Prediction6 Oct 2025
- 2024Discrete-state Continuous-time Diffusion for Graph Generation19 May 2024
- 2024Unifying Generation and Prediction on Graphs with Latent Graph Diffusion4 Feb 2024
- 2023Sparse Training of Discrete Diffusion Models for Graph Generation3 Nov 2023
- 2022DiGress: Discrete Denoising diffusion for graph generation29 Sep 2022
- 2021Weisfeiler and Lehman Go Topological: Message Passing Simplicial Networkscited by 221
- 2021Weisfeiler and Lehman Go Cellular: CW Networkscited by 218
- 2022Pure Transformers are Powerful Graph Learnerscited by 188
- 2022Sign and Basis Invariant Networks for Spectral Graph Representation Learningcited by 179
- 2022How Powerful are Spectral Graph Neural Networkscited by 169
- 2021From Stars to Subgraphs: Uplifting Any GNN with Local Structure Awarenesscited by 155
- 2021Equivariant Subgraph Aggregation Networkscited by 154
- 2022Learning Causally Invariant Representations for Out-of-Distribution Generalization on Graphscited by 144
- 2021Nested Graph Neural Networkscited by 137
- 2021Scalars are universal: Equivariant machine learning, structured like classical physicscited by 127
- 2023Rethinking the Expressive Power of GNNs via Graph Biconnectivitycited by 119
- 2021Geometric Deep Learning on Molecular Representationscited by 113
12 most cited of 227 All 227 (JSON)
- 2026Random Probing for Structural Self-Interactions in Graph Neural Networks13 Oct 2026
- 2026WOMBAT: Whitebox Oracle for Molecular Benchmarking and Attribution Testing30 Sep 2026
- 2026Do Sheaf Neural Networks Use Holonomy? A Measure--Intervene--Control Study21 Jul 2026
- 2026Multimodal Molecular Representation Learning with Graph Neural Networks, Deep & Cross Networks, and SMILES Embeddings7 Jul 2026
- 2026Scalable Message-Passing Quantum Graph Neural Networks in the Weisfeiler-Leman Hierarchy25 Jun 2026
- 2026Beyond Soft Masks: Hard-Perturbation Mixup Explainer for Robust GNN Explainability4 Jun 2026
- 2026Lost in Tokenization: Fundamental Trade-offs in Graph Tokenization for Transformers21 May 2026
- 2026KGPFN: Unlocking the Potential of Knowledge Graph Foundation Model via In-Context Learning14 May 2026
- 2026A Survey on GNN-based Link Prediction: Techniques, Applications, and Challenges29 Apr 2026
- 2026The Logical Expressiveness of Topological Neural Networks21 Apr 2026
- 2026Contraction and Hourglass Persistence for Learning on Graphs, Simplices, and Cells19 Apr 2026
- 2026Weisfeiler and Lehman Go Categorical6 Feb 2026
12 newest of 227 All 227 (JSON)