atlas

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

WildGuard: Open One-stop Moderation Tools for Safety Risks, Jailbreaks, and Refusals of LLMs

NeurIPS 2024 · Large language models › Language, safety and interpretability · approach: Safety alignment of LLMs · 25 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 WildGuard, an open multi-task moderation model (fine-tuned Mistral-7B-v0.3) that classifies prompt harmfulness, response harmfulness, and refusal, trained on the 87K-item WildGuardTrain and evaluated on the human-annotated WildGuardTest.

Problem

Open safety moderation tools perform poorly on adversarial jailbreak prompts and on detecting refusals in model responses, lagging far behind GPT-4 and leaving no open multi-task moderator covering prompt harm, response harm, and refusal.

Approach

A single instruction-tuned open model trained on a balanced multi-task mix of synthetic vanilla and adversarial (WildTeaming-transformed) prompts, in-the-wild prompts, annotator-written data, and matched refusal/compliance responses, jointly predicting all three moderation labels.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use WildGuard instead of GPT-4 for prompt harmfulness moderationSafety moderation · Public prompt harmfulness benchmarks (average)F1 (%): 84.6 -> 86.1Helped
Use WildGuard instead of GPT-4 for prompt harmfulness moderationSafety moderation · WildGuardTest adversarial promptsF1 (%): 81.6 -> 85.5Helped
Use WildGuard instead of MD-Judge for response harmfulness moderationSafety moderation · WildGuardTest adversarial responsesF1 (%): 67.7 -> 68.4Helped
Use WildGuard instead of GPT-4 for refusal detectionSafety moderation · WildGuardTest refusal detection (Harmful prompts)F1 (%): 93.9 -> 94.0Helped
Use WildGuard instead of LibrAI-LongFormer-refSafety moderation · WildGuardTest refusal detection (Total)F1 (%): 70.1 -> 88.6Helped
Add a WildGuard moderation filterTulu-2-dpo-7B · WildJailbreak validationAttack Success Rate (%): 79.8% to 2.4%Helped
Remove synthetic adversarial data (ablation)WildGuardTrain · WildGuardTest prompt harmfulness (Adversarial)F1 (%): 85.5 -> 77.1Hurt
Remove synthetic vanilla data (ablation)WildGuardTrain · Public prompt harmfulness (Avg.)F1 (%): 86.1 -> 83.6Hurt
Remove In-the-Wild data (ablation)WildGuardTrain · Public prompt harmfulness (Avg.)F1 (%): 86.1 -> 83.9Hurt
Remove worker-written data (ablation)WildGuardTrain · WildGuardTest response harmfulness (Public Avg.)F1 (%): 82.4 -> 76.4Hurt
Train separate single-task models instead of the multi-task model (ablation)WildGuard · WildGuardTest prompt harmfulness (Public Avg.)F1 (%): 86.0 -> 86.1Hurt
Train separate single-task models instead of the multi-task model (ablation)WildGuard · WildGuardTest refusal detection (XSTest-Resp)F1 (%): 92.8 -> 93.3Mixed

Surprising findings

Limitations

Experimental setup

Datasets: WildGuardTrain WildJailbreak LMSYS-Chat-1M WildChat HH-RLHF Anthropic Red-Teaming AegisSafetyTrain Safety-Tuned Llamas XSTest

Benchmarks: WildGuardTest XSTest-Resp ToxicChat OpenAI Moderation AegisSafetyTest SimpleSafetyTests HarmBenchPrompt HarmBenchResponse SafeRLHF BeaverTails WildJailbreak eval set

Metrics: F1 ASR RTA

Baselines: Llama-Guard Llama-Guard2 Aegis-Guard-Defensive Aegis-Guard-Permissive MD-Judge BeaverDam HarmBench classifiers LibrAI-LongFormer-ref OpenAI Moderation API GPT-4

Builds on: WildTeaming WildJailbreak Llama-Guard2 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