arXiv:2604.27861cs.CRcs.CL2026-04被引 1

TwinGate用双编码器对抗隐蔽拆解攻击,低延迟检测恶意意图。

TwinGate: Stateful Defense against Decompositional Jailbreaks in Untraceable Traffic via Asymmetric Contrastive Learning

  • 通过非对称对比学习在共享空间聚类恶意片段,识别碎片化攻击。
  • 在362万条指令上实现高召回率与极低误报率,抗适应性攻击。
  • 轻量级设计可并行部署,适合真实世界高并发场景使用。

分解式越狱攻击通过将恶意目标拆分为一系列看似无害的查询,在连续匿名、任意交错的请求流中隐蔽传递违规内容。现有防御手段因缺乏可信用户元数据,无法追踪全局历史,且依赖生成模型实时监控导致计算开销过大。为此,我们提出TwinGate,一种基于非对称对比学习(ACL)的状态化双编码器防御框架。该方法在共享潜在空间中聚类语义不同但意图一致的恶意片段,同时通过冻结的辅助编码器抑制良性话题重叠带来的误报。每条请求仅需一次轻量前向传播,可在目标模型预填充阶段并行运行,几乎不增加延迟。为评估并推动研究,我们构建了一个包含超过362万条指令、覆盖8600种恶意意图的综合性数据集。在严格因果协议下测试,TwinGate在大规模语料上实现高恶意意图召回率和极低误报率,对自适应攻击保持高度鲁棒性。相比状态化与无状态基线,其吞吐量更高,延迟更低。

原文摘要 · Abstract (English)

Decompositional jailbreaks pose a critical threat to large language models (LLMs) by allowing adversaries to fragment a malicious objective into a sequence of individually benign queries that collectively reconstruct prohibited content. In real-world deployments, LLMs face a continuous, untraceable stream of fully anonymized and arbitrarily interleaved requests, infiltrated by covertly distributed adversarial queries. Under this rigorous threat model, state-of-the-art defensive strategies exhibit fundamental limitations. In the absence of trustworthy user metadata, they are incapable of tracking global historical contexts, while their deployment of generative models for real-time monitoring introduces computationally prohibitive overhead. To address this, we present TwinGate, a stateful dual-encoder defense framework. TwinGate employs Asymmetric Contrastive Learning (ACL) to cluster semantically disparate but intent-matched malicious fragments in a shared latent space, while a parallel frozen encoder suppresses false positives arising from benign topical overlap. Each request requires only a single lightweight forward pass, enabling the defense to execute in parallel with the target model's prefill phase at negligible latency overhead. To evaluate our approach and advance future research, we construct a comprehensive dataset of over 3.62 million instructions spanning 8,600 distinct malicious intents. Evaluated on this large-scale corpus under a strictly causal protocol, TwinGate achieves high malicious intent recall at a remarkably low false positive rate while remaining highly robust against adaptive attacks. Furthermore, our proposal substantially outperforms stateful and stateless baselines, delivering superior throughput and reduced latency.

大模型安全对抗攻击双编码器低延迟

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。