Decidability of Graph Neural Networks via Logical Characterizations
Michael Benedikt, Chia-Hsuan Lu, Tony Tan
TL;DR
This work systematically maps the expressiveness and decidability landscape of graph neural networks through logical characterizations, leveraging decidable Presburger-type logics to relate GNNs to MP^2 and GP^2 formalisms. It establishes a finite spectrum for GNNs with eventually constant activations, enabling decidable satisfiability and universal-satisfiability results for several restricted GNN classes (notably local/global, outgoing-only, and piecewise-linear activations). It also proves tight complexity bounds, including PSPACE-completeness for satisfiability with local aggregation and TrReLU, and NP-completeness for fixed-layer variants, while showing undecidability for both satisfiability and universal satisfiability in several unbounded-activation settings. The paper further develops a representation framework using existential Presburger arithmetic with stars to handle modal-unbounded GNNs, and extends results to undirected graphs via guarded logics, highlighting a rich boundary between decidability and expressiveness. Overall, the work provides a rigorous, logic-based lens for verifying and reasoning about GNNs, with clear implications for designing verifiable graph-learning systems and guiding future theoretical explorations.
Abstract
We present results concerning the expressiveness and decidability of a popular graph learning formalism, graph neural networks (GNNs), exploiting connections with logic. We use a family of recently-discovered decidable logics involving "Presburger quantifiers". We show how to use these logics to measure the expressiveness of classes of GNNs, in some cases getting exact correspondences between the expressiveness of logics and GNNs. We also employ the logics, and the techniques used to analyze them, to obtain decision procedures for verification problems over GNNs. We complement this with undecidability results for static analysis problems involving the logics, as well as for GNN verification problems.
