arXiv(opens in a new tab)cs.LOSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.39768

Security Properties of Neural Networks as Decision Problems

Adrian Wurm

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Certifying a deployed neural network raises decision problems that the verification literature has not classified: whether the model carries a backdoor planted in its training data, whether a fault in its stored parameters can drive it into an unsafe state, whether its output leaks a private part of its input. We formalise eight such problems and classify what we can.

The organising observation is a logical one. The function computed by a piecewise linear network, together with all its node values, is definable by a quantifier-free formula of real addition of size linear in the network, so a property of the network is a quantifier-alternation sentence, which Sontag's 1985 theorem places in the polynomial hierarchy at the level of its prefix. Membership results are thus corollaries, and the argument makes plain what they need: that the quantified objects are inputs rather than the network's own parameters.

Non-interference, monotonicity and counterfactual fairness have exactly the complexity of network equivalence and of interval verification, all co-NP-complete over ReLU. Detection of backdoor triggers from a quantised alphabet is Σ2P\Sigma_2^P-complete, one level above robustness certification, so it does not reduce to polynomially many robustness queries unless the hierarchy collapses. Inversion resistance is co-NP-complete for every ℓp\ell_p metric, pp a fixed positive integer. Quantifying over parameters instead of inputs - the fault model of bit-flip attacks, radiation upsets and analog accelerators - makes verification ∃R\exists \mathbb{R}-complete already for networks of identity nodes, for which every previously studied problem is in P, and it stays so when each parameter is confined to a box of inverse-polynomial width; the corresponding safety question is ∀R\forall \mathbb{R}-complete for ReLU.

1 Introduction

Let N be a feedforward neural network whose activations are piecewise linear with rational coefficients. The graph of N - the set of pairs consisting of an input and the induced vector of node values - is then definable by a quantifier-free formula in the language of real addition, of size linear in N: each node contributes a Boolean combination of linear equations and inequalities of constant size, and the network contributes their conjunction. A property of

Key words and phrases: real addition; polynomial hierarchy; existential theory of the reals; computational complexity; neural network verification; backdoor detection; non-interference; fault injection.

2020 Mathematics Subject Classification: 03B70, 68Q17, 68Q25, 68T07.

ACM CCS: Theory of computation → Complexity classes; Logic; Machine learning theory.

N of the kind verification asks about is therefore a sentence of real addition whose quantifier prefix is the prefix of the property and whose quantifier-free part names the network. By Sontag’s theorem [34], deciding k-alternation sentences of real addition is complete for ΣkP\Sigma_k^P, so such a property lies at the level of the polynomial hierarchy that its prefix dictates, and nowhere else.

This is the organising fact of the present paper, and it has two consequences that pull in opposite directions. On the one hand it makes membership results automatic: the certificate arguments that the verification literature has been reproving for a decade - guess the activation pattern and the violated constraint, then solve a linear program - are the case k = 1 of a theorem from 1985, and the higher levels come for free (Lemma 3.2). On the other hand it delimits sharply where the polynomial hierarchy is the right home for such a problem at all. The defining formula is a formula of real addition only because the quantified objects are inputs, which the weights multiply by constants. Quantify instead over the network's own parameters, and each node contributes a product of two unknowns; the defining formula becomes polynomial, the problem leaves real addition, and its natural home is the existential theory of the reals.

The paper develops both consequences by way of a schema. All the problems we consider, together with all the previously studied ones, are instances of

Q1p∈PQ2x∈A:Φ(Np,x),Q_{1}p\in\mathcal{P}\quad Q_{2}x\in A:\qquad\Phi\big(N_{p},x\big),

in which xx is an input, pp is a parameter that perturbs the situation, Q1,Q2Q_{1}, Q_{2} are quantifiers, and Φ\Phi is a condition expressible by linear constraints on the values of a network at a point. Two independent axes govern the complexity. The first is the quantifier prefix, which places the problem in the polynomial hierarchy. The second, which has not been isolated before, is whether pp enters the computation linearly or multiplicatively: input-space parameters enter linearly, parameter-space parameters multiply activations, and that distinction alone decides whether the problem lives in the polynomial hierarchy or in the real hierarchy. Theorem 6.4 shows that the second axis is not a technicality. For networks all of whose nodes compute the identity, every problem previously studied lies in P; making the parameters uncertain, within boxes of inverse-polynomial width, makes verification ∃R\exists \mathbb{R}-complete. Nothing about the activation function is involved, which is exactly why the phenomenon is invisible in a classification indexed by activation functions.

What the schema needs in order to be more than a bookkeeping device is a supply of instances that actually occupy its cells, and the previously studied problems do not: reachability, verification of an interval property, network equivalence and the robustness notions all have a fixed network and a single quantifier, so they sit in one corner of the grid, with network minimisation the lone exception at the second level. Problems with genuinely alternating prefixes, and problems that quantify over the parameters, are supplied instead by the questions that certification of a deployed model turns on. Whether a network carries a backdoor planted by whoever supplied its training data is an ∃∀\exists\forall question over a trigger. Whether a fault injected into the memory holding the parameters can drive the network into an unsafe state is an ∃∃\exists\exists question over the parameters. Whether a model reveals the part of its input that was to stay private, whether a stolen copy can be stripped of its watermark, and whether a network that failed certification can be patched without invalidating the rest of the safety case, are further instances, and they fall in four different cells. This paper proposes formalisations of eight such properties, classifies what it can, and records in Table 1 where each one lands. Three of them turn out to be old problems in new clothes, which is worth knowing precisely because it tells the reader which of the eight are new.

References (77)