Abstract
We consider availability data poisoning attacks, where an adversary aims to degrade the overall test accuracy of a machine learning model by crafting small perturbations to its training data. Existing poisoning strategies can achieve the attack goal but assume the victim to employ the same learning method as what the adversary uses to mount the attack. In this paper, we argue that this assumption is strong, since the victim may choose any learning algorithm to train the model as long as it can achieve some targeted performance on clean data. Empirically, we observe a large decrease in the effectiveness of prior poisoning attacks if the victim employs an alternative learning algorithm. To enhance the attack transferability, we propose Transferable Poisoning, which first leverages the intrinsic characteristics of alignment and uniformity to enable better unlearnability within contrastive learning, and then iteratively utilizes the gradient information from supervised and unsupervised contrastive learning paradigms to generate the poisoning perturbations. Through extensive experiments on image benchmarks, we show that our transferable poisoning attack can produce poisoned samples with significantly improved transferability, not only applicable to the two learners used to devise the attack but also to learning algorithms and even paradigms beyond.
Introduction: The Threat of Availability Poisoning
Data is the lifeblood of modern AI, and many companies rely on "scraped" online data to train large-scale models. This creates a massive security loophole: availability poisoning attacks. In these attacks, an adversary adds tiny, imperceptible perturbations to training data. These perturbations act as a "shortcut," tricking the model into thinking it has learned the task when it has actually only learned the noise. Consequently, the model performs perfectly on the poisoned training set but fails miserably on real-world test data.
The Paradigm Gap
The major limitation of existing attacks is transferability. Most poisoning strategies assume the victim will use the exact same learning algorithm as the attacker. As shown in the heatmap below, if an attacker crafts poisons for a standard supervised model (e.g., EM or TAP), but the victim uses an unsupervised "contrastive learning" method (like SimCLR or MoCo), the attack often fails, with model accuracy remaining near clean levels.
Methodology: Transferable Poisoning (TP)
To address this "paradigm gap," we propose a novel framework called Transferable Poisoning (TP). Our approach relies on two key technical innovations:
- Leveraging Alignment and Uniformity: Instead of targeting a specific contrastive learning framework, we target the fundamental goals of contrastive learning: alignment (similar images should have similar representations) and uniformity (representations should be spread out evenly in feature space). By minimizing these metrics during poison generation, we create a more universal unsupervised poison.
- Iterative Multi-Paradigm Optimization: The attack iteratively utilizes gradient information from both supervised (cross-entropy loss) and unsupervised (alignment/uniformity loss) paradigms. We use a shared model backbone during this process to ensure the perturbations are effective across the board.
Experimental Evaluation
We evaluated the TP attack on four standard image classification benchmarks: CIFAR-10, CIFAR-100, TinyImageNet, and MiniImageNet. These datasets range from small-scale recognition to higher-resolution, more complex data.
Key Results
The TP attack demonstrated superior performance across almost all tested scenarios. As illustrated in the following figure, the attack remains highly effective across various learning paradigms (SL, SupCL, SimCLR, BYOL, MoCo, SimSiam) as the poison ratio increases.
- CIFAR-10 Success: The "worst-case" accuracy (the best performance a victim could achieve across any algorithm) was dropped to 41.72%. Previous state-of-the-art attacks allowed the victim to recover up to 48.61% accuracy.
- High-Resolution Impact: On TinyImageNet and MiniImageNet, TP reduced the victim's best possible accuracy to 4.57% and 9.34% respectively—an improvement in attack effectiveness of over 23% compared to previous baselines.
- Cross-Architecture Transfer: Poisons generated on a ResNet-18 model successfully transferred to other architectures like VGG-19, DenseNet-121, and MobileNetV2.
Discussion and Conclusion
Our research highlights that the paradigm gap is a significant hurdle for traditional poisoning attacks, but one that can be overcome by targeting fundamental learning properties. While contrastive learning is generally more robust to availability attacks than supervised learning, TP successfully bridges this gap by combining failure modes related to linear separability and feature alignment.
Limitations and Future Work
Generating these transferable poisons is computationally expensive, requiring several hours on high-end hardware (e.g., NVIDIA DGX A100). Furthermore, the "arms race" between attackers and defenders continues; future work will explore even more robust training methods to filter out these multi-paradigm shortcuts and test the attack's effectiveness on massive datasets like ImageNet-21k.
Summary updated