TL;DR
The paper introduces Response Attack (RA), a highly effective jailbreak framework that exploits a psychological "contextual priming" vulnerability in Large Language Models (LLMs). By strategically injecting fabricated, mildly harmful assistant responses into a simulated dialogue history, RA tricks safety-aligned models into generating explicit, policy-violating content in just a single interaction turn.
What Problem Does This Paper Address?
Current LLM safety alignment heavily focuses on detecting and blocking harmful user queries. However, this creates a blind spot: models often fail to properly evaluate safety when the preceding dialogue history already contains compliant, unsafe content.
Existing jailbreak methods struggle to exploit this cleanly:
- Single-turn attacks (like character-flipping or ciphers) are often brittle and easily filtered.
- Multi-turn attacks (like Crescendo) successfully bypass filters by gradually coaxing the model over several turns, but they incur massive computational overhead, latency, and API costs.
- In-context attacks inject static examples that frequently trigger safety filters or cause semantic drift away from the user's original intent.
The authors bridge this gap by investigating whether simulated dialogue history—specifically fabricating the assistant's past responses—can act as a psychological priming cue to covertly steer the model into generating harmful outputs.
Methods
Response Attack (RA) operates by constructing a synthetic, multi-turn "priming dialogue" using an uncensored auxiliary LLM, which is then fed to the target model in a single turn.
The pipeline consists of four main stages:
- Initial Prompt Crafting ($P_{init}$): The auxiliary LLM rewrites a malicious query ($Q$) into a benign-looking format using sanitization strategies (e.g., framing it as academic research or a fictional story scenario).
- Harmful Response Injection ($R_{harm}$): The auxiliary model generates a mildly harmful response to $P_{init}$. RA tests two injection modes:
- Direct Response Injection (DRI): A fully elaborated but mild response that mimics a helpful, policy-violating assistant.
- Scaffolding Response Injection (SRI): A high-level structural outline or framework that omits actionable details.
- Trigger Prompt Construction ($P_{trig}$): The auxiliary model creates a short user prompt designed to activate the attack (e.g., asking the target model to "expand on this outline with specific steps" for SRI, or "seek alternatives" for DRI).
- Attack Execution: These components are formatted into a standard chat template sequence
[User: P_init, Assistant: R_harm, User: P_trig]and sent to the target LLM.
Datasets
The authors evaluated their framework using three standard safety benchmarks:
- HarmBench: A standardized evaluation framework for automated red-teaming and robust refusal.
- AdvBench-50: A curated subset of 50 representative and diverse malicious goals.
- JailbreakBench: An open robustness benchmark for jailbreaking LLMs.
Key Insights and Ideas
- The Power of Assistant Priming: The attack's success is heavily driven by the simulated assistant response ($R_{harm}$). Ablation studies showed that removing $R_{harm}$ caused the attack success rate to plummet, proving that LLMs are highly susceptible to contextual priming from their own simulated persona.
- Efficiency and Scalability: Unlike traditional multi-turn attacks that require continuous, iterative feedback loops with the target model, RA generates the priming dialogue offline. It requires only a single interaction with the target model, drastically reducing token usage and latency.
- High Semantic Fidelity: Because RA relies on contextual priming rather than obfuscation (like ciphers or random token optimization), the target model's final output remains highly relevant and faithful to the original malicious intent.
Key Results
The authors evaluated RA against nine leading jailbreak baselines across eight state-of-the-art LLMs (including GPT-4o, Gemini-2.5-Flash, Llama-3-70B, and DeepSeek-R1-Distill-Llama70B).
- Unprecedented Success Rates: RA-DRI achieved an astonishing average Attack Success Rate (ASR) of 94.8%, while the structural variant RA-SRI achieved 89.1%, outperforming all baselines.
- Resource Efficiency: As shown in the efficiency analysis, RA achieves these high success rates with a fraction of the interaction costs required by iterative multi-turn methods like Crescendo and ActorAttack.
- Defense Defiance: Standard guardrails like the OpenAI Moderation API, Llama-Guard-3, and perplexity filters offered very limited protection against RA, primarily because the injected text is highly fluent, natural, and only "mildly" toxic.
Limitations and Future Work
- Dependency on an Auxiliary Model: RA requires access to a capable, uncensored auxiliary LLM to successfully rewrite prompts and generate intermediate compliant responses.
- Defense Vulnerabilities: While current safety classifiers struggle to detect RA because the context appears to be a natural continuation of a compliant conversation, the authors note that Llama-Guard-3 achieved the strongest defensive reduction.
- Future Directions: The authors suggest that the most promising way to mitigate this vulnerability is to fine-tune LLMs on contextual priming data specifically paired with explicit refusal responses, teaching models to maintain safety alignment even when the prior context is compromised.
Summary updated