arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.21082cs.CLcs.AIcs.CR
收藏

可扩展的层次注意力Transformer用于长对话中的多轮越狱检测

Scalable Hierarchical Attention Transformers for Multi-Turn Jailbreak Detection in Long Conversations

Zscaler, Inc.(Zscaler公司)

Chenhui Hu, Muhammed Salih, Sudipto Guha, Subramanian Srinivasan

AI总结:

提出一种层次化检测器,通过紧凑的轮次表示和轻量级对话模块捕捉跨轮推理,在14,038条对话上F1达0.9394,超越Claude Opus 4.7,误报率减半。

摘要:

多轮越狱可以通过逐步升级、重新框架和角色操纵,将不安全意图分散在对话中,从而规避轮次级别的审核。我们将多轮越狱检测视为对话级别的分类问题,并引入一种高效的层次化检测器,避免了昂贵的长上下文拼接,同时保留了跨轮推理。该模型对单个轮次进行编码以形成紧凑的轮次表示,并应用轻量级对话模块来捕捉对话动态,并在需要时选择性地关注细粒度证据。在包含14,038条对话的具有挑战性的评估基准上,我们的方法实现了0.9394的F1分数,比最强的竞争基线Claude Opus 4.7高出0.07,同时误报率减半。消融研究证实,每个架构组件都有意义地贡献,其中在对话模块中结合交叉注意力和自注意力,相比仅自注意力的变体,误报率降低了2.26个百分点。

英文摘要:

Multi-turn jailbreaks can evade turn-level moderation by spreading unsafe intent across a dialogue through gradual escalation, reframing, and role manipulation. We address multi-turn jailbreak detection as a conversation-level classification problem and introduce an efficient hierarchical detector that avoids expensive long-context concatenation while retaining cross-turn reasoning. The model encodes individual turns to form compact turn representations and applies a lightweight conversation module that captures dialogue dynamics and selectively attends to fine-grained evidence when needed. On a challenging evaluation benchmark of 14,038 conversations, our approach achieves an F1 of 0.9394, outperforming Claude Opus 4.7, the strongest competing baseline, by 0.07 while halving its false-positive rate. Ablation studies confirm that each architectural component contributes meaningfully, with combining cross-attention and self-attention in the conversation module yielding a 2.26 percentage point reduction in false-positive rate over the self-attention-only variant.

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

↑