atlas

Research map / Adversarial robustness and security / Black-box and transfer attacks

Query-Based Adversarial Prompt Generation

NeurIPS 2024 · Adversarial robustness and security › Black-box and transfer attacks · approach: Robustness benchmarks and defenses · 6 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 Greedy Coordinate Query (GCQ), a query-based adversarial suffix attack that uses API access to a remote LLM (and a local proxy model, or none) to elicit exact harmful strings and evade content moderation classifiers.

Problem

Transfer-based adversarial attacks on aligned language models are weak at targeted behavior (exact harmful strings) and depend on a high-quality surrogate model; white-box attacks need full model access.

Approach

Split each GCG iteration into a gradient-based (proxy-model) candidate filter followed by selection using true loss queries to the target model via API; a best-first buffer search replaces brute-force GCG, and a variant drops the proxy entirely, making it a pure query-only attack.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace pure transfer optimization with target-model queries using GCQGCG Pure Transfer on harmful strings · Vicuna 1.3 7Bsuccess rate: 0.000 -> 0.791Helped
Replace pure transfer optimization with target-model queries using GCQGCG Pure Transfer on harmful strings · Vicuna 1.3 7B target, Vicuna 1.3 13B proxysuccess rate: 0.000 -> 0.388Helped
Increase the per-target budget from $0.10 to $0.20GCQ on GPT-3.5 Turbo Instruct · Harmful stringsattack success rate: 79.6\% -> 86.0\%Helped
Use a 40-token prompt and raise the per-target budget to $2GCQ on GPT-3.5 Turbo Instruct · Previously failed harmful strings longer than 20 tokensattack success rate: 100\%Helped
Add target-repeat initialization instead of using uniform random promptsGCQ on GPT-3.5 Turbo Instruct · Harmful stringsimmediate target-string success: 28\%Helped
Use random initialization instead of target-repeat initialization (ablation)GCQ on GPT-3.5 Turbo Instruct · First 20 harmful stringssuccessful targets: only twiceHurt
Use the optimized single-position search rather than original GCG candidate updates (ablation)GCG on Vicuna 7B · Proxy-free harmful stringsquery efficiency: 2× more query-efficientHelped
Remove gradient information and sample token replacements at random (ablation)Optimized GCG on Vicuna 7B · Proxy-free harmful stringsattack success rate: about 30\%Helped
Short-circuit cumulative logprob computation when a candidate can be discarded (ablation)GCQ · Harmful-string attack costcost: approximately 30\%Helped
Re-tokenize prompts before sending them to the API (ablation)GCQ · Harmful-string generationsuccess rateNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: harmful strings dataset (574 strings)

Benchmarks: harmful strings dataset OpenAI text-moderation-007 evaluation on harmful strings Llama Guard 7B evaluation on harmful strings

Metrics: attack success rate cost in USD number of queries/requests

Baselines: GCG GCG Pure Transfer AutoDAN GA AutoDAN HGA

Builds on: GCG AutoPrompt AutoDAN

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