A backdoored neural network behaves normally until an input carries a secret trigger, such as a small pixel patch, and then outputs whatever class the attacker chose. Most defenses search for such a trigger by gradient optimization. When the search finds nothing, that proves nothing, because the optimizer may simply have missed it. The one line of work in our material that tries to prove absence, Verifying Neural Networks Against Backdoor Attacks, uses a fixed, deliberately loose model of the network. That looseness yields false alarms and "unknown" verdicts it has no way to resolve.
We propose a fix borrowed from software verification. Counterexample-guided abstraction refinement (CEGAR) works by verifying a simplified, over-approximate version of a system. When the verifier reports a failure, the method checks whether the failure is real. If it is not, the method makes the simplification more precise exactly where it misled. Applied to backdoors, the verifier proposes a candidate trigger on a shrunken network. We test that trigger on the real network. If it fails there, its failure tells us which merged neurons, or which part of the trigger search space, to refine. The two-sentence version is this: shrink the network by merging neurons, search for a universal trigger on the small network, and use each fake trigger to decide what to un-merge. Because a backdoor trigger must work across many inputs at once, one refinement of the shared shrunken network tightens every copy of the query simultaneously. A standard exact solver gets no such sharing.
Core Claim
Backdoor verification is a universal query. It asks whether one trigger flips many clean inputs to a target label. We write it as
$$\exists \Delta \in \mathcal{P}_p:\ \big|\{\, i \le N : F(x_i \oplus \Delta) = t \,\}\big| \ \ge\ \theta N,$$
where $F$ is the network, $x_1,\dots,x_N$ are sampled clean inputs, $\Delta$ is a trigger patch at position $p$ with pixel values in the box $\mathcal{P}_p$, $\oplus$ stamps the patch onto the image, $t$ is the target class, and $\theta$ is the required attack success rate. Exact solvers treat this as a network copied $N$ times, and their case-splitting grows with $N$. Abstraction instead merges neurons of the single shared network. An Abstraction-Based Framework for Neural Network Verification does this by grouping neurons by the sign of their influence on the output and combining each group with max or min, so the result over-approximates the original. Every refinement then applies to all $N$ copies at once.
Our claim is that this structure makes CEGAR more useful for backdoors than it was for single-input robustness. We further claim that spurious triggers carry diagnostic information. For each one, we can measure whether the fake success came from loose bounds on the trigger pixels or from neuron merging, and refine whichever is responsible. Neither the CAV 2022 backdoor verifier nor Katz's framework does this. The first has no refinement at all. The second refines only by neuron splitting, and only on single-input properties such as ACAS Xu, the airborne collision-avoidance benchmark, and local robustness.
Research Program
We keep the outer statistical layer of Verifying Neural Networks Against Backdoor Attacks unchanged. That layer is a sequential probability ratio test, which keeps drawing input sets until it can accept "safe" or "vulnerable" at a chosen confidence. We replace only its inner per-sample-set check. A fair comparison therefore isolates the inner procedure.
The inner check proceeds in four steps. First, it builds the merged network following Katz's four-class scheme. Second, it encodes the $N$-copy universal query over that network and hands it to Marabou, an exact solver that reasons about the network's piecewise-linear constraints. Third, if Marabou returns a trigger, the check stamps it onto the $x_i$ and runs the concrete network. A trigger reaching rate $\theta$ is a genuine backdoor and ends the check with UNSAFE.
Fourth, if the trigger falls short, we diagnose why. For each merged neuron, we compare its abstract value with the concrete values of its members on the failing inputs, and sum the gaps weighted by their effect on the target-class margin. We also measure how much of the spurious margin disappears when the trigger box is bisected along its widest pixel. Whichever source explains more margin gets refined: we either split the top-scoring merged neurons or split the trigger box. Splitting the trigger box creates two subqueries, which the loop handles separately.
The loop ends when the property is proven on the abstraction (SAFE), when a concrete trigger is found (UNSAFE), or when a budget runs out (UNKNOWN). As a by-product, the set of neurons that had to be un-merged is a concrete map of where the network concentrates trigger-relevant computation. We will compare this map against the "trojan paths" that CatchBackdoor finds by fuzzing, which it describes as sequences of high-contribution neurons. We expect the two to agree; if they do not, the map should not be relied on.
We are explicit about scope. Katz's merging is sound only for ReLU networks and is naturally defined for fully connected layers. We therefore target ReLU multilayer networks and small convolutional networks rewritten as dense layers. We also restrict to patch triggers, matching the CAV 2022 setting. Warping triggers are out of scope.
The hardest open question is the tension the file raises. Pruning-aware and clean-label attacks force the backdoor to share neurons with normal features. Merging may then put backdoor neurons and benign neurons in the same group, and refinement could end up un-merging nearly everything. We treat this as a measured outcome, not a solved problem.
Baselines
The naive reference point is the one-shot method of Verifying Neural Networks Against Backdoor Attacks. It uses DeepPoly, an abstract-interpretation method that tracks linear bounds on each neuron, to derive constraints on triggers, and it does no refinement. It reports verifying absence for 89% of networks (455 of 510 tasks) on MNIST, and producing concrete triggers for 73% of the networks judged attackable. We will rerun it on the identical networks, patch sizes, positions, $\theta$, confidence parameters and wall-clock budget. Beating it means converting a substantial share of its UNKNOWN and false-alarm verdicts into correct SAFE or UNSAFE verdicts, checked against known ground truth, with no wrong SAFE verdicts.
The strongest formal competitor is Marabou run directly on the unabstracted $N$-copy query, the "vanilla" configuration in Katz's paper. On ACAS Xu, Katz's abstraction solved 58 instances against 35 for vanilla Marabou and cut median runtime from about 63,671 s to 1,045 s. There is no reported result found on Lacuna for vanilla Marabou on backdoor queries. We will give it the same budget and the same $N$. Beating it means solving more queries in that budget, with the gap widening as $N$ grows.
A third baseline is trigger-box branch-and-bound, which repeatedly bisects the trigger pixel box and bounds each piece with DeepPoly, without neuron abstraction. It gets the same budget and the same splitting heuristic our method uses for its input branch.
Two ablations isolate our key ingredients. The first keeps the full loop but splits randomly chosen merged neurons, or splits by largest abstract gap ignoring the counterexample. The second compares neuron-only and input-only refinement against the diagnosed choice.
For context, we also run the empirical detector BTI-DBF. It inverts triggers by holding benign features fixed and reports 100% detection success on CIFAR-10 in about 60 s. We compare it on detection only, since it issues no proofs.
Why not just…?
Why not just run a fast trigger-inversion method like BTI-DBF or UNICORN? These methods find triggers quickly and accurately when the optimizer converges. BTI-DBF reports 100% detection success on CIFAR-10, and UNICORN reports 95.60% average success for its inverted triggers. Neither method can certify absence, and CatchBackdoor reports search-based detection failing on clean-label attacks. Our experiments include clean networks, which inversion can only label "nothing found." They also include networks trained to entangle the backdoor with benign features, where we will report any case in which inversion misses a trigger that our loop proves exists. If inversion never misses on our benchmarks, the practical value of the proof is limited to certification, and we will say so.
Why not just hand the whole query to an exact solver? On small MLPs, an exact solver may well suffice, and that is a real threat to the proposal. The argument for abstraction rests on the $N$-fold copying, so we will sweep $N$ and network width. If vanilla Marabou matches our loop at the sample sizes the statistical test actually needs, the abstraction adds nothing and the honest conclusion is to use exact solving.
Why not just bisect the trigger box? For tiny patches, such as 3×3 pixels, the box has few dimensions and bisection may be cheap enough. This too is a real threat. Our diagnosis step exists precisely because the source of spuriousness should vary with the setting: we expect input looseness to dominate for tiny patches, and neuron merging to dominate for larger patches and wider networks. The patch-size sweep will show where each pure strategy wins and whether the diagnosed choice tracks the better of the two.
Why not just fine-prune or use STRIP? Fine-Pruning removes neurons that are inactive on clean data, but a pruning-aware attack still left about 30% attack success on U.S. traffic signs. STRIP detects triggered inputs at run time by blending them with clean images and checking prediction entropy. Neither gives a pre-deployment guarantee, so they answer a different question. We include them only as mitigation references on the BackdoorBench-trained models.
Proposed Experiments
On MNIST, we reproduce the CAV 2022 network suite of ReLU MLPs and small convolutional networks, with and without implanted BadNets-style patches. This gives ground truth for scoring false alarms. Our primary metrics are the fraction of tasks resolved, the rate of wrong SAFE verdicts (which must be zero; any nonzero rate indicates an implementation bug), the false-alarm rate, median runtime, refinement count, and the final size of the abstract network relative to the original.
On CIFAR-10, we train small ReLU networks with the BackdoorBench codebase using BadNets and Blended triggers across poisoning ratios. We add pruning-aware variants trained to share neurons between benign and backdoor behavior. Comparing refinement counts and final abstraction size on entangled versus ordinary backdoors gives a direct measurement of the shared-neuron tension.
The decisive checks are three. First, our loop must resolve more than the 455 of 510 tasks resolved by one-shot DeepPoly on matched MNIST tasks, with no unsound SAFE verdicts. Second, its advantage over vanilla Marabou must grow with $N$, since the shared refinement is the whole argument for abstraction. Third, counterexample-guided splitting must beat random splitting in refinement count. If the second check fails, the proposal reduces to "exact solving is enough at these scales," which is itself a useful negative result for backdoor certification.
References
- Verifying Neural Networks Against Backdoor Attacks
- An Abstraction-Based Framework for Neural Network Verification
- CatchBackdoor: Backdoor Detection via Critical Trojan Neural Path Fuzzing
- Towards Reliable and Efficient Backdoor Trigger Inversion via Decoupling Benign Features
- UNICORN: A Unified Backdoor Trigger Inversion Framework
- Fine-Pruning: Defending Against Backdooring Attacks on Deep Neural Networks
- STRIP: a defence against trojan attacks on deep neural networks