The 4K explainer
Three minutes, English narration.
Why this is hard
The problem the paper is aimed at.
Safety alignment teaches a model to refuse. It does not remove the capability, and it does not turn the refusal into a wall — it is a thin decision layer sitting on top of a much larger behaviour space. A handful of tokens around a harmful request is enough to step over that boundary.
Every earlier attack solved one version of this. GCG optimises a suffix with gradients. AutoDAN evolves a readable prompt, but needs hours per query. AmpleGCG learns to generate suffixes, yet still needs gradients to train. None of them carry anything from one harmful query to the next, so the search always starts cold.
How it works
Four pieces: a cache, an injection rule, two search engines, and a fitness that predicts success.
Before any search, replay the perturbations already known to work. On the easier queries this is a zero-query attack, which matters when access is metered.
A token-level edit that deletes inside a BPE word breaks it: h·arm·ful minus the middle token decodes as “hful”. UniBreak only prepends and appends, so the query the model reads is still the query.
A gradient operator moves tokens the model is sensitive to; a genetic operator explores what gradients miss, with crossover guided by token statistics and mutation biased toward frequently successful tokens.
The score combines refusal suppression with output fluency. The paper shows a sharp threshold: above roughly 10 the attack almost always succeeds, below 8.2 it almost never does.
What the experiments show
Results exactly as printed in the paper.
| Dataset | AdvBench, 520 harmful queries |
|---|---|
| Victim models | Llama-2, Qwen2.5 (1.5B / 3B / 7B), OpenELM-1.1B-Instruct |
| Baselines | GCG, AutoDAN, AmpleGCG, SMJ |
| Metrics | ASR, TsSR, TGAE / AGAE, ANAI, ART |
| Hardware | 2 × RTX 4090, Xeon Gold 5218 |


What to take away
Three points, in plain terms.
Only the gradient operator is switched on or off; the rest of the loop is identical.
Removing it costs 13.97 points of ASR on Llama-2 — more than removing either operator.
83.27% ASR without gradients, but three times the queries. That is the price of not seeing inside.