arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2602.16935cs.AIcs.ETcs.LG
收藏

DeepContext: LLMs中多轮对抗意图漂移的有状态实时检测

DeepContext: Stateful Real-Time Detection of Multi-Turn Adversarial Intent Drift in LLMs

HighFlame

Justin Albrethsen, Yash Datta, Kunal Kumar, Sharath Rajasekar

AI总结:

DeepContext通过递归神经网络实时检测LLM中的多轮对抗意图漂移,实现更高效的安全防护。

摘要:

尽管大型语言模型(LLM)的能力已得到扩展,但安全防护措施仍然大多是无状态的,将多轮对话视为一系列断开的事件。这种缺乏时间意识的特性导致了“安全缺口”,其中对抗性策略,如Crescendo和ActorAttack,通过跨轮次边界逐渐渗透恶意意图以绕过无状态过滤器。我们引入DeepContext,一种有状态监控框架,旨在映射用户意图的时间轨迹。DeepContext摒弃了孤立的评估模型,转而采用递归神经网络(RNN)架构,该架构接收一系列微调的轮次嵌入。通过在对话中传播隐藏状态,DeepContext捕捉到无状态模型所忽视的逐步积累的风险。我们的评估表明,DeepContext在多轮 jailbreak 检测中显著优于现有基线,实现了最先进的F1得分为0.84,这比超大规模云服务提供商的安全防护措施以及领先的开源模型如Llama-Prompt-Guard-2(0.67)和Granite-Guardian(0.67)有显著提升。此外,DeepContext在T4 GPU上保持低于20毫秒的推理开销,确保了实时应用的可行性。这些结果表明,建模意图的序列演变比部署大规模无状态模型更有效且计算效率更高。

英文摘要:

While Large Language Model (LLM) capabilities have scaled, safety guardrails remain largely stateless, treating multi-turn dialogues as a series of disconnected events. This lack of temporal awareness facilitates a "Safety Gap" where adversarial tactics, like Crescendo and ActorAttack, slowly bleed malicious intent across turn boundaries to bypass stateless filters. We introduce DeepContext, a stateful monitoring framework designed to map the temporal trajectory of user intent. DeepContext discards the isolated evaluation model in favor of a Recurrent Neural Network (RNN) architecture that ingests a sequence of fine-tuned turn-level embeddings. By propagating a hidden state across the conversation, DeepContext captures the incremental accumulation of risk that stateless models overlook. Our evaluation demonstrates that DeepContext significantly outperforms existing baselines in multi-turn jailbreak detection, achieving a state-of-the-art F1 score of 0.84, which represents a substantial improvement over both hyperscaler cloud-provider guardrails and leading open-weight models such as Llama-Prompt-Guard-2 (0.67) and Granite-Guardian (0.67). Furthermore, DeepContext maintains a sub-20ms inference overhead on a T4 GPU, ensuring viability for real-time applications. These results suggest that modeling the sequential evolution of intent is a more effective and computationally efficient alternative to deploying massive, stateless models.

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

↑