Skip to main content
QUICK REVIEW

[Paper Review] Hiding in Plain Text: Detecting Concealed Jailbreaks via Activation Disentanglement

Amirhossein Farzam, Majid Behabahani|arXiv (Cornell University)|Feb 23, 2026
Adversarial Robustness in Machine LearningComputer Science0 citations
TL;DR

The paper introduces a self-supervised framework to disentangle goal and framing in LLM activations, builds a goal–framing benchmark, and presents FrameShield for model-agnostic jailbreak detection based on framing representations.

ABSTRACT

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.

Motivation & Objective

  • Formalize the mechanism of goal-preserving framing (GPF) attacks as a composition of goal and framing.
  • Develop a self-supervised representation-disentanglement framework with theoretical guarantees.
  • Create datasets and benchmarks (GoalFrameBench) to study goal–framing variations.
  • Instantiate a practical detection pipeline (ReDAct + FrameShield) that improves beyond existing defenses.
  • Provide interpretability insights on how goal and framing signals distribute across LLM layers.

Proposed method

  • Formal framing theory to model prompts as a joint outcome of latent goal and framing factors.
  • Propose a general self-supervised disentanglement objective combining contrastive learning, orthogonality for controlled leakage, and reconstruction.
  • Construct GoalFrameBench with contrastive goal–framing pairs from safety datasets.
  • Implement ReDAct to map frozen LLM activations to disentangled goal and framing representations.
  • Use FrameShield to perform anomaly detection in the framing representation to detect GPF jailbreak attempts.
Figure 1 : A visual summary of our pipeline. ReDAct learns disentangled goal and framing representations from frozen LLM activations using the contrastive pairs in the GoalFrameBench corpus we construct. FrameShield can then detect jailbreak prompts via anomaly detection on the disentangled framing
Figure 1 : A visual summary of our pipeline. ReDAct learns disentangled goal and framing representations from frozen LLM activations using the contrastive pairs in the GoalFrameBench corpus we construct. FrameShield can then detect jailbreak prompts via anomaly detection on the disentangled framing

Experimental results

Research questions

  • RQ1How can semantic factors in LLM activations be disentangled in a self-supervised way?
  • RQ2Can goal and framing be separated to enable robust detection of goal-preserving framing (GPF) attacks?
  • RQ3Does disentanglement improve model-agnostic detection of jailbreak prompts across multiple LLM families?
  • RQ4Where do goal and framing signals concentrate across LLM layers, and what does that imply for interpretability?
  • RQ5Can framing representations support efficient, generalizable jailbreak detection without model fine-tuning?

Key findings

  • Disentanglement of goal and framing is achievable with a self-supervised objective that enforces sufficiency, controlled leakage, and reconstruction.
  • GoalFrameBench yields a large set of contrastive goal–framing pairs enabling effective training of ReDAct.
  • FrameShield improves jailbreak detection across multiple LLM families with negligible computational overhead compared to baselines.
  • FrameShield with critical layer selection achieves strong accuracy improvements over JBShield in several model families.
  • Disentanglement reveals that goal and framing signals concentrate at different layers, offering mechanistic interpretability insights.
  • FrameShield demonstrates model-agnostic detection capabilities, including generalization to unseen goals via framing analysis.
Figure 2 : Visualization of how varying the framing of a prompt leads to a jailbreak.
Figure 2 : Visualization of how varying the framing of a prompt leads to a jailbreak.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.