Backdoor detection in ReLU networks is Σ2^P-complete, harder than robustness certification
Detecting backdoor triggers in quantised ReLU networks requires Σ2^P-complete computation
Software arXiv 30 Sep 2026 Theory Theory
Published as “Security Properties of Neural Networks as Decision Problems”
Why it matters
These classifications tell practitioners which security properties can be decided with current verification tools (co-NP-complete cases) and which fundamentally require solving harder arithmetic problems (ΣP2, ∃R), guiding tool development and security assessments.
Summary
The paper shows that several security properties of piecewise-linear neural networks fall into distinct complexity classes: backdoor-trigger detection with a quantised trigger alphabet is ΣP2-complete, inversion resistance is co-NP-complete for all lp metrics, and verification under parameter uncertainty is ∃R-complete even for identity-node networks. It also places non-interference, monotonicity and counterfactual fairness at co-NP-complete (over ReLU) and classifies other properties like output indistinguishability in ΠP2. The evidence is purely theoretical; no empirical evaluation or dataset is presented, so the practical impact is limited to informing which properties can be tackled with existing verification tools.
What they found 2
- Inversion resistance is co-NP-complete for every lp metric (fixed positive integer p).
“Inversion resistance is co-NP-complete for every lp metric, p a fixed positive integer.”
- Non-interference, monotonicity and counterfactual fairness are co-NP-complete over ReLU, matching the complexity of network equivalence and interval verification.
“Non-interference, monotonicity and counterfactual fairness have exactly the complexity of network equivalence and of interval verification, all co-NP-complete over ReLU.”
Caveats 4
- The continuous relaxation of the backdoor-trigger detection problem admits an adversarial strategy (setting a literal and its negation both to zero) that has no Boolean counterpart, making the relaxed problem different from the quantised version.
- InvRes is a worst-case, geometric notion of leakage and is not a substitute for a statistical one such as differential privacy.
- Hardness under the promise that the preimage is non-empty ... does not follow from this argument, and we leave it open.
- The bit-size restriction is the same one implicit in the ΠP2 upper bound for Min ... and removing it is open.
What’s new here 4
- Provides a uniform framework that maps security properties of neural networks to quantifier-alternation sentences, linking them to specific levels of the polynomial hierarchy.
- Demonstrates that quantifying over network parameters (instead of inputs) moves verification problems out of the polynomial hierarchy into the ∃R class.
- Establishes ΣP2-completeness for backdoor-trigger detection with a quantised trigger alphabet, a level above robustness certification.
- Shows that inversion resistance is co-NP-complete for every lp metric, extending hardness results to a broad class of distance measures.