potentialpaper

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

Edit this page

Or clone it with git

The page gets its repository with its first edit, so start in the web editor.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

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 paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

add · history

No versions are recorded yet: its preprint, the venues it went to and what they decided, the camera-ready. Missing a version?

We don't know of a submission of this paper to a venue with open reviews. Missing a submission?

Loading the discussion…