微笑背后的匕首:用幸福结局故事欺骗大语言模型
Dagger Behind Smile: Fool LLMs with a Happy Ending Story
AI总结:
本文提出Happy Ending Attack(HEA),利用含幸福结局的积极场景模板包装恶意请求,最多两轮即可高效越狱多种先进LLM,平均成功率达88.79%。
摘要:
大语言模型(LLM)的广泛采用引起了越狱攻击的高度关注,在这类攻击中,通过优化或人工设计构造的对抗性提示会利用LLM生成恶意内容。然而,基于优化的攻击在效率和可迁移性方面存在局限,而现有的人工设计要么容易被检测,要么需要与LLM进行复杂交互。本文首先指出越狱攻击的一个新视角:LLM对积极提示的响应更强。基于此,我们提出Happy Ending Attack(HEA,幸福结局攻击),将恶意请求包装在一个场景模板中,该模板包含主要通过幸福结局形成的积极提示,从而欺骗LLM立即越狱,或在后续恶意请求中越狱。这使HEA既高效又有效,因为它最多只需两轮对话即可完全越狱LLM。大量实验表明,我们的HEA能够成功越狱最先进的LLM,包括GPT-4o、Llama3-70b和Gemini-pro,平均攻击成功率达到88.79%。我们还对HEA成功的原因提供了定量解释。
英文摘要:
The wide adoption of Large Language Models (LLMs) has attracted significant attention from $\textit{jailbreak}$ attacks, where adversarial prompts crafted through optimization or manual design exploit LLMs to generate malicious contents. However, optimization-based attacks have limited efficiency and transferability, while existing manual designs are either easily detectable or demand intricate interactions with LLMs. In this paper, we first point out a novel perspective for jailbreak attacks: LLMs are more responsive to $\textit{positive}$ prompts. Based on this, we deploy Happy Ending Attack (HEA) to wrap up a malicious request in a scenario template involving a positive prompt formed mainly via a $\textit{happy ending}$, it thus fools LLMs into jailbreaking either immediately or at a follow-up malicious request. This has made HEA both efficient and effective, as it requires only up to two turns to fully jailbreak LLMs. Extensive experiments show that our HEA can successfully jailbreak on state-of-the-art LLMs, including GPT-4o, Llama3-70b, Gemini-pro, and achieves 88.79% attack success rate on average. We also provide quantitative explanations for the success of HEA.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。