mlsanityData to 13 Oct 2026

Fooling Contrastive Language-Image Pre-trained Models with CLIPMasterPrints

arXiv 2307.03798 ↗First posted 7 Jul 2023cs.CV cs.AI cs.LGcited by 2

Not on the map. Why?

Abstract (arXiv)

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. The existence of such images is problematic as it could be used by bad actors to maliciously interfere with CLIP-trained image retrieval models in production with comparably small effort as a single image can attack many different prompts. We demonstrate how fooling master images for CLIP (CLIPMasterPrints) can be mined using stochastic gradient descent, projected gradient descent, or blackbox optimization. Contrary to many common adversarial attacks, the blackbox optimization approach allows us to mine CLIPMasterPrints even when the weights of the model are not accessible. We investigate the properties of the mined images, and find that images trained on a small number of image captions generalize to a much larger number of semantically related captions. We evaluate possible mitigation strategies, where we increase the robustness of the model and introduce an approach to automatically detect CLIPMasterPrints to sanitize the input of vulnerable models. Finally, we find that vulnerability to CLIPMasterPrints is related to a modality gap in contrastive pre-trained multi-modal networks. Code available at https://github.com/matfrei/CLIPMasterPrints.

Key facts. Cited by 2 papers in the map (data through 13 Oct 2026). Builds on 27 of its 40 references that are in the map. First posted on arXiv 7 Jul 2023.

Builds on

27 of 40 references.

References · 27

  1. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,588
  2. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,777
  3. 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,321
  4. 2014ImageNet Large Scale Visual Recognition Challengecited by 8,476
  5. 2014Explaining and Harnessing Adversarial Examplescited by 7,336
  6. 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 6,991
  7. 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,713
  8. 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,379
  9. 2022Generative Adversarial Networkscited by 5,614
  10. 2022BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generationcited by 4,314
  11. 2023Sigmoid Loss for Language Image Pre-Trainingcited by 3,068
  12. 2013Visualizing and Understanding Convolutional Networkscited by 2,282
15 more
  1. 2016Adversarial examples in the physical worldcited by 1,767
  2. 2021LAION-400M: Open Dataset of CLIP-Filtered 400 Million Image-Text Pairscited by 1,548
  3. 2017Mixed Precision Trainingcited by 1,147
  4. 2016Adversarial Machine Learning at Scalecited by 935
  5. 2014Deep Neural Networks are Easily Fooled: High Confidence Predictions for Unrecognizable Imagescited by 774
  6. 2022Mind the Gap: Understanding the Modality Gap in Multi-modal Contrastive Representation Learningcited by 555
  7. 2016The CMA Evolution Strategy: A Tutorialcited by 368
  8. 2018Adversarial Attacks and Defences: A Surveycited by 259
  9. 2018Strike (with) a Pose: Neural Networks Are Easily Fooled by Strange Poses of Familiar Objectscited by 143
  10. 2021Advances in adversarial attacks and defenses in computer vision: A surveycited by 127
  11. 2022Text-Only Training for Image Captioning using Noise-Injected CLIPcited by 91
  12. 2018Evolving Mario Levels in the Latent Space of a Deep Convolutional Generative Adversarial Networkcited by 76
  13. 2021Adversarial VQA: A New Benchmark for Evaluating the Robustness of VQA Modelscited by 75
  14. 2022Discovering the Hidden Vocabulary of DALLE-2cited by 43
  15. 2021Reading Isn't Believing: Adversarial Attacks On Multi-Modal Neuronscited by 29

Built on by

Cited by year

Citing papers per year: 2025: 2.

2 papers.