[Paper Review] Reachability Is NP-Complete Even for the Simplest Neural Networks
This paper establishes that the reachability problem for ReLU and identity activation neural networks is NP-complete, even for single-layer networks with minimal architectural constraints. It corrects flaws in prior proofs by redefining nondeterminism around ReLU node states rather than input values, and demonstrates NP-hardness persists under extreme simplifications—such as one hidden layer, unit output dimension, and only ±c weights and biases—proving the problem's intractability is fundamentally robust in practical settings.
We investigate the complexity of the reachability problem for (deep) neural networks: does it compute valid output given some valid input? It was recently claimed that the problem is NP-complete for general neural networks and conjunctive input/output specifications. We repair some flaws in the original upper and lower bound proofs. We then show that NP-hardness already holds for restricted classes of simple specifications and neural networks with just one layer, as well as neural networks with minimal requirements on the occurring parameters.
Motivation & Objective
- To correct flawed proofs in prior claims that the neural network reachability problem is NP-complete.
- To establish that NP-completeness holds even for the simplest possible neural networks: single-layer, minimal parameter sets, and small output dimension.
- To identify the minimal architectural and parametric conditions under which the reachability problem remains NP-hard.
- To clarify that the source of NP-hardness lies in the number of ReLU nodes, not input size or network depth.
- To demonstrate that practical neural network configurations already induce intractable complexity, limiting the feasibility of efficient verification algorithms.
Proposed method
- Reformulate the NP membership argument by treating ReLU node activation states (active/inactive) as the source of nondeterminism, not input values.
- Construct a reduction from 3SAT to neural network reachability using specialized components: norm-gadgets, orA|B-gadgets, and eq0-gadgets.
- Use weighted ReLU and identity nodes to encode Boolean logic: inputs are scaled to ±1/c or ±d/c² to represent true/false, with outputs encoding clause satisfaction.
- Modify networks to eliminate zero weights and biases by introducing auxiliary input nodes with symmetric constraints and chains of identity nodes with bias c.
- Ensure all weights are restricted to ±c and all biases are non-zero by carefully constructing input constraints and node interconnections.
- Prove correctness via lemmas showing that clause satisfaction in 3SAT corresponds exactly to full output value m·d²c⁴ in the network, under valid input assignments.
Experimental results
Research questions
- RQ1Is the reachability problem for ReLU and identity neural networks truly NP-complete, and if so, under what minimal conditions?
- RQ2Can the NP-completeness result be preserved in networks with only one hidden layer and unit output dimension?
- RQ3Does NP-hardness persist when all weights and biases are restricted to a small finite set, such as {−c, c}?
- RQ4What is the minimal structural or parametric complexity required for the reachability problem to remain NP-hard?
- RQ5Can the original flawed reductions from 3SAT to neural network reachability be repaired with a sound and complete construction?
Key findings
- The NP-completeness of the neural network reachability problem is rigorously re-established, correcting flaws in prior proofs regarding input representation and discretization.
- NP-hardness holds for single-layer neural networks with just one output neuron, proving that depth is not necessary for intractability.
- The problem remains NP-hard even when all weights and biases are restricted to ±c for any positive rational c, eliminating the need for zero weights or biases.
- The number of ReLU nodes is the key parameter driving NP-hardness; networks with a bounded number of ReLU nodes admit polynomial-time decidability.
- The construction ensures a one-to-one correspondence between satisfying 3SAT assignments and valid network outputs, fixing earlier issues with non-congruent activation functions like signum.
- The results indicate that finding non-trivial, practically relevant classes of neural networks with polynomial-time reachability is unlikely.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.