Efficient Backdoor Attacks for Deep Neural Networks in Real-world Scenarios

Ziqiang Li, Hong Sun, Pengfei Xia, Heng Li, Beihao Xia, Yi Wu, Bin Li

TL;DR

Most backdoor attacks assume the attacker can see the victim's entire training set, but in the real world, data is often scraped from many different sources. This paper introduces data-constrained backdoor attacks, showing that standard methods fail when the attacker only controls a small slice of the data. By leveraging the pre-trained CLIP model to "erase" benign features and "amplify" poisoning triggers, the authors achieve over 100% improvement in attack success rates without harming the model's normal performance.

What Problem Does This Paper Address?

In a traditional backdoor attack, an attacker adds a "trigger" (like a small pixel patch) to a few training images and changes their labels. Once the model is trained, it behaves normally until it sees that trigger, at which point it predicts a target class chosen by the attacker.

However, the authors point out a major flaw in current research: most studies assume a One-to-One (O2O) data collection mode, where the attacker has access to the entire training set. In reality, most AI developers use a Many-to-One (M2O) approach, collecting data from various public and private sources. If an attacker only poisons one public source, they have no idea what the rest of the training data looks like.

Comparison of traditional One-to-One (O2O) and realistic Many-to-One (M2O) data collection modes.

The authors discovered that in these "data-constrained" scenarios, standard attacks suffer from feature entanglement. The model doesn't just learn the trigger; it learns the trigger in combination with the specific background features of the attacker's limited data. When the model is deployed and sees the trigger on a completely different type of image (from a source the attacker never saw), the backdoor often fails to activate.

Methods

To break this entanglement, the authors propose three new techniques that utilize CLIP (Contrastive Language-Image Pre-training). CLIP is a "foundation model" that has already learned a vast amount of visual and textual information, making it a perfect proxy for an attacker who doesn't have the victim's specific dataset.

1. Clean Feature Suppression (CLIP-CFE)

The goal here is to make the "benign" parts of the poisoned image less recognizable to the model. Using CLIP, the authors generate "invisible" noise that, when added to an image, makes CLIP's feature extractor see it as a neutral, "unbiased" class. By erasing the original class features, the model is forced to rely more heavily on the added trigger to make a classification.

2. Poisoning Feature Augmentation (CLIP-UAP & CLIP-CFA)

Instead of using a simple static patch, these methods create more "expressive" triggers:

  • CLIP-UAP: Optimizes a Universal Adversarial Perturbation using CLIP to ensure the trigger strongly pushes the image toward the attacker's target label in the feature space.
  • CLIP-CFA: Uses contrastive learning to make the trigger highly distinct. It optimizes the trigger so that different images with the same trigger look similar in CLIP’s latent space, while remaining as different as possible from their original "clean" versions.

Datasets

The authors evaluated their methods across three widely used image classification benchmarks:

  • CIFAR-10 & CIFAR-100: Small-scale datasets used to test various constraint types (number of samples, number of classes).
  • ImageNet-50: A subset of the massive ImageNet dataset, used to test the attacks in more complex, high-resolution scenarios.
  • UCM & Oxford-Flowers: Used to prove the attack works on specialized domains like remote sensing and fine-grained botanical classification.

Key Insights and Ideas

  • The M2O Reality Check: The most important insight is the shift from O2O to M2O. Backdoor research has been "playing on easy mode" by assuming full data access.
  • Entanglement is the Enemy: The paper identifies that the reason backdoors fail in the real world isn't just a lack of data, but the model's tendency to "greedily" learn background features alongside the trigger.
  • CLIP as a Universal Proxy: This is the first paper to use CLIP to optimize backdoor triggers. Because CLIP is trained on 400 million image-text pairs, it provides a robust "general understanding" of images that allows attackers to bypass the need for the victim's specific training set.

Key Results

The proposed CLIP-based attacks significantly outperformed baselines like BadNets and Blended attacks:

Attack Success Rate under number-constrained settings, showing the proposed UAP method maintaining high performance while baselines drop.
  • Massive Success Rate Jumps: In "number-constrained" settings on VGG-16, the CLIP-based methods achieved Attack Success Rates (ASR) of ~98%, while traditional methods like Blended attacks plummeted to ~20% or lower as the poison rate decreased.
  • Efficiency: In some "clean-label" settings (where the attacker doesn't change the image label), the authors saw improvements of over 200% in ASR compared to existing methods.
  • Harmlessness: Crucially, the Benign Accuracy (BA)—how well the model performs on normal tasks—remained virtually unchanged, making the attack very difficult to detect through standard validation.

Limitations and Future Work

  • Domain Specificity: CLIP is trained on natural images. The authors admit that if the victim is training a model on something very different (like medical X-rays), a standard CLIP-based attack might be less effective. They suggest using domain-specific models like MedCLIP as a workaround.
  • Clean-Label Challenges: While they improved clean-label attacks, these remain much harder to pull off than "dirty-label" attacks (where the attacker changes the label).
  • Defenses: The paper focuses on the attack side; future work is needed to see if existing backdoor defenses (like pruning or neural cleansing) can be adapted to stop these more "entangled" and optimized triggers.

Summary updated

BibTeX
@inproceedings{li2024efficient,
  author = {Ziqiang Li and Hong Sun and Pengfei Xia and Heng Li and Beihao Xia and Yi Wu and Bin Li},
  title = {{Efficient Backdoor Attacks for Deep Neural Networks in Real-world Scenarios}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=vRyp2dhEQp},
}
Figure