Skip to content

Render Before Reading: Visual Rendering as a Prompt Injection Defense

Sep 2026 · arXiv.org · Vol abs/2609.36121 · 1 citation · 40 references
Computer Science

TL;DR

This paper studies the role played by the adversarial data's input modality, and identifies a systematic asymmetry: multimodal LLMs are more likely to follow adversarial instruction when they appear as text than when the same instruction is delivered through a non-textual channel.

Abstract

Large language models are vulnerable to prompt injection attacks, where third-party adversarial content can hijack the model's behavior. In this paper, we study the role played by the adversarial data's input modality, and identify a systematic asymmetry: multimodal LLMs are more likely to follow adversarial instruction when they appear as text than when the same instruction is delivered through a non-textual channel (e.g., as an image). We hypothesize that this modality gap arises from text-centric instruction tuning, which teaches models to obey textual instructions while treating other modalities mainly as content to parse or describe. We then demonstrate how this gap can be turned into a training-free defense, by rendering all untrusted payloads as typographic images (or audio) before they reach the model. Across ten models and two prompt injection benchmarks (DirectInject and AgentDojo) we show that our defense Pictionary consistently reduces attack success rates even against the strongest adaptive attacks and human red teamers, while largely preserving benign utility. We further show that benign fine-tuning on image-rendered instructions erodes the modality gap, tracing it to the text-centric instruction-tuning distribution.

View source

Similar papers

#artificial intelligence Preprint Oct 2026

Visual Memory Attacks Can Persist Through The KV Cache

Modern language model systems operate autonomously over increasingly long contexts containing untrusted text and images. Can an adversarial input continue to steer a model even after that input is removed from its context? We show that attacks can be trained to persist through the key/value (KV) cache of subsequent tok...

David Dobre, Leo Schwinn, Gauthier Gidel et al. · 3 citations
#artificial intelligence Preprint Oct 2026

Erase the Injected Region: Multimodal Prompt-Injection Defense with On-Policy Self-Distillation

ERASE, an on-policy self-distillation method that constructs its reference by erasing the injected region in place, is proposed, an on-policy self-distillation method that constructs its reference by erasing the injected region in place.

Shu-Lian Hong, Jia-Xin Ma, Xi-Di Cai et al. · 0 citations
#large language models Open access Sep 2026

Empirical Analysis of Goal Hijacking in Large Vision-Language Models via Visual Prompt Injection

In this study, we explore visual prompt injection (VPI), a method that exploits the ability of large vision-language models (LVLMs) to follow instructions embedded within input images. LVLMs, such as GPT-4V, are designed to interpret and respond to visual prompts. Although this capability enables valuable applications,...

Subaru Kimura, Ryota Tanaka, Shumpei Miyawaki et al. · 0 citations

Decoding Guardrails: XAI-Guided Perturbation Analysis of Prompt Injection Detection

An exploratory case study that applies explainable artificial intelligence techniques to analyze how Prompt Guard 2 distinguishes malicious from benign prompts finds that Prompt Guard 2's decisions rely on the cumulative contribution of many tokens rather than a few dominant ones, yet saliency-guided synonym substituti...

Fernando Outeda, Gustavo Betarte, J. Campo et al. · 0 citations

Related blog posts

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.