Introduction
Data poisoning attacks—where an adversary injects malicious samples into a training set—often fail in practice because the attacker cannot predict the exact conditions of the victim's re-training process. Factors like random initialization, choice of optimizer, or model architecture can inadvertently "wash away" the poisoning effect. To address this, researchers have introduced the Sharpness-Aware Data Poisoning Attack (SAPA), a strategy that leverages loss landscape sharpness to create robust poisons that remain effective across a wide variety of training environments and model architectures.
The Challenge of Re-training Uncertainty
Deep Learning models are increasingly trained on massive datasets scraped from public sources, making them vulnerable to data poisoning. An attacker might want to degrade the model's overall accuracy (un-targeted attack), cause it to misclassify a specific target (targeted attack), or install a "backdoor" triggered by a specific pattern.
The fundamental challenge for attackers is re-training uncertainty. Most existing attacks are "brittle": they optimize poisoning samples against one specific "surrogate" model. However, when the defender re-trains a model from scratch, they might use a different random seed, a different optimizer (like SGD vs. ADAM), or a different architecture (like ResNet vs. VGG). These variations often neutralize the attack. SAPA tackles this by asking: How can we design poisons that work even in the "worst-case" re-training scenario?
Sharpness-Aware Data Poisoning Attack (SAPA)
SAPA is a general, plug-and-play strategy that can be integrated into existing poisoning algorithms to enhance their robustness.
- The Worst-Case Objective: Instead of optimizing the poison to work on a single trained model ($\theta^*$), SAPA optimizes the poison to be effective on the worst possible model in a local neighborhood of $\theta^*$.
- Leveraging Sharpness: The method borrows mathematical intuition from Sharpness-Aware Minimization (SAM)—a technique usually used to improve model generalization by finding "flat" minima. Conversely, SAPA uses the concept of sharpness to find a nearby point in the parameter space where the poisoning effect is weakest, and optimizes against that point.
- The Algorithm:
- Find the "worst direction" by maximizing the adversarial loss in a small radius around the current model parameters.
- Update the poisoning samples so they are effective against this perturbed, "worst-case" model.
- Plug-and-Play Integration: SAPA can be seamlessly integrated into existing methods like Gradient Matching (for targeted and backdoor attacks) and Error-Min/Max (for un-targeted "unlearnable example" attacks).
By ensuring the attack covers a wider region of possible solutions rather than a single point, SAPA creates a "smoother" and wider adversarial pit in the loss landscape. Even if the victim's model parameters shift slightly due to different training conditions, they are still likely to fall into the attacker's trap.
Key Results
Researchers evaluated SAPA on standard computer vision benchmarks, including CIFAR-10 and CIFAR-100, testing robustness against various architectures (ResNet18, ResNet50, VGG11, MobileNetV2, and Vision Transformers).
Boosting Targeted and Backdoor Attacks
SAPA consistently outperformed state-of-the-art baselines across all attack types. For targeted attacks on CIFAR-10 with a small perturbation budget (8/255) and a 1% poisoning ratio, SAPA improved the success rate of Gradient Matching from 35.4% to 48.4%.
Similarly, in backdoor attacks using the "Sleeper Agent" setting on CIFAR-100, SAPA boosted the attack success rate from 26.7% to 41.8%.
Cross-Architecture Robustness and Defense Resistance
A major advantage of SAPA is its transferability. Poisons generated using a ResNet18 surrogate model remained highly effective when the victim re-trained on entirely different architectures like VGG11 or MobileNetV2, scenarios where previous attacks typically failed.
Furthermore, SAPA proved robust even when the defender used advanced training techniques. Whether the victim employed Mix-Up augmentation, different optimizers like ADAM, or even SAM (Sharpness-Aware Minimization) as a defense, SAPA maintained a significantly higher attack success rate compared to standard methods.
Limitations and Future Work
While highly effective, the current research has a few limitations:
- Domain Specificity: The paper focuses exclusively on image classification. Future work should investigate if these sharpness-aware principles apply to Natural Language Processing (text) or Graph Neural Networks.
- Self-Supervised Learning: The study centers on supervised learning. As more models move toward self-supervised pre-training, the dynamics of "worst-case" poisoning might change.
- Local Approximation: SAPA relies on a local search for the "worst" model. While computationally efficient (requiring only one extra gradient step compared to expensive ensemble methods), it is still an approximation of the global worst-case re-trained model.
Summary updated