Fooling Contrastive Language-Image Pre-Trained Models with CLIPMasterPrints

Abstract

Models leveraging both visual and textual data such as Contrastive Language-Image Pre-training (CLIP), are the backbone of many recent advances in artificial intelligence. In this work, we show that despite their versatility, such models are vulnerable to what we refer to as fooling master images. Fooling master images are capable of maximizing the confidence score of a CLIP model for a significant number of widely varying prompts, while being either unrecognizable or unrelated to the attacked prompts for humans. We demonstrate how fooling master images can be mined using stochastic gradient descent, projected gradient descent, or gradient-free optimisation. Contrary to many common adversarial attacks, the gradient-free optimisation approach allows us to mine fooling examples even when the weights of the model are not accessible. We investigate the properties of the mined fooling master images, and find that images trained on a small number of image captions potentially generalize to a much larger number of semantically related captions. Finally, we evaluate possible mitigation strategies and find that vulnerability to fooling master examples appears to be closely related to a modality gap in contrastive pre-trained multi-modal networks.

Cite

Text

Freiberger et al. "Fooling Contrastive Language-Image Pre-Trained Models with CLIPMasterPrints." Transactions on Machine Learning Research, 2024.

Markdown

[Freiberger et al. "Fooling Contrastive Language-Image Pre-Trained Models with CLIPMasterPrints." Transactions on Machine Learning Research, 2024.](https://mlanthology.org/tmlr/2024/freiberger2024tmlr-fooling/)

BibTeX

@article{freiberger2024tmlr-fooling,
  title     = {{Fooling Contrastive Language-Image Pre-Trained Models with CLIPMasterPrints}},
  author    = {Freiberger, Matthias and Kun, Peter and Igel, Christian and Løvlie, Anders Sundnes and Risi, Sebastian},
  journal   = {Transactions on Machine Learning Research},
  year      = {2024},
  url       = {https://mlanthology.org/tmlr/2024/freiberger2024tmlr-fooling/}
}