arXiv cs.AI· Zhihua Wei, Qiang Li, Jian Ruan, Zhenxin Qin, Leilei Wen, Dongrui Liu, Wen Shen·· 12 小时前AI 评分38
通过越狱相关表征偏移理解与防御 VLM 越狱
Understanding and Defending VLM Jailbreaks via Jailbreak-Related Representation Shift
AI 导读
研究提出用“越狱相关偏移”(JRS)解释视觉语言模型越狱:模型在表征空间能区分良性输入与有害输入,越狱样本也形成可分离的内部状态,说明越狱并非识别失败,而是视觉模态将表征推向特定越狱状态、未能触发拒绝。基于此提出推理时移除该偏移的防御方法 JRS-Rem,在多个场景下提供强防御且保持良性任务性能,代码已公开。
正文 · 原文
Abstract:Large vision-language models (VLMs) often exhibit weakened safety alignment with the integration of the visual modality. Even when text prompts contain explicit harmful intent, adding an image can substantially increase jailbreak success rates. In this paper, we observe that VLMs can clearly distinguish benign inputs from harmful ones in their representation space. Moreover, even among harmful inputs, jailbreak samples form a distinct internal state that is separable from refusal samples. These observations suggest that jailbreaks do not arise from a failure to recognize harmful intent. Instead, the visual modality shifts representations toward a specific jailbreak state, thereby leading to a failure to trigger refusal. To quantify this transition, we identify a jailbreak direction and define the jailbreak-related shift as the component of the image-induced representation shift along this direction. Our analysis shows that the jailbreak-related shift reliably characterizes jailbreak behavior, providing a unified explanation for diverse jailbreak scenarios. Finally, we propose a defense method that enhances VLM safety by removing the jailbreak-related shift (JRS-Rem) at inference time. Experiments show that JRS-Rem provides strong defense across multiple scenarios while preserving performance on benign tasks. Code is available at this https URL.
| Subjects: | Computer Vision and Pattern Recognition (cs.CV); Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2603.17372 [cs.CV] |
| (or arXiv:2603.17372v2 [cs.CV] for this version) | |
| https://doi.org/10.48550/arXiv.2603.17372 arXiv-issued DOI via DataCite |
Submission history
From: Qiang Li [view email]
[v1]
Wed, 18 Mar 2026 05:31:29 UTC (2,294 KB)
[v2]
Thu, 15 Oct 2026 09:57:58 UTC (2,045 KB)
来源:arXiv cs.AI · arxiv.org