NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Dynamic Target Attack

Kedong Xiu, Churui Zeng, Tianhang Zheng, Xinzhe Huang, Xiaojun Jia, Di Wang, Puning Zhao, Zhan Qin, Kui Ren · DOI

Abstract

Safety-aligned Large Language Models (LLMs) are typically resistant to jailbreak attacks that target fixed affirmative phrases (e.g., "Sure, here is..."). These targets often reside in low-probability regions of the model's output distribution, making optimization difficult and inefficient. We introduce Dynamic Target Attack (DTA), a framework that replaces fixed targets with dynamically sampled responses from the model's own distribution. By following the "path of least resistance," DTA achieves over 87% success rates while being up to 26x faster than current state-of-the-art methods.

Introduction

Most gradient-based jailbreak attacks, such as GCG, attempt to find an adversarial suffix that forces an LLM to begin its response with a specific, pre-defined phrase. However, safety-aligned models are explicitly trained to avoid these phrases. From a probabilistic perspective, these fixed targets are located in extremely low-density regions of the model's output space. Forcing a model to generate such a response is computationally expensive and prone to failure.

Comparison of log-probability landscapes between fixed-target baselines and DTA. DTA optimizes toward higher-density regions of the model's distribution.

DTA addresses this bottleneck by shifting the focus from what we want the model to say to what the model is already inclined to say when nudged.

Methodology: The Exploration-Optimization Cycle

DTA employs an iterative process consisting of three main phases: Exploration, Optimization, and Evaluation.

The DTA framework consists of three parts: Exploration (sampling candidate responses), Optimization (updating the adversarial suffix), and Evaluation (judging jailbreak success).
  1. Exploration: Instead of a fixed target, DTA uses "relaxed decoding" (multinomial sampling) to generate multiple candidate responses from the target LLM based on the current adversarial prompt $P+S$.
  2. Selection: A "harmfulness judge" (e.g., GPT-4 or Llama Guard) evaluates these candidates, selecting the most harmful and useful response to serve as the temporary target $r^*$.
  3. Optimization: The framework performs gradient-based optimization steps to update the adversarial suffix $S$, making the selected harmful response more likely.
  4. Refinement: This cycle repeats. As the suffix is optimized, the model's high-density regions shift toward harmful content, allowing the attack to "crawl" toward a successful jailbreak.

DTA also incorporates Suffix Regularization, utilizing a fluency loss to maintain natural language characteristics and a refusal penalty to discourage common refusal tokens (e.g., "I'm sorry").

Experimental Results

The authors evaluated DTA on AdvBench and HarmBench across several open-source models, including Llama-3-8B, Vicuna-7B, and Mistral-7B.

Performance and Efficiency

  • Success Rates: DTA achieved an average Attack Success Rate (ASR) of over 87% in white-box settings, outperforming baselines by more than 15%.
  • Speed: The method is significantly more efficient, offering a 2x to 26x speedup in wall-clock time compared to GCG and COLD-Attack.
  • Transferability: In black-box scenarios, DTA reached a 77.5% ASR by optimizing on a surrogate model, demonstrating that the captured harm patterns are model-agnostic.

Robustness

DTA proved resilient against common defense mechanisms such as SmoothLLM and input paraphrasing, maintaining high effectiveness where other attacks faltered.

Conclusion

Dynamic Target Attack represents a paradigm shift in LLM red-teaming. By leveraging the model's internal probability landscape rather than fighting against it, DTA provides a faster and more effective means of identifying safety vulnerabilities. These findings suggest that future safety training should focus on mitigating these high-probability harmful paths to build truly robust AI systems.

Summary updated

BibTeX
@misc{xiu2025dynamic,
  author = {Kedong Xiu and Churui Zeng and Tianhang Zheng and Xinzhe Huang and Xiaojun Jia and Di Wang and Puning Zhao and Zhan Qin and Kui Ren},
  title = {{Dynamic Target Attack}},
  year = {2025},
  eprint = {2510.02422},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.02422},
}
Figure