arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.02119cs.LGcs.AIcs.CLcs.CRstat.ML
收藏

Tree of Attacks:自动越狱黑盒大语言模型

Tree of Attacks: Jailbreaking Black-Box LLMs Automatically

Yale University(耶鲁大学);Robust Intelligence;Google Research(谷歌研究院)

Anay Mehrotra, Manolis Zampetakis, Paul Kassianik, Blaine Nelson, Hyrum Anderson, Yaron Singer, Amin Karbasi

AI总结:

本研究提出带剪枝的攻击树(TAP)黑盒自动化越狱方法,通过攻击者LLM迭代优化提示并剪枝低成功率候选,在仅黑盒访问下以更少查询实现对GPT4-Turbo等主流及带防护LLM超80%的越狱成功率,显著超越现有黑盒方法。

摘要:

尽管大语言模型(LLM)展现出多样的功能,但它们仍会生成有害、有偏见和有毒的内容,人工设计的越狱提示的普遍存在就证明了这一点。在本研究中,我们提出了带剪枝的攻击树(Tree of Attacks with Pruning, TAP),这是一种仅需对目标LLM具备黑盒访问权限即可生成越狱提示的自动化方法。TAP利用一个攻击者LLM迭代优化候选(攻击)提示,直到其中一个优化后的提示成功越狱目标模型。此外,在将提示发送给目标模型之前,TAP会对其进行评估,剪枝掉那些不太可能实现越狱的提示,从而减少发送给目标LLM的查询次数。在实证评估中我们观察到,针对最先进的LLM(包括GPT4-Turbo和GPT4o),TAP生成的提示的越狱成功率超过80%。这一表现显著优于此前最先进的黑盒越狱生成方法,且使用的查询次数更少。此外,TAP还能够越狱受最先进防护机制(例如LlamaGuard)保护的LLM。

英文摘要:

While Large Language Models (LLMs) display versatile functionality, they continue to generate harmful, biased, and toxic content, as demonstrated by the prevalence of human-designed jailbreaks. In this work, we present Tree of Attacks with Pruning (TAP), an automated method for generating jailbreaks that only requires black-box access to the target LLM. TAP utilizes an attacker LLM to iteratively refine candidate (attack) prompts until one of the refined prompts jailbreaks the target. In addition, before sending prompts to the target, TAP assesses them and prunes the ones unlikely to result in jailbreaks, reducing the number of queries sent to the target LLM. In empirical evaluations, we observe that TAP generates prompts that jailbreak state-of-the-art LLMs (including GPT4-Turbo and GPT4o) for more than 80% of the prompts. This significantly improves upon the previous state-of-the-art black-box methods for generating jailbreaks while using a smaller number of queries than them. Furthermore, TAP is also capable of jailbreaking LLMs protected by state-of-the-art guardrails, e.g., LlamaGuard.

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

↑