arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2310.08419cs.LGcs.AI
收藏

二十次查询内破解黑盒大语言模型

Jailbreaking Black Box Large Language Models in Twenty Queries

University of Pennsylvania(宾夕法尼亚大学)

Patrick Chao, Alexander Robey, Edgar Dobriban, Hamed Hassani, George J. Pappas, Eric Wong

AI总结:

提出PAIR算法,利用攻击者LLM自动生成语义越狱,仅需黑盒访问,少于二十次查询即可破解目标LLM,效率远超现有方法,并在多种模型上取得高成功率。

摘要:

确保大语言模型(LLM)与人类价值观对齐的兴趣日益增长。然而,这些模型的对齐容易受到对抗性越狱攻击,这种攻击会诱使LLM覆盖其安全护栏。识别这些漏洞对于理解内在弱点并防止未来滥用至关重要。为此,我们提出了提示自动迭代细化(PAIR)算法,该算法仅通过黑盒访问LLM即可生成语义越狱。PAIR——灵感来源于社会工程攻击——使用一个攻击者LLM自动为另一个目标LLM生成越狱,无需人工干预。通过这种方式,攻击者LLM迭代地查询目标LLM以更新和细化候选越狱。实验上,PAIR通常需要少于二十次查询即可产生越狱,这比现有算法效率高出几个数量级。PAIR在开源和闭源LLM(包括GPT-3.5/4、Vicuna和Gemini)上也实现了具有竞争力的越狱成功率和可迁移性。

英文摘要:

There is growing interest in ensuring that large language models (LLMs) align with human values. However, the alignment of such models is vulnerable to adversarial jailbreaks, which coax LLMs into overriding their safety guardrails. The identification of these vulnerabilities is therefore instrumental in understanding inherent weaknesses and preventing future misuse. To this end, we propose Prompt Automatic Iterative Refinement (PAIR), an algorithm that generates semantic jailbreaks with only black-box access to an LLM. PAIR -- which is inspired by social engineering attacks -- uses an attacker LLM to automatically generate jailbreaks for a separate targeted LLM without human intervention. In this way, the attacker LLM iteratively queries the target LLM to update and refine a candidate jailbreak. Empirically, PAIR often requires fewer than twenty queries to produce a jailbreak, which is orders of magnitude more efficient than existing algorithms. PAIR also achieves competitive jailbreaking success rates and transferability on open and closed-source LLMs, including GPT-3.5/4, Vicuna, and Gemini.

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

↑