atlas

Research map / Large language models / Language, safety and interpretability

COLD-Attack: Jailbreaking LLMs with Stealthiness and Controllability

ICML 2024 · Large language models › Language, safety and interpretability · approach: Jailbreak attacks and defenses · 5 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.

Adapts the COLD energy-based constrained decoding with Langevin dynamics to generate controllable, fluent, and stealthy jailbreak prompts (suffix, paraphrase, and position-constrained attacks) against white-box and GPT LLMs.

Problem

Existing white-box jailbreak methods like GCG yield gibberish suffixes easily caught by perplexity filters and offer no way to impose controllable attributes (sentiment, style, position, paraphrasing) on the attack.

Approach

Formulates controllable attack generation as constrained sampling and adapts COLD (energy-based Langevin dynamics over logits plus LLM-guided decoding) so that attack success, fluency, semantic similarity, and lexical/sentiment constraints are encoded as composable energy functions.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use COLD-Attack instead of AutoDAN-Zhu for continuation-constrained suffix generationLLM jailbreak prompts · AdvBench subset, continuation constraint, evaluated LLMsPPL: 33.43 -> 32.96; 50.47 -> 30.55; 79.53 -> 26.24; 152.32 -> 24.83Helped
Use COLD-Attack instead of AutoDAN-Zhu for continuation-constrained suffix generationLLM jailbreak prompts · AdvBench subset, continuation constraint, evaluated LLMsASR-G: 84.00 -> 86.00; 80.00 -> 84.00; 84.00 -> 90.00; 68.00 -> 66.00Mixed
Use COLD-Attack instead of PRISM for paraphrase-constrained promptsLLM jailbreak prompts · AdvBench subset, paraphrasing constraint, Llama2ASR: 4.00 -> 86.00Helped
Use COLD-Attack instead of PRISM for paraphrase-constrained promptsLLM jailbreak prompts · AdvBench subset, paraphrasing constraint, Llama2ASR-G: 2.00 -> 74.00Helped
Add negative sentiment steering rather than positive sentiment steeringCOLD-Attack paraphrase prompts · AdvBench subset, sentiment steering, GuanacoASR-G: 56.00 -> 80.00Helped
Add negative sentiment steering rather than positive sentiment steeringCOLD-Attack paraphrase prompts · AdvBench subset, sentiment steering, MistralASR-G: 60.00 -> 90.00Helped
Add positive sentiment steering rather than negative sentiment steeringCOLD-Attack paraphrase prompts · AdvBench subset, sentiment steering, Llama2ASR-G: 40.00 -> 58.00Helped
Insert COLD-Attack between the query and control prompt instead of using the prompt-only inputLlama2 · AdvBench subset, position constraint, lexical controlASR-G: 24.00 -> 86.00Helped
Insert COLD-Attack between the query and control prompt instead of using the prompt-only inputLlama2 · AdvBench subset, position constraint, format controlASR-G: 8.00 -> 86.00Helped
Use COLD-Attack instead of GCG for position-constrained promptsLlama2 · AdvBench subset, position constraint, sentimentPPL: 2587.90 -> 59.53Helped
Use COLD-Attack instead of AutoDAN-Zhu for position-constrained promptsLlama2 · AdvBench subset, position constraint, sentimentASR-G: 72.00 -> 88.00Helped

Surprising findings

Limitations

Experimental setup

Datasets: AdvBench

Benchmarks: AdvBench

Metrics: ASR ASR-G PPL Succ BLEU ROUGE BERTScore DNS ADN Self-BLEU

Baselines: UAT GBDA PEZ GCG GCG-reg AutoDAN-Zhu AutoDAN-Liu PRISM PAWS GPT-4 paraphrase

Builds on: COLD GCG AutoDAN Langevin dynamics Universal adversarial triggers

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