Expressivity of Graph Neural Networks Through the Lens of Adversarial Robustness
Francesco Campi, Lukas Gosch, Tom Wollschläger, Yan Scholten, Stephan Günnemann
TL;DR
The paper studies the empirical expressivity of provably powerful GNNs for subgraph counting through adversarial robustness. It introduces a sound adversarial framework and efficient attack strategies that expose a gap between theoretical counting capabilities (e.g., up to patterns of size four) and actual generalization under small structural perturbations and on out-of-distribution graphs. The experiments on synthetic SBM and ER graphs show that state-of-the-art architectures like PPGN and I$^2$-GNN are vulnerable to adversarial perturbations and fail to generalize counting beyond training distributions, even after retraining final prediction layers. These findings highlight the need for robustness-aware training and architecture designs to realize the theoretical expressivity of advanced GNNs in practice.
Abstract
We perform the first adversarial robustness study into Graph Neural Networks (GNNs) that are provably more powerful than traditional Message Passing Neural Networks (MPNNs). In particular, we use adversarial robustness as a tool to uncover a significant gap between their theoretically possible and empirically achieved expressive power. To do so, we focus on the ability of GNNs to count specific subgraph patterns, which is an established measure of expressivity, and extend the concept of adversarial robustness to this task. Based on this, we develop efficient adversarial attacks for subgraph counting and show that more powerful GNNs fail to generalize even to small perturbations to the graph's structure. Expanding on this, we show that such architectures also fail to count substructures on out-of-distribution graphs.
