Source-linked AI summary

SCAM: A Real-World Typographic Robustness Evaluation for Multimodal Foundation Models

Justus Westerhoff, Erblina Purelku, Jakob Hackstein, Jonas Loos, Leo Pinetzki, Erik Rodner, Lorenz Hufe

arXiv:2504.04893v7cs.CVcs.AI

TL;DR

Misleading text embedded in images can cause multimodal models to misclassify them, and existing real-world attack datasets have limited scale and diversity. This paper introduces SCAM and evaluates model robustness, finding that real and synthetic attacks are similarly effective and that susceptibility varies with model components.

  • Problem

    Typographic attacks can cause incorrect predictions by exploiting models’ focus on misleading text, while existing real-world datasets have limited scale and diversity.

    Source: §1 · p. 2, §2 · p. 4
  • Method

    The paper introduces SCAM, a real-world typographic attack dataset with clean and synthetic variants, and evaluates multimodal models on attack susceptibility.

    Source: §1 · p. 2, §5 · p. 9
  • Results

    Real-world and synthetic typographic attacks produce comparable performance drops, while training data, architecture, and larger LLM backbones relate to model susceptibility and typographic understanding.

    Source: §6 · p. 12
  • Takeaways & Limitations

    SCAM’s aligned dataset supports controlled analysis of typographic attacks and future work on defenses for multimodal models.

    Source: §6 · p. 12, §7 · p. 13

    LVLM evaluation relies on naive prompting and covers only English-language attacks.

    Source: §6 · p. 12

Abstract

from arXiv · show

Typographic attacks exploit the interplay between text and visual content in multimodal foundation models, causing misclassifications when misleading text is embedded within images. Existing datasets are limited in size and diversity, making it difficult to study such vulnerabilities. In this paper, we introduce SCAM, the largest and most diverse dataset of real-world typographic attack images to date, containing 1162 images across hundreds of object categories and attack words. Through extensive benchmarking of Vision-Language Models on SCAM, we demonstrate that typographic attacks significantly degrade performance, and identify that training data and model architecture influence the susceptibility to these attacks. Our findings indicate that typographic attacks remain effective against state-of-the-art Large Vision-Language Models, especially those employing vision encoders inherently vulnerable to such attacks. However, employing larger Large Language Model backbones reduces this vulnerability while simultaneously enhancing typographic understanding. Additionally, we demonstrate that synthetic attacks closely resemble real-world (handwritten) attacks, validating their use in research. Our work provides a comprehensive resource and empirical insights to facilitate future research toward robust and trustworthy multimodal AI systems. Finally, we publicly release the datasets introduced in this paper, along with the code for evaluations under www.bliss.berlin/research/scam.

1 Introduction

Typographic attacks exploit models’ focus on misleading text embedded in images, while existing evidence and datasets motivate a more diverse real-world benchmark. SCAM and its variants support evaluations showing attacks affect both VLMs and LVLMs, with susceptibility shaped by model components.

  • Typographic attacks insert misleading readable text into images, prompting models to focus on text rather than visual content and make incorrect predictions.Source: §1 · p. 2
  • SCAM contains real-world images with unrelated handwritten attack text, alongside clean NoSCAM and digitally reintroduced SynthSCAM variants.Source: §1 · p. 2
  • Both VLMs and LVLMs lose accuracy on real-world typographic attacks, and synthetic attacks produce comparable performance drops.Source: §1 · p. 3
  • LVLMs including LLaVA remain vulnerable, reflecting weaknesses in their vision encoders.Source: §1 · p. 3
  • Larger LLM backbones reduce LVLM susceptibility while improving typographic understanding.Source: §1 · p. 3

2 Related Work

Prior work establishes multimodal models’ capabilities and their susceptibility to typographic attacks, but real-world datasets remain limited in scale and diversity. SCAM’s aligned real, clean, and synthetic components support controlled comparisons across attack domains.

  • Multimodal pretraining aligns image and text in a shared latent space, while LVLMs combine language models with vision encoders.Source: §2 · p. 3
  • Prior work studies typographic attacks through synthetic additions, visual prompt injection, self-generated attacks, and scene-coherent attacks.Source: §2 · p. 3
  • Existing real-world typographic attack datasets have limited scale and diversity, while SCAM expands object–word variability and aligns real, clean, and synthetic versions.Source: §2 · pp. 4–5
  • SCAM examples reflect variation across nine contributors’ smartphones, handwriting, and recording environments.Source: Figure 2 · p. 5
  • SCAM’s three aligned components pair attacked scenes with clean counterparts and synthetic versions of the same object–word pairs for controlled comparisons.Source: §2 · p. 5

3 SCAM Dataset

SCAM is a real-world typographic-attack dataset built from handwritten attack words placed beside everyday objects. Its aligned clean, real, and synthetic versions support comparisons across attack conditions.

