JailbreakOPT:工具辅助的迭代式越狱提示优化 JailbreakOPT: Tool-Assisted Iterative Jailbreak Prompt Optimization 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-06-09
👁️ 预览文献
💡 AI 中文简介
该研究针对大语言模型越狱攻击中手工提示静态、迭代优化查询次数多的问题,提出JailbreakOPT框架。它将多种原子越狱提示组织为攻击工具库,通过统一的回合内优化抽象组合生成更强的独立攻击提示,并用上下文汤普森采样将工具选择建模为上下文赌博机,以复用历史经验。实验表明,该方法在多个目标模型上提高了攻击成功率,同时减少了成功所需攻击次数。
领域人工智能安全 / 大语言模型对抗攻击
适合谁读需要一定专业背景(了解大语言模型、提示工程与强化学习基础)
核心贡献1. 提出工具辅助的迭代式单轮越狱提示优化框架,将原子越狱提示组织为可组合工具库,通过统一优化抽象生成更强独立攻击提示。2. 将工具选择建模为上下文赌博机,利用上下文汤普森采样跨攻击回合复用经验,平衡探索与利用。
关键数据在多个目标大语言模型和攻击目标上,相比原子单轮攻击和现有迭代优化基线,JailbreakOPT提高了攻击成功率(ASR),同时减少了成功所需攻击次数(No.A)。
推荐理由如果你关心大模型安全攻防,这篇论文用赌博机思路把越狱提示优化做得更高效,值得一读。
关键词["大语言模型安全", "越狱攻击", "提示优化", "上下文赌博机", "汤普森采样", "工具学习"]

原文摘要

查看英文原文摘要

Jailbreak attacks expose persistent safety weaknesses in large language models (LLMs), but existing stateless single-turn methods face a trade-off: hand-crafted prompts are expressive but static, while iterative prompt optimization can adapt but often relies on low-level mutations that require many target queries. We propose JailbreakOPT, a tool-assisted framework for improving iterative single-turn jailbreak prompt optimization. JailbreakOPT organizes diverse atomic jailbreak prompts into an attack tool library and composes them through a unified intra-episode optimization abstraction to generate stronger standalone attack prompts. To reuse experience across attack episodes, JailbreakOPT further frames tool selection as a contextual bandit problem and applies contextual Thompson sampling to guide exploration and exploitation based on past outcomes. Experiments across multiple target LLMs and attack goals show that JailbreakOPT improves attack success rate (ASR) while reducing the number of attacks until success (No.A) compared with atomic single-turn attacks and existing iterative optimization baselines. This paper may contain offensive or harmful content.