TRAP:树引导的强化增强探测用于自动化大语言模型越狱
TRAP: Tree-Guided Reinforcement-Augmented Probing for Automated LLM Jailbreaking
AI总结:
本研究提出TRAP框架,通过树结构组织越狱策略并结合强化学习与检索增强技术,在7个对齐LLMs的AdvBench测试中,于6个模型上实现优于同类方法的攻击成功率,为发现LLM越狱漏洞提供了层级策略学习的有效途径。
摘要:
对齐后的大语言模型(LLMs)仍易受到规避其安全护栏的越狱提示攻击,识别此类漏洞对于理解和缓解模型弱点至关重要。现有自动化越狱方法会探索提示候选或复用攻击经验,但通常不会在连接相关越狱策略(如角色扮演、编码、混淆)的持久层级上学习,这导致可复用策略间的关系未被充分用于指导自适应攻击选择。本文提出树引导的强化增强探测(TRAP),这是一种仅需目标LLM的黑盒访问权限的自动化越狱策略发现层级框架。TRAP将已建立的越狱方法和成功攻击模板组织成语义策略树,将广泛的攻击方法与具体可复用策略相连。基于树结构梯度老虎机的强化学习策略会探索该树,并利用评估器反馈更新所选路径上的策略偏好;该策略会在不同攻击目标间保留这些偏好,使早期尝试的经验能指导后续策略选择。检索增强的提示构建会利用相关成功示例,将所选策略转化为当前目标的攻击。在AdvBench数据集上对7个对齐后的LLMs开展的实验显示,在报告的方法设置和通用主评估器下,TRAP在6个模型上的表现优于同类方法,在这些模型上实现了45.6%至97.9%的攻击成功率。这些发现表明,层级策略学习是发现对齐后LLMs越狱漏洞的有效方法。
英文摘要:
Aligned large language models (LLMs) remain vulnerable to jailbreak prompts that circumvent their safety guardrails, making the identification of these vulnerabilities important for understanding and mitigating model weaknesses. Existing automated jailbreak methods explore prompt candidates or reuse attack experience, but generally do not learn over a persistent hierarchy that connects related jailbreak strategies, such as role-play, encoding, and obfuscation. This leaves the relationships among reusable strategies underused in guiding adaptive attack selection. We present Tree-Guided Reinforcement-Augmented Probing (TRAP), a hierarchical framework for automated jailbreak strategy discovery that requires only black-box access to the target LLM. TRAP organizes established jailbreak methods and successful attack templates into a semantic strategy tree, connecting broad attack approaches to concrete, reusable strategies. A reinforcement-learning policy based on a tree-structured gradient bandit explores this tree and uses evaluator feedback to update strategy preferences along each selected path. The policy retains these preferences across attack objectives, allowing experience from earlier attempts to guide subsequent strategy selection. Retrieval-augmented prompt construction translates the selected strategy into an attack for the current objective using relevant successful examples. Experiments on AdvBench across seven aligned LLMs show that TRAP outperforms its counterparts on six models under the reported method settings and the common primary evaluator, achieving attack success rates of 45.6% to 97.9% on these models. These findings support hierarchical strategy learning as an effective approach to discovering jailbreak vulnerabilities in aligned LLMs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。