Introduction
The "Marksman" backdoor is a novel attack on deep neural networks that allows an adversary to arbitrarily choose the target misclassification class during inference. By utilizing a class-conditional generative model to craft imperceptible, input-aware triggers, Marksman achieves near 100% attack success rates across multiple datasets without degrading the model's normal performance, effectively rendering current single-target backdoor defenses obsolete.
The Limitation of Traditional Backdoors
Machine learning models are highly vulnerable to backdoor attacks, where an adversary poisons the training process so the model behaves normally on clean data but misclassifies inputs containing a specific "trigger" (like a pixel patch). However, existing backdoor attacks have a severely limited "payload": they generally force the model to predict a single, predefined target class (all-to-one) or follow a rigid, pre-set mapping (all-to-all).
If an attacker wants the flexibility to misclassify an input into any class at will, they would traditionally have to inject a unique trigger for every single class. Naively scaling up existing attacks (like patch-based BadNets) to multiple targets causes catastrophic failure: either the model's accuracy on clean data plummets, or the attack success rate (ASR) drops to useless levels. This paper addresses the challenge of creating a multi-trigger, multi-payload backdoor that maintains high stealth and clean accuracy while granting the attacker total control over the target class at inference time.
The Marksman Approach
To achieve this flexible payload, the authors introduce Marksman, which replaces static trigger patterns with a class-conditional generative trigger function.
- Generative Trigger Function: Instead of a fixed patch, the attacker uses a generative network that takes an input image and a desired target class as inputs. It outputs an imperceptible trigger pattern tailored to that specific image and target, bounded by an $L_\infty$-norm constraint to ensure visual stealthiness.
- Constrained Joint Optimization: The adversary jointly trains the classifier (to inject the backdoor) and the generative trigger function. The objective function balances standard cross-entropy loss on clean data with the backdoor loss on triggered data. It also maximizes the $L_2$-norm of the trigger within the $L_\infty$ bound to prevent the generator from collapsing into trivial, sparse pixel changes.
- Alternating Updates: Because jointly training a classifier and a trigger generator is highly unstable, the authors borrow a trick from reinforcement learning. They update the classifier frequently (every step) but update the trigger generator much less frequently (e.g., once per epoch). This stabilizes the training dynamics and allows the model to converge to high clean accuracy and high ASR.
Key Insights
- The "Secret" is the Generator, Not the Pattern: In traditional attacks, the secret is a fixed pixel pattern. In Marksman, the secret held by the adversary is the trained generative function itself. Without it, defenders cannot easily guess the trigger.
- Dynamic Payloads are Possible: By conditioning the trigger generation on the target class, the causal link between a trigger and a specific output is dynamically generated on the fly, vastly expanding the attacker's capabilities.
- High Transferability: Surprisingly, a trigger generator trained jointly with one model architecture (e.g., PreActResnet18) can be frozen and used to successfully poison a completely different architecture (e.g., VGG11) trained from scratch. This implies the generator learns generalized adversarial-like perturbations rather than brittle, model-specific exploits.
- Current Defenses Have a Blindspot: Standard defenses (like Neural Cleanse or STRIP) fundamentally assume backdoors map to a single target class or use static patterns. Because Marksman's triggers are input-aware, class-conditional, and multi-targeted, it easily bypasses these defenses.
Experimental Results
The authors evaluated Marksman on several standard image classification benchmarks: MNIST, CIFAR10, GTSRB, and TinyImageNet (T-IMNET).
- Near-Perfect Attack Success: At a realistic 10% data poisoning rate, Marksman achieved a 100% Attack Success Rate (ASR) on MNIST and CIFAR10, 99.7% on GTSRB, and 99.9% on TinyImageNet.
- Preserved Clean Accuracy: The attack caused only trivial drops in normal model performance. For example, on CIFAR10, clean accuracy dropped by only 0.5% compared to a benign model.
- Baselines Failed: When the authors adapted existing attacks (like BadNets/PatchMT or WaNet) to target multiple classes at a 10% poisoning rate, they failed drastically. PatchMT only achieved a 48.7% ASR on CIFAR10, and a dismal 0.3% ASR on TinyImageNet.
Furthermore, Marksman successfully bypassed four major defense paradigms:
- Neural Cleanse (Model mitigation): Anomaly indices remained well below the detection threshold of 2.
- STRIP (Input perturbation): Entropy distributions of clean and backdoor images were indistinguishable.
- Spectral Signatures (Latent space inspection): No clear separation between clean and poisoned latent vectors.
- Fine-Pruning: Pruning dormant neurons degraded clean accuracy faster than it degraded the attack success rate.
Limitations and Future Directions
The primary formulation of Marksman assumes the attacker has full white-box control over the training process to jointly optimize the classifier and the generator. While the transferability experiments show it can work by just providing poisoned data to a victim training from scratch, the most potent version requires training control. The authors explicitly note that Marksman breaks the assumptions of current backdoor defenses, calling for future research into defensive mechanisms capable of detecting multi-trigger, multi-payload, and input-aware generative attacks.
Summary updated