mlsanityData to 14 Oct 2026

Diverse and Effective Red Teaming with Auto-generated Rewards and Multi-step Reinforcement Learning

arXiv 2412.18693 ↗First posted 24 Dec 2024cs.LG cs.AI cs.CLcited by 25

On the map: LLM safety and security → Prompt injection and agent security

also in 1 more
Abstract (arXiv)

Automated red teaming can discover rare model failures and generate challenging examples that can be used for training or evaluation. However, a core challenge in automated red teaming is ensuring that the attacks are both diverse and effective. Prior methods typically succeed in optimizing either for diversity or for effectiveness, but rarely both. In this paper, we provide methods that enable automated red teaming to generate a large number of diverse and successful attacks. Our approach decomposes the task into two steps: (1) automated methods for generating diverse attack goals and (2) generating effective attacks for those goals. While we provide multiple straightforward methods for generating diverse goals, our key contributions are to train an RL attacker that both follows those goals and generates diverse attacks for those goals. First, we demonstrate that it is easy to use a large language model (LLM) to generate diverse attacker goals with per-goal prompts and rewards, including rule-based rewards (RBRs) to grade whether the attacks are successful for the particular goal. Second, we demonstrate how training the attacker model with multi-step RL, where the model is rewarded for generating attacks that are different from past attempts further increases diversity while remaining effective. We use our approach to generate both prompt injection attacks and prompts that elicit unsafe responses. In both cases, we find that our approach is able to generate highly-effective and considerably more diverse attacks than past general red-teaming approaches.

Key facts. Cited by 25 papers in the map (data through 14 Oct 2026). Placed in Prompt injection and agent security, one of 12 directions in LLM safety and security. Builds on 43 of its 50 references that are in the map. First posted on arXiv 24 Dec 2024.

Builds on

43 of 50 references.

Closest ancestors · 11

Same direction, newest first

  1. 2024The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions19 Apr
  2. 2024Curiosity-driven Red-teaming for Large Language Models29 Feb
  3. 2024Rainbow Teaming: Open-Ended Generation of Diverse Adversarial Prompts26 Feb
  4. 2024PAL: Proxy-Guided Black-Box Attack on Large Language Models15 Feb
  5. 2024Gradient-Based Language Model Red Teaming30 Jan
  6. 2023MART: Improving LLM Safety with Multi-round Automatic Red-Teaming13 Nov
  7. 2023Ignore This Title and HackAPrompt: Exposing Systemic Vulnerabilities of LLMs through a Global Scale Prompt Hacking Competition24 Oct
  8. 2023Explore, Establish, Exploit: Red Teaming Language Models from Scratch15 Jun
  9. 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection23 Feb
  10. 2022Red Teaming Language Models to Reduce Harms: Methods, Scaling Behaviors, and Lessons Learned23 Aug
  11. 2022Red Teaming Language Models with Language Models7 Feb

Other references · 32

  1. 2023GPT-4 Technical Reportcited by 18,396
  2. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  4. 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,415
  5. 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,720
  6. 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,224
  7. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
  8. 2016Towards Evaluating the Robustness of Neural Networkscited by 2,998
  9. 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,975
  10. 2016Categorical Reparameterization with Gumbel-Softmaxcited by 2,739
  11. 2020Extracting Training Data from Large Language Modelscited by 2,189
  12. 2021WebGPT: Browser-assisted question-answering with human feedbackcited by 1,745
20 more
  1. 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,255
  2. 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,207
  3. 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 722
  4. 2023Aligning Large Multimodal Models with Factually Augmented RLHFcited by 712
  5. 2018Gender Bias in Coreference Resolution: Evaluation and Debiasing Methodscited by 659
  6. 2019The Woman Worked as a Babysitter: On Biases in Language Generationcited by 541
  7. 2022Improving alignment of dialogue agents via targeted human judgementscited by 531
  8. 2024Jailbreaking Leading Safety-Aligned LLMs with Simple Adaptive Attackscited by 486
  9. 2021Dynabench: Rethinking Benchmarking in NLPcited by 459
  10. 2023Scalable Extraction of Training Data from (Production) Language Modelscited by 434
  11. 2022Text and Code Embeddings by Contrastive Pre-Trainingcited by 361
  12. 2022A Holistic Approach to Undesired Content Detection in the Real Worldcited by 356
  13. 2021Gradient-based Adversarial Attacks against Text Transformerscited by 234
  14. 2020Learning from the Worst: Dynamically Generated Datasets to Improve Online Hate Detectioncited by 221
  15. 2023Automatically Auditing Large Language Models via Discrete Optimizationcited by 191
  16. 2019Build it Break it Fix it for Dialogue Safety: Robustness from Adversarial Human Attackcited by 176
  17. 2024Rule Based Rewards for Language Model Safetycited by 108
  18. 2023FLIRT: Feedback Loop In-context Red Teamingcited by 83
  19. 2022Adversarial Training for High-Stakes Reliabilitycited by 60
  20. 2022Robust Conversational Agents against Imperceptible Toxicity Triggerscited by 23

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 12; 2026: 13.

