atlas

Research map / Large language models / Alignment and preferences

GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via Cipher

ICLR 2024 · Large language models › Alignment and preferences · approach: LLM-as-judge and feedback data · 14 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 CipherChat, a framework that chats with GPT-3.5 and GPT-4 through ciphers plus role-play and demonstrations to bypass safety alignment, and SelfCipher, which uses natural language role-play to evoke an internal cipher.

Problem

Safety alignment of LLMs is mostly conducted in natural language, so it may not generalize to non-natural-language inputs such as ciphers, letting unsafe requests bypass refusals.

Approach

Use a system prompt that assigns the model a cipher-expert role, teaches the cipher, and provides enciphered unsafe demonstrations, so the model replies in cipher and a rule-based decrypter recovers the text; SelfCipher drops explicit ciphers and relies on role-play with natural-language unsafe demonstrations to evoke the model's own cipher.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use SelfCipher instead of vanilla promptingGPT-4-0613 · Crimes, Englishunsafety rate: 0 -> 70.9Helped
Use SelfCipher instead of vanilla promptingGPT-4-0613 · Crimes, Chineseunsafety rate: 0 -> 53.3Helped
Use Caesar cipher instead of vanilla promptingGPT-4-0613 · Crimes, Englishunsafety rate: 0 -> 73.4Helped
Use SelfCipher instead of vanilla promptingGPT-3.5-turbo-0613 · Crimes, Englishunsafety rate: 0 -> 38.2Helped
Remove the system role prompt (ablation)CipherChat with GPT-4 · Crimes, English, SelfCipherunsafety rate: 70.9 -> 1.0Hurt
Add the system role prompt (ablation)CipherChat with GPT-4 · Crimes, English, ASCIIunsafety rate: 57.8 -> 68.3Mixed
Remove the system role prompt (ablation)CipherChat with GPT-4 · Crimes, Chinese, UTFunsafety rate: 46.2 -> 2.5Hurt
Remove unsafe demonstrations (ablation)CipherChat with GPT-4 · Crimes, English, SelfCipherunsafety rate: 70.9 -> 3.0Hurt
Add unsafe demonstrations (ablation)CipherChat with GPT-4 · Crimes, Chinese, SelfCipherunsafety rate: 4.5 -> 53.3Helped
Replace unsafe demonstrations with safe demonstrations (ablation)CipherChat with GPT-4 · Crimes, English, SelfCipherunsafety rate: 70.9 -> 1.0Hurt
Replace unsafe demonstrations with safe demonstrations (ablation)CipherChat with GPT-4 · Crimes, Chinese, UTFunsafety rate: 46.2 -> 1.5Hurt
Replace the SelfCipher prompt term with "English" (ablation)CipherChat with GPT-4 · Crimes, Englishunsafety rate: 70.9% to 1.0%Hurt

Surprising findings

Limitations

Experimental setup

Datasets: Chinese safety assessment benchmark (Sun et al. 2023 taxonomy, 11 domains sampled, 199 instances each) Alpaca (general instructions, 100 samples for generalization test)

Benchmarks: Chinese safety assessment benchmark (11 domains, English and Chinese) Alpaca

Metrics: unsafety rate validity rate success rate

Baselines: Vanilla prompting Vanilla + UnsafeDemo Caesar cipher ASCII cipher Unicode cipher UTF cipher Morse code Atbash cipher

Builds on: chain-of-thought in-context learning Jailbroken: competing objectives and mismatched generalization

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