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

BlueSuffix:针对越狱攻击的视觉语言模型强化蓝队防御

BlueSuffix: Reinforced Blue Teaming for Vision-Language Models Against Jailbreak Attacks

Fudan University(复旦大学);City University of Hong Kong(香港城市大学);Singapore Management University(新加坡管理大学)

Yunhan Zhao, Xiang Zheng, Lin Luo, Yige Li, Xingjun Ma, Yu-Gang Jiang

AI总结:

针对现有VLMs黑盒防御未充分利用跨模态信息或降低良性性能的问题,提出含视觉/文本净化器及强化微调后缀生成器的BlueSuffix方法,在4个VLMs和4个基准上显著优于基线,为VLMs越狱防御提供新方向。

摘要:

本文聚焦于视觉语言模型(VLMs)针对越狱攻击的黑盒防御。现有黑盒防御方法分为单模态和双模态两类:单模态方法增强VLM的视觉或语言模块,双模态方法通过文本-图像表示对齐提升模型鲁棒性。但这些方法存在两个局限:1)未能充分利用跨模态信息;2)降低模型在良性输入上的性能。为解决这些问题,我们提出一种新型蓝队方法BlueSuffix,在黑盒设置下防御目标VLMs免受越狱攻击且不影响其性能。BlueSuffix包含三个关键组件:1)针对越狱图像的视觉净化器;2)针对越狱文本的文本净化器;3)通过强化微调增强跨模态鲁棒性的蓝队后缀生成器。我们在4个VLMs(LLaVA、MiniGPT-4、InstructionBLIP和Gemini)和4个安全基准(Harmful Instruction、AdvBench、MM-SafetyBench和RedTeam-2K)上进行实证研究,结果表明BlueSuffix显著优于基线防御方法。我们的BlueSuffix为防御VLMs免受越狱攻击开辟了新方向。代码可在https://github.com/Vinsonzyh/BlueSuffix获取。

英文摘要:

In this paper, we focus on black-box defense for VLMs against jailbreak attacks. Existing black-box defense methods are either unimodal or bimodal. Unimodal methods enhance either the vision or language module of the VLM, while bimodal methods robustify the model through text-image representation realignment. However, these methods suffer from two limitations: 1) they fail to fully exploit the cross-modal information, or 2) they degrade the model performance on benign inputs. To address these limitations, we propose a novel blue-team method BlueSuffix that defends target VLMs against jailbreak attacks without compromising its performance under black-box setting. BlueSuffix includes three key components: 1) a visual purifier against jailbreak images, 2) a textual purifier against jailbreak texts, and 3) a blue-team suffix generator using reinforcement fine-tuning for enhancing cross-modal robustness. We empirically show on four VLMs (LLaVA, MiniGPT-4, InstructionBLIP, and Gemini) and four safety benchmarks (Harmful Instruction, AdvBench, MM-SafetyBench, and RedTeam-2K) that BlueSuffix outperforms the baseline defenses by a significant margin. Our BlueSuffix opens up a promising direction for defending VLMs against jailbreak attacks. Code is available at https://github.com/Vinsonzyh/BlueSuffix.

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

↑