Render Before Reading: Visual Rendering as a Prompt Injection Defense
Jie Zhang, Andrei Baroian, Jan N. van Rijn, Avital Shafran, Florian Tramèr
Key points
From the paper's conclusion- 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.
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- What Survives the Shift from Text to Pixels? Conditional Protection against Prompt Injection in Image-Rendered DocumentsarXiv · 2026
- MPIDetector: Detecting Multi-modal Prompt Injection via LLM-based ReasoningarXiv · 2026
- The Devil is in the Context: Nine Dimensions of Prompt Injection AttacksarXiv · 2026
- Dressed in Authority: Practical Black-Box Jailbreaking of MLLMs via Visual Trust BiasarXiv · 2026
- Typographic Attack Against VLM-based AI-generated Image DetectionarXiv · 2026
- When the Editing Intent Is Split: A Cross-Modal Jailbreak Attack for Large Image Editing ModelsarXiv · 2026