TL;DR
Verifying whether a Graph Neural Network can ever produce a specific output—like checking if a safety-critical network might accidentally accept a dangerous input—is fundamentally harder than we hoped, even on very sparse graphs. This paper closes a major theoretical gap by proving that checking satisfiability for standard Message Passing Neural Networks (MPNNs) is NEXPTIME-complete, even when every node in the graph is restricted to having at most three neighbors.
What Problem Does This Paper Address?
Message Passing Neural Networks (MPNNs) are the workhorses of deep learning on graphs. In each layer, nodes pass "messages" (numerical vectors) to their direct neighbors, sum them up, and update their states using standard ReLU neural networks.
As we deploy MPNNs in the wild, we want to formally verify their safety. A foundational question here is satisfiability: given a binary-classifying MPNN, does there exist any graph and target node $(G, v)$ that the network accepts? If "acceptance" represents a catastrophic failure mode, we want the answer to be "no."
Unfortunately, if graphs can be arbitrarily complex, this verification problem is literally undecidable—no algorithm can solve it for all cases. Researchers found that you can restore decidability by bounding the degree of the graph (capping the maximum number of neighbors any node can have), even when nodes hold arbitrary rational numbers as features.
However, a massive complexity gap remained. For this degree-bounded satisfiability problem (DEGBSAT), we knew it was at least PSPACE-hard (requiring polynomial memory) and at most in NEXPTIME (solvable in nondeterministic exponential time). Where in that vast computational gulf does the problem actually live?
Methods
To prove that DEGBSAT is at the very top of that gulf (NEXPTIME-hard), the author uses a classic theoretical computer science technique: a polynomial-time reduction from a Nondeterministic Turing Machine (NTM) that halts in exponential time ($2^{p(n)}$ steps). For any input word $w$, the author constructs a small, polynomial-sized MPNN $M_w$ that accepts a graph of degree at most 3 if and only if the Turing machine accepts $w$.
How do you get a polynomial-layer MPNN to verify an exponentially long computation? Through three clever tricks:
- Fractional Tape Encoding: An exponentially long run can write an exponentially long tape. Instead of using massive graphs to represent the tape, the author packs an entire infinite tape configuration into three rational numbers in $[0, 1]$ using base-$b$ expansions (similar to how $0.314...$ encodes a sequence of digits). Reading or writing to the tape becomes simple affine math ("push" and "pop" operations via multiplication and addition).
- Polyhedral Step Checking: Because tape updates are linear operations, valid Turing machine transitions form finite unions of rational polyhedra (regions defined by linear inequalities). The author shows that standard ReLU networks can check whether a pair of numbers falls inside these polyhedra, outputting
0if valid and a strictly positive "error" if invalid. - Binary Tree Decomposition: An MPNN with $h$ layers can only "see" $h$ hops away. To verify $2^h$ steps in just $h$ layers, the computation is folded into a binary tree of height $h$ (which naturally has a max degree of 3!).
Leaves hold single computation steps $(c_i, c_{i+1})$. Each parent node checks that its left child's end state matches its right child's start state, stitching segments together until the root represents the full run $(c_0, c_{2^h})$. Over $h$ message-passing rounds, positive error flags sum up and bubble toward the root. Because errors are non-negative, they can never cancel each other out. The root accepts only if the total accumulated error is zero.
(Fun meta-note: In an AI Declaration, the author notes that the core proof idea was proposed by an AI model, "GPT-6 Astra," with the author writing the paper and refining the mathematical arguments—and given the arXiv stamp of Nov 2026, this preprint comes with a playful touch of sci-fi flair!)
Datasets
Not discussed in the paper. (This is a purely theoretical complexity paper.)
Key Insights and Ideas
- Infinite precision breaks space bounds: If node labels are restricted to booleans ($\{0,1\}$) or finite sets,
DEGBSATstays in PSPACE because you can guess and check a witness tree one branch at a time using polynomial memory. Allowing unrestricted rational numbers lets a single node pack an arbitrarily long Turing machine tape into the infinite precision of a fraction, rocketing the complexity up to NEXPTIME. - Divide-and-conquer via message passing: Even though local MPNNs are myopic—only seeing a polynomial neighborhood—a binary tree topology lets them verify an exponential number of events (the leaves) in logarithmic depth, using sum aggregation to ensure no two children occupy the same tree role.
- Sparse graphs are already maximally hard: You don't need dense, tangled networks to hit worst-case verification complexity. A maximum degree of $d=3$ (just enough for a parent, a left child, and a right child) is sufficient.
Key Results
- Closing the Complexity Gap:
DEGBSATfor local-sum MPNNs with ReLU activations over rational-labeled graphs is proven to be NEXPTIME-hard. Combined with previously known upper bounds, the problem is now tightly characterized as NEXPTIME-complete when the degree bound is given in unary. - Fixed-Parameter Intractability on Degree: The NEXPTIME-hardness holds even when the degree bound is fixed to the constant $d = 3$.
Limitations and Future Work
Not discussed in the paper. However, the conclusion implicitly highlights the boundary of this hardness: the result relies heavily on exact rational arithmetic with unbounded bit-length node features. In practical settings where node features are quantized (fixed- or floating-point) or drawn from finite alphabets, the problem drops back down to PSPACE, pointing verification researchers toward finite-precision regimes if they want more tractable guarantees.
Summary updated