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

Chenhui Hu, Muhammed Salih, Sudipto Guha, Subramanian Srinivasan
6/19/2026
cs.CLcs.AIcs.CR
transformer-attention

No confident code implementation found for this paper.

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{hu2026scalable,
  title  = {Scalable Hierarchical Attention Transformers for Multi-Turn Jailbreak Detection in Long Conversations},
  author = {Chenhui Hu and Muhammed Salih and Sudipto Guha and Subramanian Srinivasan},
  year   = {2026},
  eprint = {2606.21082},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.21082v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.21082.svg)](https://codeofpaper.com/paper/2606.21082)

Discussion