AVERT: Anomalous Value Erasure with Response Testing against Visual Prompt Injection
Newt Hue-Nam K. Nguyen, Jui-Yu Ho, Wei-Han Chen, Pin-Yen Ting, Yangqiu Song, Shang-Tse Chen, Jun-Cheng Chen
Abstract
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 (), the harmonic mean of attacks stopped and utility retained, is 98.0-99.1 and the highest among all compared defenses on every model.
Create a lesson
Metadata
- Comments
- 21 pages, 13 figures, 15 tables
Related papers
VTK-Bench: A Diagnostic Benchmark for Distinguishing Language Priors and Text Modal Bias in Visual Language Models
Shared title terminologycs.CVYao Lu, Yuhang Zheng, Yaxin Gao et al.
Read Before You Use: Improving Visual Memory Utilization in Vision-Language Models
Shared title terminologycs.CVJunseok Kim, Kyungmin Min, Kyomin Jung
Linear-Time Online Visual Geometry Transformer with Hybrid Architecture
Shared title terminologycs.CVHaoyu Kang, Pingzhi Li, Ruichen Zhang et al.
DoseSteer: Steering diffusion-based dose prediction models towards clinical targets via Dual-Response Guidance
Shared title terminologycs.CVShupeng Cheng, Jing Jia, Jincheng Wu et al.
Memory as the Backbone: A Dual-Store Associative Memory Architecture for Visual Recognition
Shared title terminologycs.CVRuizhi Wang, Xiangtao Wang, Bayar Menzat et al.
ViCARD: Visual Credit Assignment with Reward-Gated Distillation for Multimodal Reasoning
Shared title terminologycs.CVZijian Huang, Jiasi Chen