arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.04856cs.CLcs.AI
收藏

M2S:大语言模型红队测试中的多轮到单轮越狱

M2S: Multi-turn to Single-turn jailbreak in Red Teaming for LLMs

AIM Intelligence(AIM智能研究所);University of Seoul(首尔大学);Korea Advanced Institute of Science and Technology(韩国科学技术院);Seoul National University(首尔国立大学);Yonsei University(延世大学);Korea Institute of Science and Technology(韩国科学技术院);Kyung Hee University(庆熙大学)

Junwoo Ha, Hyunjun Kim, Sangyoon Yu, Haon Park, Ashkan Yousefpour, Yuna Park, Suhyun Kim

AI总结:

提出M2S框架,将多轮越狱对话转为单轮提示,在MHJ数据集上实现70.6%-95.9%攻击成功率,最高提升17.5个百分点,并削减超半数令牌,揭示LLM防御的上下文盲区弱点。

摘要:

我们提出了一种新颖的框架,用于将多轮对抗性“越狱”提示整合为单轮查询,从而显著减少大语言模型(LLM)对抗性测试所需的人工开销。虽然多轮人类越狱已被证明能实现高攻击成功率,但它们需要大量的人力和时间。我们的多轮到单轮(M2S)方法——连字符化(Hyphenize)、编号化(Numberize)和Python化(Pythonize)——系统地将多轮对话重新格式化为结构化的单轮提示。尽管去除了迭代的来回交互,这些提示保留并常常增强了对抗效力:在多轮人类越狱(MHJ)数据集上的广泛评估中,M2S方法在多个最先进的LLM上实现了70.6%至95.9%的攻击成功率。值得注意的是,单轮提示比原始多轮攻击的性能高出多达17.5个百分点,同时平均将令牌使用量削减了一半以上。进一步分析表明,将恶意请求嵌入编号或代码类结构中利用了“上下文盲区”,绕过了原生护栏和外部输入输出过滤器。通过将多轮对话转换为简洁的单轮提示,M2S框架为大规模红队测试提供了可扩展的工具,并揭示了当代LLM防御中的关键弱点。

英文摘要:

We introduce a novel framework for consolidating multi-turn adversarial ``jailbreak'' prompts into single-turn queries, significantly reducing the manual overhead required for adversarial testing of large language models (LLMs). While multi-turn human jailbreaks have been shown to yield high attack success rates, they demand considerable human effort and time. Our multi-turn-to-single-turn (M2S) methods -- Hyphenize, Numberize, and Pythonize -- systematically reformat multi-turn dialogues into structured single-turn prompts. Despite removing iterative back-and-forth interactions, these prompts preserve and often enhance adversarial potency: in extensive evaluations on the Multi-turn Human Jailbreak (MHJ) dataset, M2S methods achieve attack success rates from 70.6 percent to 95.9 percent across several state-of-the-art LLMs. Remarkably, the single-turn prompts outperform the original multi-turn attacks by as much as 17.5 percentage points while cutting token usage by more than half on average. Further analysis shows that embedding malicious requests in enumerated or code-like structures exploits ``contextual blindness'', bypassing both native guardrails and external input-output filters. By converting multi-turn conversations into concise single-turn prompts, the M2S framework provides a scalable tool for large-scale red teaming and reveals critical weaknesses in contemporary LLM defenses.

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

↑