atlas

Research map / Adversarial robustness and security / Attacks on text and graphs

Rainbow Teaming: Open-Ended Generation of Diverse Adversarial Prompts

NeurIPS 2024 · Adversarial robustness and security › Attacks on text and graphs · approach: Adversarial prompts for language models · 7 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.

Rainbow Teaming uses MAP-Elites-style quality-diversity search with LLM mutator, target, and judge components to generate diverse adversarial prompts across safety, QA, and cybersecurity domains.

Problem

Existing automatic red-teaming methods for LLMs are domain-specific, lack diversity, or trade off attack diversity against success rate, and often need human annotation or white-box access.

Approach

Casts adversarial prompt generation as quality-diversity search over a discrete archive of feature descriptors (e.g., risk category x attack style); an LLM mutator produces candidates from archived "stepping stone" prompts, and a pairwise LLM judge decides archive updates instead of a fixed score.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use Rainbow Teaming instead of PAIR with the same mutator LLMJailbreak prompt generation · JailbreakBench behaviourssuccessful jailbreaks / behaviours (Llama Guard): 14/11 -> 66/41Helped
Use Rainbow Teaming instead of PAIR with the same mutator LLMJailbreak prompt generation · JailbreakBench promptsSelf-BLEU: 0.74 -> 0.51Helped
remove parent-child similarity filter (ablation)Rainbow Teaming · Llama 2-chat 7B archiveASR (GPT-4): 0.92 \pm 0.01 -> 0.99 \pm 0.01Helped
remove parent-child similarity filter (ablation)Rainbow Teaming · Llama 2-chat 7B archiveSelf-BLEU: 0.42 \pm{} 0.01 -> 0.79 \pm 0.04Hurt
fine-tune on Rainbow Teaming synthetic dataLlama 2-chat 7B · New adversarial archivesASR (GPT-4): 0.92 \pm{} 0.008 -> 0.003 \pm{} 0.003Helped
fine-tune on Rainbow Teaming synthetic dataLlama 2-chat 7B · New adversarial archivesASR (Llama Guard): 0.95 \pm {} 0.005 -> 0.007 \pm {} 0.003Helped
fine-tune on Rainbow Teaming synthetic dataLlama 2-chat 7B · JailbreakBenchPAIR ASR (Llama Guard): 0.14 -> 0.0Helped
fine-tune on Rainbow Teaming synthetic dataLlama 2-chat 7B · GSM8K (8-shot, maj@1)score: 0.224 -> 0.219No clear effect
fine-tune on Rainbow Teaming synthetic dataLlama 2-chat 7B · MMLU (5-shot)score: 0.412 -> 0.405No clear effect
reuse archived questions as stepping stones instead of generating each candidate from scratchQuestion-answering adversarial prompt generation · Question answering archiveMean Fitness: 0.79 \pm{} 0.01 -> 0.91 \pm{} 0.01Helped
add legacy safety system prompt (ablation)Llama 2-chat 7B · Safety archiveASR (GPT-4): 0.92 \pm 0.008 -> 0.51 \pm 0.016Helped
add helpful system prompt (ablation)Llama 2-chat 7B · Safety archiveASR (GPT-4): 0.92 \pm 0.008 -> 0.82 \pm 0.029Helped

Surprising findings

Limitations

Experimental setup

Datasets: Anthropic Harmless (seed dataset in ablation) JailbreakBench GSM8K MMLU Anthropic Harmless Anthropic Helpful

Benchmarks: JailbreakBench GSM8K MMLU CyberSecEval

Metrics: attack success rate self-BLEU BERTScore ROGUE-L compression ratio mean fitness coverage reward model safety and helpfulness scores

Baselines: PAIR TAP No Stepping Stones Same Cell Mutations Score-based (No Judge)

Builds on: MAP-Elites PAIR QDAIF Llama Guard

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