Evolving Jailbreaks: Automated Multi-Objective Long-Tail Attacks on Large Language Models

Wenjing Hong, Zhonghua Rong, Li Wang, Feng Chang, Jian Zhu, Ke Tang, Zexuan Zhu, Yew-Soon OngarXiv 2026

TL;DR

EvoJail is an automated framework that leverages multi-objective evolutionary search to discover "long-tail" jailbreak attacks against Large Language Models (LLMs). By combining high-level natural language heuristics with low-level executable encryption-decryption code, it automatically generates diverse, highly effective, and fluent adversarial prompts without relying on handcrafted rules.

What Problem Does This Paper Address?

As LLMs are increasingly deployed in web applications, they face sophisticated adversarial inputs designed to bypass their safety alignments. A particularly challenging category of these threats is "long-tail distribution attacks." These attacks use inputs that deviate significantly from standard training data—such as low-resource languages, cryptographic obfuscation, or code-style formatting—to hide malicious intent while remaining understandable to the model's internal reasoning.

While long-tail attacks are highly effective, existing methods rely almost entirely on expert-crafted rules, predefined encryption functions, or fixed templates. This manual approach limits our ability to systematically evaluate LLM safety vulnerabilities. Automating this process is difficult because the search space is highly discrete and non-linear; blindly mutating code or text easily breaks the strict logical requirement that the encrypted prompt must be perfectly decryptable by the model.

Methods

To automate the discovery of these complex attacks, the authors introduce EvoJail, which treats jailbreak generation as a bi-objective optimization problem. It simultaneously maximizes attack effectiveness (Attack Success Rate, or ASR) and minimizes output perplexity (PPL) to ensure the model's response is fluent and coherent.

The core components of EvoJail include:

  • Semantic-Algorithmic Representation: Instead of treating prompts as simple text strings, EvoJail represents each attack candidate as a structured tuple: $x = (h, e, d, t)$. Here, $h$ is a natural-language heuristic describing the obfuscation strategy, $e$ and $d$ are concrete Python implementations of the encryption and decryption functions, and $t$ is a prompt template.
  • LLM-Assisted Evolutionary Loop: EvoJail embeds a powerful "design model" (DeepSeek-V3) directly into the evolutionary process to act as an intelligent mutation, crossover, and initialization operator. This allows the framework to explore the search space using semantic understanding rather than random perturbations.
  • Verification & Repair Loop: Because natural language-driven code generation can be buggy, EvoJail tests every generated encryption-decryption pair against a reference input. If the logic fails to perfectly reconstruct the original query, the design model attempts targeted repairs to maintain algorithmic consistency.
Figure 1: Overall framework of EvoJail. It employs an evolutionary multi-objective search framework that jointly balances attack effectiveness (ASR) and harmful output quality (PPL). The framework constructs the search space by combining semantic information and algorithmic descriptions, and incorporates LLM-assisted operators (including initialization, mutation, crossover, and repair opera- tors) to enhance the search process. A diverse set of encryption-decryption prompt pairs representing a Pareto front of attack strategies is generated to support flexible application.

Datasets

The framework was evaluated using harmful queries drawn from two widely recognized safety benchmarks:

  1. GPTFuzzer: Provides malicious queries across diverse violation categories such as hate speech, self-harm, and malware generation.
  2. JBB-Behaviors (JailbreakBench): Contains 100 misuse behaviors mapped to OpenAI's usage-policy taxonomy, utilizing a balanced set of categories to ensure reproducible evaluation.

Key Insights and Ideas

  • The Reversibility Constraint: For a long-tail attack to succeed, the target model must be able to successfully execute the decryption logic $D(E(q)) = q$ internally. An example of such a complex, programmatic encryption scheme generated during evolution is shown in Figure 2.
  • Evolutionary Feedback Integration: Rather than performing blind mutations, EvoJail annotates parent prompts with a "Parent Improvement Status" (e.g., Better, Equal, Worse). This explicit performance feedback allows the LLM design model to reason about which structural components are beneficial and adapt its variations accordingly.
  • Strategic Diversity via Pareto Fronts: By optimizing for both ASR and PPL, EvoJail avoids generating gibberish prompts that technically break the model but yield useless, garbled outputs. Instead, it uncovers a diverse Pareto front of balanced, highly stealthy attack strategies.
Figure 2: An example of an encryption-decryption scheme.

Key Results

The authors evaluated EvoJail against three target models (Llama-2-7b-chat, Llama-3.1-8B-Instruct, and GPT-4.1-Nano) and compared it to six state-of-the-art baselines, including FlipAttack, CodeAttack, and CodeChameleon.

  • Superior Performance: EvoJail outperformed all baseline methods in 15 out of 18 test scenarios based on the Hypervolume (HV) metric, which measures how well an algorithm balances multiple objectives.
  • Extreme Effectiveness on LLaMA: On LLama-3.1-8B, EvoJail repeatedly achieved HV scores surpassing 0.700, while baseline methods like FlipAttack and CodeAttack frequently failed entirely.
  • Ensemble Generalization: When individual strategies were combined into an ensemble to attack unseen instances, EvoJail demonstrated robust transferability, outperforming manually designed fixed algorithms by broadening the attack surface with heterogeneous patterns.

Limitations and Future Work

While EvoJail successfully automates long-tail attack generation, its efficiency is fundamentally bound by the capabilities of the underlying LLM used as the design model. If the design model struggles with complex code synthesis or logical reasoning, the quality of the generated encryption-decryption pairs may degrade.

Additionally, the authors note that this red-teaming framework should be used to inform future defense mechanisms. They suggest that future work should leverage the insights gained from EvoJail's Pareto-optimal strategies to build adaptive, learning-based defenses capable of resisting complex, distribution-shifting attacks.

Summary updated

BibTeX
@misc{hong2026evolving,
  author = {Wenjing Hong and Zhonghua Rong and Li Wang and Feng Chang and Jian Zhu and Ke Tang and Zexuan Zhu and Yew-Soon Ong},
  title = {{Evolving Jailbreaks: Automated Multi-Objective Long-Tail Attacks on Large Language Models}},
  year = {2026},
  eprint = {2603.20122},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.20122},
}
Figure