Vision-language models (VLMs) are increasingly deployed as generative inference services, where autoregressive decoding makes response length a key determinant of latency and computational cost. This creates an availability risk: adversarial visual inputs can prolong generation and increase serving overhead. Existing energy-latency attacks typically rely on gradients, logits, or token-level feedback, leaving open whether such risks persist when an attacker observes only the final response. We present ChronoPatch, a black-box attack that induces prolonged VLM generation requiring only the final response. It discovers visual delay anchors through response-length-guided evolutionary search, then minimizes perturbation magnitude through subspace-calibrated decision-based optimization. Across four open-source VLMs, ChronoPatch increases inference latency by 47.86%--293.34% and GPU energy consumption by 41.44%--249.70% under a 5% spatial budget. It also induces more repetitive outputs, as reflected by increased n-gram repetition ratios. On three commercial VLM APIs, ChronoPatch increases response length by 37.6%--81.5% and client-observed latency by 1.82x--2.29x under query budgets of 500 per API. These results reveal a generation-based availability risk that persists under final-response-only access and motivate generation-aware safeguards for deployed generative AI services.
Figures & tables
Figure 1: Motivating example of ChronoPatch. Localized visual perturbations induce prolonged and repetitive VLM generation under final-response-only black-box access.
Figure 2: Design overview of ChronoPatch. Phase I discovers visual delay anchors using response-length feedback. Phase II refines the anchor within a fixed spatial mask through subspace-calibrated decision-based refinement, producing a localized low-distortion adversarial image that induces longer, more repetitive responses and increases latency and energy usage.
Target Models
Attack Method
MSCOCO
ImageNet
Avg. Len
Δ L (%)
Δ T (%)
Δ E (%)
Avg. Len
Δ L (%)
Δ T (%)
Δ E (%)
BLIP-Large
JPEG
22.75
0.31%
-12.60%
-8.41%
21.90
2.29%
1.47%
3.23%
Gaussian
22.32
-1.59%
-13.31%
-8.91%
20.73
-3.18%
-3.35%
-1.05%
Verbose Images
23.41
4.26%
4.90%
5.52%
23.67
10.56%
11.43%
9.60%
VLMInferSlow
25.85
13.99%
11.49%
10.65%
26.15
22.14%
18.77%
21.51%
ChronoPatch (Ours)
29.92
47.92%
47.86%
41.44%
30.27
41.38%
40.91%
34.36%
Table 1: Main experimental results across four target VLMs on MSCOCO and ImageNet. Δ L, Δ T, and Δ E represent the percentage increase compared to benign clean-image inference. Best and second-best results are highlighted in bold and underlined , respectively.
Models
Setup
Δ L (%) ↑
N-gram Repetition Ratio (%)
rep-2↑
rep-3↑
rep-4↑
BLIP
Clean
+47.92%
0.21
0.08
0.01
Adv
4.72
3.37
2.58
LLaVA
Clean
+45.21%
6.49
1.21
0.42
Adv
14.67
5.84
2.93
Qwen3-VL
Clean
+110.68%
8.69
1.50
0.39
Table 2: Generated-length increase and n -gram repetition ratios on MSCOCO. Higher rep-4 indicates more severe repetition.
Figure 3: Visual comparison of clean images (top) and their corresponding adversarial images (bottom).
Method Variants
ASR (%) ↑
Avg. Length ↑
Avg. Queries ↓
Full Method (Ours)
95.8
938.13
961.22
w/o Texture Archive
75.13
743.33
1298.33
w/o Annealed Mutation
78.49
759.29
1139.36
w/o Center-biased Init.
75.56
739.46
1336.29
Table 3: Ablation study of the Phase I delay-anchor discovery components on MSCOCO 2017 with Qwen3-VL.
Method
Models
Query 100
Query 500
Query 1000
Standard HSJA
BLIP
27.04
23.13
21.15
LLaVA
28.19
24.40
20.61
Qwen3-VL
27.45
25.13
25.07
InternVL3
26.73
22.98
22.15
Perturbation Refinement (Ours)
BLIP
21.69
13.22
8.51
LLaVA
20.11
14.92
9.67
Table 4: Comparison of the ℓ2 perturbation norm at specific query intervals between Standard HSJA and our perturbation refinement method under spatial constraints.
Figure 4: Effect of spatial budget on Qwen3-VL. Bars show relative response-length increase ( ΔL ), while the line shows the masked ℓ2 perturbation norm.
Model
Final ΔL (%)
Avg. Qbreak ( ↓ )
ASR@500
Qwen3-VL-2B
+182.79%
311.89
92.32%
Qwen3-VL-4B
+171.55%
461.22
82.41%
Qwen3-VL-8B
+132.53%
793.89
68.59%
Qwen3-VL-32B
+110.12%
1092.71
35.60%
Table 5: Effect of model scale across Qwen3-VL variants. Qbreak denotes the average queries required to reach the generation budget G , while ASR@500 denotes the success rate at 500 queries.
Commercial API
Query Budget
ΔL (%)
ΔT ( × )
ChatGPT-5
≤500
81.5%
2.25 ×
Gemini-3.1-Pro-Preview
≤500
42.4%
1.82 ×
Claude-Sonnet-4-6
≤500
37.6%
2.29 ×
Table 6: Evaluation on closed-source commercial APIs under Qtotal≤500 queries per API. ΔL and ΔT denote relative increases in response length and client-observed end-to-end latency.
Adversarial attacks on vision-language models exploit images, text, and multimodal interactions to manipulate outputs, bypass safety, or degrade reliability.
Gradient-based transferable adversarial attacks achieve state-of-the-art attack success rates against black-box vision-language models (VLMs). However, they require hundreds of costly optimization steps for each image pair. One possible reason is that these attacks typically start from random perturbations that contain no information about the source or target image. In this work, we study whether amortized adversarial generation can provide better initializations for gradient-based attacks. By learning across many image pairs, amortization allows a generator to produce adversarial perturbations for new inputs without optimizing each perturbation from scratch. We introduce SPARK, a lightweight looped perturbation generator conditioned on both the source and target images. SPARK repeatedly applies the same network to refine a perturbation, producing effective adversarial attacks in a few forward passes without requiring gradients through surrogate vision encoders at inference time. We show that these perturbations provide effective warm starts for existing gradient-based attacks, substantially improving attack success rates while reducing the number of optimization steps required. These improvements generalize across different attack methods, VLMs, and unseen image categories. SPARK also produces effective standalone attacks at a fraction of the computational cost of gradient-based optimization. Code and model weights are available at https://github.com/Patchwork53/SPARK.
Haz Sameen Shahgir, Ali Asif Khan, K. M. Mehemud Azad +15
Vision Language Models (VLMs) are vulnerable to visual prompt injection, in which an adversarially perturbed image forces the model to respond with the attacker's chosen content, such as malicious tool calls, website links, or advertisements, sometimes regardless of the user's question. Existing defenses, such as diffusion-based purification and image-token masking, mitigate these attacks at a substantial cost to the model's utility on benign inputs. To address this challenge, we propose AVERT, which removes adversarial feature directions only when the model's answer depends on them. Our key procedures involve identifying anomalous value subspaces and detecting answer dependence. To identify the anomalous value subspace, we compare the statistics of each input's attention-head outputs with those of clean images and extract the directions along which the input deviates the most. We then project out these directions to remove the injected content. Because the same directions also carry benign visual information, we apply the removal only to answers that depend on them, namely answers whose likelihood collapses once the directions are removed or that are as likely under unrelated questions as under the user's question. Against white-box attacks on four VLMs (Qwen2-VL, Qwen2.5-VL, LLaVA, InternVL2.5) and four injection benchmarks, AVERT lowers average attack success from 86-90% to at most 0.6% while retaining at least 96% of undefended utility averaged over thirteen benchmarks. Its defense-utility F-score (FDU), the harmonic mean of attacks stopped and utility retained, is 98.0-99.1 and the highest among all compared defenses on every model.
Newt Hue-Nam K. Nguyen, Jui-Yu Ho, Wei-Han Chen +4
The Hong Kong University of Science and Technology · National Taiwan University · University of British Columbia +2
Resource-exhaustion attacks against autoregressive vision-language models (VLMs) typically assume unimodal threat models, treating the image branch as the primary optimization surface while holding user-visible prompts fixed. Even recent loop-centric variants remain confined to this single-channel paradigm, leaving the exploitation of availability unexplored as a cross-modal optimization problem over jointly controllable input surfaces. We introduce Joint Pixel-Prompt Optimization (JPPO), the first compound adversarial framework elevating the visible prompt to a first-class adversarial variable alongside image perturbations. Under a restricted joint-input threat model, JPPO performs coupled, stagewise optimization over both the pixel and prompt surfaces. This produces synergistic cost amplification, mechanistically distinct from loop-dependent failures, exhibiting negligible loop incidence in our experiments. Evaluating five open-source VLM families on MS COCO and ImageNet under an 8/255 infinity-norm budget, JPPO achieves over 4.6x latency and 5.3x energy amplification on Qwen2.5-VL-7B, and over 36.6x latency with 32.7x energy amplification on BLIP-2. This represents the strongest cost amplification among directly compared baselines while requiring substantially fewer optimization iterations. Ablations confirm this amplification arises from multimodal coordination rather than prompt length or isolated modalities. These findings reveal structural blind spots in current VLM serving defenses, motivating cost-aware robustness evaluation as a first-class security requirement for multimodal deployments.
Zhaoxiong Ni, Yatie Xiao, Chi-Man Pun +3
Guangzhou University School of Computer Science and Cyber Engineering Guangzhou, China · University of Macau Department of Computer and Information Science Macau, China · Guangzhou University School of Artificial Intelligence Guangzhou, China +1