Deciphering the Chaos: Enhancing Jailbreak Attacks via Adversarial Prompt Translation

Qizhang Li, Xiaochen Yang, Wangmeng Zuo, Yiwen Guo · DOI

Abstract

Safety-aligned Large Language Models (LLMs) are designed to resist harmful requests, yet they remain vulnerable to "jailbreaking" attacks. Traditional gradient-based optimization methods, such as GCG, generate garbled adversarial suffixes that are often model-specific and easily detectable due to high perplexity. This paper introduces a novel "Adversarial Prompt Translation" framework that deciphers the hidden semantic intent within these chaotic suffixes, converting them into coherent, human-readable natural language. Our results demonstrate an 81.8% average attack success rate (ASR) against leading commercial models, including GPT-4o and Claude-3, while maintaining low perplexity to bypass defensive filters.

Introduction

The rapid deployment of Large Language Models (LLMs) has necessitated robust safety alignment to prevent the generation of harmful content. Researchers probe these defenses using jailbreaking techniques. A prominent method is gradient-based optimization, which appends a string of seemingly random characters—an adversarial suffix—to a harmful prompt. While effective against the models they are optimized for, these "garbled" prompts suffer from two critical weaknesses: poor transferability across different model architectures and high detectability by perplexity-based filters.

This research explores whether these garbled strings contain latent semantic strategies. By "translating" this chaos back into natural language, we can create more universal and stealthy attacks that leverage the inherent instruction-following capabilities of LLMs.

Methodology: Adversarial Prompt Translation

The proposed framework consists of a two-step process using a "translator" LLM (e.g., Llama-3.1-8B-Instruct):

  1. Interpretation: The translator LLM analyzes a garbled adversarial suffix to extract its underlying semantic meaning. Surprisingly, LLMs can identify specific jailbreak strategies embedded in the noise, such as requests for specific personas (e.g., "sarcastic"), formatting constraints (e.g., "XML"), or thematic diversions.
  2. Translation: The translator then synthesizes the original harmful objective with these interpreted "tricks" to produce a coherent, natural language paragraph.

To maximize effectiveness, the authors employ suffix concatenation—merging multiple adversarial suffixes—and random rephrasing of the initial request to generate a diverse set of candidate prompts.

Key Insights

The core discovery of this work is that adversarial "gibberish" is not merely noise but a high-dimensional encoding of jailbreak instructions. By converting these encodings into natural language, the attack becomes "model-agnostic." Since LLMs are fundamentally trained to follow human instructions, a well-structured paragraph transfers far more effectively across different model families than a specific token sequence.

Furthermore, this translation process has uncovered novel jailbreak strategies previously unknown to researchers, such as instructing the model to adopt a "detached, unemotional tone" or a specific character persona, which were previously hidden in the gradient-optimized noise.

Experimental Results

The method was evaluated using the HarmBench and AdvBench datasets against a suite of commercial and open-source models.

Attack success rates across various victim models using different translator LLMs. The red bars represent the translated prompts, which consistently outperform garbled prompts and direct requests.

Performance and Transferability

The Adversarial Prompt Translation method achieved an 81.8% average ASR across seven commercial models on HarmBench. It outperformed the state-of-the-art GCG-Advanced by an absolute margin of 39.1%. Notably, the method proved highly effective against the notoriously robust Llama-2-Chat series, achieving over 90% ASR on AdvBench.

Detailed ASR for the Llama-3.1-8B-Instruct translator, demonstrating high success rates against advanced victim models like GPT-4o.

Efficiency and Stealth

Unlike many automated attacks that require thousands of queries, this method achieved its high success rates with a maximum of only 10 queries per behavior. Additionally, the translated prompts exhibit an average perplexity of approximately 14, making them virtually indistinguishable from normal human text and allowing them to bypass filters that easily catch garbled prompts (which typically have perplexity values around 2000).

Conclusion

This research highlights a significant vulnerability in current LLM safety alignments. By demonstrating that adversarial noise can be decoded into potent natural language instructions, the authors provide a new tool for red-teaming. Future work will focus on using these findings to categorize jailbreak templates and develop more robust, semantically-aware safety defenses.

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