25 papers.

Sort:

By area:

  1. 2026Comparison requires valid measurement: Rethinking attack success rate comparisons in AI red teamingcited by 15
  2. 2025Jailbreaking to Jailbreakcited by 9
  3. 2025Quality-Diversity Red-Teaming: Automated Generation of High-Quality and Diverse Attackers for Large Language Modelscited by 9
  4. 2025Tiered Agentic Oversight: A Hierarchical Multi-Agent System for Healthcare Safetycited by 8
  5. 2026GPT-Red: Automated Red Teaming via Self-Play at Scalecited by 8
  6. 2025Black-box Optimization of LLM Outputs by Asking for Directionscited by 7
  7. 2025The Trojan Knowledge: Bypassing Commercial LLM Guardrails via Harmless Prompt Weaving and Adaptive Tree Searchcited by 7
  8. 2025Jailbreak Distillation: Renewable Safety Benchmarkingcited by 5
  9. 2025Red-Bandit: Test-Time Adaptation for LLM Red-Teaming via Bandit-Guided LoRA Expertscited by 5
  10. 2025SIRAJ: Diverse and Efficient Red-Teaming for LLM Agents via Distilled Structured Reasoningcited by 5
  11. 2026Learning to Attack and Defend: Adaptive Red Teaming of Language Models via GRPOcited by 5
  12. 2025Automating Prompt Leakage Attacks on Large Language Models Using Agentic Approachcited by 3
13 more
  1. 2026TreeTeaming: Autonomous Red-Teaming of Vision-Language Models via Hierarchical Strategy Explorationcited by 3
  2. 2026Evaluating Human-AI Safety: A Framework for Measuring Harmful Capability Upliftcited by 3
  3. 2026Adaptive Instruction Composition for Automated LLM Red-Teamingcited by 3
  4. 2025When Testing AI Tests Us: Safeguarding Mental Health on the Digital Frontlinescited by 2
  5. 2025Red-teaming Activation Probes using Prompted LLMscited by 1
  6. 2026Beyond Abstract Compliance: Operationalising trust in AI as a moral relationshipcited by 1
  7. 2026David vs. Goliath: Verifiable Agent-to-Agent Jailbreaking via Reinforcement Learningcited by 1
  8. 2026Buy versus Build an LLM: A Decision Framework for Governmentscited by 1
  9. 2025From Seed to Harvest: Augmenting Human Creativity with AI for Red-teaming Text-to-Image Modelscited by 0
  10. 2026ShellForge: Adversarial Co-Evolution of Webshell Generation and Multi-View Detection for Robust Webshell Defensecited by 0
  11. 2026FuzzingRL: Reinforcement Fuzz-Testing for Revealing VLM Failurescited by 0
  12. 2026FoeGlass: Simple In-Context Learning Is Enough for Red Teaming Audio Deepfake Detectorscited by 0
  13. 2026Training Alignment Auditors via Reinforcement Learningcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2024Learning diverse attacks on large language models for robust red-teaming and safety tuning
  2. 2025Active Attacks: Red-teaming LLMs via Adaptive Environments
  3. 2025Automatic LLM Red Teaming
  4. 2025Be a Multitude to Itself: A Prompt Evolution Framework for Red Teaming
  5. 2024DiveR-CT: Diversity-enhanced Red Teaming Large Language Model Assistants with Relaxing Constraints
  6. 2026PISmith: Reinforcement Learning-based Red Teaming for Prompt Injection Defenses
  7. 2024Automated Progressive Red Teaming
  8. 2025Prompt Optimization and Evaluation for LLM Automated Red Teaming