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

SeqAR:使用序列自动生成角色越狱 LLMs

SeqAR: Jailbreak LLMs with Sequential Auto-Generated Characters

Shanghai University of Finance and Economics(上海财经大学);Southern University of Science and Technology(南方科技大学);Ant Group(蚂蚁集团);The Chinese University of Hong Kong(香港中文大学)

Yan Yang, Zeguan Xiao, Xin Lu, Hongru Wang, Xuetao Wei, Hailiang Huang, Guanhua Chen, Yun Chen

AI总结:

本文提出 SeqAR 框架,通过在冷启动场景下使用开源 LLMs 自动生成并优化序列越狱角色,在单次查询中绕过目标模型安全防护,对 GPT-3.5-1106 和 GPT-4 分别实现 88% 和 60% 攻击成功率,并评估了模板可迁移性与防御策略。

摘要:

大型语言模型(LLMs)的广泛应用引发了人们对其潜在滥用的担忧。尽管在发布前与人类偏好数据进行了对齐,LLMs 仍然容易受到各种恶意攻击。在本文中,我们采用红队策略来增强 LLMs 的安全性,并引入了 SeqAR,这是一个简单但有效的框架,用于自动设计越狱提示词。SeqAR 框架生成并优化多个越狱角色,然后在单个查询中应用序列越狱角色,以绕过目标 LLM 的安全防护。与之前依赖专有 LLMs 或由人类专业知识制作的种子越狱模板的工作不同,SeqAR 可以在冷启动场景下使用开源 LLMs 生成和优化越狱提示词,而无需任何种子越狱模板。实验结果表明,SeqAR 在绕过 GPT-3.5-1106 和 GPT-4 的安全对齐方面,分别实现了 88% 和 60% 的攻击成功率。此外,我们广泛评估了生成的模板在不同 LLMs 和留出恶意请求上的可迁移性,同时探索了针对由 SeqAR 设计的越狱攻击的防御策略。

英文摘要:

The widespread applications of large language models (LLMs) have brought about concerns regarding their potential misuse. Although aligned with human preference data before release, LLMs remain vulnerable to various malicious attacks. In this paper, we adopt a red-teaming strategy to enhance LLM safety and introduce SeqAR, a simple yet effective framework to design jailbreak prompts automatically. The SeqAR framework generates and optimizes multiple jailbreak characters and then applies sequential jailbreak characters in a single query to bypass the guardrails of the target LLM. Different from previous work which relies on proprietary LLMs or seed jailbreak templates crafted by human expertise, SeqAR can generate and optimize the jailbreak prompt in a cold-start scenario using open-sourced LLMs without any seed jailbreak templates. Experimental results show that SeqAR achieves attack success rates of 88% and 60% in bypassing the safety alignment of GPT-3.5-1106 and GPT-4, respectively. Furthermore, we extensively evaluate the transferability of the generated templates across different LLMs and held-out malicious requests, while also exploring defense strategies against the jailbreak attack designed by SeqAR.

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

↑