改进方法而非提示:针对大语言模型的进化式 jailbreak 攻击合成
Evolve the Method, Not the Prompts: Evolutionary Synthesis of Jailbreak Attacks on LLMs
AI总结:
本文提出 EvoSynth 框架,通过在代码空间中进行搜索,而非仅在提示空间中优化,从而提高对大语言模型的 jailbreak 攻击成功率和多样性。
摘要:
针对大语言模型(LLM)的自动化红队框架日益复杂,但许多仍主要在提示空间中优化攻击。换句话说,这些方法主要搜索更好的攻击用语或策略选择,但不搜索可执行代码。通过将搜索移至代码空间,我们不仅能优化最终的攻击提示,还能优化生成它的过程,包括执行流程、可重用逻辑、分支和失败驱动的修复。为克服这一差距,我们引入了 EvoSynth,一个自主的多代理框架,将优化空间从提示转移到可执行代码。与直接优化提示不同,EvoSynth 使用多代理系统自主设计、进化和执行基于代码的攻击算法。关键在于其代码级自我纠正循环,使其能够根据目标模型反馈和失败尝试迭代重写基于代码的算法。通过广泛实验,我们证明 EvoSynth 在高度稳健的模型如 Claude-Sonnet-4.5 上实现了 85.5% 的攻击成功率(ASR),并在评估目标上平均达到 95.9% 的 ASR,同时生成的攻击比现有方法更具多样性。我们发布该框架以促进未来在可执行代码空间中进化合成的研究。
英文摘要:
Automated red teaming frameworks for Large Language Models (LLMs) have become increasingly sophisticated, yet many still formulate attack optimization primarily in the prompt space. In other words, these methods mainly search for better attack wording or better strategy choices, but they do not search over executable code. By moving the search into code space, we can optimize not only the final attack prompt, but also the procedure that generates it, including execution flow, reusable logic, branching, and failure-driven repair. To overcome this gap, we introduce EvoSynth, an autonomous multi-agent framework that shifts the optimization space from prompts to executable code. Instead of refining prompts directly, EvoSynth employs a multi-agent system to autonomously engineer, evolve, and execute code-based attack algorithms. Crucially, it features a code-level self-correction loop, allowing it to iteratively rewrite the code-based algorithm in response to target-model feedback and failed attempts. Through extensive experiments, we demonstrate that EvoSynth achieves an 85.5\% Attack Success Rate (ASR) against highly robust models like Claude-Sonnet-4.5 and a 95.9\% average ASR across evaluated targets, while generating attacks that are significantly more diverse than those from existing methods. We release our framework to facilitate future research on evolutionary synthesis in executable code space.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。