Compute-Matched Budget Curves for Backdoor Removal

A backdoored model is a network trained, often through poisoned data, to behave normally on ordinary inputs and to output an attacker's chosen label whenever a hidden pattern, the "trigger," is present. Many defenses now remove backdoors after training using only a handful of clean examples. Each reports that the attack's success rate (ASR) falls near zero while clean accuracy barely moves, and several also claim to be cheap. These claims are hard to compare. Every method is reported at one operating point, with its own compute budget, its own number of clean samples, and an evaluation that checks only whether the original trigger still works. Adversarial-robustness research went through the same problem. Defenses looked strong until a standardized, adaptive attack suite showed that many had overestimated robustness by more than 10% (RobustBench). It then became standard to report full accuracy-versus-budget curves, because rankings taken at a single budget mislead (Benchmarking Adversarial Robustness on Image Classification).

We propose to bring both practices to backdoor removal. The first is to measure every defense along curves indexed by compute (forward-plus-backward passes spent on purification) and by clean-data budget, instead of at one point. The second is to replace "does the original trigger still fire?" with an adaptive check of whether the backdoor can be brought back. That check is calibrated against a model that was never backdoored, so ordinary adversarial vulnerability is not mistaken for a leftover backdoor. The central claim is testable and could fail. We expect that once compute and clean data are matched, the ranking of standard purification methods changes, plain clean fine-tuning closes much of its reported gap, and low post-defense ASR overstates how much of the backdoor has actually been removed.

Core Claim

The four directions in the brief play different roles here. Backdoor removal is the object of study. The robustness–accuracy trade-off is a measured cost: clean accuracy lost, and robust accuracy (R-Acc, the share of triggered inputs returned to their true class). The overhead of adversarial training becomes the x-axis: most strong purifiers are small min-max optimizations, and their cost is the thing that is currently left unreported. Standardized benchmarking supplies the method, meaning the habit of distrusting point estimates and non-adaptive evaluation.

We make two specific claims. First, the area under a defense's cost curves reflects its quality better than any single reported point. At least one pair of widely used defenses will swap rank between low and high compute budgets. Second, a defense's residual backdoor is better measured as the extra ease of re-eliciting the target class relative to a clean reference model. On this measure, some defenses with near-zero original-trigger ASR will retain a substantial residual.

Prior Work and Where This Sits

BackdoorBench and its expansion (BackdoorBench 2024) standardize attacks, defenses, datasets, and accuracy metrics across more than 11,000 evaluations. They motivate this work by finding that R-Acc collapses on Tiny ImageNet and that results depend on architecture. However, each attack–defense pair is run at a single configuration, with no compute accounting and no post-defense adaptive probe. We build on their codebase (sclbd/backdoorbench) rather than replace it.

RobustBench supplies the evaluation philosophy: a fixed ensemble of attacks, AutoAttack, run without per-defense tuning. It also sets a constraint we respect. Its ban on stochastic or inference-time-loop models exists to prevent gradient masking, so our residual probe likewise uses both gradient-based and gradient-free search.

The defenses we evaluate are all small optimization problems with very different costs and assumptions. I-BAU unlearns a universal adversarial perturbation using implicit hypergradients. SAU unlearns "shared" adversarial examples, which fool both the poisoned and the purified model, and shows that ordinary adversarial training can increase backdoor risk. ANP perturbs weights adversarially to find neurons to prune. Fine-Pruning prunes dormant neurons and then fine-tunes. Each is reported on its own scripts and hardware, which is exactly the gap described above.

Two results constrain the design. SAU notes that its inner search fails when the trigger lies outside the search radius, as with warping triggers. Our residual probe therefore cannot rely on the same perturbation family the defense used, or it would share the defense's blind spot. ANP reports that compact architectures such as MobileNet-V2 lose much more clean accuracy under pruning. MobileNetV3 is in our architecture set so that capacity effects appear on the curves rather than being averaged away.

PEFTGuard benchmarks backdoor detection over adapters and does not cover removal. It is adjacent to this work rather than a competitor.

Research Program

Compute accounting. We fix a common unit, the forward-backward-pass equivalent on the defended model at a standard batch size. Each defense is instrumented to count its own passes, including inner-loop steps, trigger-synthesis steps, and pruning-score computation. Wall-clock time and peak memory are also logged on fixed hardware, but they are secondary because they depend on the implementation.

Budget curves. Each defense is run on a grid of compute budgets spanning roughly two orders of magnitude, crossed with clean-sample budgets of 50, 500, and 5% of the training set. These reuse the operating points the original papers chose. At each grid point the defense gets a fixed hyperparameter-search allowance, charged against the same compute counter. This prevents a method from appearing cheap by moving its cost into tuning. For each defense, attack, and architecture we record curves of ASR, clean accuracy, and R-Acc, and we summarize them by area under the curve and by the cheapest budget that reaches a target. The target is ASR below 5% with a clean-accuracy drop below 2%.

