atlas

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

WildTeaming at Scale: From In-the-Wild Jailbreaks to (Adversarially) Safer Language Models

NeurIPS 2024 · Large language models › Language, safety and interpretability · approach: Jailbreak elicitation and risk · 13 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.

Mines 105K in-the-wild jailbreak tactics from chatbot logs to automatically compose diverse adversarial attacks (WildTeaming) and uses them to build the 262K-example WildJailbreak safety training dataset, showing that balanced vanilla/adversarial and harmful/benign data improves safety without hurting general capabilities.

Problem

Existing red-teaming methods find few diverse successful jailbreaks and open safety training data lacks adversarial complexity and benign contrast examples, leading to weak robustness and exaggerated refusals.

Approach

Mine jailbreak tactics from real user-chatbot logs (LMSYS-1M, WildChat) with GPT-4 and compose random subsets of them onto vanilla harmful prompts using an off-the-shelf attacker LLM with off-topic and low-risk pruning, then use the resulting attacks, paired with benign contrast queries, as safety SFT data.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Compose mined in-the-wild tactics into attacks rather than use PAIRWildTeam · HarmBench test set; Vicuna 7BASR×5₃₀: 59.5 -> 88.1Helped
Add off-topic and low-risk pruners (ablation)WildTeam · HarmBench test setattack performanceHelped
Do not fix the “seed leading sentence” tactic (ablation)WildTeam · HarmBench test setASR×5₃₀: 80.5 vs. 56.1Hurt
Add WildJailbreak training dataLlama2 7B fine-tuned on T2M-no-refusal · HarmBenchASR: 20.8 -> 3.1Helped
Add WildJailbreak training dataLlama2 7B fine-tuned on T2M-no-refusal · DoAnythingNowASR: 49.7 -> 14.0Helped
Add WildJailbreak training dataLlama2 7B fine-tuned on T2M-no-refusal · MT-Benchtotal score: 5.84 -> 6.29Helped
Train on harmful data only instead of all four WildJailbreak components (ablation)Llama2 7B fine-tuned on T2M-no-refusal · WildJailbreak test set; benignRTA: 1.6 -> 54.4Hurt
Add benign examples to harmful-only training (ablation)Llama2 7B fine-tuned on T2M-no-refusal · WildJailbreak test set; benignRTA: 54.4 -> 1.6Helped
Train on vanilla data only instead of all four WildJailbreak components (ablation)Llama2 7B fine-tuned on T2M-no-refusal · WildJailbreak test setaccuracy: 98.4 -> 70.7Hurt
Add adversarial training data to vanilla-only training (ablation)Llama2 7B fine-tuned on T2M-no-refusal · WildJailbreak test setaccuracy: 70.7 -> 98.4Helped
Train on adversarial data only instead of all four WildJailbreak components (ablation)Llama2 7B fine-tuned on T2M-no-refusal · WildJailbreak test setaccuracy: 98.4 -> 97.4Hurt
Add vanilla training data to adversarial-only training (ablation)Llama2 7B fine-tuned on T2M-no-refusal · vanilla and adversarial safety benchmarkssafety performanceMixed

Surprising findings

Limitations

Experimental setup

Datasets: LMSYS-Chat-1M WildChat Tulu2Mix HH-RLHF Safe-RLHF Safety-Tuned Llamas HarmBench

Benchmarks: HarmBench AlpacaEval MT-Bench ToxiGen XSTest JailbreakTrigger DoAnythingNow WildJailbreak test MMLU GSM BBH TydiQA

Metrics: ASR Query PPL ASR x5 30 Query x5 30 Sim #Tactic RTA F1 win rate

Baselines: PAIR AutoDAN GCG Tulu2Mix Tulu2Mix-public-safety

Builds on: HarmBench PAIR Tulu 2 Safety-Tuned Llamas XSTest

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