arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.07559cs.LGcs.AI
收藏

Zer0-Jack: 一种内存高效的基于梯度的对抗方法用于黑盒多模态大语言模型

Zer0-Jack: A Memory-efficient Gradient-based Jailbreaking Method for Black-box Multi-modal Large Language Models

Arizona State University(亚利桑那州立大学);University of Maryland(马里兰大学)

Tiejin Chen, Kaishen Wang, Hua Wei

AI总结:

Zer0-Jack通过零阶优化实现高效黑盒对抗,显著降低内存使用并提升攻击成功率。

摘要:

针对诱导多模态大语言模型(MLLMs)生成有害响应的对抗方法,引发了重大安全问题。在这些方法中,基于梯度的方法利用梯度生成恶意提示,由于在白盒设置中(即完全访问模型)具有较高的成功率,因此已被广泛研究。然而,这些方法有显著的局限性:它们需要白盒访问,这并不总是可行的,且涉及高内存使用。为了解决白盒访问不可用的情况,攻击者通常转而使用转移攻击。在转移攻击中,使用白盒模型生成的恶意输入应用于黑盒模型,但通常会导致攻击性能下降。为克服这些挑战,我们提出Zer0-Jack,一种通过利用零阶优化来绕过白盒访问需求的方法。我们提出了补丁坐标下降法,以高效生成恶意图像输入,直接攻击黑盒MLLMs,从而进一步减少内存使用。通过广泛的实验,Zer0-Jack在各种模型上实现了高攻击成功率,超越了先前的转移方法,并与现有白盒对抗技术表现相当。值得注意的是,Zer0-Jack在Harmful Behaviors Multi-modal Dataset上对MiniGPT-4实现了95%的攻击成功率,展示了其有效性。此外,我们还表明,Zer0-Jack可以直接攻击商业MLLMs,如GPT-4o。代码在补充中提供。

英文摘要:

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.

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

↑