TwinGate clusters malicious query fragments, achieving high recall with low false positives
TwinGate can detect decompositional jailbreak fragments with high malicious intent recall and low false positive rate
AI/ML arXiv 30 Apr 2026 Defense Simulation evidence
Published as “TwinGate: Stateful Defense against Decompositional Jailbreaks in Untraceable Traffic via Asymmetric Contrastive Learning”
Why it matters
Enables production LLM APIs to block multi-turn jailbreaks with near-zero false positives and production-grade latency.
Summary
TwinGate attains malicious intent recall over 0.76 with a false positive rate below 2 × 10−3, dramatically cutting attack success rates of decompositional jailbreaks (down to ~0.09-0.18) while running at >1700 queries per second with negligible latency; the paper provides these numbers but does not detail real-world deployment beyond simulated streams.
What they found 3
- High recall and low false positive rate
“it achieves a malicious intent recall exceeding 0.76 while maintaining a false positive rate below 2 × 10-3.”
- Attack success rate dramatically reduced
“the ASR of the unmodified CKA-Agent plummets to roughly 0.09.”
- Scalable throughput
“TwinGate sustains a throughput of over 1700 QPS with acceptable P99 latency”
Caveats 4
- Under a white-box GCG adaptive attack the ASR rises to 0.18, showing some evasion capability.
- Performance decays when the vector database capacity ratio drops below 0.15, with severe degradation at 0.10.
- TwinGate assumes a worst-case scenario of fully anonymized, arbitrarily interleaved requests
- A noticeable performance decay only emerges when x drops to 0.15, followed by severe degradation at 0.10.
What’s new here 4
- Defends against decompositional jailbreaks without any user metadata, handling fully untraceable, interleaved traffic.
- Introduces Asymmetric Contrastive Learning to cluster semantically disparate but intent-matched fragments.
- Employs a dual-encoder architecture with a frozen semantic encoder to suppress false positives from benign topical overlap.
- Achieves stateful detection with a single lightweight forward pass per request, enabling high-throughput, low-latency deployment.