AVERT:按答案依赖关系擦除异常值方向,防御视觉提示注入
AVERT: Anomalous Value Erasure with Response Testing against Visual Prompt Injection
AVERT 通过比对输入与干净图像的注意力头输出统计量定位异常值子空间,仅在模型答案依赖这些方向时将其投影剔除,从而防御视觉提示注入。在 Qwen2-VL、Qwen2.5-VL、LLaVA、InternVL2.5 四款 VLM 与四个注入基准的白盒攻击下,平均攻击成功率从 86-90% 降至最高 0.6%,并在十三个基准上保留至少 96% 的原始效用。
arXiv:2611.33532v1 Announce Type: new 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.
来源:arXiv (AI + Vision + Imaging) · arxiv.org