Can't hide behind the frame: Disentangling goal & framing for detecting LLM jailbreaks
Amirhossein Farzam, Majid Behbahani, Mani Malek, Yuriy Nevmyvaka, Guillermo Sapiro
ICLR 2026 submission
Abstract. Despite extensive research in Large language models (LLMs) alignment, LLMs remain vulnerable to jailbreak attacks through sophisticated prompt engineering. One notable red-teaming framework, Prompt Automatic Iterative Refinement (PAIR) attack, has remained effective by manipulating the framing of requests while preserving malicious goals. Motivated by this challenge, we introduce a framework for self-supervised disentanglement of semantic factors in LLM representations, supported by theoretical guarantees for successful separation without fine-tuning. Our proposed framework not only enables us to address adversarial prompt detection, but also contributes to the broader challenge of decomposing intertwined semantic signals in neural representations, with applications in LLM safety and mechanistic interpretability. We demonstrate its effectiveness through a complete pipeline for PAIR attack detection: PAIR+Framing, an enhanced dataset with systematic goal-framing variations; ReDAct (Representation Disentanglement on Activations), a module that operationalizes our framework to learn disentangled representations from LLM activations; and FrameShield, an efficient anomaly detector leveraging disentangled framing signals. Empirical results show that our pipeline achieves state-of-the-art detection performance across various LLM families, boosting accuracy by up to 21 percentage points with minimal computational overhead. In addition, we provide interpretable insights into how goal and framing information concentrate at different model depths. This work demonstrates that representation-level semantic disentanglement offers both an effective defense against adversarial prompts and a promising direction for mechanistic interpretability in LLM safety.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperadd · history
Loading the discussion…