TL;DR
This paper introduces an "upstream" defense strategy to make pre-trained deep learning models more robust against "clean-label" data poisoning attacks. By modifying the pre-training process to increase the separation between features of different classes and reduce the distance between adversarial and clean samples, they significantly improve the model's resilience to these attacks without requiring downstream users to implement defenses.
What Problem Does This Paper Address?
Transfer learning, where models pre-trained on large datasets are adapted for new tasks, is a cornerstone of modern deep learning. However, the foundation models used in this process are often trained on data scraped from the internet, making them vulnerable to data poisoning. Specifically, "clean-label" poisoning attacks involve attackers subtly modifying a small fraction of training data with imperceptible perturbations. These poisoned samples are designed to manipulate the model's behavior during fine-tuning for downstream tasks, leading to misclassifications without raising obvious suspicion (hence "clean-label"). Existing defenses primarily focus on the downstream fine-tuning stage, which is repetitive and requires specialized knowledge from every user. This paper addresses the need for an "upstream" defense that makes the foundation model itself inherently more robust, simplifying the process for end-users.
Methods
The core of the proposed defense lies in a modified pre-training strategy for feature extractors. This strategy targets two key aspects of the feature distribution:
- Increasing Inter-Categories Feature Distance: The authors employ Prototype Conformity Loss (PC-Loss). This technique encourages features belonging to the same class to cluster tightly within a convex polytope, while simultaneously pushing these polytopes away from those of other classes. This makes it harder for poisoned samples to bridge the gap between different classes.
- Reducing Adversarial Feature Distance: To counter the attacker's goal of making poisoned samples (xp) and target clean samples (xt) have similar features, the defense aims to make xp and xb (the original clean sample corresponding to xp) have similar features. This is achieved through Adversarial Data Augmentation. Instead of directly simulating poisoned samples (which are unknown during pre-training), they generate adversarial examples (x_adv) of clean data (xi) and train the model to minimize the feature distance between x_adv and xi. This is incorporated into a min-max optimization problem, effectively simulating the attacker's goal of feature collision.
The final pre-training loss combines the standard Cross-Entropy Loss (CE) with the PC-Loss, and optionally incorporates the adversarial data augmentation term. The authors explore different combinations and weightings of these losses.
Datasets
- Tiny ImageNet: Used for pre-training feature extractors in some experiments, simulating a large-scale pre-training scenario.
- CIFAR-10: Used for both pre-training and downstream task evaluation, serving as the primary benchmark for evaluating the defense against poisoning attacks.
The paper also mentions using a subset of CIFAR-10 for re-training, with a specific selection of images for clean re-training and a pool of base images for poison crafting.
Key Insights and Ideas
- Upstream Defense is Crucial: The paper strongly advocates for addressing data poisoning at the foundation model pre-training stage rather than relying on downstream defenses, which are costly and complex for end-users.
- Feature Space Manipulation is Key: The defense's effectiveness stems from its ability to strategically alter the feature space. By pushing classes apart and keeping adversarial perturbations close to original data, the model becomes inherently less susceptible to poisoning.
- Adversarial Training and Feature Separation Complement Each Other: Combining adversarial training (to simulate poison effects) with feature separation (PC-Loss) yields superior robustness compared to using either method alone.
- Trade-offs Exist: While increasing the adversarial budget (ε) improves robustness, it can lead to a decrease in the model's clean accuracy. This highlights the need for careful tuning.
Key Results
- Significant Reduction in Attack Success Rate (ASR): The proposed defense, particularly the combination of Adversarial Training and Prototype Conformity Loss (AT-PCL), dramatically reduces the ASR for various clean-label poisoning attacks (Feature Collision, Convex Polytope, Bullseye Polytope) across different network architectures (ResNet-18, ResNet-50) and datasets (CIFAR-10, Tiny ImageNet). For instance, on CIFAR-10 with ResNet-18, ASR for FC attacks drops from 100% (no defense) to as low as 0.0% with AT-PCL.
- Competitive Test Accuracy: While adversarial training can sometimes hurt clean accuracy, the proposed AT-PCL strategy generally maintains competitive pre-training and re-training accuracies, especially when compared to the significant gains in robustness.
- Ablation Studies Confirm Effectiveness: Experiments show that both PC-Loss and the adversarial feature loss contribute to the defense. Increasing the weight of PC-Loss (α) generally improves robustness, but excessively high values can negatively impact clean accuracy.
Limitations and Future Work
- Adversarial Budget Trade-off: The paper acknowledges that a larger adversarial budget (ε) leads to better defense but also degrades pre-training accuracy. Future work could explore methods to mitigate this trade-off.
- Impact of α on AT: The authors note that as α increases, the defense of AT with PC-Loss weakens compared to standard training (ST) with PC-Loss. This suggests that AT might interfere with the feature separation learned by PC-Loss. Investigating this interaction further could lead to more optimized combined strategies.
- Downstream Practitioners' Choice: The paper suggests that practitioners can choose pre-trained models based on their needs: AT-PCL for defense against both poisoning and evasion, or PC-Loss alone for high accuracy with a focus on poisoning attacks. Future work could provide more guidance on selecting the optimal pre-trained model for specific downstream tasks.
Summary updated