atlas

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

Fast Adversarial Attacks on Language Models In One GPU Minute

ICML 2024 · Adversarial robustness and security › Attacks on text and graphs · approach: Adversarial prompts for language models · 0 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.

Introduces BEAST, a gradient-free beam search attack that generates readable adversarial suffixes for LMs in about one GPU minute, applied to jailbreaking, hallucination elicitation, and membership inference.

Problem

Gradient-based adversarial attacks on language models are slow (over an hour per prompt) and produce gibberish, while faster black-box alternatives depend on expensive GPT-4 API access; the paper asks whether LMs can be attacked quickly and cheaply for jailbreaks, hallucinations, and privacy attacks

Approach

Beam search over adversarial suffix tokens, where candidate tokens are multinomially sampled from the target LM's own next-token distribution (so outputs stay readable) and beams are ranked by an adversarial objective; beam size k1 and per-beam sample count k2 trade off speed, success, and readability.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use BEAST instead of the strongest reported baseline within a one-GPU-minute budgetVicuna-7B-v1.5 on AdvBench · AdvBench, one GPU minuteASR (%): 89 vs 46Helped
Use BEAST instead of AutoDAN-2 within a one-GPU-minute budgetMistral-7B-v0.2 on AdvBench · AdvBench, one GPU minuteASR (%): 83 vs 68Helped
Increase universal-suffix beam size from 10 to 15 (ablation)BEAST on Vicuna-7B-v1.5 · AdvBench universal suffix, train and testASR (%): 90 -> 95; 78.75 -> 84.38Helped
Increase universal-suffix beam size from 10 to 15 (ablation)BEAST on Vicuna-13B-v1.5 · AdvBench universal suffix, train and testASR (%): 60 -> 80; 48.13 -> 68.13Helped
Add a PPL defenseBEAST on Vicuna-7B-v1.5 · AdvBench, one GPU minuteASR (%): 89 -> 70Hurt
Add BEAST adversarial prompts to the PPL membership-inference methodPPL on WikiMIA · WikiMIA, average across modelsAUROC: 58.6 -> 59.9Helped
Add BEAST adversarial prompts to the Min-k% membership-inference methodMin-k% on WikiMIA · WikiMIA, average across modelsAUROC: 56.4 -> 59.1Helped
Add BEAST adversarial prompts to Min-k%Min-k% on LLaMA-2-7B · WikiMIAAUROC: 69.7 -> 58.3Hurt
Apply BEAST untargeted prompts instead of clean promptsVicuna-7B-v1.5 · TruthfulQA, human evaluationCorrect responses (%): 62.67 -> 48.00Hurt
Apply BEAST untargeted prompts instead of clean promptsLLaMA-2-7B-Chat · TruthfulQA, human evaluationCorrect responses (%): 59.00 -> 47.00Hurt
Increase beam size k from 3 to 15 (ablation)BEAST jailbreak attack on Vicuna-7B · AdvBenchASR (%): 66% -> 98%Helped

Surprising findings

Limitations

Experimental setup

Datasets: AdvBench Harmful Behaviors TruthfulQA WikiMIA

Benchmarks: AdvBench Harmful Behaviors TruthfulQA WikiMIA

Metrics: attack success rate AUROC human-judged inconsistency and advantage

Baselines: AutoDAN-1 AutoDAN-2 PAIR GCG Clean PPL Min-k%

Builds on: GCG AutoDAN PAIR Min-k% Prob

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