Introduction
Formal verification of Graph Neural Networks (GNNs) is essential for ensuring safety and reliability in critical applications. This research establishes that verifying properties of quantized GNNs—those implemented with fixed-width arithmetic such as 32-bit floats or integers—is PSPACE-complete. By introducing a novel logic, $L_{\text{quantGNN}}$, and a corresponding tableau-based proof system, the authors provide a rigorous framework for certifying GNNs in finite-precision environments.
The Challenge of GNN Verification
GNNs are increasingly deployed for sensitive tasks like social network analysis and drug discovery. Despite their utility, they often function as "black boxes," making it difficult to guarantee their behavior in edge cases.
Previous research into GNN verification typically assumed idealized models using real numbers or unbounded integers. However, real-world hardware utilizes quantized arithmetic (e.g., 16-bit or 32-bit precision). This paper bridges the gap between theoretical real-valued models and practical quantized implementations, determining the exact computational complexity of verifying these models.
Methodology
The authors formalize the verification task through several key components:
- The Linear-constrained Validity Problem (LVP): This problem asks whether a quantized GNN always satisfies a specific output constraint (e.g., flagging a user as a bot) given a set of input constraints (e.g., message frequency thresholds).
- Logic ($L_{\text{quantGNN}}$): A specialized logical language designed to capture the "aggregate-combine" architecture of GNNs. It allows for formal reasoning about node features, activation functions (like ReLU), and neighbor data summation.
- Tableau Method: The authors propose a tableau-based proof system to solve the LVP. This algorithm systematically searches for a "counterexample" graph that violates a safety property; if no such graph is found, the property is proven to hold.
- Complexity Analysis: Through reductions from modal logic and known PSPACE-hard problems, the authors prove that this verification task is PSPACE-complete.
Key Insights and Results
- Quantization as a Discretizer: While quantization limits precision, it also discretizes the search space. This makes the verification problem decidable, whereas real-valued GNN verification can often be undecidable or intractable.
- Mapping to Graded Modal Logic: The research successfully maps the message-passing mechanism of GNNs to graded modal logic, treating graph structures as sets of logical relations.
- PSPACE Complexity: Finding that the problem is PSPACE-complete places it in a "sweet spot": harder than NP but solvable within polynomial memory. This suggests that building robust verifiers for quantized GNNs is fundamentally feasible, albeit computationally intensive.
- Hardness in Simple Scenarios: The PSPACE-hardness persists even in restricted settings, such as graphs with a maximum out-degree of 2 or GNNs with minimal precision bits.
Limitations and Future Work
While PSPACE is theoretically feasible, solving PSPACE-complete problems for massive, deep GNNs remains a significant challenge. The current logic primarily addresses sum-aggregation; while extensions to "mean" or "max" aggregation are possible, they require further detailed exploration. Future research will focus on integrating these methods into existing verification frameworks to evaluate performance on industrial-scale GNNs.
Note: This paper is a theoretical contribution to computer science and logic. A prototype implementation of the proof system is available on GitHub.
Summary updated