Skip to content

Physical prompt injection attacks against large vision-language modelsPhysical Prompt Injection Attacks on Large Vision-Language Models

arXiv· arXiv:2601.17383· Chen Ling, Kai Hu, Hangcheng Liu, Xingshuo Han, Tianwei Zhang, Changhai Ou·Indexed by this site · 2026-10-12· Originally publishedSelected AttacksSelectedAttention40

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

PPIA uses printed text to manipulate LVLMs in a black-box setting with unknown queries; in Table IV, gpt-4o achieves an ASR of 95% on physical NAV.

Threat modelFully black-box, non-interactive, unknown-user-query. The attacker does not know the user query and cannot probe or observe the target system's inputs and outputs; the authors say only public information such as model or system names is available. The attacker can choose containers to place in the environment to bias the perceptual output toward specified malicious semantics.

Questions
LVLMs in open environments often cannot encounter text channels, and user queries are not visible. Existing typographic injection usually relies on user queries, and the authors say it is not robust enough under physical changes. The authors aim to do black-box, query-independent visual prompt injection that can be placed in real scenes.
Methods
PPIA first has an LLM generate candidates with the model name and attack goal, then randomly places them on containers in an environment image, using cross-entropy to select the more recognizable one. Position is determined by CLIP's spatiotemporal attention and restricted to reachable and allowed areas. The target system is never queried online throughout.
Experiments and results
In simulation across 10 LVLMs, the authors claim most ASRs exceed 70%, but Table II still has lower cells. In physical NAV, Table IV shows gpt-4o at 95% and llama3.2-90b-vi at 80%. ASRs are lower at greater distances, smaller font sizes, and non-English.
Limitations and future work
The authors state that camera resolution and controlled environments may affect physical effects, and they plan to do resolution adaptation and extend to unconstrained scenes. Experiments include 10 simulated LVLMs, two simulators, and physical NAV; the paper does not report the main result round count R, nor does it give the ASR for Figure 5 and Figure 18 in the main text.
Experimental setupgpt-4o、gpt-4o-mini et al. · Embodied City、Habitat et al. · ASR、TR
Evaluated models
gpt-4ogpt-4o-minigpt-4-turbogemini-1-pro-latest (gemini-1-pl)gemini-1-pro-002 (gemini-1-p2)gemini-1-flash-latest (gemini-1-fl)claude-3-5-sonnet-latest (claude-3-5-sl)claude-3-5-haiku-20241022 (claude-3-5-haiku)llama3.2-11b-visionllama3.2-90b-vision-instruct (llama3.2-90b-vi)ChatGPTClaudeDoubaoGemini
Benchmarks
Embodied CityHabitat物理无人车导航环境(办公室、单层建筑、室外道路)
Metrics
ASRTR
AI summaryand selection rationaleThe researchers propose PPIA, a black-box, user-query-agnostic physical prompt injection attack that manipulates large vision-language models (LVLMs) by embedding printed text instructions on physical objects. The authors claim this is the first physical prompt injection attack, where the attacker needs no access to the model, input channels, or user queries, and can execute it purely through visual observation. The method first uses an LLM to generate candidate malicious prompt words, then filters them by measuring their recognizability in images via cross-entropy, and selects deployment locations with the help of CLIP's spatiotemporal attention maps. Testing on 10 mainstream LVLMs in the Habitat and Embodied City simulation environments, the attack success rates across the three task types of visual question answering, task planning, and navigation range from 70% to 98%; on an unmanned ground vehicle equipped with a camera, the navigation task success rate exceeds 80%, with good performance still maintained under conditions such as distance, rotation, lighting, and motion blur. On the defense side, strict OCR masking most effectively reduces the attack success rate, but it also blocks the normal text needed for the tasks.

The researchers propose PPIA, a black-box, user-query-agnostic physical prompt injection attack that manipulates large vision-language models (LVLMs) by embedding printed text instructions on physical objects. The authors claim this is the first physical prompt injection attack, where the attacker needs no access to the model, input channels, or user queries, and can execute it purely through visual observation. The method first uses an LLM to generate candidate malicious prompt words, then filters them by measuring their recognizability in images via cross-entropy, and selects deployment locations with the help of CLIP's spatiotemporal attention maps. Testing on 10 mainstream LVLMs in the Habitat and Embodied City simulation environments, the attack success rates across the three task types of visual question answering, task planning, and navigation range from 70% to 98%; on an unmanned ground vehicle equipped with a camera, the navigation task success rate exceeds 80%, with good performance still maintained under conditions such as distance, rotation, lighting, and motion blur. On the defense side, strict OCR masking most effectively reduces the attack success rate, but it also blocks the normal text needed for the tasks.

