Deciphering the Chaos: Enhancing Jailbreak Attacks via Adversarial Prompt Translation

Qizhang Li, Xiaochen Yang, Wangmeng Zuo, Yiwen Guo · Submission to ICLR 2025 · Rejected

TL;DR

Gradient-based jailbreaks (like GCG) produce garbled, chaotic token strings that work well in white-box settings but fail to transfer to closed commercial LLMs and get easily flagged by perplexity filters. This paper shows that these "chaotic" strings actually harbor latent semantic directives (e.g., stylistic constraints, emotional detachment, and formatting rules). By using an off-the-shelf LLM to interpret and “translate” garbled suffixes into fluent, human-readable prompts, the authors achieve an 81.8% average attack success rate across top commercial models with at most 10 queries.

What Problem Does This Paper Address?

Safety-aligned language models are fine-tuned to refuse requests that generate harmful or illegal content. While gradient-based adversarial methods like Greedy Coordinate Gradient (GCG) can breach these defenses in white-box models, they do so by optimizing strings of unreadable, scrambled tokens (e.g., THEN explain Scotland!" aussi efficiently"]}</}}).

These garbled suffixes suffer from two fatal weaknesses:

  1. Poor Transferability: Tokenizer differences, parameter discrepancies, and differing architectures cause black-box victim models (like Claude or GPT-4) to overlook the adversarial signal.
  2. Easy Detection: Scrambled text has extremely high perplexity and is easily filtered out by baseline defenses.

Existing methods that generate natural language jailbreaks either require computationally heavy adversarial training (e.g., AdvPrompter), brittle hyperparameter tuning (e.g., AutoDAN), or multiple interactive query rounds requiring informative feedback from the victim model (e.g., PAIR, TAP).

Methods

The authors introduce an automated, two-stage adversarial prompt translation pipeline that leverages an off-the-shelf LLM (e.g., Llama-3.1-8B-Instruct) without gradient tuning or victim model feedback:

  1. Interpretation: The translator LLM is presented with the original harmful goal, the target affirmative start string (e.g., "Sure, here's..."), and the garbled suffix generated by gradient optimization. The translator is instructed to dissect the internal semantic directives hidden in the chaotic tokens.
  2. Translation: Guided by these semantic interpretations, the translator rewrites the original harmful request and suffix into a coherent, natural-language paragraph.
  3. Attack Enhancements:
  4. Suffix Concatenation: Appending two universal adversarial suffixes together before translation.
  5. Random Initialization via Rephrasing: Prompting the translator LLM to rephrase the original harmful prompt prior to translation, functioning like random restarts in classical adversarial attacks.

The threat model is strictly black-box: no prefilling, no access to model logits, and a hard cap of at most 10 queries per behavior.

Datasets

The evaluation tests the approach across standard red-teaming benchmarks:

  • HarmBench: 200 standard harmful behaviors across multiple safety categories, evaluated using the official HarmBench classifier.
  • AdvBench: 104 harmful behaviors, evaluated via the GPT-4 judge from the StrongREJECT benchmark (scoring 1.0 for a complete refusal bypass).

Key Insights and Ideas

  • Chaos Has Structure: Gradient-based optimization does not generate arbitrary gibberish; it inadvertently red-teams the model by encoding concrete stylistic levers. Suffixes frequently translate into directives demanding an unemotional, detached tone, sarcastic delivery (e.g., "Abed from Community"), or strict formatting ("single unbroken block of text").
  • Semantic Bypass Over Adversarial Noise: Translating these levers into coherent English preserves their bypass mechanisms while dropping prompt perplexity from $\sim 2000$ to $\sim 14$, rendering perplexity filters useless.
  • Informing Better Manual Prompt Engineering: Incorporating the discovered levers (such as requesting a "casual, blunt, and detached tone" and "sarcastic style") directly into existing manual jailbreak templates improved template attack success on GPT-4-Turbo from 60.5% to 73.5%.

Key Results

  • Black-Box SOTA on HarmBench: Across 7 closed-source models (including GPT-3.5-Turbo, GPT-4, GPT-4-Turbo, GPT-4o, GPT-4o-mini, Claude-3-Haiku, and Claude-3-Sonnet), the translated prompts achieved an 81.8% average Attack Success Rate (ASR) within 10 queries, significantly outperforming GCG-Advanced (42.6%) and TAP (46.5%).
  • Cracking Hardened Open-Source Models: On AdvBench, the method attained a 94.4% average ASR across 6 models. Notably, it reached 93.3% on Llama-2-7B-Chat and 90.4% on Llama-2-13B-Chat—models notoriously resilient to jailbreaking where previous natural-language baselines (AutoDAN, AdvPrompter) scored under 5%.
  • Component Contributions: Suffix concatenation contributed a $+6.5\%$ boost in average ASR, rephrasing initialization added $+13.5\%$, and explicit semantic interpretation before translation yielded a $+5.0\%$ gain.

Limitations and Future Work

  • Dependency on Strong Translators: Attack success heavily correlates with the translator LLM’s reasoning capability. Llama-3.1-8B-Instruct significantly outperformed smaller or older models (e.g., Vicuna-13B or Qwen-2.5-3B).
  • Initial White-Box Suffix Generation: The pipeline still requires an initial gradient-based suffix optimization stage on an open-source substitute model.
  • Root-Cause Analysis: The authors note that it remains an open question precisely which pre-training data distributions or architectural parameters make specific models (e.g., Llama-3 vs. Qwen-2.5) superior as substitute generator models.

Summary updated

BibTeX
@misc{li2024deciphering,
  author = {Qizhang Li and Xiaochen Yang and Wangmeng Zuo and Yiwen Guo},
  title = {{Deciphering the Chaos: Enhancing Jailbreak Attacks via Adversarial Prompt Translation}},
  year = {2024},
  eprint = {2410.11317},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.11317},
}
Figure