Research map / Large language models / Language, safety and interpretability
AdvPrefix: An Objective for Nuanced LLM Jailbreaks
Read the paperCheck your idea against 108,967 papers
AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Proposes AdvPrefix, a plug-and-play objective that replaces the fixed "Sure, here is" jailbreak target with model-dependent prefixes selected by prefilling ASR and initial NLL, and introduces refined nuanced judges for evaluating jailbreaks.
Problem
Prefix-forcing jailbreak objectives ("Sure, here is ...") are misspecified, yielding incomplete or unfaithful responses, and overconstrained, since rigid prefixes are unnatural for victim LLMs and hinder optimization; existing judges also overestimate nuanced jailbreak success.
Approach
Select one or more victim-specific target prefixes by combining high prefilling attack success rate (judged for completeness and faithfulness) with low initial negative log-likelihood, and optimize attack prompts to elicit any of them via a log-sum-probability objective.
Key results
- Replacing GCG's default prefixes on Llama-3 raises nuanced ASR from 14% to 80% with full prompt optimization (40-token/multi-prefix setting reaches ~70% with suffix optimization).
- On Gemma-2, GCG ASR rises from 11.2% to 42.0% (single prefix, 20-token suffix).
- The refined judge reaches 91.8% average human agreement versus 86.6% for HarmBench and 89.3% for StrongReject.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| Replace the original prefix objective with AdvPrefix single-prefix selection | GCG full-prompt optimization on Llama-2-7B-Chat · AdvBench | nuanced ASR (%): 42.1 -> 72.6 | Helped |
| Replace the original prefix objective with AdvPrefix single-prefix selection | AutoDAN full-prompt optimization on Llama-2-7B-Chat · AdvBench | nuanced ASR (%): 26.3 -> 39.7 | Helped |
| Replace the original prefix objective with AdvPrefix single-prefix selection | GCG full-prompt optimization on Llama-3-8B-Instruct · AdvBench | nuanced ASR (%): 14.1 -> 79.5 | Helped |
| Replace the original prefix objective with AdvPrefix single-prefix selection | AutoDAN full-prompt optimization on Llama-3-8B-Instruct · AdvBench | nuanced ASR (%): 5.2 -> 77.9 | Helped |
| Replace the original prefix objective with AdvPrefix single-prefix selection | GCG full-prompt optimization on Llama-3.1-8B-Instruct · AdvBench | nuanced ASR (%): 47.0 -> 58.9 | Helped |
| Replace the original prefix objective with AdvPrefix single-prefix selection | AutoDAN full-prompt optimization on Llama-3.1-8B-Instruct · AdvBench | nuanced ASR (%): 51.0 -> 59.6 | Helped |
| Replace the original prefix objective with AdvPrefix single-prefix selection | GCG full-prompt optimization on Gemma-2-9B-IT · AdvBench | nuanced ASR (%): 7.4 -> 51.2 | Helped |
| Replace the original prefix objective with AdvPrefix single-prefix selection | AutoDAN full-prompt optimization on Gemma-2-9B-IT · AdvBench | nuanced ASR (%): 19.7 -> 36.0 | Helped |
| Use multiple selected prefixes instead of one (ablation) | AdvPrefix with GCG, 40-token suffix on Llama-2-7B-Chat · AdvBench | successful attack (%): 38.6 -> 37.5 | Hurt |
| Use multiple selected prefixes instead of one (ablation) | AdvPrefix with GCG, 40-token suffix on Llama-3-8B-Instruct · AdvBench | successful attack (%): 69.7 -> 70.0 | Helped |
| Use multiple selected prefixes instead of one (ablation) | AdvPrefix with GCG, 40-token suffix on Llama-3.1-8B-Instruct · AdvBench | successful attack (%): 53.5 -> 61.0 | Helped |
| Use multiple selected prefixes instead of one (ablation) | AdvPrefix with GCG, 40-token suffix on Gemma-2-9B-IT · AdvBench | successful attack (%): 51.0 -> 53.3 | Helped |
Surprising findings
- Existing judges (HarmBench, JailbreakBench) overestimate nuanced ASR by up to ~30 points, mainly by counting incomplete and unfaithful responses as successes.
- Replacing "Sure, here is" with "Here is" for Llama-3 yields lower final GCG losses, showing the original prefix is overconstrained.
Limitations
- Prefix selection requires many sampled completions and a 70B judge, which is computationally costly.
- The objective does not account for loss-landscape shape and requires white-box log-probabilities, so it cannot be applied to black-box attacks.
- Responses elicited are still less harmful than those from an uncensored LLM (preference win rates 30-50%).
Experimental setup
Datasets: AdvBench (50 selected requests)
Benchmarks: AdvBench
Metrics: attack success rate failure breakdown (refusal, incomplete, unfaithful) human agreement rate F1 preference win rate
Baselines: GCG (original "Sure, here is" objective) AutoDAN HarmBench judge JailbreakBench judge StrongReject judge
Builds on: GCG AutoDAN tree attention
Closest papers by meaning
- h4rm3l: A Language for Composable Jailbreak Attack Synthesis (ICLR 2025 · similarity 0.91)
- JailPO: A Novel Black-Box Jailbreak Framework via Preference Optimization Against Aligned LLMs (AAAI 2025 · similarity 0.91)
- One Model Transfer to All: On Robust Jailbreak Prompts Generation against LLMs (ICLR 2025 · similarity 0.91)
- AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Models (ICLR 2024 · similarity 0.89)
- Bag of Tricks: Benchmarking of Jailbreak Attacks on LLMs (NeurIPS 2024 · similarity 0.89)
- An Interpretable N-gram Perplexity Threat Model for Large Language Model Jailbreaks (ICML 2025 · similarity 0.89)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.
