Web Artifact Attacks Disrupt Vision Language Models

Maan Qraitem, Piotr Teterwak, Kate Saenko, Bryan A. Plummer

TL;DR

This paper introduces "Web Artifact Attacks," a novel class of attacks that exploit unintended correlations in vision-language models (VLMs) by using non-matching text and graphical elements found in web-scale datasets. These attacks are more stealthy and harder to defend against than previous methods, demonstrating significant vulnerabilities in current VLMs.

What Problem Does This Paper Address?

Vision-language models (VLMs) like CLIP and LLaVA are trained on massive datasets scraped from the web. Because web captions often describe what's visible rather than what's semantically important, these models learn spurious correlations between visual elements and text. For instance, a model might associate Chinese characters with the word "carton" simply because they frequently appear together online. Previous research, like "typographic attacks," weaponized these correlations by inserting class-matching text into images to trick models. However, these attacks were limited to explicit text matches and were relatively easy to detect. This paper addresses the gap by exploring a broader attack surface: non-matching text and graphical artifacts (like logos and watermarks) that are abundant in web data but not explicitly tied to the target class. These "web artifacts" exploit subtler, unintended associations, making them harder to anticipate and defend against.

Methods

The authors propose a novel attack pipeline called "Web Artifact Attacks." This pipeline involves three main stages:

  1. Artifact Retrieval: They leverage CLIP-based similarity search on large image-text datasets (like CC12M) using broad prompts (e.g., "a photo of a graphic") to extract candidate artifacts. These artifacts are then categorized into three types:
  2. Unrelated Text (Atext): Text that doesn't explicitly match the target class but might have phonetic or visual similarities.
  3. Graphics with Embedded Text (Agraphics-text): Logos or images containing text that might reinforce textual biases.
  4. Graphics Without Text (Agraphics-no-text): Purely visual symbols or logos.
  5. Effect Estimation: Candidate artifacts are applied to images from "opposing classes" (i.e., images that should not be classified as the target class). The effectiveness of an artifact is measured by how often it causes the VLM to misclassify the image into the target class. A crucial step here is a masking-based validation to ensure misclassification is due to the artifact itself, not due to obscuring important image features.
  6. Artifact Placement Optimization: For promising artifacts, their position within the image is fine-tuned to maximize attack success. The authors found that the top border of the image is often the most effective location.

Datasets

  • Primary Dataset for Artifact Extraction: CC12M (Conceptual 12M) was used as the primary source for mining artifacts.
  • Evaluation Datasets: The authors evaluated their attacks across five downstream tasks:
  • Human-related: Gender (Male/Female), Age (Child, Teen, Adult, Elderly) using FairFace, and Smiling using CelebA.
  • Object/Geography: Aircraft models using FGVC Aircraft, and countries using Country211.

Key Insights and Ideas

  • Broader Attack Surface: The core idea is that VLMs are vulnerable not just to explicit text matches but also to a wider range of "web artifacts" like logos and non-matching text, which are prevalent in training data.
  • Stealthier Attacks: Unlike predefined typographic attacks, these artifacts are discovered through a search process, making them unknown to defenders beforehand and thus harder to guard against.
  • Synergistic Effects: Combining different types of artifacts (e.g., text and graphics) significantly amplifies attack success, often reaching near 100% misclassification rates.
  • Transferability: Artifacts discovered on one VLM are highly transferable to others, indicating shared vulnerabilities across different architectures and training paradigms.
  • Model Confidence: Artifacts not only cause misclassification but also increase the model's confidence in the incorrect prediction.
  • Small Sample Size Sufficiency: Estimating artifact effectiveness requires a surprisingly small number of samples per class, making the attack discovery process efficient.

Key Results

  • Web Artifact Attacks achieve high success rates (up to 90%) across diverse VLM configurations, including different fusion strategies (CLIP, SigLIP, LLaVA), pretraining datasets (Laion400M, Laion2B, DataComp), and vision encoder architectures (ViT-B-32, ViT-B-16, ViT-L-14).
  • Text-based artifacts were generally the most effective, followed by graphics with embedded text, and then graphics without text.
  • Attacks are highly transferable, with success rates up to 90% when applied to unseen models.
  • Combining artifact types can lead to near 100% attack success.
  • Artifact-aware prompting (a mitigation strategy) can reduce attack success rates by up to 15%, but it is less effective against graphical artifacts.

Limitations and Future Work

  • Limitations: While artifact-aware prompting offers some defense, it does not fully eliminate the threat, especially for non-textual graphical artifacts. The authors note that current dataset curation strategies (like DataComp) are not sufficient to mitigate these spurious correlations.
  • Future Work: The authors suggest developing more robust defenses, including improved dataset curation that goes beyond simple CLIP filtering and more informative captioning strategies. They also aim to optimize the artifact discovery process for greater efficiency and scalability, making it faster to identify vulnerabilities in large-scale datasets.

Summary updated

BibTeX
@inproceedings{qraitem2025web,
  author = {Maan Qraitem and Piotr Teterwak and Kate Saenko and Bryan A. Plummer},
  title = {{Web Artifact Attacks Disrupt Vision Language Models}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure