Introduction
Graph Neural Networks (GNNs) have become indispensable for learning on structured data, yet they often operate as "black boxes." A critical challenge in deploying GNNs in safety-critical domains is understanding their uniform expressiveness—the class of functions they can compute across all possible graphs—and their verifiability. Specifically, can we algorithmically determine if a GNN will behave correctly on all possible inputs? This paper addresses these questions by establishing a formal bridge between GNN architectures and mathematical logic.
Methodology: Logical Characterization
The authors map various GNN architectures to specific fragments of logic to determine their decidability:
- Presburger Logics: GNN aggregation is modeled using logics with "Presburger quantifiers," which facilitate counting operations (e.g., "at least $k$ neighbors satisfy property $\phi$").
- Spectrum Analysis: For GNNs with "eventually constant" activation functions (e.g., truncated ReLU), the authors demonstrate that the range of internal values—the "spectrum"—is finite and computable.
- Unravelling Trees: Decidability for local GNNs is proven by showing that if a GNN accepts a node in a complex graph, it must also accept a node in a simpler, tree-like graph of bounded depth.
- Reductions for Undecidability: To identify limits, the authors show that certain GNNs can simulate Hilbert’s Tenth Problem or Two-Counter Machines, rendering their verification undecidable.
Key Insights
- Aggregation as Counting: The core of GNNs is aggregation, which is fundamentally a counting operation. Presburger logic is therefore uniquely suited to describe GNN behavior.
- The Boundary of Truncation: GNNs using truncated ReLU (TrReLU) activations with local aggregation are expressively equivalent to the decidable logic $MP^2$. This identifies a "sweet spot" where automated verification is theoretically possible.
- The Impact of Unboundedness: Standard ReLU activations allow for unbounded counting, enabling GNNs to perform arithmetic that encodes undecidable problems.
- Global vs. Local Scope: While global readouts increase expressiveness, they often push the network into undecidability.
Key Results
The research maps the complexity of the satisfiability problem across different GNN configurations. The findings distinguish between decidable architectures, which can be formally verified, and undecidable ones.
As shown in the table above:
- Local GNNs with TrReLU are PSPACE-complete, dropping to NP-complete for a fixed number of layers.
- Local GNNs with standard ReLU are often undecidable, particularly in bidirectional settings.
- Global GNNs generally lead to undecidability or remain open problems.
- The authors establish a constructive equivalence between local TrReLU-GNNs and $MP^2$ logic formulas.
Limitations and Future Directions
Current results assume discrete/binary input features; extending this to unbounded numerical attributes is ongoing work. Additionally, while decidability is proven for several cases, precise complexity bounds for general "eventually constant" functions require further study. Future work aims to implement these logical characterizations into actual software tools that use SMT-based verification to evaluate real-world GNN models.
Summary updated