Scale-Induced Semantic Shift in Visual Prompt Injection Against VLMs and Web Agents

Yiheng Zhao, Runze Ji, Chenyu Yi, Yi Yu, Bingquan Shen, Alex Kot, Xudong JiangarXiv 2026 · arXiv

TL;DR

Researchers have discovered a novel security vulnerability in Vision-Language Models (VLMs) called Scale-Induced Semantic Shift (SISS), where malicious instructions hidden in high-resolution images are "revealed" only after the image is downsampled during standard preprocessing. By exploiting this scale-dependent perception, attackers can achieve a nearly 60% success rate in injecting prompts into state-of-the-art black-box models like GPT-4o and Claude 3.5.

What Problem Does This Paper Address?

As Vision-Language Models (VLMs) are increasingly integrated into web agents and document processing pipelines, they become targets for "prompt injection"—attacks where a malicious user embeds hidden text to hijack the model's behavior.

Most existing visual attacks rely on visible text (typographic prompts) or subtle adversarial noise. However, this paper identifies a more insidious gap: multimedia preprocessing. Before a VLM "sees" an image, the system often resizes, compresses, or re-renders it. The authors ask: Can an image be semantically "clean" at its presentation resolution but contain a hidden instruction that only becomes readable after it is aggressively downsampled?

This "semantic shift" across scales represents a fundamental failure of scale-invariance in modern VLMs, creating a stealthy attack vector that bypasses human inspection.

Methods

The authors developed the SISS framework, a closed-loop, black-box system designed to generate images that satisfy a strict cross-scale success criterion: the payload must be unrecoverable at $512 \times 512$ pixels but fully recoverable at $64 \times 64$ pixels.

Key components include:

  • Structure-Conditioned Generation: Using ControlNet guided by a typographic map of the target text, the system embeds instructions into high-frequency textures (like denim fabric or dense foliage) that naturally mask the text at high resolutions.
  • Shallow-Layer LoRA Adaptation: Instead of fine-tuning the whole model, they apply Low-Rank Adaptation (LoRA) only to the shallow layers of the ControlNet. This biases the generation toward local spatial structures rather than global scene changes.
  • Pixel-Space Noise Regularization: Adding Gaussian noise during training discourages the generator from creating "smooth" regions that might accidentally expose the hidden text to a human viewer.
  • Dual-Scale Verification: A surrogate model (Qwen2.5-VL) acts as a "judge" during the iterative generation process, filtering for images that successfully hide the text at high res and reveal it at low res.
Fig. 1. Overview of the SISS framework. The pipeline consists of (1) structure-conditioned generation and dual-scale verification; (2) selective self-hardening, in which strict cross-scale successes are used for shallow-layer LoRA adaptation with pixel-space noise regularization; and (3) black-box evaluation of static VLM perception and downstream agent behavior.

Datasets

The study introduces SISS-Bench, a benchmark consisting of 300 fixed evaluation cases. These are created by pairing 30 different textual payloads with 10 high-frequency scene templates.

The payloads are categorized into three semantic roles:

  1. Direct Injection: Explicit commands (e.g., "PRINT PWNED").
  2. Escape Characters: Formatting symbols meant to break the model's logic (e.g., "\n ADMIN MODE").
  3. Context Ignoring: Instructions to disregard previous system prompts (e.g., "IGNORE PREVIOUS").

Key Insights and Ideas

  • Aggressive Downsampling as a Feature Extractor: The core "aha" moment is that aggressive resizing acts as a low-pass filter that can "aggregate" subtle, high-frequency patterns into readable typographic structures. What looks like random texture in a large image becomes a coherent letter in a small one.
  • Transferability to Black-Box Models: Even though the images are optimized using a specific surrogate model (Qwen), the attack transfers remarkably well to closed-source models like GPT-4o, Claude 3.5 Sonnet, and Gemini 1.5 Flash. This suggests a commonality in how these models handle image scaling.
  • Perception vs. Action Gap: In a web-agent study, the authors found that while the models often perceived the hidden instruction, they didn't always act on it. Behavioral compromise was much lower (~4%) than perception success, highlighting that agentic behavior is governed by complex policy constraints beyond simple vision.
Representative SISS-Bench samples where text is hidden in textures like denim or shadows.

Key Results

  • High Success Rates: The third refinement round of SISS achieved a 58.75% average attack success rate (ASR) across four major VLMs, significantly outperforming baselines like QR-Monster (41.08%).
  • Resolution Sensitivity: The attack is highly dependent on the target resolution. Success drops from nearly 60% at $64 \times 64$ to just 5.6% at $336 \times 336$. This bounds the threat primarily to systems using aggressive compression.
  • Defense Effectiveness: Standard defenses like JPEG compression or blurring were ineffective. However, the authors' proposed ScaleGuard—a detector that checks for consistency across multiple downsampled "probes"—reduced non-adaptive attack success from 61.4% to 24.3%.

Limitations and Future Work

The authors acknowledge several boundaries to their findings:

  • Aggressive Scaling Required: The attack currently requires very aggressive downsampling (e.g., to $64 \times 64$) to be highly effective. Most modern VLMs are moving toward higher internal resolutions, which may naturally mitigate this specific threat.
  • Web Agent Complexity: The downstream impact on web agents was limited. Future work is needed to understand how these visual injections can more reliably trigger malicious tool-use.
  • Defense Latency: While ScaleGuard is effective, it requires multiple VLM queries per image, which may be too slow for real-time production environments.

Ultimately, this research motivates the need for scale-consistent visual-language inference, ensuring that what a model "sees" doesn't fundamentally change just because the image was resized.

Summary updated

Abstract

Visual content in multimedia systems may be resized, compressed, or re-rendered before it is interpreted by a vision-language model. We study a security failure mode in which these transformations change the machine-readable semantics of an image: a textual instruction is not recovered at a $512\times512$ presentation resolution under our evaluation protocol but becomes recoverable after aggressive downsampling. We formulate this behavior as Scale-Induced Semantic Shift (SISS) and develop a closed-loop black-box framework that combines dual-scale verification, selective self-hardening, shallow-layer low-rank adaptation, and pixel-space noise regularization. On a fixed 300-case benchmark, the third SISS refinement round obtains a $58.75\%$ average attack success rate across four closed-source vision-language models, compared with $41.08\%$ for the strongest generation baseline. A controlled sweep bounds the effect to aggressive compression: average success decreases to $17.68\%$, $6.85\%$, and $5.60\%$ at $128\times128$, $224\times224$, and $336\times336$, respectively. In a downstream web-agent study, the generated images increase hidden-instruction perception, but absolute behavioral compromise remains about $4\%$. Generic input transformations provide little protection in a separate defense protocol, whereas the proposed ScaleGuard consistency detector reduces non-adaptive success from $61.4\%$ to $24.3\%$ and one-round defense-aware success from $42.5\%$ to $15.0\%$, with no observed rejection among matched clean controls. The results characterize a bounded but reproducible semantic inconsistency in multimedia preprocessing and motivate scale-consistent visual-language inference.
BibTeX
@misc{zhao2026scale,
  author = {Yiheng Zhao and Runze Ji and Chenyu Yi and Yi Yu and Bingquan Shen and Alex Kot and Xudong Jiang},
  title = {{Scale-Induced Semantic Shift in Visual Prompt Injection Against VLMs and Web Agents}},
  year = {2026},
  eprint = {2611.16744},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.16744},
}
Figure