3 SCAM Dataset

  • SCAM pairs each object with an unrelated handwritten English attack word on a nearby post-it note, chosen as a realistic, reproducible attack surface.Contributors collected images across indoor and outdoor environments, with varied lighting and viewing angles.Source: §3 · p. 6
  • NoSCAM obscures attack words while preserving the object images, and SynthSCAM digitally reintroduces the words in Roboto to create aligned clean, real, and synthetic versions.The synthetic variant uses a uniform font style as a deliberate simplification.Source: §3 · pp. 5–6
  • SCAM contains 1,162 images, 660 object labels, and 206 attack words, exceeding RTA-100’s 100 objects and 100 attack words.The dataset also includes 1,147 unique object-word combinations.Source: §3 · p. 6, Table 2 · p. 7
  • The dataset depicts everyday objects and contains no personal, biometric, or otherwise sensitive data; it is released for research use under its dataset-card license.Users are asked not to deploy models trained on SCAM to harm or deceive people.Source: §3 · p. 7

4 Evaluation

The evaluation tests whether typographic modifications affect object recognition by vision-language and large vision-language models. It compares predictions across clean, real, and synthetic datasets, including two existing attack datasets.

4 Evaluation

  • The evaluation tests object prediction on SCAM, NoSCAM, SynthSCAM, PAINT, and RTA-100 to assess the effects of real-world and synthetic typographic attacks.The target is the depicted object rather than the attack word.Source: §4 · p. 7
  • For VLMs, zero-shot predictions are selected by comparing image embeddings with text embeddings for the object and attack-word labels.The text embeddings use templates proposed by Radford et al. (2021).Source: §4 · p. 8
  • For LVLMs, the evaluation checks whether the model changes its answer from the object label to the attack-word label when the image is modified.The prompt asks the model to choose between the two labels; their order is randomized to reduce positional bias.Source: §4 · p. 8
  • Table 3’s average confusion matrices indicate that synthetic SynthSCAM attacks closely replicate the effects of real SCAM attacks.Values are mean ± standard deviation, rounded to integers.Source: Table 3 · p. 8

5 Results

Results show that real-world typographic attacks substantially reduce VLM accuracy, with synthetic attacks producing comparable effects. Susceptibility varies with training data, architecture, patch size, and attack area; for LVLMs, vision encoders remain a vulnerability while larger LLM backbones can improve robustness and typographic understanding.

Zero-Shot Results for VLMs

  • On average, VLM accuracy drops approximately 26 percentage points on SCAM and 36 percentage points on SynthSCAM, while synthetic attacks closely mirror real-world effects.The accuracy distributions across NoSCAM, SCAM, and SynthSCAM are shown for 99 VLMs.Source: Figure 4 · p. 9, §5 · p. 9

Impact of Training Dataset and Model Architecture

  • Training data and architecture influence VLM susceptibility: LAION-trained ViT-B models are highly susceptible, while CLIP-ViT is more resilient than CLIP-RN and SigLIP-ViT more resilient than CLIP-ViT on average.Some CommonPool variants show lower vulnerability; the commonpool_l_clip filtering criterion appears to propagate susceptibility.Source: §5 · pp. 9–10, Table 5 · p. 10

Impact of Patch Size and Attack Size

  • Smaller patch sizes generally increase susceptibility, and accuracy decreases as the post-it attack area grows.The post-it-area trend is reported across the 99 evaluated VLMs.Source: §5 · p. 10, Figure 6 · p. 11

Impact of Model Size

  • There is no noticeable correlation between VLM size and the accuracy drop caused by typographic attacks, though original OpenAI CLIP models perform worse across sizes.Figure 5 summarizes susceptibility against model size.Source: §5 · p. 10, Figure 5 · p. 11

Prompt-Based Classification Results for LVLMs

  • Larger LLM backbones can reduce LVLM susceptibility and improve typographic understanding, although vision-encoder weaknesses remain and model size alone does not determine robustness.Some smaller models show drops above 40–60 percentage points, while Claude Sonnet 4 and GPT-4o show drops of around 8 and 3 points, respectively.Source: §5 · pp. 10–12

Impact of VLM and LLM Size on LVLM Performance

  • A preliminary vision-encoder substitution experiment found no clear robustness gain from choosing an encoder ranked safer by SCAM, and overall performance decreased.Scaling the LLM backbone also improves performance on SCAM and general typographic understanding on textual and OCR-based benchmarks.Source: §5 · pp. 11–12

6 Discussion

The discussion emphasizes that real and synthetic typographic attacks both affect multimodal models, while training and architecture shape vulnerability. It also identifies evaluation boundaries and research directions for improving robustness.

Findings

  • Synthetic attacks are just as effective as real-world attacks, producing comparable performance drops across the evaluated models.The discussion situates this finding alongside prior work on typographic-attack vulnerability.Source: §6 · p. 12
  • Training regime, training data, and architecture influence VLM susceptibility, whereas model size alone does not correlate with robustness; larger LLM backbones can mitigate LVLM vulnerability and improve typographic understanding.LVLM vulnerability appears to carry over from the vision encoder.Source: §6 · p. 12

