Skip to content

DiffusionAttacker: Diffusion-Driven Prompt Rewriting for LLM JailbreakingDiffusionAttacker: Diffusion-Driven Prompt Manipulation for LLM Jailbreak

arXiv· arXiv:2412.17522· Hao Wang, Hao Li, Junda Zhu, Xinyuan Wang, Chengwei Pan, MinLie Huang, Lei Sha·Indexed by this site · 22 days ago· Originally publishedAttacks
AI summary

The paper proposes DiffusionAttacker, an end-to-end generation method that uses a sequence-to-sequence diffusion model to rewrite original prompts in order to carry out LLM jailbreaks. The authors condition on the original prompt and use an attack loss to guide the denoising process, so that the rewritten content preserves the semantics of the original prompt while producing harmful content. The method uses Gumbel-Softmax to make the sampling process of the diffusion model's output distribution differentiable, thereby eliminating iterative token search. Experiments on Advbench and Harmbench show that the method outperforms previous methods on metrics such as attack success rate (ASR), fluency and diversity.

Read originalarxiv.org