A backdoored training set contains a small number of images carrying a hidden trigger, such as a patch, a faint blend or a warp, relabeled so that the trained model learns "trigger means class t." Poisoned images are easy to learn, but low loss does not identify them, because many clean images are also easy. Adversarial-Inspired Backdoor Defense (AIBD) found a sharper signature. When you push an input with small worst-case perturbations (projected gradient descent, PGD), poisoned samples take far more steps to flip than clean ones, because the trigger digs a tight, confident basin around them. Once they do flip, the model predicts their true label. The drawback is cost. AIBD runs an iterative PGD loop on every training sample and then cuts at a hand-tuned top-q percentile. That is the same inner-loop expense that makes adversarial training expensive, now spent on detection.
This note asks whether the costly multi-step count can be replaced by one or two gradient steps. The idea is to measure how much a sample's loss rises under a single small perturbation, together with its ordinary training loss. We would then fit an unsupervised mixture model to these few numbers, in the way the label-noise literature fits one to per-sample loss, and let the mixture draw the poison/clean boundary instead of a fixed percentile. Only samples the mixture is unsure about would receive the full PGD treatment, including AIBD-style relabeling. The target regime is the stealthy one: clean-label and blended triggers, where plain loss or entropy filtering is known to struggle.
Core Claim
For vision backdoors, a low-dimensional feature captures most of the separation that AIBD obtains from full PGD iteration counts. The feature combines a sample's training loss, its one-step adversarial loss gain, and a second-step gain that measures curvature. A mixture model fitted to it (Gaussian or Beta) sets the threshold automatically across attacks and poisoning rates. We claim this at roughly an order of magnitude less detection compute than AIBD, with poison-detection quality and post-mitigation attack success rate within a small margin of it. The claim is falsifiable in two directions:
- The cheap signal may not be enough. If one step does not separate poisons from clean samples, the multi-step count is essential. We will measure where between one and K steps the separation appears.
- The adversarial signal may add nothing. If a mixture on plain loss does as well, the adversarial component contributes nothing beyond what loss already gives.
Concretely, for sample $x_i$ with label $y_i$ and model loss $\ell$, define the one-step gain
$$g_i^{(1)} = \ell(x_i + \epsilon\,\mathrm{sign}(\nabla_x \ell), y_i) - \ell(x_i, y_i),$$
and $g_i^{(2)}$ as the extra gain from a second such step. To first order, $g_i^{(1)} \approx \epsilon \lVert \nabla_x \ell \rVert_1$, since a sign step moves the loss by the gradient's L1 norm times $\epsilon$. The one-step signal is therefore essentially an input-gradient norm. $g_i^{(2)}$ is what probes the basin width that AIBD's count reflects.
The poison component is expected to have low $\ell$, low $g^{(1)}$ and low $g^{(2)}$. Easy clean samples should share the low loss but not the low gains.
Relation to Prior Work
Mixture models on per-sample loss come from noisy-label learning, which supplies our method.
- DivideMix fits a two-component Gaussian mixture to cross-entropy loss online and treats the high-loss component as noisy.
- Unsupervised Label Noise Modeling and Loss Correction uses Beta mixtures for bounded, skewed losses.
- EvidentialMix shows two components can be too few when noise is heterogeneous.
We invert which component is suspect: the low-loss, low-sharpness one. We also expect to need a third component that separates easy clean from hard clean samples.
Two defenses already use mixtures for backdoors, and both motivate the transfer.
- BadWindtunnel fits a Gaussian mixture to confidence gain after one epoch under injected character noise in NLP.
- LoSplit fits a Gaussian mixture to reverse-cross-entropy loss on graph nodes. Its authors report that hyperparameters need hand-tuning when poisoned and clean nodes are hard to tell apart.
Neither method uses an adversarial signal, and neither is tested on image backdoors.
Two papers constrain the design.
- Not All Poisons are Created Equal (EPIC) warns that filtering by loss or confidence often removes more clean data than poisons. This is why loss alone is our main ablation rather than our method. - Anti-Backdoor Coreset Selection (ABCS) filters by cumulative entropy with empirical thresholds and does not fully stop the Adaptive Blend attack. This tells us which attack will stress our signal.
AIBD supplies both the phenomenon and the relabeling rule. We differ from it in two ways: we compute the expensive signal only on a small ambiguous subset, and we replace top-q with a fitted boundary. On the Effectiveness of Adversarial Training against Backdoor Attacks (CAT) shows min-max training can suppress backdoors, but only when the perturbation type matches the trigger type, and at a clean-accuracy and compute cost. We use adversarial steps only as a probe, never as a training loop.
On the stealth side, CBV confines diffusion-blended universal perturbations to salient foreground regions. This evades Fine-Pruning, STRIP and Neural Cleanse. It is the style of trigger we most want to test, because such poisons are designed to look semantically ordinary.
Research Program
Screening phase. We first train a standard backbone (ResNet-18 at CIFAR scale) on the poisoned set for a short warm-up. At two or three checkpoints we compute $(\ell_i, g_i^{(1)}, g_i^{(2)})$ for every sample. Each sample costs three extra forward and two extra backward passes per checkpoint.
Mixture fitting. We fit Gaussian or Beta mixtures with two or three components per predicted class. Per-class fitting matters because the backdoor collapses mass into one target class. Model selection uses the Bayesian information criterion, not a percentile. The poison component is identified by its low-gain mean, not by a label.
Triage. Samples with posterior poison probability above a high cutoff are treated as poisons. Those below a low cutoff are treated as clean. Only the ambiguous band in between receives AIBD's full PGD iteration count to resolve it.
Mitigation. Flagged samples are relabeled with their adversarial prediction, following AIBD's finding that it recovers the true label. Samples whose adversarial prediction is unstable are sent to an unlabeled pool, as DivideMix does. The model is then retrained or fine-tuned.
Analysis. We will examine three questions:
- Separation versus steps. How does detection AUROC grow with the number of probe steps from one to K? This locates where the multi-step signal lives.
- Stability across training. Is the mixture boundary stable across warm-up length? This addresses the warm-up sensitivity known from noisy-label work.
- Adaptive attacks. Does an attacker who adds a penalty making poisons' local sharpness match the class average break the method?
Baselines
The naive reference is no defense: standard training on the poisoned data. AIBD reports average attack success rate of 99.73% on CIFAR-10 and 99.62% on GTSRB in this setting.
The strongest existing method is AIBD itself, run with its full PGD iteration counts and top-q selection. It reports average attack success rate reduced to 0.33% on CIFAR-10 and 0.08% on GTSRB, with 0.00% against BadNets, SIG and WaNet on GTSRB (AIBD). AIBD is the most direct competitor because it relies on the same phenomenon and the same relabeling step. The only question is whether we can match it cheaply and without tuning. The file reports no wall-clock or pass-count cost for AIBD (no reported result found on Lacuna for AIBD's detection compute), so we will measure its cost ourselves. For fairness, we reuse its attack configurations, architecture, retraining schedule, and a matched hyperparameter search budget for q and for our cutoffs. We beat it if we stay within one point of its attack success rate and clean accuracy while using at most a tenth of its detection forward-backward passes. We also beat it if, at matched compute (AIBD truncated to the same pass budget), we clearly exceed it.
Other defense comparisons. Each is run on the same poisoned sets:
- ABCS, which reports defense effectiveness rate above 95% on CIFAR-10 and above 97% on Tiny-ImageNet and is the closest cheap competitor (ABCS).
- CAT, which reports all tested attack success rates below 6%. Its spatial variant reaches about 85% clean accuracy on CIFAR-10 (CAT). It is the "just do adversarial training" reference and we report its compute.
- EPIC, which reports attack success reduced from 45% to 1% on gradient-matching poisons at 6.9x faster than adversarial poisoning training (EPIC). It is included for the clean-label setting.
Ablations isolating the key ingredient. The first is a mixture fitted on loss alone, or on ABCS-style cumulative entropy alone. This tests whether the adversarial gains matter. The second is our full feature with a top-q cut instead of a mixture. This tests whether the fitted boundary matters. The third is one-step only versus one- plus two-step. This tests whether curvature beyond the gradient norm matters.
Why not just…?
Why not just fit a mixture to training loss, as DivideMix does, with the component flipped? It costs nothing extra and may well work for dirty-label patch triggers, which are fit extremely fast. The evidence against relying on it comes from two papers. EPIC reports that loss and confidence filtering removes more clean data than poisons. ABCS's uncertainty-based filtering leaves Adaptive Blend partly effective. Both suggest easy clean samples and poisons overlap in loss. This is a real threat to the proposal. The loss-only ablation is run on every attack. If it matches our feature on Blend, Adaptive Blend and label-consistent attacks, we will report that the adversarial probe is unnecessary.
Why not just run AIBD with a smaller q search, or with fewer PGD steps? Truncating PGD is the natural cheap version of AIBD. Our step-count curve is exactly this experiment, run with a fitted boundary and without one. If truncated AIBD with top-q matches our method at equal compute, the contribution shrinks to automatic threshold selection. We would then report that as the finding.
Why not just adversarially train, as CAT does? CAT shows the defense depends on matching the perturbation type to the trigger type: L-infinity training fails on patches. It also acknowledges a clean-accuracy drop and carries the full inner-loop cost on every step. We compare attack success rate, clean accuracy and total passes directly against it.
Why not just use the input-gradient norm, since one step reduces to it? It is our one-step variant, so the comparison is built in. We expect it to confuse poisons with flat, easy clean samples. The second-step gain is our hypothesis for fixing that, and the ablation decides whether it does.
Proposed Experiments
Datasets. CIFAR-10, GTSRB and Tiny-ImageNet with a ResNet-18. CIFAR-100 is used to stress the per-class mixture fits.
Attacks.
- Dirty-label: BadNets, Blend, WaNet, SIG.
- Clean-label: label-consistent attack and Adaptive Blend.
- Stealthy: a CBV-style clean-label attack reimplemented for classifiers, with foreground-masked universal perturbations smoothed by a pretrained diffusion model. The file reports no classifier-scale result for this attack (no reported result found on Lacuna for CBV-style triggers on CIFAR-10), so it is exploratory.
- Poisoning rates: 1% to 20%.
Metrics. Attack success rate, clean accuracy, and defense effectiveness rate. Poison-detection precision, recall and AUROC. Detection and total compute, counted in forward-backward passes and GPU hours.
Decisive checks. First, the AUROC-versus-steps curve on Adaptive Blend and the CBV-style attack, compared against AIBD's full count; this establishes whether cheap probes carry the signal. Second, our method versus the loss-only mixture on the same attacks; this establishes whether the adversarial component is needed. Third, success rates under a sharpness-matching adaptive attacker; this establishes whether the signal survives an informed opponent.
Success means all three hold together: near-AIBD attack success rate, at most 10% of its detection passes, and a clear margin over loss-only mixtures on the stealthy attacks.
References
- Adversarial-Inspired Backdoor Defense via Bridging Backdoor and Adversarial Attacks
- DivideMix: Learning with Noisy Labels as Semi-supervised Learning
- Unsupervised Label Noise Modeling and Loss Correction
- EvidentialMix: Learning with Combined Open-set and Closed-set Noisy Labels
- BadWindtunnel: Defending Backdoor in High-noise Simulated Training with Confidence Variance
- LoSplit: Loss-Guided Dynamic Split for Training-Time Defense Against Graph Backdoor Attacks
- Not All Poisons are Created Equal: Robust Training against Data Poisoning
- Anti-Backdoor Coreset Selection via Cumulative Entropy
- On the Effectiveness of Adversarial Training against Backdoor Attacks
- CBV: Clean-label Backdoor Attacks on Vision Language Models via Diffusion Models