arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2412.03556cs.CLcs.AIcs.LG
收藏

Best-of-N 越狱

Best-of-N Jailbreaking

Speechmatics(Speechmatics公司);MATS(机器学习对齐理论与实验项目(注:MATS全称为Machine Learning Alignment Theory and Experiments,为独立研究机构,此处保留缩写并补充说明));UCL(伦敦大学学院);Stanford University(斯坦福大学);University of Oxford(牛津大学);Tangentic(Tangentic公司);Anthropic(Anthropic公司)

John Hughes, Sara Price, Aengus Lynch, Rylan Schaeffer, Fazl Barez, Sanmi Koyejo, Henry Sleight, Erik Jones, Ethan Perez, Mrinank Sharma

AI总结:

本文提出 Best-of-N (BoN) Jailbreaking 黑盒越狱算法,通过反复采样结合模态特定增强的提示变体引出有害响应,在闭源与开源模型及多模态上均取得高攻击成功率,并发现成功率随样本数呈类幂律增长。

摘要:

我们介绍了 Best-of-N (BoN) Jailbreaking,这是一种简单的黑盒算法,可跨模态对前沿 AI 系统进行越狱。BoN Jailbreaking 通过结合各种增强手段(如对文本提示进行随机打乱或大写处理)反复采样提示的变体,直到引出有害响应。我们发现,BoN Jailbreaking 在闭源语言模型上实现了很高的攻击成功率(ASR),例如在采样 10,000 个增强提示时,GPT-4o 上的 ASR 为 89%,Claude 3.5 Sonnet 上为 78%。此外,它在规避如 circuit breakers 等最先进的开源防御方面同样有效。BoN 还能无缝扩展到其他模态:它利用特定模态的增强手段,对 GPT-4o 等视觉语言模型(VLM)和 Gemini 1.5 Pro 等音频语言模型(ALM)进行越狱。当我们采样更多增强提示时,BoN 的效果会可靠提升。在所有模态中,ASR 作为样本数(N)的函数,在经验上遵循跨越多个数量级的类幂律行为。BoN Jailbreaking 还可与其他黑盒算法结合以实现更有效的攻击——将 BoN 与优化的前缀攻击相结合,ASR 可提高多达 35%。总体而言,我们的工作表明,尽管语言模型具有强大的能力,但它们对输入中看似无害的变化非常敏感,攻击者可以跨模态利用这一点。

英文摘要:

We introduce Best-of-N (BoN) Jailbreaking, a simple black-box algorithm that jailbreaks frontier AI systems across modalities. BoN Jailbreaking works by repeatedly sampling variations of a prompt with a combination of augmentations - such as random shuffling or capitalization for textual prompts - until a harmful response is elicited. We find that BoN Jailbreaking achieves high attack success rates (ASRs) on closed-source language models, such as 89% on GPT-4o and 78% on Claude 3.5 Sonnet when sampling 10,000 augmented prompts. Further, it is similarly effective at circumventing state-of-the-art open-source defenses like circuit breakers. BoN also seamlessly extends to other modalities: it jailbreaks vision language models (VLMs) such as GPT-4o and audio language models (ALMs) like Gemini 1.5 Pro, using modality-specific augmentations. BoN reliably improves when we sample more augmented prompts. Across all modalities, ASR, as a function of the number of samples (N), empirically follows power-law-like behavior for many orders of magnitude. BoN Jailbreaking can also be composed with other black-box algorithms for even more effective attacks - combining BoN with an optimized prefix attack achieves up to a 35% increase in ASR. Overall, our work indicates that, despite their capability, language models are sensitive to seemingly innocuous changes to inputs, which attackers can exploit across modalities.

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

↑