arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.09047cs.CLcs.AIcs.LG
收藏

揭示并缓解视觉语言模型的安全对齐退化

Unraveling and Mitigating Safety Alignment Degradation of Vision-Language Models

University of California, Davis(加利福尼亚大学戴维斯分校);AWS AI Labs(亚马逊云科技人工智能实验室)

Qin Liu, Chao Shang, Ling Liu, Nikolaos Pappas, Jie Ma, Neha Anna John, Srikanth Doss, Lluis Marquez, Miguel Ballesteros, Yassine Benajiba

AI总结:

研究视觉语言模型因引入视觉模态导致的安全对齐退化问题,提出推理时干预方法CMRM,无需额外训练即可将LLaVA-7B不安全率从61.53%降至3.15%,同时保持模型功能。

摘要:

与LLM主干相比,视觉语言模型(VLMs)的安全对齐能力容易因视觉模块的整合而退化。我们研究了这一现象,在本文中称为“安全对齐退化”,并表明该挑战源于将视觉模态引入VLMs时出现的表示差距。具体而言,我们表明多模态输入的表示偏离了纯文本输入的表示,而纯文本输入代表了LLM主干所优化的分布。同时,最初在文本嵌入空间中开发的安全对齐能力并未成功转移到这个新的多模态表示空间。为了减少安全对齐退化,我们引入了跨模态表示操纵(CMRM),这是一种推理时表示干预方法,用于恢复VLMs的LLM主干中固有的安全对齐能力,同时保留VLMs的功能能力。实证结果表明,我们的框架显著恢复了从LLM主干继承的对齐能力,即使无需额外训练,对预训练VLMs的流畅性和语言能力的影响也最小。具体而言,LLaVA-7B在多模态输入上的不安全率可以从61.53%降至仅3.15%,仅需推理时干预。警告:本文包含有毒或有害语言的示例。

英文摘要:

The safety alignment ability of Vision-Language Models (VLMs) is prone to be degraded by the integration of the vision module compared to its LLM backbone. We investigate this phenomenon, dubbed as ''safety alignment degradation'' in this paper, and show that the challenge arises from the representation gap that emerges when introducing vision modality to VLMs. In particular, we show that the representations of multi-modal inputs shift away from that of text-only inputs which represent the distribution that the LLM backbone is optimized for. At the same time, the safety alignment capabilities, initially developed within the textual embedding space, do not successfully transfer to this new multi-modal representation space. To reduce safety alignment degradation, we introduce Cross-Modality Representation Manipulation (CMRM), an inference time representation intervention method for recovering the safety alignment ability that is inherent in the LLM backbone of VLMs, while simultaneously preserving the functional capabilities of VLMs. The empirical results show that our framework significantly recovers the alignment ability that is inherited from the LLM backbone with minimal impact on the fluency and linguistic capabilities of pre-trained VLMs even without additional training. Specifically, the unsafe rate of LLaVA-7B on multi-modal input can be reduced from 61.53% to as low as 3.15% with only inference-time intervention. WARNING: This paper contains examples of toxic or harmful language.

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

↑