Limitations

  • The evaluation relies on naive prompting and covers English-language attacks only, leaving multi-prompt evaluation and language-specific susceptibility for future investigation.The authors note that more advanced multi-prompt strategies may yield a more reliable robustness measure.Source: §6 · p. 12

Future Work

  • Aligned NoSCAM/SCAM pairs support controlled causal and mechanistic analyses, while simply swapping LLaVA’s encoder for a more robust one did not reliably transfer robustness when integrated naively.Future work proposes systematic retraining with varied vision backbones to assess encoder strength and adaptation needs.Source: §6 · p. 12

7 Conclusion

The conclusion presents SCAM and its two variations as a broad resource for evaluating typographic vulnerabilities in multimodal foundation models. Its evaluation finds current state-of-the-art models significantly affected, and the authors expect the analysis to inform model selection for safety-critical applications.

Conclusion

  • SCAM, NoSCAM, and SynthSCAM form the paper’s largest and most diverse real-world image collection for evaluating multimodal models’ vulnerability to typographic attacks.The authors expect their analysis of VLMs and LVLMs to help researchers choose typographically robust models for safety-critical downstream applications.Source: §7 · p. 13

Broader Impact Statement

The broader impact statement weighs the risks of exposing typographic vulnerabilities against the value of shared benchmarks for research and defense. It presents SCAM as a resource for systematic evaluation and comparison of defenses.

Risks

  • Typographic cues could let malicious actors probe deployed vision-language systems and mislead them in safety-critical settings such as medical decision support, navigation, or content moderation.The released dataset could also be used to study loopholes with the aim of designing more effective attacks.Source: Broader Impact Statement · p. 13

Benefits

  • SCAM provides a standardized benchmark for comparing defenses and studying how training data and model design affect susceptibility.Because synthetic attacks reliably mirror real-world ones, they can reduce the need for ongoing collection of handwritten examples.Source: Broader Impact Statement · p. 13

A.1 Example Images of SCAM, NoSCAM, and SynthSCAM

Figure 7 presents example images from SCAM and the generated NoSCAM and SynthSCAM datasets.

A.2 Example Images of PAINT and RTA-100

The appendix contrasts examples from PAINT and RTA-100 with SCAM’s broader object, attack-word, and scene coverage. It cautions that a small set of qualitative examples cannot capture the datasets’ full variability.

  • SCAM comprises 1,162 images with 660 objects and 206 attack words, collected by nine contributors across diverse indoor and outdoor environments.Source: §A.2 · p. 21
  • PAINT and RTA-100 cover comparatively restricted sets of objects, attack words, and scene conditions relative to SCAM.Source: §A.2 · p. 21
  • The figures show 20 random examples each from PAINT and RTA-100, but these samples cannot capture either dataset’s full variability.Source: §A.2 · p. 21, Figure 8 · p. 21, Figure 9 · p. 21

A.3 Zero-Shot Evaluation of LVMs: Text Templates

The appendix describes zero-shot text templates and additional comparisons of model architectures, prompts, vision encoders, and model scale. It also reports the frequency distributions of SCAM’s object labels and attack words.

A.3 Zero-Shot Evaluation of LVMs: Text Templates

  • Zero-shot evaluation averages embeddings from 32 text templates, each placing an object label or attack word in a different context.Source: §A.3 · p. 21

A.4 Model Accuracies on Typographic Attack Datasets

  • The model-accuracy table covers VLMs and LVLMs on SCAM, PAINT, and RTA-100, while the appendix provides its model/training-data headings.Source: Table 6 · p. 22, §A.4 · p. 23

A.5 Architecture Comparison

  • The architecture comparison reports averaged accuracies for CLIP-RN versus CLIP-ViT and CLIP-ViT versus SigLIP-ViT, with models grouped by architecture and fixed training data.Source: §A.5 · p. 24, Table 7 · p. 24

A.6 Prompt Variation

  • Appending “Do not get fooled by typographic attacks” to the original prompt leaves susceptibility largely unchanged.Source: §A.6 · p. 24, Figure 10 · p. 25

A.7 Replacing VLM in LLaVA

  • The CLIPA-based LLaVA shows a 25% robustness drop from NoSCAM to SCAM, versus 65% for the OpenAI-encoder model.It also outperforms the OpenAI encoder by 3% on average across 38 OpenCLIP-evaluated datasets.Source: §A.7 · p. 25
  • The CLIPA-based LLaVA variant does not improve SCAM performance over the original model, despite using a more robust vision encoder in isolation.Source: §A.7 · p. 26, Table 8 · p. 26

A.8 Typographic Robustness vs. Typographic Understanding

  • Larger LLM backbones are associated with improved typographic understanding and robustness, although stronger reading ability alone does not guarantee robustness.Source: §A.8 · p. 26, Table 9 · p. 27

A.9 SCAM Labels

Loading 2504.04893v7…