明文之中隐藏:通过激活解耦检测隐蔽的 jailbreak
Hiding in Plain Text: Detecting Concealed Jailbreaks via Activation Disentanglement
AI总结:
通过解耦 LLM 激活中的语义因子,提出 FrameShield 异常检测器,提升对隐蔽 jailbreak 的检测能力,并推动 LLM 安全和可解释性研究。
摘要:
大型语言模型(LLMs)仍然容易受到那些流畅且语义连贯的 jailbreak 提示的攻击,因此难以用标准的启发法检测。特别具有挑战性的一种失败模式发生在攻击者试图通过操纵请求的框架来诱导合规时,以隐藏其恶意目标。因为这些攻击通过灵活的呈现方式保持恶意意图,依赖结构艺术品或目标特定签名的防御措施可能会失效。受此启发,我们介绍了一个自监督框架,用于在推理过程中解耦 LLM 激活中的语义因子对。我们为目标和框架实例化该框架,并构建了具有受控目标和框架变化的提示语料库,即 GoalFrameBench,我们使用它来训练 Representation Disentanglement on Activations(ReDAct)模块,以在冻结的 LLM 中提取解耦的表示。然后我们提出 FrameShield,一个基于框架表示的异常检测器,它在多个 LLM 家族中以最小的计算开销实现了模型无关的检测。ReDAct 的理论保证和广泛的实证验证表明,其解耦能力有效推动了 FrameShield。最后,我们利用解耦作为可解释性探针,揭示了目标和框架信号的各自特征,并将语义解耦定位为 LLM 安全和机理可解释性的重要基础块。
英文摘要:
Large language models (LLMs) remain vulnerable to jailbreak prompts that are fluent and semantically coherent, and therefore difficult to detect with standard heuristics. A particularly challenging failure mode occurs when an attacker tries to hide the malicious goal of their request by manipulating its framing to induce compliance. Because these attacks maintain malicious intent through a flexible presentation, defenses that rely on structural artifacts or goal-specific signatures can fail. Motivated by this, we introduce a self-supervised framework for disentangling semantic factor pairs in LLM activations at inference. We instantiate the framework for goal and framing and construct GoalFrameBench, a corpus of prompts with controlled goal and framing variations, which we use to train Representation Disentanglement on Activations (ReDAct) module to extract disentangled representations in a frozen LLM. We then propose FrameShield, an anomaly detector operating on the framing representations, which improves model-agnostic detection across multiple LLM families with minimal computational overhead. Theoretical guarantees for ReDAct and extensive empirical validations show that its disentanglement effectively powers FrameShield. Finally, we use disentanglement as an interpretability probe, revealing distinct profiles for goal and framing signals and positioning semantic disentanglement as a building block for both LLM safety and mechanistic interpretability.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。