Why it was selectedThe paper validates physical-world visual prompt injection on 10 LVLMs, and teams deploying multimodal perception systems can use it to assess the risks posed by environmental text.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Without touching the model or user queries, the authors use printed text in physical scenes to manipulate LVLMs.

    Without touching the model, input channels, or user queries, can printed text in the physical environment manipulate LVLMs.

    • Scenario: The authors state that LVLMs are used for scene understanding, navigation, surveillance, and embodied decision-making, and directly process raw vision. In open deployment, attackers typically lack text interfaces, and queries often come from private voice or internal states.
    • Existing gaps: Text injection requires modifying prompts, documents, or memory. Typographic visual injection places text into images, but the authors state it usually requires user queries and is not robust under physical variations. In Table I, previous methods do not simultaneously have query-agnostic, black-box, physical deployability, and task-agnostic.
    • Observation: The authors believe LVLMs treat on-screen text as instructions and are more likely to execute commands consistent with an assumed name. In Figure 1, when the name matches, all four models follow the embedded command; when it does not match, they all perform the original task; without a name, only ChatGPT and Claude follow the embedded command.
    • Method: The authors propose PPIA: offline selection of recognizable and semantically effective visual prompts, then placement on containers based on spatiotemporal attention, injected only through visual observation. The authors claim this is the first physical prompt injection attack.
    • Threat model:
      • Goal: Bias perception outputs toward specified malicious semantics, misleading downstream tasks or user decisions. Requires effectiveness, physical feasibility, and ease of deployment.
      • Knowledge: Fully black-box and non-interactive. No architecture, parameters, training data, activations, nor query text or semantics; the authors state only public information such as model or system names.
      • Capability: Can choose containers such as posters, signs, paper bags and place them in the environment. Cannot interact, issue queries, observe inputs or outputs, nor rent, reproduce, or probe devices.
      • Victim system: LVLMs that rely on visual observation for tasks like navigation and environment understanding. Default is unknown-user-query; also defines known-user-query for comparison.
  2. What related research exists?

    Related work is divided into text injection and layout-based visual injection; in Table I, only all four PPIA capabilities are marked.

    The introduction and Section II divide the discussion into application background, text injection, and visual injection; experiments additionally set attack baselines.

    LVLM Applications

    • Surveillance and Driving: The paper introduces open-vocabulary video QA, and using LVLMs for road scene description and diagnostic queries; and states that real-time constraints still limit their entry into safety-critical control loops.
    • Embodied Systems: PaLM-E [23], EmbodiedGPT [24], AlphaBlock [25], Octopus [26] are used to illustrate that vision and language can be connected to actions, subgoals, or executable actions. The paper does not compare their attack effectiveness with PPIA.

    Text Prompt Injection

    • Formalization and Benchmarks: Liu et al. [8] formalize the threat and design attacks with systematic evaluation. Zhan et al. [17]'s INJECAGENT evaluation tool integrates indirect injection on agents; Table I only marks black-box, not user-query-agnostic.
    • Optimization and Fuzzing: HouYi [10] uses iterative prompt optimization to generate injections. Yu et al. [16]'s PROMPTFUZZ does two-stage diversified generation from seed prompts. Table I marks both as query-agnostic and black-box, not physical deployability or task-agnostic.
    • Indirect Injection: Greshake et al. [11] inject prompts into potentially retrieved data to affect applications connected to LVLMs. Table I similarly only marks query-agnostic and black-box. The authors state in the introduction that digital-domain injection is impractical when attackers can only indirectly influence inputs.

    Visual and Typographic Injection

    • Text Bias: TypoD [12] and SGTA [13] study how category or instruction text in images changes predictions. Table I does not mark the last four columns for TypoD, and only marks black-box for SGTA. FigStep [15] uses typographic encoding to jailbreak LVLMs; the paper does not include it in Table I.
    • Printable Scenes: SceneTAP [14] generates text consistent with the environment's font, style, and position, and remains injectable after printing and photographing. Table I marks black-box and physical feasibility, not query-agnostic or task-agnostic.
    • Non-semantic Spurious Correlations: Web Artifact Attack [27] uses symbols or patterns from pretraining to trigger cross-model mispredictions. At the end of Section II-C, the authors state that existing methods are often task-specific, query- or model-dependent, and not robust under various physical conditions.

    Baselines and Environments

    • Attack Baselines: Simulation compares multi-image typographic attacks [37], SceneTap [38], and SGTA [13], with settings including known-user-query and unknown-user-query (Figure 5).
    • Environments: Simulation uses Embodied City [19] and Habitat [18]; physical experiments use an unmanned vehicle with a camera for NAV.

    The authors use Table I to position PPIA where visual, user-query-agnostic, black-box, physical feasibility, and task-agnostic are all marked, and state that it does not access internal models, text interfaces, or user queries.

  3. How does the paper address this problem?

    PPIA offline selects prompts by cross-entropy, then selects positions using CLIP spatiotemporal attention, without querying the target online.

    PPIA splits the attack into offline prompt selection and offline position selection, then only relies on printed containers entering the field of view. The main text describes four steps: generation, filtering, position selection, and deployment; the Figure 2 caption describes four stages but only lists the first three.

    Problem Setting and Formalization

    LVLM is written as y = fθ(x, p), i.e., visual observation x and user prompt p yield perceptual output y. After malicious text t enters the environment via a container, the observation becomes x′ = x ⊕ t, where ⊕ is visual insertion rather than pixel perturbation. The word-selection objective is maxt ∈ T 𝔼p ∼ P[L(fθ(x ⊕ t, p), y∗)], i.e., bringing the output close to the specified malicious semantics y* over the query distribution. L is a task-related objective whose specific form the paper leaves to later sections; the later ASR is not written as an instance of L. Default is unknown-user-query. Containers should be like paper signs, posters, or plastic bags.

    Malicious Prompt Generation

    • Trigger and target: No online probing under black-box. Each candidate contains at least a trigger and an attack target; the experiments use public LVLM names as triggers. The main text gives a generation template and a few examples; example sentences are not repeated here.
    • Generation method: Use an LLM for few-shot batch generation. The template examples require 100 items and include the model name and the desired action. The paper does not state the actual LLM version called in the experiments, only giving ChatGPT as an example.

    Optimal Prompt Selection

    • Virtual deployment: First fix a daily container C, print candidates onto its surface, randomly rotate and scale, then insert into random regions of environment image E, repeating each K times. The paper does not give K, nor does it state whether E is the two simulators used later.
    • Legibility: Use a pretrained multimodal model M to extract text. The paper gives Llama-3.2-11B-Vision as an example of M. Compute cross-entropy on the overlapping prefix between the extracted sequence and the original prompt, then average over K times; smaller L(Pi) means more legible. When lengths differ, compare only up to the shorter one.
    • Selection: Take the P* with the smallest cross-entropy and print it. This step does not query the deployed system.

    Optimal Position Search

    • Proxy attention: Use open-source CLIP (ViT) as a proxy for the target. Take the average of the last-layer multi-head attention, then take the final [CLS] weights over image patches, and average over time window T.
    • Constraints: Select the patch with the highest attention among reachable and allowed regions. The paper gives excluding the sky and the middle of the road as examples.
    • Rationale: The authors believe attention is spatiotemporally non-uniform, and regions the model looks at more are better for deployment.

    Success Determination

    • ASR: Over R rounds, whether the response contains the target word specified by that malicious prompt, see Eq. (9). The paper does not write any fixed word as the target word for all experiments.
    • TR: 10 volunteers rate the human legibility of text in images on a 5-point scale, with 5 being very clear and 1 being very hard to discern. It does not replace ASR.
  4. What experiments did the paper conduct?

    The authors say most simulations exceed 70%; Table II has lower cells, and Table IV's llama3.2-90b-vi is 80%.

    Experimental Setup

    • Simulation models: gpt-4o, gpt-4o-mini, gpt-4-turbo, gemini-1-pro-latest, gemini-1-pro-002, gemini-1-flash-latest, claude-3-5-sonnet-latest, claude-3-5-haiku-20241022, llama3.2-11b-vision, llama3.2-90b-vision-instruct. The paper's abbreviations are used below.
    • Physical models: The main text writes gpt-4o, gpt-4-turbo, gemini-1-fl, gemini-1-pl, claude-3-5-sl, llama3.2-90b-vi. Table IV and Table V write gemini-1-p2, not gemini-1-pl.
    • Environments and tasks: Embodied City is an outdoor urban scene, Habitat is indoor. Tasks are QA, TP, NAV. The physical platform is an unmanned vehicle with a camera; environments include offices, single-story buildings, and outdoor roads, mainly doing NAV. The default name is Nova. User queries are manually designed, over 100 items.
    • Baselines: Typographic [37], SceneTap [38], SGTA [13], including known-user-query and unknown-user-query.
    • Metrics and determination: ASR is the proportion of responses containing the target word, Eq. (9), not an LLM judge. TR is a 5-point rating by 10 volunteers. The paper does not report R for the main results, nor the number of repetitions.
    • Attack-side tools: Position search uses CLIP. Legibility measurement gives Llama-3.2-11B-Vision as an example. The LLM used for generation is only written as e.g., ChatGPT.

    Main Results

    The table below is simulation ASR (%), from Table II. Columns are Embodied City's QA, TP, NAV, and Habitat's QA, NAV. gemini-1-pl, gemini-1-fl, and all Habitat TP are not included.

    Swipe horizontally to read the table

    ModelEC QAEC TPEC NAVHab QAHab NAV
    gpt-4o9288989590
    gpt-4o-mini2092957696
    gpt-4-turbo9872989893
    claude-3-5-sl7288987586
    claude-3-5-haiku2416313229
    gemini-1-p29898989898
    llama3.2-11b-vision6452447379
    llama3.2-90b-vi9272737671
    • The authors say most cases exceed 70%, and say the limited effect is mainly in claude-3-haiku, speculating it is related to poorer visual text understanding. There are other cells below 70% in the table. The introduction writes simulation as 70%–98%, which is not fully consistent with Table II.
    • The excluded gemini-1-pl and gemini-1-fl are in Table II. In Habitat TP, claude-3-5-sl is 56, claude-3-5-haiku is 35, llama3.2-90b-vi is 64.
    • The authors say in Figure 5 PPIA has the highest ASR on three LVLMs, and no prompt transfer stronger than baselines is seen; baselines drop on unseen prompts. The main text gives no numbers for that figure, nor which three models.

    Physical Experiments and Condition Variations

    • Overall: Table IV's NAV ASR is gpt-4o 95%, gpt-4-turbo 92%, gemini-1-p2 98%, gemini-1-fl 98%, claude-3-5-sl 98%, llama3.2-90b-vi 80%. Section VI says these models exceed 80%. The introduction extends "exceeding 80%" to distance, text rotation, lighting, and motion blur; in Table V these conditions do not all exceed 80%. The physical section does not separately list text rotation; rotation numbers are in simulation Table III.
    • Lighting and containers: The authors say nighttime ASR is 55% to 97%. In Table V, nighttime llama3.2-90b-vi is 55, claude-3-5-sl is 97. On a screen container llama3.2-90b-vi is 5, on a paper bag 60. The authors say except for a few containers, attackers can switch to containers more suited to the scene.
    • Distance, viewing angle, blur: At 5 meters, gpt-4o is 36%, llama3.2-90b-vi is 5%. At a 60° viewing angle, llama3.2-90b-vi is 3%, gemini-1-p2 is 9%, claude-3-5-sl is 31%. At the blur level, gpt-4o is 30%, TR is 2. The authors say larger distance and smaller text lower ASR, and suggest larger text or placement along the route.

    Selection, Position, Language, and Defenses

    • Prompt selection: Figure 6 sorts 100 prompts by ASR in ascending order; the authors say those with higher ASR generally have lower cross-entropy. In Figure 16, the one with the lowest cross-entropy has the highest ASR, and the highest one the authors say has no effect; the main text gives no specific numbers for these three.
    • Position: The authors say high-attention regions have higher ASR (Figure 7). Figure 7 includes per-patch ASR numbers; the main text does not map attention cell by cell. The three physical points (Figure 17) have ASR 70, 82, 87, corresponding to light yellow, orange, and red boxes.
    • Language and defenses: Table VI does not state the task or environment. gpt-4-turbo English 98%, Chinese 19%, French 24%, Spanish 23%; llama3.2-90b-vi Chinese 12%. The authors say this is not a limitation of PPIA but that training data is English-dominated, and cite a survey that English often accounts for 40% to 90%, with GPT-3 at 92.7%. Figure 18 compares strict/loose prompt defenses and OCR masking; the authors say all defenses lower effectiveness, looser strategies have higher ASR, strict OCR suppresses most strongly, but removes task-required text such as road signs. The main text gives no numbers for that figure.

    Other Ablations and Analyses

    • Table III does not state the task. Embodied City, text occupying 3% of the image: gpt-4o is 8, claude-3-5-sl, gemini-1-p2, gemini-1-fl, llama3.2-90b-vi are 0; at 13%, gpt-4o is 92, gpt-4-turbo is 98.
    • Same table, 45° rotation: Embodied City's gpt-4o is 43, gpt-4-turbo is 54, claude-3-5-sl is 36; at 0° they are 92, 98, 72 respectively. The authors say it remains usable within 20°, and at 45° each model drops, recommending not rotating text.
    • Same table, 60° viewing angle: Embodied City's llama3.2-90b-vi is 5, gpt-4o is 61. In Habitat, at 3% size, gpt-4o is 38, claude-3-5-sl and llama3.2-90b-vi are 0.
    • The main text writes TR>90 when the container exceeds 5% and TR=36 at 3%; Table III's TR is on a 5-point scale, 5% corresponds to 4, 3% to 2. The table prevails.
    • Table V's TR: nighttime 3, blur level 2, 5 meters 2, 60° 3; daytime, paper bag, and 1 meter are 5.
  5. What are some points that can be further explored?

    The authors believe camera resolution and controlled environments may affect physical performance and plan to do resolution adaptation.

    Limitations and future directions noted by the authors

    • Camera resolution: Physical effects may be affected by the resolution of the camera on the unmanned vehicle; low resolution weakens the visibility of embedded prompts (Section VII).
    • Controlled environment: Physical evaluation was conducted in a relatively controlled environment, which the authors say may not fully reflect variations in more dynamic real-world scenes (Section VII).
    • Future plans: The authors plan resolution-adaptive designs and to extend evaluation to diverse, unconstrained environments (Section VII).

    Experimental coverage

    • In simulation, 10 LVLMs were tested on tasks QA, TP, and NAV, on the Embodied City and Habitat platforms (Section V, Table II). User queries were manually designed, over 100 in total.
    • Physical experiments used an unmanned vehicle with a camera, mainly for NAV. The main text lists 6 models; Table IV and Table V report gpt-4o, gpt-4-turbo, claude-3-5-sl, gemini-1-p2, gemini-1-fl, and llama3.2-90b-vi. The main text writes gemini-1-pl.
    • Comparison baselines are Typographic, SceneTap, and SGTA, including known-user-query and unknown-user-query (Figure 5). The paper does not give the names of these three LVLMs or the ASR in the figure in the main text.
    • Simulation variation factors are text size, rotation, and viewpoint (Table III, task not specified). Physical factors are lighting, container, blur, distance, and viewpoint (Table V). Languages are English, Chinese, French, and Spanish (Table VI, environment not specified). Defenses are prompt-based and OCR-based strict/loose (Figure 18); the paper does not report the ASR for that figure.
    • ASR is determined by whether the target word appears; TR is scored by 10 volunteers on a 5-level scale. The paper does not report the number of main result rounds R, virtual deployment count K, number of repetitions, or the consistency between TR and ASR. The LLM used to generate candidates is only exemplified by ChatGPT.
  6. Summarize the main content of the paper

    PPIA uses printed text for black-box query-agnostic injection; the authors claim most ASRs are high, but the table still contains low values.

    PPIA is a black-box, query-agnostic physical prompt injection targeting open-environment LVLMs. The attacker does not touch the model, text interface, or user queries, but only places everyday containers with printed text into the field of view, biasing perception outputs toward specified malicious semantics. The authors claim this is the first attack of its kind.

    • Method: An LLM generates candidates based on the model name and attack goal; after randomly placing them on containers in an environment image, cross-entropy is used to keep the more recognizable one; then CLIP's spatiotemporal attention is used to select positions in reachable and allowed areas. Success is determined by whether the response contains the target word specified by the prompt. The default model name is Nova.
    • Simulation: Embodied City and Habitat, 10 LVLMs, tasks QA, TP, NAV. The authors claim most ASRs exceed 70%, with the introduction stating 70%–98%. Table II does not all fall within this range: claude-3-5-haiku's Embodied City TP is 16%, gpt-4o-mini's Embodied City QA is 20%; gemini-1-p2's Embodied City all three are 98%. The authors speculate that haiku's low values are related to poorer visual text understanding.
    • Physical: On the unmanned vehicle NAV, Table IV shows gpt-4o at 95%, llama3.2-90b-vi at 80%, and the remaining four cells at 92% or 98%. The introduction states that under distance, rotation, lighting, and motion blur it still exceeds 80%; in Table V, at 5 meters gpt-4o is 36%, the blur setting is 30%, and on screen containers llama3.2-90b-vi is 5%.
    • Other: The authors claim that in Figure 5 PPIA is higher than the three baselines and transfers more easily across prompts, but no numbers are given. In Table VI, non-English is lower than English, with gpt-4-turbo at 19% for Chinese and 98% for English; the authors attribute this to English-dominant training data, not a limitation of PPIA. Strict OCR is described by the authors as the strongest suppression, while also removing text needed for the task.
    • Conclusion: The authors claim PPIA is low-cost, stealthy, and easy to deploy; the paper does not report query counts or time costs. The authors believe camera resolution and controlled environments may affect physical performance and plan to do resolution adaptation and extend evaluation to unconstrained scenarios.
Read originalarxiv.org