atlas

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

FlipAttack: Jailbreak LLMs via Flipping

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

Proposes FlipAttack, a single-query black-box jailbreak that disguises harmful prompts by flipping word order or characters and uses a guidance prompt (CoT, role-play, few-shot) to have the LLM recover and execute the request.

Problem

Existing jailbreak attacks on black-box LLMs need white-box gradients, many iterative queries, or complex auxiliary tasks (ciphers, code) that LLMs struggle to execute, and they are often detected by guard models.

Approach

Exploits the left-to-right autoregressive understanding of LLMs: a left-side perturbation built only from the prompt's own characters (flipping words or characters) disrupts comprehension and evades guard models, while a flipping guidance module teaches the victim LLM to reverse the flip and execute the request in one query.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use FlipAttack rather than ReNeLLMjailbreak attack on AdvBench · 8 target LLMs (average)ASR-GPT: 56.64 -> 78.97Helped
Use FlipAttack rather than ReNeLLMjailbreak attack · GPT-3.5 TurboASR-GPT: 91.35 -> 88.65Hurt
Add CoT to Vanilla (ablation)FlipAttack · Claude 3.5 SonnetASR-GPT: +16.92%Helped
Add CoT to Vanilla (ablation)FlipAttack · GPT-4o miniASR-GPT: near 0Hurt
Add LangGPT structured role-playing prompt to Vanilla+CoT (ablation)FlipAttack · GPT-3.5 TurboASR-GPT: 39.04% -> 70.38%Helped
Add task-oriented few-shot demonstrations to Vanilla+CoT+LangGPT (ablation)FlipAttack · GPT-3.5 TurboASR-GPT: +16.16%Helped
Add task-oriented few-shot demonstrations to the flipping task (ablation)LLM prompt recovery · LLaMA 3.1 405Bmatch rate: 44.80 -> 90.46Helped
Use Flip Word Order rather than the other flipping modes (ablation)FlipAttack in Vanilla · 8 LLMs (average)ASR: 65.99%Helped
Remove the system prompt (ablation)FlipAttack · GPT-4 Turbo and GPT-4ASR-GPT: 98.85% -> 94.04%; 89.42% -> 86.73%Hurt
Move the system prompt into the user prompt (ablation)FlipAttack · most tested LLMsASR-GPT: 78.97% -> 75.84%Mixed
Add left-side perturbation rather than right-side perturbationinput text of LLMs and guard models · 3 LLMs and 4 guard models (average)perplexity: 477.09 -> 815.93Helped
Flip the harmful promptguard-model detection · 3 LLMs and 4 guard LLMs (average)perplexity: 49.90 -> 809.67Helped

Surprising findings

Limitations

Experimental setup

Datasets: AdvBench harmful behaviors Alpaca safe subset

Benchmarks: AdvBench harmful behaviors StrongREJECT

Metrics: attack success rate (ASR-GPT) attack success rate (ASR-DICT) bypass rate perplexity token count match rate

Baselines: GCG AutoDAN MAC COLD-Attack PAIR TAP Base64 GPTFuzzer DeepInception DRA ArtPrompt PromptAttack

Builds on: GCG AutoDAN ReNeLLM CodeChameleon JailbreakBench

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