TL;DR
This paper reveals a worrying trade-off in vision-language models (VLMs): stronger pre-training objectives that boost zero-shot performance also make backdoor attacks significantly harder to eliminate. State-of-the-art mitigation techniques like CleanCLIP, which easily sanitize standard contrastive models, fail catastrophically when applied to models trained with combined contrastive and self-supervised losses, causing massive drops in classification accuracy.
What Problem Does This Paper Address?
Vision-Language Models (VLMs) like CLIP are typically trained on massive, uncurated datasets scraped from the internet. This reliance on open-web data leaves them highly vulnerable to backdoor attacks (or data poisoning). An adversary can inject a small number of poisoned samples containing a specific trigger—like a small pixel patch—and alter their captions to a target label (e.g., "banana"). At inference time, the model functions normally unless it encounters the trigger patch, which forces it to incorrectly output the target label.
Because retraining these massive models from scratch is prohibitively expensive, practitioners rely on post-hoc defense mechanisms. The current state-of-the-art method, CleanCLIP, fine-tunes a backdoored model on a small, guaranteed-clean dataset to make it "forget" the malicious trigger.
However, this paper addresses a critical blind spot in existing defense literature: Does the choice of the original pre-training objective impact how easily a backdoor can be removed? As the community shifts toward more complex, high-performing pre-training objectives, understanding this relationship is vital for building secure real-world systems.
Methods
The authors systematically evaluate backdoor mitigation by training and attacking VLMs under two distinct pre-training setups:
- Multimodal Contrastive Loss (MMCL) only: The standard CLIP training objective.
- MMCL + Self-Supervised Learning (SSL): A stronger objective (similar to SLIP) that adds intramodal self-supervision to both image and text encoders, yielding superior zero-shot performance.
They inject backdoors using both standard BadNet patches and label-consistent poisoning (where triggers are only added to images that naturally match the target caption). After poisoning the models to achieve an Attack Success Rate (ASR) near 100%, they attempt to sanitize them using CleanCLIP, as well as alternative defense strategies including heavy weight regularization, deep clustering objectives, and "shrink-and-perturb" weight initialization.
Datasets
The experiments are scaled across two major web-curated datasets:
- Conceptual Captions 3M (CC3M): 3 million image-text pairs.
- Conceptual Captions 6M (CC6M): A 6-million-pair subset of the CC12M dataset.
For the mitigation phase, they use a separate, clean dataset of 100K image-text pairs. Evaluation is conducted using Top-1 zero-shot accuracy on the ImageNet-1K validation set, alongside the Attack Success Rate (ASR) metric.
Key Insights and Ideas
- The Robustness Paradox: Incorporating self-supervised learning (SSL) during pre-training helps the model learn tighter, more robust representations. Ironically, this robustness also applies to the backdoor; the model binds the malicious trigger to the target label so firmly that it becomes deeply embedded in the weight space.
- Catastrophic Forgetting During Cleaning: For standard MMCL models, CleanCLIP successfully untangles the backdoor trigger from the target label without harming benign performance. For MMCL+SSL models, however, forcing the model to forget the backdoor trigger causes it to forget legitimate features as well, destroying its zero-shot capabilities.
- Chaotic Optimization Trajectories: In practice, engineers don't know the test-time ASR of a hidden backdoor, so they need a stable cleaning process where more fine-tuning generally equals a cleaner model. While MMCL models exhibit smooth, predictable convergence during cleaning, MMCL+SSL models follow highly unstable paths where continued fine-tuning can suddenly cause the backdoor to re-emerge or accuracy to plummet further.
- Extreme Sensitivity to Imperfect Clean Data: If the 100K "clean" dataset contains even a microscopic amount of poison (just 5 poisoned examples out of 100,000), the defense completely breaks down for the stronger MMCL+SSL models, rendering the cleaning process entirely ineffective.
Key Results
The stark difference in defense efficacy across the pre-training objectives is highlighted in the authors' cleaning experiments on the CC6M dataset:
- MMCL-only Models: CleanCLIP successfully neutralized the backdoor (ASR $\le$ 5%) while maintaining or slightly improving the original zero-shot accuracy (23.76% $\rightarrow$ 24.04%).
- MMCL + SSL Models: To reduce the ASR to $\le$ 5%, the model suffered a devastating 45% relative drop in zero-shot accuracy (23.86% $\rightarrow$ 13.05%).
This pattern held true across different architectures (ResNet-50 and Vision Transformers) and held up even when alternative defenses like heavy regularization or weight perturbation were used instead of CleanCLIP.
Limitations and Future Work
The primary limitation is that the paper exposes a major vulnerability without providing an immediate algorithmic cure; finding a way to cleanly purge backdoors from multi-objective VLMs remains an open problem.
As a practical takeaway, the authors suggest that if an ML practitioner is training models on highly uncurated web data and views backdoors as a critical threat, they should consider sticking to simpler MMCL pre-training objectives. Future work must focus on designing next-generation post-hoc defenses capable of navigating the complex weight landscapes of models optimized with joint contrastive and self-supervised losses.
Summary updated