Abstract
Vision-language models (VLMs) (e.g. CLIP, LLaVA) are trained on large-scale, lightly curated web datasets, leading them to learn unintended correlations between semantic concepts and unrelated visual signals. These associations degrade model accuracy by causing predictions to rely on incidental patterns rather than genuine visual understanding. Prior work has weaponized these correlations as an attack vector to manipulate model predictions, such as inserting a deceiving class text onto the image in a "typographic" attack. These attacks succeed due to VLMs' text-heavy bias—a result of captions that echo visible words rather than describing content. However, this attack has focused solely on text that matches the target class exactly, overlooking a broader range of correlations, including non-matching text and graphical symbols, which arise from the abundance of branding content in web-scale data. To address this gap, we introduce "artifact-based" attacks: a novel class of manipulations that mislead models using both non-matching text and graphical elements. Unlike typographic attacks, these artifacts are not predefined, making them simultaneously harder to defend against and more challenging to find. We address this by framing artifact attacks as a search problem and demonstrate their effectiveness across five datasets, with some artifacts reinforcing each other to reach 100% attack success rates. These attacks transfer across models with up to 90% effectiveness, making it possible to attack unseen models. To defend against these attacks, we extend prior work's artifact aware prompting to the graphical setting. We see a moderate reduction of success rates of up to 15% relative to standard prompts, suggesting a promising direction for enhancing model robustness.
Introduction
Vision-Language Models (VLMs) like CLIP and LLaVA have revolutionized computer vision by learning from massive, uncurated web-scraped datasets. However, this reliance on web data introduces a significant vulnerability: "text-heavy bias." Because web captions often prioritize visible text or brand names over actual image content, models develop spurious correlations between incidental visual artifacts and semantic categories.
Previous research identified "typographic attacks," where placing a label with the target class name (e.g., "iPod") on an unrelated object (e.g., a piece of fruit) triggers misclassification. This work expands the threat landscape by introducing Web Artifact Attacks. These attacks leverage a broader range of learned associations, including non-matching text (misspellings or related terms) and graphical symbols like logos or watermarks. Unlike typographic attacks, these artifacts are not predefined, making them more realistic and harder to detect.
Methodology: Mining Vulnerabilities
To identify these vulnerabilities, we developed a systematic pipeline to extract and weaponize artifacts from web-scale data. The process is divided into two primary stages: extraction and mining.
Artifact Extraction
We utilized CLIP-based retrieval on the Conceptual 12M (CC12M) dataset to find images matching broad prompts such as "a photo of a logo" or "a photo of a watermark." Using Optical Character Recognition (OCR), we categorized these into three distinct buckets:
- Graphics with text: Logos containing words (e.g., a "Crocs" logo).
- Graphics without text: Purely visual symbols (e.g., a medical caduceus).
- Unrelated text: Text fragments that are phonetically or semantically related to a class but do not match the class name exactly (e.g., "Senton" for the "Senior" class).
Mining and Optimization
Once extracted, we estimated the effectiveness of these artifacts by applying them to "opposing-class" images—for instance, placing a "Senior" artifact on a photo of a young person. We then filtered these artifacts based on their Attack Success Rate (ASR). We also optimized placement, finding that artifacts positioned in the top-center (common for headlines or watermarks) were most effective at disrupting model predictions.
Key Insights and Results
Our evaluation across five diverse datasets (including FairFace, CelebA, and Country211) revealed several critical insights into VLM behavior:
- Literal Correlations: Models exhibit literal biases; for example, the "Senior" class is strongly associated with medical symbols and retirement logos, while the "Japan" class can be triggered by red-and-white circular graphics.
- Model Sensitivity: Surprisingly, larger models with superior OCR capabilities (like ViT-L-14) are often more vulnerable to text-based artifacts, as they are more sensitive to the distracting text fragments they encounter.
- Compounding Effects: When multiple artifacts (e.g., a graphic and unrelated text) are combined, success rates can reach nearly 100%, as the model treats them as reinforcing evidence for the incorrect class.
- High Transferability: Artifacts discovered to fool one model show up to 90% effectiveness against different architectures, suggesting these spurious correlations are a fundamental property of web-scale training.
Mitigation and Future Work
To defend against these attacks, we proposed "Artifact Aware Prompting." This method involves using a captioning model to describe the artifact, which is then added to the prompt (e.g., "an image of a person with a medical logo in the corner"). This helps the model contextualize and ignore the distractor. While this reduced attack success rates by up to 15%, it highlights that these biases are deeply embedded in the models.
Future work must focus on dataset curation to move beyond simple filtering and identify images where captions merely parrot incidental text. Developing training strategies that encourage models to focus on the primary subject rather than its web-based surroundings remains a critical challenge for VLM robustness.
Summary updated