Introduction: The Vulnerability of Large-Scale Vision-Language Models
Foundation models like CLIP, trained on billions of uncurated image-text pairs from the web, are highly susceptible to "backdoor attacks." In these attacks, malicious samples containing a specific trigger—such as a small pixel patch or a watermark—are injected into the training set. This causes the model to associate the trigger with a target label, leading to misclassification whenever the trigger is present in a test image.
Existing defenses like CleanCLIP often fail against "structured triggers" (e.g., text overlays or geometric patterns) because they rely on data augmentations that do not sufficiently disrupt these invariant features. Furthermore, aggressive augmentation can degrade the model's general performance by breaking the semantic link between images and captions. This paper introduces PAR (Perturb and Recover), a defense that operates in the model's embedding space to scrub these malicious correlations.
The PAR Framework: Perturb and Recover
To address the limitations of data-space defenses, PAR employs a two-pronged fine-tuning strategy that treats the poisoned model as a "bad starting point" and moves its parameters away from that local minimum. The method uses two primary loss terms:
- Perturbation ($\mathcal{L}_{PERT}$): This loss term explicitly penalizes the model for being too similar to its original, poisoned version. It calculates the distance between current embeddings and poisoned embeddings; if the distance is below a threshold ($\tau$), the model is pushed further away. This forces the model to "unlearn" the spurious correlations.
- Recovery ($\mathcal{L}_{CLIP}$): To ensure the model remains functional, a standard CLIP contrastive loss is applied using a small set of clean or synthetic data. This "recovers" the model's ability to map images to correct text descriptions.
The final objective, $\mathcal{L}_{PAR} = \mathcal{L}_{CLIP} - \mathcal{L}_{PERT}$, allows the model to move to a different region of the weight space where the backdoor no longer functions, without requiring prior knowledge of the trigger's appearance.
Key Insights and Experimental Results
One of the most practical findings of the study is that synthetic data is sufficient for the recovery phase. Using AI-generated image-caption pairs (e.g., from SynthCLIP) is nearly as effective as using real-world clean data, making the defense much easier to deploy when curated datasets are unavailable.
Performance Metrics
- Superior Backdoor Removal: Against the "BadNet-Stripes" attack on a ResNet-50 backbone, the original poisoned model had a 99.8% Attack Success Rate (ASR). CleanCLIP only reduced this to 62.3%, whereas PAR slashed it to 42.4% while maintaining higher clean accuracy.
- Effectiveness on ViT: On ViT-B/32 architectures, PAR outperformed CleanCLIP by up to 37% in ASR reduction across various structured attacks.
- Zero-Shot Preservation: Across all tests, PAR maintained clean zero-shot accuracy within 1-4% of the original model, a trade-off significantly better than previous state-of-the-art methods which often saw much steeper declines.
Conclusion
PAR represents a shift from data-space defenses to weight-space optimization for backdoor removal. By explicitly pushing the model away from poisoned representations while recovering semantic alignment through clean or synthetic data, PAR provides a robust, trigger-agnostic solution for securing large-scale vision-language models. Future work will explore how this method scales to even larger architectures like ViT-G and its adaptability to other multi-modal systems.
Summary updated