arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.09177cs.LGcs.AIcs.CL
收藏

利用多轮交互中的上下文实施越狱攻击

Leveraging the Context through Multi-Round Interactions for Jailbreaking Attacks

École Polytechnique Fédérale de Lausanne(洛桑联邦理工学院);University of Wisconsin-Madison(威斯康星大学麦迪逊分校)

Yixin Cheng, Markos Georgopoulos, Volkan Cevher, Grigorios G. Chrysos

AI总结:

本文提出 Contextual Interaction Attack,通过良性多轮问答构造与攻击查询语义对齐的上下文,在七个 LLM 上验证了其黑盒有效性与跨模型迁移能力。

摘要:

大语言模型(LLM)容易受到越狱攻击,此类攻击旨在通过巧妙修改攻击查询来提取有害信息。随着防御机制不断演进,直接获取有害信息对越狱攻击而言变得越来越具挑战性。本文受乔姆斯基转换生成语法理论以及人类利用间接上下文诱导有害信息的做法启发,聚焦于一种名为 Contextual Interaction Attack(上下文交互攻击)的新型攻击形式。我们认为,先前上下文——即攻击查询之前的信息——在实现强越狱攻击方面发挥关键作用。具体而言,我们提出了首个利用良性前置问题与 LLM 交互的多轮方法。由于 LLM 具有自回归特性,会在生成时将先前对话轮次作为上下文,我们引导模型的“问题—回答”对,构建一个在语义上与攻击查询对齐的上下文,以执行攻击。我们在七个不同的 LLM 上进行实验,证明了该攻击的有效性;它属于黑盒攻击,并且还可以在不同 LLM 之间迁移。我们相信,这将推动对 LLM 安全性的进一步发展与理解。

英文摘要:

Large Language Models (LLMs) are susceptible to Jailbreaking attacks, which aim to extract harmful information by subtly modifying the attack query. As defense mechanisms evolve, directly obtaining harmful information becomes increasingly challenging for Jailbreaking attacks. In this work, inspired from Chomsky's transformational-generative grammar theory and human practices of indirect context to elicit harmful information, we focus on a new attack form, called Contextual Interaction Attack. We contend that the prior context\u2014the information preceding the attack query\u2014plays a pivotal role in enabling strong Jailbreaking attacks. Specifically, we propose a first multi-turn approach that leverages benign preliminary questions to interact with the LLM. Due to the autoregressive nature of LLMs, which use previous conversation rounds as context during generation, we guide the model's question-response pair to construct a context that is semantically aligned with the attack query to execute the attack. We conduct experiments on seven different LLMs and demonstrate the efficacy of this attack, which is black-box and can also transfer across LLMs. We believe this can lead to further developments and understanding of security in LLMs.

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

↑