Can graph neural networks count substructures?

02/10/2020
by   Zhengdao Chen, et al.
37

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. We distinguish between two types of substructure counting: matching-count and containment-count, and establish mostly negative answers for a wide class of GNN architectures. Specifically, we prove that Message Passing Neural Networks (MPNNs), Weisfeiler-Lehman (WL) and 2-Invariant Graph Networks (2-IGNs) cannot perform matching-count of substructures consisting of 3 or more nodes, while they can perform containment-count of star-shaped substructures. We also provide partial results for k-WL and k-IGNs. We then conduct experiments that support several of the theoretical results, and demonstrate that local relational pooling strategies inspired by Murphy et al. (2019) are more effective for substructure counting. In addition, we prove that WL and 2-IGNs are equivalent in distinguishing non-isomorphic graphs, partly answering an open problem raised in Maron et al. (2019).

READ FULL TEXT

page 1

page 2

page 3

page 4

research
12/06/2020

Counting Substructures with Higher-Order Graph Neural Networks: Possibility and Impossibility Results

While massage passing based Graph Neural Networks (GNNs) have become inc...
research
08/16/2023

Expressivity of Graph Neural Networks Through the Lens of Adversarial Robustness

We perform the first adversarial robustness study into Graph Neural Netw...
research
02/07/2023

Learning to Count Isomorphisms with Graph Neural Networks

Subgraph isomorphism counting is an important problem on graphs, as many...
research
06/16/2020

Improving Graph Neural Network Expressivity via Subgraph Isomorphism Counting

While Graph Neural Networks (GNNs) have achieved remarkable results in a...
research
09/10/2023

Distance-Restricted Folklore Weisfeiler-Leman GNNs with Provable Cycle Counting Power

The ability of graph neural networks (GNNs) to count certain graph subst...
research
05/27/2019

Provably Powerful Graph Networks

Recently, the Weisfeiler-Lehman (WL) graph isomorphism test was used to ...
research
11/20/2017

Residual Gated Graph ConvNets

Graph-structured data such as functional brain networks, social networks...

Please sign up or login with your details

Forgot password? Click here to reset