Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Unraveling and Mitigating Safety Alignment Degradation of Vision-Language Models

About

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.

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

Related benchmarks

TaskDatasetResultRank
Jailbreak AttackHADES
Attack Success Rate71.4
59
Jailbreak Attack DefenseMM-SafetyBench
Attack Success Rate (ASR)11.2
56
Jailbreak AttackRedTeam 2K
ASR47.5
52
Jailbreak DefenseHADES
ASR10.8
24
Safety EvaluationVLSafe Orig.
Unsafe Rate0.79
19
Safety EvaluationJailbreakLLMs Orig.
Unsafe Rate1.14
19
Jailbreak Attack Success EvaluationRedTeam2K SD+TYPO
Attack Success Rate (ASR)51
18
Jailbreak Attack Success EvaluationHADES SD+TYPO
Attack Success Rate (ASR)5.4
18
Jailbreak Attack Success EvaluationHADES SD
ASR5.7
18
Jailbreak Attack Success EvaluationMM-SafetyBench SD
ASR49.2
18
Showing 10 of 18 rows

Other info

Follow for update