mlsanityData to 14 Oct 2026

Local Fragments, Global Gains: Subgraph Counting using Graph Neural Networks

arXiv 2305.19659 ↗First posted 31 May 2023cs.LG cs.DScited by 0

Not on the map. Why?

Abstract (arXiv)

Subgraph counting is a fundamental task for analyzing structural patterns in graph-structured data, with important applications in domains such as computational biology and social network analysis, where recurring motifs reveal functional and organizational properties. In this paper, we propose localized versions of the Weisfeiler-Leman (WL) algorithms to improve both expressivity and computational efficiency for this task. We introduce Local k-WL, which we prove to be more expressive than k-WL and at most as expressive as (k+1)-WL, and provide a characterization of patterns whose subgraph and induced subgraph counts are invariant under Local k-WL equivalence. To enhance scalability, we present two variants -- Layer k-WL and Recursive k-WL -- that achieve greater time and space efficiency compared to applying k-WL on the entire graph. Additionally, we propose a novel fragmentation technique that decomposes complex subgraphs into simpler subpatterns, enabling the exact count of all induced subgraphs of size at most 4 using only 1-WL, with extensions possible for larger patterns when k>1. Building on these ideas, we develop a three-stage differentiable learning framework that combines subpattern counts to compute counts of more complex motifs, bridging combinatorial algorithm design with machine learning approaches. We also compare the expressive power of Local k-WL with existing GNN hierarchies and demonstrate that, under bounded time complexity, our methods are more expressive than prior approaches.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 25 of its 42 references that are in the map. First posted on arXiv 31 May 2023.

Builds on

25 of 42 references.

References · 25

  1. 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,361
  2. 2018How Powerful are Graph Neural Networks?cited by 4,393
  3. 2018Weisfeiler and Leman Go Neural: Higher-order Graph Neural Networkscited by 881
  4. 2019Provably Powerful Graph Networkscited by 389
  5. 2020Improving Graph Neural Network Expressivity via Subgraph Isomorphism Countingcited by 313
  6. 2020Can Graph Neural Networks Count Substructures?cited by 236
  7. 2021Identity-aware Graph Neural Networkscited by 198
  8. 2021From Stars to Subgraphs: Uplifting Any GNN with Local Structure Awarenesscited by 155
  9. 2021Nested Graph Neural Networkscited by 137
  10. 2022Understanding and Extending Subgraph GNNs by Rethinking Their Symmetriescited by 112
  11. 2018On Weisfeiler-Leman Invariance: Subgraph Counts and Related Graph Propertiescited by 63
  12. 2022Boosting the Cycle Counting Power of Graph Neural Networks with I2-GNNscited by 56
13 more
  1. 2022A Theoretical Comparison of Graph Neural Network Extensionscited by 48
  2. 2018Lov'asz Meets Weisfeiler and Lemancited by 27
  3. 2017On the Combinatorial Power of the Weisfeiler-Lehman Algorithmcited by 18
  4. 2017Homomorphisms Are a Good Basis for Counting Small Subgraphscited by 14
  5. 2015Graphs Identified by Logics with Countingcited by 11
  6. 2017The Weisfeiler-Leman Dimension of Planar Graphs is at most 3cited by 10
  7. 2021A Single-Exponential Time 2-Approximation Algorithm for Treewidthcited by 8
  8. 2022An Improved Parameterized Algorithm for Treewidthcited by 6
  9. 2019The Power of the Weisfeiler-Leman Algorithm to Decompose Graphscited by 4
  10. 2019The k-Dimensional Weisfeiler-Leman Algorithmcited by 2
  11. 2016Rank-width: Algorithmic and structural resultscited by 1
  12. 2019A Linear Upper Bound on the Weisfeiler-Leman Dimension of Graphs of Bounded Genuscited by 1
  13. 2023Finding and Counting Patterns in Sparse Graphscited by 1

Built on by

Not cited yet.