Reachability In Simple Neural Networks
Marco Sälzer, Martin Lange
TL;DR
The paper analyzes the reachability problem Reach for neural networks with piecewise-linear activations, aiming to certify inputs that yield valid outputs under linear specifications. It corrects flaws in prior NP-completeness proofs and shows $ ext{Reach} \,\in\, \text{NP}$ by encoding NN behavior as a PWL-linear program, leveraging polynomial-bounded witnesses. It also proves $ ext{NP}$-hardness via a 3-SAT reduction using gadget-based network constructions, and strengthens the result by showing hardness persists for very restricted networks (e.g., a single hidden layer, output dimension one, or networks with few weight values). The findings suggest reachability verification remains computationally intractable even for compact or structurally simple NN, motivating further study of restricted classes and richer specification languages, including extensions to CNNs and GNNs, as well as questions about quantifiers and problem variants.
Abstract
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 specifications over the input/output dimension given by conjunctions of linear inequalities. We recapitulate the proof and repair some flaws in the original upper and lower bound proofs. Motivated by the general result, we show that NP-hardness already holds for restricted classes of simple specifications and neural networks. Allowing for a single hidden layer and an output dimension of one as well as neural networks with just one negative, zero and one positive weight or bias is sufficient to ensure NP-hardness. Additionally, we give a thorough discussion and outlook of possible extensions for this direction of research on neural network verification.
