arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.10486cs.CRcs.AIcs.CV
收藏

VLM-Guard:通过填补安全对齐差距来保护视觉语言模型

VLM-Guard: Safeguarding Vision-Language Models via Fulfilling Safety Alignment Gap

UC Davis(加利福尼亚大学戴维斯分校);USC(南加利福尼亚大学);UW-Madison(威斯康星大学麦迪逊分校)

Qin Liu, Fei Wang, Chaowei Xiao, Muhao Chen

AI总结:

本文针对多模态引入导致 VLM 安全对齐弱化的问题,提出推理时干预方法 VLM-Guard,利用其安全对齐 LLM 组件提取安全方向并正交投影 VLM 表示,在三类恶意指令设置下验证了防护效果。

摘要:

视觉语言模型(VLM)的出现带来了日益增长的安全担忧,因为多模态的加入提高了其遭受攻击的脆弱性。尽管 VLM 可以构建在具备文本安全对齐的 LLM 之上,但当视觉模态被整合进来时,这种对齐很容易受到削弱。我们将这一安全挑战归因于模态差距,即图像与文本在共享表示空间中的分离;这种分离模糊了有害查询与无害查询之间的区别,而该区别在 LLM 中十分明显,在 VLM 中却被削弱。为避免安全性衰减并填补安全对齐差距,我们提出 VLM-Guard,这是一种推理时干预策略,利用 VLM 的 LLM 组件作为监督信号,以实现 VLM 的安全对齐。VLM-Guard 将 VLM 的表示投影到与安全引导方向正交的子空间中,该方向提取自经过安全对齐的 LLM。在三种恶意指令设置上的实验结果表明,VLM-Guard 能够有效保护 VLM,并填补 VLM 与其 LLM 组件之间的安全对齐差距。

英文摘要:

The emergence of vision language models (VLMs) comes with increased safety concerns, as the incorporation of multiple modalities heightens vulnerability to attacks. Although VLMs can be built upon LLMs that have textual safety alignment, it is easily undermined when the vision modality is integrated. We attribute this safety challenge to the modality gap, a separation of image and text in the shared representation space, which blurs the distinction between harmful and harmless queries that is evident in LLMs but weakened in VLMs. To avoid safety decay and fulfill the safety alignment gap, we propose VLM-Guard, an inference-time intervention strategy that leverages the LLM component of a VLM as supervision for the safety alignment of the VLM. VLM-Guard projects the representations of VLM into the subspace that is orthogonal to the safety steering direction that is extracted from the safety-aligned LLM. Experimental results on three malicious instruction settings show the effectiveness of VLM-Guard in safeguarding VLM and fulfilling the safety alignment gap between VLM and its LLM component.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