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

针对多模态大语言模型的安全提示拒绝攻击

Refusing Safe Prompts for Multi-modal Large Language Models

Duke University(杜克大学)

Zedian Shao, Hongbin Liu, Yuepeng Hu, Neil Zhenqiang Gong

AI总结:

提出MLLM-Refusal攻击,通过向图像添加近乎不可察觉的优化扰动,诱导多模态大语言模型拒绝安全提示,并评估其跨模型效果与三类防御代价。

摘要:

多模态大语言模型(MLLM)已成为当今生成式AI生态系统的基石,引发了科技巨头与初创企业之间的激烈竞争。具体而言,MLLM会根据由图像和问题组成的提示生成文本响应。尽管最先进的MLLM采用安全过滤器和对齐技术来拒绝不安全提示,但在本研究中,我们提出了MLLM-Refusal,这是首个诱导模型对安全提示作出拒绝的方法。具体来说,我们的MLLM-Refusal会优化一种几乎不可察觉的拒绝扰动,并将其添加到图像中,使目标MLLM很可能拒绝包含该扰动图像和安全问题的安全提示。我们将MLLM-Refusal形式化为一个约束优化问题,并提出了一种求解算法。该方法可为MLLM模型提供商提供竞争优势,因为它可能破坏竞争对手MLLM的用户体验:当竞争对手的用户在提示中不知情地使用这些扰动图像时,会收到意外的拒绝。我们在四个数据集上对四种MLLM评估了MLLM-Refusal,结果表明它能有效促使竞争对手的MLLM拒绝安全提示,同时不影响非竞争对手的MLLM。此外,我们探索了三种潜在对策:添加高斯噪声、DiffPure和对抗训练。结果显示,尽管这些方法能够削弱MLLM-Refusal的有效性,但也会牺牲竞争对手MLLM的准确率和/或效率。代码可在https://github.com/Sadcardation/MLLM-Refusal获取。

英文摘要:

Multimodal large language models (MLLMs) have become the cornerstone of today's generative AI ecosystem, sparking intense competition among tech giants and startups. In particular, an MLLM generates a text response given a prompt consisting of an image and a question. While state-of-the-art MLLMs use safety filters and alignment techniques to refuse unsafe prompts, in this work, we introduce MLLM-Refusal, the first method that induces refusals for safe prompts. In particular, our MLLM-Refusal optimizes a nearly-imperceptible refusal perturbation and adds it to an image, causing target MLLMs to likely refuse a safe prompt containing the perturbed image and a safe question. Specifically, we formulate MLLM-Refusal as a constrained optimization problem and propose an algorithm to solve it. Our method offers competitive advantages for MLLM model providers by potentially disrupting user experiences of competing MLLMs, since competing MLLM's users will receive unexpected refusals when they unwittingly use these perturbed images in their prompts. We evaluate MLLM-Refusal on four MLLMs across four datasets, demonstrating its effectiveness in causing competing MLLMs to refuse safe prompts while not affecting non-competing MLLMs. Furthermore, we explore three potential countermeasures-adding Gaussian noise, DiffPure, and adversarial training. Our results show that though they can mitigate MLLM-Refusal's effectiveness, they also sacrifice the accuracy and/or efficiency of the competing MLLM. The code is available at https://github.com/Sadcardation/MLLM-Refusal.

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

↑