Calibrated residual-backdoor probe. After purification, we run a fixed ensemble of trigger-recovery attacks against the defended model: patch optimization, blend optimization, a warping-field search, and a gradient-free query search. The query search guards against masked gradients. The same ensemble, with the same budget, is run against a clean model of the same architecture trained on unpoisoned data. The residual backdoor score is the gap in achievable target-class success between the two models. We add a second probe for re-activation: the number of poisoned fine-tuning steps needed to restore ASR above 90%, again compared with the clean model. A defense that removed the backdoor should make the purified model look like the clean reference on both probes. The clean reference matters because every network has universal adversarial perturbations. Without the comparison, the probe would mix ordinary vulnerability with a surviving backdoor.

Scope. The setting is CIFAR-10, GTSRB, and Tiny ImageNet. Architectures are PreAct-ResNet18, MobileNetV3-Large, and ViT, taken from BackdoorBench. Attacks are BadNets, Blended, WaNet, and SSBA, which cover patch, blend, warping, and sample-specific triggers at the BackdoorBench poisoning ratios. A second, smaller arm on CLIP uses a prompt-tuning purifier in the style of RVPT. It tests whether tuning a tiny parameter subset shifts the cost curves, or whether it only lowers original-trigger ASR while leaving a large residual. This is the open question raised by the contrast between capacity-dependent degradation in compact models and claims that prompt tuning avoids it.

Baselines

The naive reference point is the undefended backdoored model, which fixes the ceiling on ASR and the clean-accuracy reference.

The "do nothing clever" competitor is plain fine-tuning of the full model on the same clean samples. It gets the same compute-and-tuning allowance at every grid point, with learning rate and number of epochs searched within that budget. Fine-Pruning argues it fails because backdoor neurons stay dormant on clean data. ANP reports that aggressive fine-tuning costs clean accuracy drops of "7%+". Neither result came from a compute-matched comparison with a tuned learning rate, so this baseline is the most likely to embarrass the specialized methods. Beating it means a specialized defense has strictly larger area under the ASR-reduction-versus-compute curve at equal clean-accuracy loss on most attack–architecture cells.

The strongest existing method is SAU. On CIFAR-10 it reports an ASR of 2.51%, against 15.32% for I-BAU and 37.2% for NAD, with clean accuracy "typically within 1-2%" of the undefended model (SAU). ANP is a close competitor, reporting ASR below 1% in 5 of 6 scenarios with an average clean-accuracy drop of 1.47%. I-BAU represents the cheap end, reporting about 6.8 seconds per attack on CIFAR-10. These numbers come from each paper's own setup. We first try to reproduce them at their reported operating points, so that the curves are anchored to published values, and only then extend to the full grid. A finding that the ranking reorders would mean, for example, that I-BAU or fine-tuning dominates SAU below some compute budget while SAU dominates above it. A finding that SAU dominates everywhere would also be informative.

Two ablations isolate the proposal's own ingredients. Removing the clean-model calibration from the residual probe shows how much raw probe success is ordinary adversarial vulnerability. Restricting the probe to the defense's own perturbation family, for example additive-only for I-BAU and SAU, shows how much overestimation comes from evaluating inside the defense's assumptions.

Why not just…?

Why not just add a compute column to BackdoorBench? If defense rankings were the same at every budget, a single column would be enough, and this alone would show that the curve machinery is unnecessary. We treat that as a live outcome and test it directly. We compute the Kendall rank correlation between defense orderings at the lowest and highest compute budgets on every cell. If the correlation stays near 1 across cells, we will recommend a single compute column and report that. The proposal is valuable only if orderings cross. The very different cost profiles reported in isolation, such as I-BAU's speed and ANP's 100 iterations, are a reason to expect crossings, though not evidence for them.

Why not just fine-tune longer on clean data? This is the baseline we take most seriously, and it is run under the same budgets rather than dismissed. The evidence against it, from Fine-Pruning and from ANP's "7%+" figure, comes from untuned or fixed-schedule comparisons. If tuned, compute-matched fine-tuning matches SAU and ANP on the curves, that is a central result: much of the reported advantage would come from unequal budgets.

Why not just report ASR on the original trigger, plus a trigger-reconstruction detector like Neural Cleanse? ASR on the original trigger is the very quantity we suspect overstates removal. A defense can stop one trigger from firing while leaving the target-class shortcut in place. Reconstruction without a clean-model reference cannot tell a surviving backdoor from the target-class adversarial examples every network has. The calibration ablation measures how large that confusion is in practice.

Why not just detect and discard the compromised model, as PEFTGuard does for adapters? Detection does not apply when the user needs the model's capability and has no clean replacement. PEFTGuard's mitigation, weight mixing, has no clean-accuracy guarantee. Removal and detection answer different questions, so we do not treat detection as a substitute.

Decisive Checks

The proposal succeeds if three things hold. First, compute-matched curves reorder at least one pair among SAU, ANP, I-BAU, Fine-Pruning, and tuned fine-tuning on a substantial share of cells, and the effect is clearest on MobileNetV3 and Tiny ImageNet, where capacity and label count are known to matter. Second, at least one defense with original-trigger ASR below 5% shows a calibrated residual clearly above the clean reference on either recovery or re-activation, with the warping-field probe likely the most revealing against additive-search defenses. Third, the CLIP arm shows whether prompt-level purification lowers the residual, or only lowers ASR on the original trigger. If ranks do not cross and residuals match the clean model, the honest conclusion is that current point-estimate reporting is adequate, and we will publish that together with the instrumented harness.