[Submitted on 24 Nov 2026]
Title: AVERT: Anomalous Value Erasure with Response Testing against Visual Prompt Injection
View PDF
HTML (experimental)
arXiv abs
Affiliations:
University of British Columbia; New York University; The Hong Kong University of Science and Technology; 中国台湾National Taiwan University; 中国台湾Academia Sinica
Code:
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 ($F_{DU}$), the harmonic mean of attacks stopped and utility retained, is 98.0-99.1 and the highest among all compared defenses on every model.
| Subjects: | Computer Vision and Pattern Recognition (cs.CV) |
| Comments: | 21 pages, 13 figures, 15 tables |
| Cite as: | arXiv:2611.33532 [cs.CV] |