atlas

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

Text-Diffusion Red-Teaming of Large Language Models: Unveiling Harmful Behaviors with Proximity Constraints

AAAI 2025 · Large language models › Language, safety and interpretability · approach: Safety alignment of LLMs · 1 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 DART, a text-diffusion-inspired black-box red-teaming method that perturbs reference prompts in embedding space under a norm budget, yielding harmful test prompts close to the reference.

Problem

Automated red-teaming of LLMs is hard to control; red-teamers need to find harmful inputs that stay in close proximity to a given reference prompt dataset (topics, styles, harm types).

Approach

Train a T5-based diffusion model to output a noise vector added to the reference prompt's sentence embedding, with an L2-norm regularizer enforcing the proximity budget; the perturbed embedding is decoded to text with vec2text and trained with PPO against a toxicity classifier reward.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use DART rather than the proximity-constrained RL baselinered-teaming prompts across GPT2-alpaca, Vicuna-7b, and Llama-2-7b · Red Teaming dataset and Alpaca datasetASRHelped
Increase DART's proximity budget from ε=0.1 to ε=0.5 or ε=2 (ablation)DART · Red Teaming dataset and Alpaca datasetASRHelped
Remove the proximity penalty from the RL reward and use KL-divergence regularization only (ablation)RL red-teaming baseline · Vicuna-7bReward: -8.63 -> -8.60No clear effect
Remove the proximity penalty from the RL reward (ablation)RL red-teaming baseline · Vicuna-7bCosine similarity: 0.15Hurt
Use Few-Shot rather than Zero-Shot promptinguncensored Llama2-7b-chat-hf red-teaming model · Red Teaming dataset and Alpaca datasetASRMixed

Surprising findings

Limitations

Experimental setup

Datasets: Red Teaming dataset (Anthropic HH red-team) alpaca-gpt4 Beavertails PAWS

Benchmarks: Red Teaming dataset alpaca-gpt4 prompts Beavertails

Metrics: mean toxicity reward (classifier logits) attack success rate (toxicity prob > 50%) cosine similarity intent maintained (manual annotation)

Baselines: Unmodified RL (auto-regressive PPO) Zero-Shot Few-Shot FLIRT

Builds on: proximal policy optimization vec2text continuous text diffusion FLIRT

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