arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.07761cs.AIcs.LG
收藏

TROJail: 多轮对话中针对大语言模型的多轮攻击优化

TROJail: Trajectory-Level Optimization for Multi-Turn Large Language Model Jailbreaks with Process Rewards

University of Science and Technology of China(中国科学技术大学);National University of Singapore(新加坡国立大学);Meta AI

Xiqiao Xiong, Ouxiang Li, Zhuo Liu, Moxin Li, Wentao Shi, Fengbin Zhu, Qifan Wang, Fuli Feng

AI总结:

本文提出TROJail,通过多轮强化学习优化攻击策略,引入过程奖励提升攻击成功率,实验显示在多个模型和基准上效果显著。

摘要:

大语言模型广泛应用,但面临多轮攻击威胁,影响安全部署。本文将任务建模为多轮强化学习问题,直接优化最终回复的有害性作为奖励。为解决稀疏监督问题,引入TROJail,通过两个过程奖励评估中间提示的效用并整合到优势估计中。这些奖励惩罚触发模型拒绝机制的过度有害提示,并鼓励响应的语义相关性向目标有害内容倾斜。实验结果表明在多个模型和基准上攻击成功率提升,凸显方法有效性。代码见https://github.com/xxiqiao/TROJail。警告:本文包含有害内容示例。

英文摘要:

Large language models have seen widespread adoption, yet they remain vulnerable to multi-turn jailbreak attacks, threatening their safe deployment. This has led to the task of training automated multi-turn attackers to probe model safety vulnerabilities. However, existing approaches typically rely on turn-level optimization, which is insufficient for learning long-term attack strategies. To bridge this gap, we formulate this task as a multi-turn reinforcement learning problem, directly optimizing the harmfulness of the final-turn response as the outcome reward. To address the sparse supervision of the outcome reward, we introduce TROJail, which employs two process rewards to evaluate the utility of intermediate prompts and integrate them into advantage estimation. These rewards (1) penalize overly harmful prompts that trigger the model's refusal mechanism, and (2) encourage steering the semantic relevance of responses toward the targeted harmful content. Experimental results show improved attack success rates across multiple models and benchmarks, highlighting the effectiveness of our approach. The code is available at https://github.com/xxiqiao/TROJail. Warning: This paper contains examples of harmful content.

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

↑