Effective Backdoor Mitigation Depends on the Pre-training Objective

Sahil Verma, Gantavya Bhatt, Soumye Singhal, Arnav Mohanty Das, Chirag Shah, John P Dickerson, Jeff Bilmes

TL;DR

This paper investigates the effectiveness of a popular backdoor mitigation technique, CleanCLIP, when applied to multimodal models trained with a more advanced pre-training objective (combining contrastive and self-supervised losses). They discover that CleanCLIP fails to effectively remove backdoors without significantly degrading model accuracy when this combined pre-training objective is used, highlighting a critical limitation in current defense strategies.

What Problem Does This Paper Address?

Machine learning models, especially powerful multimodal ones like CLIP that learn to associate images and text, are vulnerable to "backdoor attacks." In these attacks, a small fraction of the training data is subtly poisoned with a "trigger" (e.g., a specific patch in an image) that causes the model to misbehave in a predictable way when that trigger is present during inference. This is particularly concerning for deployed models where such unpredictable behavior can have serious consequences.

Recent work proposed "CleanCLIP," a method to defend against these attacks by fine-tuning a backdoored model on a small, clean dataset using a combination of contrastive and self-supervised losses. This approach was shown to be effective for models pre-trained only with a multimodal contrastive loss. However, newer, more performant multimodal models often use a pre-training objective that also includes self-supervised losses within each modality (e.g., image-to-image or text-to-text). This paper asks: does CleanCLIP still work effectively when applied to these more advanced, jointly trained models?

Methods

The core of this paper is an empirical study evaluating the CleanCLIP mitigation technique. The authors:

  • Train Multimodal Models: They train dual-encoder multimodal models (image and text encoders) from scratch on large image-text datasets.
  • Vary Pre-training Objectives: They compare two pre-training objectives:
  • MMCL (Multimodal Contrastive Loss): The objective used in the original CLIP and the one CleanCLIP was validated on.
  • MMCL + SSL (Multimodal Contrastive Loss + Intramodal Self-Supervised Loss): A more advanced objective that combines contrastive learning across modalities with self-supervised learning within each modality. This is representative of newer, higher-performing models.
  • Introduce Backdoors: They inject a standard trigger patch into a small percentage (0.05%) of the training data for both pre-training objectives, targeting a specific label ("banana").
  • Apply CleanCLIP: They then apply the CleanCLIP fine-tuning procedure to these backdoored models. This involves fine-tuning on a separate, clean dataset using a combination of MMCL and SSL losses.
  • Evaluate Performance: They measure two key metrics:
  • Top-1 Zero-Shot Accuracy: How well the model performs on standard tasks (like ImageNet classification) without task-specific fine-tuning.
  • Attack Success Rate (ASR): The percentage of triggered images that are misclassified as the target "banana" label. Successful cleaning means achieving a low ASR (ideally < 5%) without a significant drop in accuracy.

Datasets

  • Training Datasets:
    • Conceptual Captions 3M (CC3M): A dataset of 3 million image-text pairs.
  • Conceptual Captions 6M (CC6M): A dataset of 6 million image-text pairs, derived from CC12M.
  • Cleaning Dataset: A small, clean subset of 100K image-text pairs. The paper also explores doubling this to 200K.
  • Evaluation Dataset: ImageNet-1K validation set for zero-shot accuracy and ASR evaluation.

Key Insights and Ideas

  • Pre-training Matters Critically: The effectiveness of a backdoor mitigation technique is not universal; it's highly dependent on how the model was initially pre-trained.
  • CleanCLIP's Failure Mode: While CleanCLIP successfully mitigates backdoors in models pre-trained solely with multimodal contrastive loss (MMCL), it fails to do so for models pre-trained with the more advanced MMCL + SSL objective.
  • Accuracy vs. Security Trade-off: The MMCL + SSL pre-training objective leads to higher initial accuracy but makes the model significantly more resistant to the CleanCLIP defense, forcing a choice between security and performance.
  • Poisoning is Potent: Even a very small percentage (0.05%) of poisoned data is sufficient to achieve a very high attack success rate (>99%) in the pre-trained models.

Key Results

  • Reproducing CleanCLIP: The authors successfully reproduce the CleanCLIP results for models pre-trained with MMCL, showing that CleanCLIP effectively reduces ASR to <5% with minimal accuracy loss.
  • CleanCLIP Failure on MMCL+SSL Models:
    • For models pre-trained with MMCL + SSL on CC3M, CleanCLIP resulted in a significant drop in accuracy (17%) to achieve an ASR < 5%.
  • For models pre-trained with MMCL + SSL on CC6M, the accuracy drop was even more severe (45%) to achieve an ASR < 5%.
  • Larger Cleaning Data Doesn't Help: Doubling the clean dataset size (to 200K) for models pre-trained with MMCL + SSL did not improve CleanCLIP's effectiveness, still resulting in a substantial accuracy drop (66% on CC6M).
  • High Initial ASR: All backdoored pre-trained models exhibited an ASR of over 99%.

Limitations and Future Work

  • Limitations:
    • The study focuses on a specific type of backdoor attack (trigger patches) and a specific mitigation technique (CleanCLIP).
  • The paper highlights that the MMCL + SSL pre-training objective, while leading to higher accuracy, makes models more vulnerable to this specific defense failure.
  • Future Work:
    • The authors urge the community to consider pre-training objectives that might slightly sacrifice initial accuracy for better amenability to backdoor removal.
  • They suggest that future mitigation strategies need to account for the pre-training objective and the specific backdoor introduction method.
  • The findings imply a need for new defense mechanisms that are robust across different pre-training paradigms.

Summary updated

BibTeX
@article{verma2025effective,
  author = {Sahil Verma and Gantavya Bhatt and Soumye Singhal and Arnav Mohanty Das and Chirag Shah and John P Dickerson and Jeff Bilmes},
  title = {{Effective Backdoor Mitigation Depends on the Pre-training Objective}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2025},
  url = {https://openreview.net/forum?id=RRy21e8N01},
}
Figure