无需白盒访问,用零阶优化高效攻击多模态大模型的越狱方法。
Zer0-Jack: A Memory-efficient Gradient-based Jailbreaking Method for Black-box Multi-modal Large Language Models
- 基于零阶优化生成恶意图像输入,避免依赖白盒模型。
- 黑盒环境下对MiniGPT-4攻击成功率达95%,接近白盒效果。
- 内存占用极低,可直接攻击GPT-4o等商用模型。
越狱方法通过诱导多模态大语言模型(MLLMs)输出有害内容,引发严重安全问题。梯度类方法在白盒场景中表现优异,但需完全模型访问且内存消耗高。现有转移攻击在黑盒场景下性能下降。为此,本文提出Zer0-Jack,利用零阶优化生成恶意图像输入,实现对黑盒MLLM的直接攻击。该方法引入补丁坐标下降策略,显著降低内存开销。实验表明,Zer0-Jack在多种模型上均取得高攻击成功率,黑盒环境下对MiniGPT-4在Harmful Behaviors Multi-modal Dataset上的攻击成功率达95%,优于以往转移方法,并可与白盒技术媲美。此外,其能直接攻击GPT-4o等商业模型。代码已附于补充材料。
原文摘要 · Abstract (English)
Jailbreaking methods, which induce Multi-modal Large Language Models (MLLMs) to output harmful responses, raise significant safety concerns. Among these methods, gradient-based approaches, which use gradients to generate malicious prompts, have been widely studied due to their high success rates in white-box settings, where full access to the model is available. However, these methods have notable limitations: they require white-box access, which is not always feasible, and involve high memory usage. To address scenarios where white-box access is unavailable, attackers often resort to transfer attacks. In transfer attacks, malicious inputs generated using white-box models are applied to black-box models, but this typically results in reduced attack performance. To overcome these challenges, we propose Zer0-Jack, a method that bypasses the need for white-box access by leveraging zeroth-order optimization. We propose patch coordinate descent to efficiently generate malicious image inputs to directly attack black-box MLLMs, which significantly reduces memory usage further. Through extensive experiments, Zer0-Jack achieves a high attack success rate across various models, surpassing previous transfer-based methods and performing comparably with existing white-box jailbreak techniques. Notably, Zer0-Jack achieves a 95\% attack success rate on MiniGPT-4 with the Harmful Behaviors Multi-modal Dataset on a black-box setting, demonstrating its effectiveness. Additionally, we show that Zer0-Jack can directly attack commercial MLLMs such as GPT-4o. Codes are provided in the supplement.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。