MLLM-Protector:在不损害性能的前提下确保多模态大语言模型的安全
MLLM-Protector: Ensuring MLLM's Safety without Hurting Performance
AI总结:
针对多模态大语言模型易受恶意视觉输入攻击且安全微调易遗忘原有能力的问题,本文提出即插即用的MLLM-Protector,通过有害检测器和解毒器在保持性能的同时消除有害响应。
摘要:
多模态大语言模型(MLLMs)的部署带来了一个独特的脆弱性:容易受到通过视觉输入发起的恶意攻击。本文研究了防御MLLMs免受此类攻击的新挑战。与大型语言模型(LLMs)相比,MLLMs包含额外的图像模态。我们发现图像充当了一种在安全对齐过程中未被考虑的“外语”,使得MLLMs更容易产生有害响应。不幸的是,与基于文本的LLMs中考虑的离散token不同,图像信号的连续特性带来了显著的对齐挑战,这使得难以彻底覆盖所有可能的场景。这一脆弱性还因以下事实而加剧:大多数最先进的MLLMs是在有限的图像-文本对上微调的,这些数据对远少于广泛的基于文本的预训练语料库,这使得MLLMs在安全微调期间更容易灾难性地遗忘其原始能力。为了应对这些挑战,我们提出了MLLM-Protector,一种即插即用的策略,解决两个子任务:1)通过轻量级有害内容检测器识别有害响应,以及2)通过解毒器将有害响应转化为无害响应。该方法在不损害MLLMs原始性能的前提下,有效减轻了恶意视觉输入带来的风险。我们的结果表明,MLLM-Protector为MLLM安全中一个此前未被解决的方面提供了稳健的解决方案。
英文摘要:
The deployment of multimodal large language models (MLLMs) has brought forth a unique vulnerability: susceptibility to malicious attacks through visual inputs. This paper investigates the novel challenge of defending MLLMs against such attacks. Compared to large language models (LLMs), MLLMs include an additional image modality. We discover that images act as a ``foreign language" that is not considered during safety alignment, making MLLMs more prone to producing harmful responses. Unfortunately, unlike the discrete tokens considered in text-based LLMs, the continuous nature of image signals presents significant alignment challenges, which poses difficulty to thoroughly cover all possible scenarios. This vulnerability is exacerbated by the fact that most state-of-the-art MLLMs are fine-tuned on limited image-text pairs that are much fewer than the extensive text-based pretraining corpus, which makes the MLLMs more prone to catastrophic forgetting of their original abilities during safety fine-tuning. To tackle these challenges, we introduce MLLM-Protector, a plug-and-play strategy that solves two subtasks: 1) identifying harmful responses via a lightweight harm detector, and 2) transforming harmful responses into harmless ones via a detoxifier. This approach effectively mitigates the risks posed by malicious visual inputs without compromising the original performance of MLLMs. Our results demonstrate that MLLM-Protector offers a robust solution to a previously unaddressed aspect of MLLM security.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。