Logical Expressiveness of Graph Neural Networks with Hierarchical Node Individualization
Arie Soeteman, Balder ten Cate
TL;DR
This work introduces Hierarchical Ego GNNs (HE-GNNs), an isomorphism-invariant graph learning framework that uses iterative node individualization in a hierarchical, IR-inspired scheme. It establishes strong logical characterizations: HE-GNNs correspond to graded hybrid logic with downarrow (GML(↓)) and extend to GML(↓,W^r) under subgraph restrictions, forming a nesting-depth and radius-based expressiveness hierarchy that relates to the WL and higher-order GNNs. The authors prove that, for graphs of bounded degree, HE-GNNs with depth d capture the same separating power as GML(↓^d) and that HES-GNNs align with GML(↓^d_W^r), yielding a strict, tunable hierarchy that can exceed standard subgraph-GNNs while offering improved practical feasibility. Empirical results on ZINC-12k and strongly regular graphs demonstrate tangible benefits of depth-2 HE-GNNs and depth-2/3 HES-GNNs in distinguishing graphs beyond several baseline models, validating the approach's practical relevance and guiding future design of more expressive, IR-inspired GNNs.
Abstract
We propose and study Hierarchical Ego Graph Neural Networks (HEGNNs), an expressive extension of graph neural networks (GNNs) with hierarchical node individualization, inspired by the Individualization-Refinement paradigm for isomorphism testing. HEGNNs generalize subgraph-GNNs and form a hierarchy of increasingly expressive models that, in the limit, distinguish graphs up to isomorphism. We show that, over graphs of bounded degree, the separating power of HEGNN node classifiers equals that of graded hybrid logic. This characterization enables us to relate the separating power of HEGNNs to that of higher-order GNNs, GNNs enriched with local homomorphism count features, and color refinement algorithms based on Individualization-Refinement. Our experimental results confirm the practical feasibility of HEGNNs and show benefits in comparison with traditional GNN architectures, both with and without local homomorphism count features.
