atlas

Research map / Large language models / Instruction and fine-tuning

Learning Diverse Attacks on Large Language Models for Robust Red-Teaming and Safety Tuning

ICLR 2025 · Large language models › Instruction and fine-tuning · approach: Safety alignment after fine-tuning · 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 GFlowNet fine-tuning followed by MLE smoothing on collected high-reward prompts to train a GPT-2 attacker that generates diverse and effective red-teaming prompts against several target LLMs.

Problem

Automated red-teaming with RL tends to mode-collapse or produce ineffective attacks, so it fails to find diverse, effective, and transferable attack prompts against LLMs, especially safety-tuned ones.

Approach

Treat attack generation as sampling from a tempered reward distribution using GFlowNet trajectory balance fine-tuning, then smooth by re-fine-tuning the pretrained attacker with MLE on high-reward prompts collected during GFlowNet training, which also allows cheap reranking-based adaptation to new targets.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add MLE smoothing after GFlowNet fine-tuning (ablation)GPT-2 attacker trained on Gemma-2b-it · Gemma-2b-ittoxicity rate: 11.57 -> 85.16Helped
Train attacks with GFlowNet + MLE rather than ICLGPT-2 attacker trained on Gemma-2b-it · Llama-2-7b-chat transfertoxicity rate: 8.13 -> 27.39Helped
Train attacks with GFlowNet + MLE rather than ICLGPT-2 attacker trained on Gemma-2b-it · Llama-3-70b-instruct transfertoxicity rate: 20.34 -> 52.01Helped
Train attacks with GFlowNet + MLE rather than ICLGPT-2 attacker trained on Gemma-2b-it · Mistral-7b-instruct-v0.2 transfertoxicity rate: 25.48 -> 66.63Mixed
Replace GFlowNet with PPO + Novelty for offline dataset collection (ablation)MLE smoothing for Llama-2-7b-chat red-teaming · Llama-2-7b-chatnumber of collected samples: 9,021 -> 0Hurt
Use GFlowNet-collected prompts rather than PPO + Novelty-collected prompts (ablation)MLE smoothing for Llama-2-7b-chat red-teaming · Llama-2-7b-chattoxicity rate: 0.00 -> 62.71Helped
Safety-tune Gemma-2b-it on GFlowNet + MLE red-teaming promptsGemma-2b-it · ARCaccuracy: 40.36% -> 39.25%No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: SafetyDataset AdvBench Open LLM Leaderboard tasks (ARC, HellaSwag, TruthfulQA, MMLU, Winogrande, GSM8k)

Benchmarks: Red-teaming toxicity rate and diversity on GPT-2, Dolly-v2-7b, Gemma-2b-it, Llama-2-7b-chat, Llama-3.1-8B-Instruct Transfer toxicity to Llama-2/3, Gemma, Mistral, Starling, GPT-4o Open LLM Leaderboard (ARC, HellaSwag, TruthfulQA, MMLU, Winogrande, GSM8k)

Metrics: toxicity rate average pairwise cosine distance transfer toxicity rate

Baselines: SFT ICL REINFORCE PPO + Novelty GFlowNet

Builds on: GFlowNet trajectory balance REINFORCE PPO Rainbow Teaming

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