[Paper Review] DrAttack: Prompt Decomposition and Reconstruction Makes Powerful LLM Jailbreakers
DrAttack is a novel jailbreaking framework that decomposes malicious prompts into semantically neutral sub-prompts, reconstructs them via in-context learning with benign examples, and uses synonym search to maintain intent while evading detection. It achieves a 78.0% success rate on GPT-4 with only 15 queries, surpassing prior SOTA by 33.1% in absolute terms.
The safety alignment of Large Language Models (LLMs) is vulnerable to both manual and automated jailbreak attacks, which adversarially trigger LLMs to output harmful content. However, current methods for jailbreaking LLMs, which nest entire harmful prompts, are not effective at concealing malicious intent and can be easily identified and rejected by well-aligned LLMs. This paper discovers that decomposing a malicious prompt into separated sub-prompts can effectively obscure its underlying malicious intent by presenting it in a fragmented, less detectable form, thereby addressing these limitations. We introduce an automatic prompt extbf{D}ecomposition and extbf{R}econstruction framework for jailbreak extbf{Attack} (DrAttack). DrAttack includes three key components: (a) `Decomposition' of the original prompt into sub-prompts, (b) `Reconstruction' of these sub-prompts implicitly by in-context learning with semantically similar but harmless reassembling demo, and (c) a `Synonym Search' of sub-prompts, aiming to find sub-prompts' synonyms that maintain the original intent while jailbreaking LLMs. An extensive empirical study across multiple open-source and closed-source LLMs demonstrates that, with a significantly reduced number of queries, DrAttack obtains a substantial gain of success rate over prior SOTA prompt-only attackers. Notably, the success rate of 78.0\% on GPT-4 with merely 15 queries surpassed previous art by 33.1\%. The project is available at https://github.com/xirui-li/DrAttack.
Motivation & Objective
- To address the vulnerability of current jailbreak attacks that fail due to detectable malicious intent when using monolithic harmful prompts.
- To explore whether decomposing malicious prompts into sub-prompts can obscure intent and improve evasion of safety alignment mechanisms.
- To develop an automated, query-efficient framework that maintains attack effectiveness while reducing detectability.
- To evaluate the effectiveness of DrAttack across diverse open-source and closed-source LLMs, including GPT-4 and Llama-2-chat.
- To expose a previously unexplored vulnerability in LLM safety mechanisms related to semantic binding and sub-prompt modularity.
Proposed method
- Decomposes a malicious prompt into semantically neutral sub-prompts using semantic parsing to isolate harmful phrases.
- Reconstructs the original malicious intent through in-context learning (ICL) using semantically similar but harmless demonstration examples.
- Employs synonym search to explore alternative phrasings of sub-prompts that preserve intent while reducing detection likelihood.
- Uses a black-box optimization strategy that operates on sub-prompt space rather than full prompt space, reducing search complexity.
- Leverages ICL with structured and affirmative prompts (e.g., 'Sure, here is') to improve reconstruction fidelity and attack success rate.
- Employs iterative query-based refinement to optimize sub-prompts while maintaining faithfulness to the original malicious intent.

Experimental results
Research questions
- RQ1Can decomposing a malicious prompt into sub-prompts significantly reduce its detectability by safety-aligned LLMs?
- RQ2To what extent does in-context learning with semantically similar benign demos improve the success of prompt reconstruction in jailbreaking?
- RQ3How does synonym search over sub-prompts affect the efficiency and success rate of jailbreaking compared to full-prompt optimization?
- RQ4What is the impact of ICL prompt structure (e.g., affirmative, step-by-step) on the effectiveness of reconstruction and attack success?
- RQ5How does DrAttack compare to prior SOTA prompt-only jailbreakers in terms of success rate and query efficiency across diverse LLMs?
Key findings
- DrAttack achieved a 78.0% attack success rate on GPT-4 using only 15 queries, representing a 33.1% absolute improvement over the previous SOTA.
- On GPT-4, the attack success rate reached 84.6% under human evaluation and 62.0% under LLM evaluation, both exceeding prior methods by over 30 percentage points.
- The use of semantically similar ICL demos for reconstruction was critical—using irrelevant or less similar demos significantly reduced success rates.
- Systematic and affirmative ICL examples (e.g., 'Sure, here is') improved attack success rates compared to plain or neutral examples.
- The method demonstrated strong generalization across multiple LLMs, including GPT-4, Gemini-Pro, and Llama-2-chat series, indicating broad applicability.
- Moderation scores from OpenAI’s filtering system showed that decomposed sub-prompts had significantly lower sensitivity scores than the original malicious prompt, confirming effective obfuscation.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.