mlsanityData to 14 Oct 2026

Can Graph Neural Networks Count Substructures?

arXiv 2002.04025 ↗First posted 10 Feb 2020cs.LG cs.DM stat.MLcited by 236

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

Cited by year (2026 to 14 Oct)

Citing papers per year: 2021: 24; 2022: 53; 2023: 59; 2024: 59; 2025: 25; 2026: 16.

236 papers.

Sort:

By area:

  1. 2022DiGress: Discrete Denoising diffusion for graph generationcited by 520
  2. 2021Weisfeiler and Lehman Go Topological: Message Passing Simplicial Networkscited by 221
  3. 2021Weisfeiler and Lehman Go Cellular: CW Networkscited by 218
  4. 2022Pure Transformers are Powerful Graph Learnerscited by 188
  5. 2022Sign and Basis Invariant Networks for Spectral Graph Representation Learningcited by 179
  6. 2022How Powerful are Spectral Graph Neural Networkscited by 169
  7. 2021From Stars to Subgraphs: Uplifting Any GNN with Local Structure Awarenesscited by 155
  8. 2021Equivariant Subgraph Aggregation Networkscited by 154
  9. 2022Learning Causally Invariant Representations for Out-of-Distribution Generalization on Graphscited by 144
  10. 2021Nested Graph Neural Networkscited by 137
  11. 2021Scalars are universal: Equivariant machine learning, structured like classical physicscited by 127
  12. 2023Rethinking the Expressive Power of GNNs via Graph Biconnectivitycited by 119
38 more
  1. 2021Geometric Deep Learning on Molecular Representationscited by 113
  2. 2022Understanding and Extending Subgraph GNNs by Rethinking Their Symmetriescited by 112
  3. 2022The CLRS Algorithmic Reasoning Benchmarkcited by 106
  4. 2021Breaking the Limits of Message Passing Graph Neural Networkscited by 101
  5. 2022Equivariant and Stable Positional Encoding for More Powerful Graph Neural Networkscited by 94
  6. 2022A Generalization of ViT/MLP-Mixer to Graphscited by 93
  7. 2022How Powerful are K-hop Message Passing Graph Neural Networkscited by 90
  8. 2021Topological Graph Neural Networkscited by 87
  9. 2024GFT: Graph Foundation Model with Transferable Tree Vocabularycited by 85
  10. 2021Size-Invariant Graph Representations for Graph Classification Extrapolationscited by 84
  11. 2022Graph Neural Networks for Link Prediction with Subgraph Sketchingcited by 81
  12. 2022BOND: Benchmarking Unsupervised Outlier Node Detection on Static Attributed Graphscited by 80
  13. 2024Simple Is Effective: The Roles of Graphs and Large Language Models in Knowledge-Graph-Based Retrieval-Augmented Generationcited by 80
  14. 2024Discrete-state Continuous-time Diffusion for Graph Generationcited by 76
  15. 2023A Comprehensive Survey on Deep Graph Representation Learningcited by 72
  16. 2022A Survey on Graph Representation Learning Methodscited by 66
  17. 2021Reconstruction for Powerful Graph Representationscited by 65
  18. 2022Expressiveness and Approximation Properties of Graph Neural Networkscited by 64
  19. 2023A Complete Expressiveness Hierarchy for Subgraph GNNs via Subgraph Weisfeiler-Lehman Testscited by 64
  20. 2022Theory of Graph Neural Networks: Representation and Learningcited by 61
  21. 2021On Provable Benefits of Depth in Training Graph Convolutional Networkscited by 58
  22. 2022GraphWorld: Fake Graphs Bring Real Insights for GNNscited by 56
  23. 2022Boosting the Cycle Counting Power of Graph Neural Networks with I2-GNNscited by 56
  24. 2023How does over-squashing affect the power of GNNs?cited by 53
  25. 2021Graph Neural Networks with Local Graph Parameterscited by 52
  26. 2022Graph Pooling for Graph Neural Networks: Progress, Challenges, and Opportunitiescited by 52
  27. 2023Realistic Synthetic Financial Transactions for Anti-Money Laundering Modelscited by 50
  28. 2022A Theoretical Comparison of Graph Neural Network Extensionscited by 48
  29. 2021Walking Out of the Weisfeiler Leman Hierarchy: Graph Learning Beyond Message Passingcited by 47
  30. 2022Message passing all the way upcited by 47
  31. 2022GStarX: Explaining Graph Neural Networks with Structure-Aware Cooperative Gamescited by 42
  32. 2023MUDiff: Unified Diffusion for Complete Molecule Generationcited by 42
  33. 2023Generalization in Graph Neural Networks: Improved PAC-Bayesian Bounds on Graph Diffusioncited by 40
  34. 2021Autobahn: Automorphism-based Graph Neural Netscited by 39
  35. 2024Beyond Weisfeiler-Lehman: A Quantitative Framework for GNN Expressivenesscited by 39
  36. 2023Equivariant Polynomials for Graph Neural Networkscited by 38
  37. 2022SpeqNets: Sparsity-aware Permutation-equivariant Graph Networkscited by 37
  38. 2023RetroBridge: Modeling Retrosynthesis with Markov Bridgescited by 36

50 most cited of 236 All 236 (JSON)