🤖 AI Summary
This work addresses the challenge of formal reasoning and verification for Graph Neural Networks (GNNs). We propose Linear Inequality Modal Logic with Counting (LIMLₖ), the first modal logic featuring linear inequalities and counting modalities tailored to GNN semantics. LIMLₖ enables an efficient, bidirectional, and exact compilation between GNNs and logical formulas, precisely capturing the semantics of aggregation-combination GNNs and supporting explainability tasks such as GNN querying and equivalence checking. Theoretically, we prove that LIMLₖ satisfiability is PSPACE-complete—significantly extending the theoretical expressiveness frontier for GNN logics. Practically, LIMLₖ provides the first logical foundation for GNN formal verification that simultaneously ensures expressive completeness and computational feasibility.
📝 Abstract
We propose a modal logic in which counting modalities appear in linear inequalities. We show that each formula can be transformed into an equivalent graph neural network (GNN). We also show that a broad class of GNNs can be transformed efficiently into a
formula, thus significantly improving upon the literature about the logical expressiveness of GNNs. We also show that the satisfiability problem is PSPACE-complete. These results bring together the promise of using standard logical methods for reasoning about GNNs and their properties, particularly in applications such as GNN querying, equivalence checking, etc. We prove that such natural problems can be solved in polynomial space.