A backdoored network behaves normally until it sees a secret trigger, such as a small patch, and then outputs the attacker's chosen class. Recent work shows that backdoors and ordinary adversarial examples are closely linked. Adversarial examples are small, deliberately chosen input perturbations that flip a prediction. When you attack a backdoored model with untargeted perturbations, they mostly land in the backdoor's target class. Formally, the backdoor risk of a repaired model is bounded by how many adversarial examples it still shares with the poisoned original. The best current repair method finds these shared examples with an expensive inner attack loop, the same min-max structure that makes adversarial training slow.
We propose to remove that inner loop. A perturbation fools both models toward the same class only when their input gradients point the same way. So we fine-tune the repaired model on a small clean set while directly penalizing the alignment between its input-loss gradients and those of the frozen poisoned model. This is the gradient-decorrelation tool that ensemble-defense research uses to stop attacks from transferring between models. Here it targets something different: breaking transfer between a model and its own compromised ancestor. In two sentences: backdoor removal can be cast as making the repaired model adversarially non-transferable from the poisoned one. That property can be enforced with one extra backward pass per step rather than a multi-step attack.
Core Claim
Shared Adversarial Unlearning (SAU) proves that backdoor risk is upper-bounded by the risk on Type I shared adversarial examples. These are perturbations that push both the poisoned model and the model under repair into the same wrong class. SAU minimizes this bound by searching for such examples with bi-level optimization. Two other papers explain where that search ends up. Adversarial Fine-tuning for Backdoor Defense shows that untargeted adversarial examples on a poisoned model sit near triggered samples in penultimate-layer features: an $l_2$ distance of 22.74, against 148.26 to clean samples. That implies the poisoned model's loss gradient on clean inputs already points toward the backdoor direction.
Our claim is that, to first order in the perturbation size, the shared-adversarial event is governed by the angle between the two models' input gradients. Making those gradients orthogonal on clean data should therefore shrink the bound SAU optimizes, without ever constructing an adversarial example. Let $f_\theta$ be the model being repaired, initialized from the poisoned model $f_{bd}$, which stays frozen. Let $D_c$ be a small clean set. Let $g_\theta(x,y)=\nabla_x \ell(f_\theta(x),y)$ be the cross-entropy input gradient, and define $g_{bd}$ analogously. The objective is
$$\min_\theta \; \mathbb{E}_{(x,y)\sim D_c}\Big[\ell(f_\theta(x),y) + \lambda\, \cos^2\big(g_\theta(x,y),\, g_{bd}(x,y)\big)\Big],$$
where $\lambda$ trades clean fit against decoupling.
The squared-cosine penalty is Local Independence Training from Ensembles of Locally Independent Prediction Models, reused here as the method. Exploiting Joint Robustness to Adversarial Perturbations shows that for two models the cosine can be pushed to $-1$. That suggests a signed variant, $\cos$ instead of $\cos^2$. In the signed version, perturbations that hurt the poisoned model actively help the repaired one. We test both.
The new piece is not the regularizer itself. It is the target of the regularizer and the claim that it can stand in for the min-max search. Ensemble work decouples peer models trained together. We decouple a model from its own corrupted parent, starting from a cosine of exactly 1, because $\theta$ is initialized at $\theta_{bd}$.
There is a secondary payoff. Publishing Efficient On-device Models Increases Adversarial Vulnerability shows that a publicly available related checkpoint is an ideal surrogate for transfer attacks. A model repaired from a public poisoned checkpoint inherits that exposure. Our objective should reduce ordinary transfer attacks from the parent as well as the trigger, whereas SAU only targets same-class shared errors.
Research Program
The work has three parts.
First-order link. We first establish the link empirically before relying on it. On BackdoorBench-poisoned models, we measure per-sample gradient cosine between the poisoned model and models at various stages of SAU repair. We test whether that cosine predicts which inputs remain Type I shared adversarial examples under PGD at the standard radius. If the correlation is weak, the premise fails and we report that.
The defense. Second, we build the defense: fine-tuning with the objective above, using double backpropagation through $g_\theta$. Per step this costs roughly one extra backward pass. SAU's inner loop costs several forward-backward passes through two networks. We will measure both costs in wall-clock time rather than assume them, since the file reports no runtime for SAU.
Gradient masking. Third, we study the obvious failure mode. A model can make its input gradients orthogonal to anything by masking them: making the gradients locally uninformative without changing behavior. Two things protect the evaluation here. The main backdoor metric, attack success rate with the attacker's real trigger, involves no gradients at all, so masking cannot fake a win. We also report transfer-attack success from $f_{bd}$ and from independent surrogates, and gradient-free attacks on $f_\theta$, to see whether any robustness gain is real.
Two papers constrain the design.
- Training Robust Ensembles Requires Rethinking Lipschitz Continuity shows that making models individually smoother increases their mutual alignment. We therefore add no smoothness or adversarial-training term that would fight the decoupling.
- SAU itself notes failure on large-norm triggers such as WaNet, a warping-based backdoor. A first-order local penalty is, if anything, more local than SAU's search. This is the regime where we expect the method to be weakest, and we treat it as a stated risk rather than hide it.
Baselines
Do nothing. The undefended poisoned model sets the attack ceiling. The file reports average attack success rate on CIFAR-10 of 99.73% without defense in Adversarial-Inspired Backdoor Defense.
Plain fine-tuning. The naive repair fine-tunes the poisoned model on the same clean subset with cross-entropy only, with identical epochs, optimizer and data. It is the ablation that removes our key ingredient, the alignment penalty, while holding everything else fixed. Our method beats it only if the penalty lowers attack success at matched clean accuracy.
SAU. The strongest competitor on this exact question is SAU, run from the official BackdoorBench codebase with its default inner-loop settings and the same 5% clean subset. SAU reports an average CIFAR-10 attack success rate of 2.51%, against 15.32% for i-BAU and 37.2% for NAD, with clean accuracy within 1-2% of the undefended model. It is the right comparison because it optimizes the same shared-adversarial bound we approximate. We run it at its default budget and again truncated to the same wall-clock time as our method.
Beating SAU means one of two things:
- matching its attack success rate (within about one point) and clean accuracy at a clearly smaller compute budget; or
- beating it outright at matched compute.
Single-step SAU. This is SAU with a one-step inner attack, sized to cost about what our double backprop costs. It separates "gradient alignment is the right object" from "any cheap approximation of SAU works."
AIBD. For context we report Adversarial-Inspired Backdoor Defense, which reaches 0.33% average attack success rate on CIFAR-10 and 0.08% on GTSRB. It uses a different threat model: access to the full poisoned training set and PGD iteration counts over every sample. So it is reported as context, not as the head-to-head competitor.
NAB. Backdoor Defense with Non-Adversarial Backdoor also avoids adversarial optimization. It reports 92.44% clean accuracy against 94.02% undefended on ResNet-18 and attack success below 1% for most attacks. It also requires retraining on the full dataset.
Signed versus squared cosine. This ablation isolates whether active anti-alignment helps beyond orthogonality.
Why not just…?
Why not just run SAU with a single-step inner attack? This is the real threat. A one-step shared-adversarial search costs about the same as our penalty and might recover most of SAU's effect. There are two reasons to expect it to fall short. Single-step adversarial methods are known to suffer catastrophic overfitting: they become robust to the one-step attack but not to multi-step ones. And a single-step search probes one direction per sample, whereas the alignment penalty constrains the whole gradient direction for every clean input. Neither reason is proof. The matched-compute comparison against single-step SAU is the decisive experiment. If single-step SAU matches us across attacks, the honest conclusion is that cheap shared-example unlearning suffices, and our contribution shrinks to the diagnostic link between gradient alignment and the SAU bound.
Why not just fine-tune on the clean subset? Plain fine-tuning starts at gradient cosine 1 with the poisoned model and has no force pushing it away from the backdoor direction. The only fine-tuning-style numbers in the file are NAD's 37.2% average attack success rate in the SAU comparison. We found no reported result on Lacuna for plain fine-tuning under the BackdoorBench protocol. Our ablation measures it directly with identical data and steps.
Why not just filter inputs at test time with a clean feature extractor, as NTD does? NTD flags triggered inputs because the trigger does not transfer to an independent model. It reports near-0% false acceptance on FaceScrub at 0.058 s per query. But it leaves the model compromised whenever it is used without the wrapper, needs clean reference samples for every class, and degrades on high-variance classes. Our method builds NTD's non-transferability premise into the weights. We compare to NTD only on detection-style metrics, and do not claim to beat it on latency.
Proposed Experiments
All experiments use BackdoorBench on CIFAR-10, GTSRB and Tiny ImageNet with PreAct-ResNet18. EfficientNet-B3 and MobileNetV3 are included because BackdoorBench reports very different vulnerability for these architectures. The attacks are BadNets, Blended, SIG and WaNet, at poisoning ratios from 1% to 10%, with SAU's 5% clean-data budget. We report clean accuracy, attack success rate, and robust accuracy (triggered inputs classified to their true class), plus GPU wall-clock time.
Mechanism check. Does per-sample gradient cosine with $f_{bd}$ predict residual attack success across checkpoints and attacks? A rank correlation near zero would falsify the premise.
Efficiency check. Does our method reach SAU-level attack success, at most a few points above its 2.51% CIFAR-10 average, at a fraction of SAU's measured time? And does it beat single-step SAU at matched time?
Large-norm triggers. Does the method fail on WaNet, where we predict it is weakest? We report this regardless of outcome.
Transfer from the parent. We measure the success rate of PGD attacks crafted on $f_{bd}$ and transferred to the repaired model, against plain fine-tuning and SAU. Gradient-free attacks guard against masking.
Adaptive attacker. We give a poisoner knowledge of the defense and let them train a backdoor whose trigger direction is orthogonal to the clean-data loss gradient. This tests whether decoupling on clean data reaches triggers the clean data never exposes.
References
- Shared Adversarial Unlearning: Backdoor Mitigation by Unlearning Shared Adversarial Examples
- Progressive Backdoor Erasing via connecting Backdoor and Adversarial Attacks
- Ensembles of Locally Independent Prediction Models
- Exploiting Joint Robustness to Adversarial Perturbations
- Publishing Efficient On-device Models Increases Adversarial Vulnerability
- Training Robust Ensembles Requires Rethinking Lipschitz Continuity
- Adversarial-Inspired Backdoor Defense via Bridging Backdoor and Adversarial Attacks
- Backdoor Defense with Non-Adversarial Backdoor
- NTD: Non-Transferability Enabled Backdoor Detection