atlas

Research map / Adversarial robustness and security / Attacks on text and graphs

Fight Back Against Jailbreaking via Prompt Adversarial Tuning

NeurIPS 2024 · Adversarial robustness and security › Attacks on text and graphs · approach: LLM jailbreak and injection defense · 9 citations (OpenAlex)

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 Prompt Adversarial Tuning (PAT), which optimizes a defensive prefix control via alternating adversarial (min-min) GCG-style updates with benign utility loss, to protect LLMs against jailbreaks at inference time.

Problem

Jailbreak attacks make aligned LLMs produce harmful content; existing defenses are either costly fine-tuning or heuristic prompt-based methods, and achieving intrinsic robustness through prompt optimization was open.

Approach

Adversarially trains a short defense control prefix against an attack control (alternating min-min updates with GCG-style token search), jointly optimized with benign QA pairs to preserve utility; the learned prefix is prepended to user prompts at inference and can transfer across models.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add the PAT defense prefixVicuna-7B · AdvBench, average across GCG, AutoDAN, ICA, PAIR, and TAPAverage ASR: 70.8% -> 1.8%Helped
Add the PAT defense prefixLlama-2-7B · AdvBench, average across GCG, AutoDAN, ICA, PAIR, and TAPAverage ASR: 32.6% -> 0.8%Helped
Add the PAT defense prefixVicuna-7B · MT-benchMT-bench: 6.55 -> 6.68Helped
Add the PAT defense prefixVicuna-7B · MMLUMMLU: 51.2 -> 50.9Hurt
Add the PAT defense prefixGPT-3.5 · Automated jailbreak attacksASR: 92% -> 4%Helped
Add the PAT defense prefixGPT-4 · Automated jailbreak attacksASR: 5% -> 0%Helped
Increase defense control length (ablation)PAT on Vicuna-7B · AdvBench, GCG/AutoDAN/PAIRASRHelped
Increase defense control length excessively (ablation)PAT on Vicuna-7B · Benign utilityMMLUHurt
Decrease trade-off coefficient α (ablation)PAT on Vicuna-7B · AdvBench, GCG/AutoDAN/PAIRASRHelped
Decrease trade-off coefficient α (ablation)PAT on Vicuna-7B · Benign utilityMMLUHurt
Apply PAT under adaptive attackVicuna-7B · GCG adaptive attackASR: 92% -> 23%Helped
Apply PAT under adaptive attackLlama-2-7B · GCG adaptive attackASR: 36% -> 12%Helped

Surprising findings

Limitations

Experimental setup

Datasets: AdvBench MS MARCO

Benchmarks: AdvBench MT-bench MMLU

Metrics: attack success rate MT-bench score MMLU accuracy

Baselines: PPL filtering Self-reminder ICD DRO SafeDecoding SmoothLLM GCG AutoDAN ICA PAIR TAP

Builds on: greedy coordinate gradient adversarial training GCG

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy