atlas

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

Robust Prompt Optimization for Defending Language Models Against Jailbreaking Attacks

NeurIPS 2024 · Adversarial robustness and security › Attacks on text and graphs · approach: Adversarial prompts for language models · 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 Robust Prompt Optimization (RPO), a minimax-objective method that optimizes a 20-token defensive suffix against adaptive jailbreaks, transferring it to GPT-4 and other models.

Problem

LLMs remain vulnerable to jailbreaking attacks, and existing defenses do not generalize across multiple attacks or account for adaptive adversaries.

Approach

Formalizes a minimax defensive objective that incorporates the adversary's worst-case jailbreak into the defense loss, and optimizes a discrete, transferable system-level suffix via GCG-style coordinate search, selecting the strongest current jailbreak (PAIR/GCG/JBC) at intervals during optimization.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add the RPO defensive suffixVicuna-13B · JailbreakBench PAIR adaptiveASR: 82% -> 20%Helped
Add the RPO defensive suffixLlama-2-7B · JailbreakBench PAIR adaptiveASR: 4% -> 0%Helped
Add the RPO defensive suffixVicuna-13B · JailbreakBench GCG adaptiveASR: 58% -> 1%Helped
Add the RPO defensive suffixLlama-2-7B · JailbreakBench GCG adaptiveASR: 2% -> 0%Helped
Add the RPO defensive suffixVicuna-13B · HarmBench averageASR: 48.0 -> 29.6Helped
Add the RPO defensive suffixLlama-2-7B · HarmBench averageASR: 9.7 -> 3.2Helped
Add the RPO defensive suffixGPT-3.5 · HarmBench averageASR: 27.2 -> 18.5Helped
Add the RPO defensive suffixGPT-4 · HarmBench averageASR: 19.2 -> 15.7Helped
Add the RPO defensive suffixVicuna-13B · MT-Benchscore: 6.57 -> 5.96Hurt
Add the RPO defensive suffixVicuna-13B · MMLUscore: 0.50 -> 0.49Hurt
Add the RPO defensive suffixLlama-2-7B · MT-Benchscore: 6.18 -> 6.05Hurt
Add the RPO defensive suffixLlama-2-7B · MMLUscore: 0.46 -> 0.46No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: AdvBench JailbreakBench HarmBench JailbreakChat prompts

Benchmarks: JailbreakBench HarmBench MT-Bench MMLU

Metrics: attack success rate MT-Bench score MMLU accuracy

Baselines: SmoothLLM Perplexity Filter Rephrasing Few-Shot defense GCG PAIR AutoDAN TAP PAP Jailbreak Chat

Builds on: GCG AutoPrompt adversarial training PAIR

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