[论文解读] Hiding in Plain Text: Detecting Concealed Jailbreaks via Activation Disentanglement
论文提出一个自监督框架来在LLM激活中区分目标与框架,构建目标-框架基准,并提出 FrameShield 作为基于框架表示的模型无关逃逸检测方法。
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.
研究动机与目标
- 形式化将保持目标的框架攻击(GPF)机制视为目标与框架的组合。
- 开发具有理论保障的自监督表示解耦框架。
- 创建数据集和基准(GoalFrameBench)以研究目标-框架变体。
- 实现一个实用的检测管线(ReDAct + FrameShield),在现有防御之上取得改进。
- 提供对目标与框架信号在LLM各层分布的可解释性洞见。
提出的方法
- 将框架理论形式化为将提示建模为潜在目标和框架因素的联合结果。
- 提出一个通用的自监督解耦目标,结合对比学习、用于受控泄漏的正交性和重建。
- 用来自安全数据集的对比目标–框架对构建 GoalFrameBench。
- 实现 ReDAct 将冻结的 LLM 激活映射到解耦的目标与框架表示。
- 使用 FrameShield 在框架表示上执行异常检测,以检测 GPF 越狱尝试。

实验结果
研究问题
- RQ1如何以自监督方式在 LLM 激活中解耦语义因子?
- RQ2是否可以将目标与框架分离以实现对目标保持的框架攻击(GPF)更鲁棒的检测?
- RQ3解耦是否提高跨多家LLM族的无模型微调的越狱提示检测?
- RQ4目标与框架信号在 LLM 各层的集中位置在哪里,这对可解释性意味着什么?
- RQ5框架表示是否支持高效、可泛化的越狱检测,而无需对模型进行微调?
主要发现
- 通过一项强制充分性、受控泄漏与重建的自监督目标实现,可实现目标与框架的解耦。
- GoalFrameBench 提供大量对比的目标–框架对,能够有效训练 ReDAct。
- FrameShield 在多家 LLM 家族中提高越狱检测效果,相对于基线几乎没有额外计算开销。
- FrameShield 通过关键层选择在若干模型族中对 JBShield 显著提升准确性。
- 解耦揭示目标与框架信号在不同层集中,这为机制可解释性提供洞见。
- FrameShield 展现出模型无关的检测能力,包括通过框架分析对未见目标的泛化能力。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。