A backdoor attack plants a hidden rule in a model by poisoning a small part of its training data. Images that carry a trigger, such as a small sticker or a faint blended pattern, are labeled with a class the attacker chooses. The trained model behaves normally on ordinary inputs but switches to the attacker's class whenever the trigger appears. One known defense is to train the model adversarially, meaning that during training each image is nudged by a small worst-case perturbation. This defense suppresses backdoors, but it is expensive, because every training step needs several extra gradient computations. It also costs clean accuracy, and the only paper in our file that studies it, On the Effectiveness of Adversarial Training Against Backdoor Attacks, leaves that loss unresolved. This proposal starts from a different observation. Cheap single-step adversarial training stays stable only because it carries a per-sample memory of past perturbations, a momentum buffer. That buffer already records how each training image responds to adversarial pressure across epochs. Poisoned images respond in a characteristic way, so the buffer can flag them at almost no extra cost.
In two sentences: run fast, momentum-initialized adversarial training on the untrusted dataset, and treat each sample's accumulated perturbation history as a running test of whether that sample resists being pushed off its given label. Samples that resist, and whose adversarial prediction keeps landing on one consistent other class, are flagged mid-training and relabeled to that class. This removes the backdoor within a single training run, needs no clean data, and allows a small perturbation budget that should cost far less clean accuracy than adversarial training used as a blunt defense.
Core Claim
Two findings in the file, taken together, suggest the momentum buffer should carry a detection signal. First, Adversarial-Inspired Backdoor Defense via Bridging Backdoor and Adversarial Attacks (AIBD) runs projected gradient descent (PGD, a multi-step attack) on a trained backdoored model and makes two observations. Poisoned samples need many more PGD steps than clean samples before their prediction changes. When their prediction finally does change, it reverts to the true class rather than wandering to an arbitrary one. AIBD uses the step count as a poison filter, but that requires high-iteration attack paths over the whole dataset after training. Second, Prior-Guided Adversarial Initialization for Fast Adversarial Training (PGI) shows how to make single-step training stable. Its variant FGSM-MEP starts each epoch's attack on a sample from that sample's accumulated perturbation over previous epochs, effectively turning a one-step attack into a longer attack spread across epochs. The resulting training avoids catastrophic overfitting, the sudden failure where single-step-trained models look robust but collapse under multi-step attacks.
Our claim is that PGI's cross-epoch perturbation, used on poisoned data, approximates AIBD's long attack path as a side effect of training. A per-sample resistance score read from it should therefore separate poisoned from clean samples at the cost of storing a few numbers per sample. The file does not contain this connection. PGI and Taxonomy Driven Fast Adversarial Training (TDAT) study only test-time evasion attacks. AIBD, Progressive Backdoor Erasing (PBE), and Shared Adversarial Unlearning (SAU) all generate adversarial examples with fresh multi-step loops and discard the history.
There is a structural echo that motivates the design. TDAT links catastrophic overfitting to "label flipping," where a perturbation pushes a sample onto a label different from the model's current prediction. On poisoned data, AIBD's reversion effect is also a label flip: the perturbation pushes a poisoned sample off its given (target) label toward its true class. We expect this flip to be consistent across epochs for poisoned samples and scattered for clean ones.
Research Program
The training loop follows PGI. Each sample is attacked with one gradient-sign step initialized from its prior perturbation, plus PGI's consistency regularizer. The perturbation budget $\epsilon$ is kept small, at 2/255 or 4/255 rather than 8/255. Robustness here is only a tool for detection, and the file shows two reasons to avoid large budgets. On the Effectiveness of Adversarial Training Against Backdoor Attacks reports that raising the budget can at first increase the attack success rate and that large budgets cost substantial clean accuracy. SAU notes that plain adversarial training can even increase backdoor vulnerability. Both findings argue against relying on adversarial training itself to remove the backdoor.
The buffer is extended with two scalar statistics per sample $i$, so the added memory is $O(N)$ scalars rather than PGI's $O(N \cdot D)$ perturbation storage, where $N$ is the dataset size and $D$ the input dimension. This also answers the memory limitation the file raises for FGSM-MEP on large datasets. When memory is tight, the attack initialization itself can use TDAT's batch-level momentum instead of per-sample perturbations. The first statistic is the running margin of the given label $y_i$ under attack, averaged with decay rate $\beta$ over epochs $t$:
$$r_i^{(t)} = \beta\, r_i^{(t-1)} + (1-\beta)\big[z_{y_i}(x_i+\delta_i^{(t)}) - \max_{c \ne y_i} z_c(x_i+\delta_i^{(t)})\big],$$
where $z_c$ is the model's logit for class $c$ and $\delta_i^{(t)}$ is the momentum-initialized perturbation. The second statistic is a decayed histogram of which class wins when the given label loses, from which we read a consistency score $\kappa_i$, the share of that histogram held by the most frequent class. A sample is flagged when both $r_i$ and $\kappa_i$ are high relative to its class. High resistance alone could simply mean the sample is easy, but high resistance combined with a stable alternative class is the pattern AIBD describes. Detection is class-relative because the attacker's target class holds all poisoned samples.
At a switch epoch chosen on a held-out attack, flagged samples are relabeled to their dominant alternative class, following AIBD's correction step but done inside the same run. Training then continues. As a fallback, flagged samples can be dropped instead. The flagging rule is set per class with a two-component mixture fit on the scores, so no poisoning rate is assumed. The analysis part of the program tracks the scores over training to test the central mechanism. Does separability appear earlier and more sharply with momentum-initialized attacks than with random-start single-step attacks? Does it degrade when catastrophic overfitting sets in?
Baselines
The naive reference points are two. The first is standard training on the poisoned data with no defense, which gives the undefended clean accuracy, attack success rate, and one unit of compute. The second is PGD-based composite adversarial training from On the Effectiveness of Adversarial Training Against Backdoor Attacks (CAT), the only training-time adversarial defense in the file. For CAT the file reports attack success rates "below 6%" on CIFAR-10 across tested attacks. It also reports about 85% clean accuracy for its spatial variant against BadNets. We will reproduce CAT with its published budgets and report its wall-clock cost. Beating CAT means lower attack success rate and higher clean accuracy at a fraction of its GPU hours.
The strongest competitor in the same regime, with no clean data and the adversarial signal used to separate poison, is AIBD. The file reports it reduces average attack success rate on CIFAR-10 "from 99.73% (No Defense) to 0.33%" and on GTSRB "from 99.62% ... to 0.08%". We found no reported runtime for AIBD on Lacuna, so we will measure it ourselves: standard training, then AIBD's full-dataset PGD iteration counting, then retraining. It runs through the BackdoorBench codebase (SCLBD/BackdoorBench) with the same architectures, attacks, and poisoning rates. Both methods get the same hyperparameter search budget, tuned on one attack (BadNets) and transferred unchanged to the rest. Honestly, we do not expect to beat 0.33% attack success rate. Success means staying within about one point of AIBD in attack success rate and clean accuracy while using under half its total compute. It would also mean doing better at poisoning rates below 1%, where AIBD's evaluation, as summarized in the file, gives no breakdown.
Two post-training defenses that use a small clean set set the upper bar on accuracy: SAU, which reports 2.51% average attack success rate on CIFAR-10 with 5% clean data, and PBE. Both are run after standard training. Their compute is counted as standard training plus the defense.
Three ablations isolate the key ingredient. The first swaps momentum initialization for random-start single-step attacks. The second keeps momentum but scores with the resistance margin only, dropping the consistency score. The third scores samples with the same statistics computed on unperturbed inputs, which tests whether the adversarial pressure contributes anything at all.
Why not just…?
Why not just track per-sample training loss, which is cheaper still? This is the most serious threat. Loss-based isolation of poison is a known idea, and anti-backdoor learning is among BackdoorBench's defenses, because poisoned samples are learned quickly and sit at low loss. If loss alone matches our separation, the adversarial component is unnecessary. We expect it not to, for a specific reason: clean easy samples also have low loss, whereas AIBD's evidence is about resistance to perturbation and reversion to a consistent other class, which loss cannot see. The unperturbed-statistics ablation and the anti-backdoor learning baseline, run at matched cost, settle this directly. If they tie at all poisoning rates, we report that and the contribution shrinks to the relabeling step.
Why not just make CAT fast by swapping its PGD loops for PGI-style single-step attacks? That is a sensible engineering step, and it is one of our comparison arms. It would inherit CAT's dependence on large budgets, though, and the file shows that large budgets both cost clean accuracy and behave non-monotonically in attack success rate. Our bet is that detection plus relabeling at a small budget beats robustness at a large budget on clean accuracy. The fast-CAT arm measures exactly this gap.
Why not just train normally and then run SAU or AIBD afterward? Post-training runs of SAU and similar defenses are already cheap, and Adversarial Unlearning of Backdoors via Implicit Hypergradient reports about 6.8 seconds on CIFAR-10. So if the defender has clean data, speed is not the argument. Our case rests on the no-clean-data setting, where AIBD and PBE are the alternatives and both need extra full-dataset attack passes plus retraining. It also rests on relabeling, which recovers true labels and could help BackdoorBench's weak recovered-accuracy metric. If SAU with 5% clean data dominates on every metric at similar total cost, we will say our method is only worth using when no clean data exists.
Proposed Experiments
All experiments use BackdoorBench on CIFAR-10, GTSRB, CIFAR-100, and Tiny ImageNet, with PreAct-ResNet18 and VGG-19. Attacks are BadNets, Blended, WaNet, SIG, and SSBA at poisoning rates of 0.5%, 1%, 5%, and 10%. We report clean accuracy, attack success rate, and recovered accuracy (the rate of predicting the true label on triggered inputs). We also report detection AUROC and true-positive rate at 5% false-positive rate, total GPU hours, and peak memory.
The decisive check is a curve of detection AUROC against training epoch for momentum-initialized versus random-start single-step attacks. The prediction is that the momentum curve rises earlier and higher, and that the random-start curve collapses at the onset of catastrophic overfitting. If the curves coincide, momentum is not the mechanism, and the proposal reduces to AIBD done during training. A second check covers WaNet: warping triggers defeat radius-bounded searches in SAU, so we test whether consistency scoring still separates them at 4/255. A third checks the file's tension between PBE and AIBD. PBE finds that perturbed clean samples drift toward the target class, which could inflate clean samples' consistency scores in the target class. Class-relative scoring is meant to absorb this, and we will measure the false flags directly. Scaling to Tiny ImageNet tests whether the $O(N)$ scalar buffer keeps memory flat, where FGSM-MEP's buffer would not.
References
- On the Effectiveness of Adversarial Training against Backdoor Attacks
- Adversarial-Inspired Backdoor Defense via Bridging Backdoor and Adversarial Attacks
- Prior-Guided Adversarial Initialization for Fast Adversarial Training
- Taxonomy Driven Fast Adversarial Training
- Progressive Backdoor Erasing via connecting Backdoor and Adversarial Attacks
- Shared Adversarial Unlearning: Backdoor Mitigation by Unlearning Shared Adversarial Examples
- Adversarial Unlearning of Backdoors via Implicit Hypergradient