mlsanityData to 14 Oct 2026

Quality-Diversity Red-Teaming: Automated Generation of High-Quality and Diverse Attackers for Large Language Models

arXiv 2506.07121 ↗First posted 8 Jun 2025cs.LG cs.AI cs.NEcited by 9

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

Abstract (arXiv)

Ensuring the safety and robustness of large language models (LLMs) is a fundamental challenge and a critical prerequisite for the responsible deployment of artificial intelligence. Red-teaming, a systematic framework to identify adversarial prompts that elicit harmful responses from target LLMs, has emerged as a crucial safety evaluation paradigm. Within this framework, the diversity of adversarial prompts is critical for a comprehensive safety assessment. However, previous red-teaming approaches often pursue diversity through simplistic metrics such as word frequency or sentence embedding similarity, which may not capture meaningful variation in attack strategies. In addition, the common practice of training a single attacker model restricts coverage across all potential attack styles and risk categories. This paper introduces Quality-Diversity Red-Teaming (QDRT), a new framework designed to address these limitations. QDRT achieves goal-driven diversity through behavior-conditioned training and implements a behavioral replay buffer in an open-ended manner. In addition, it trains multiple specialized attackers capable of generating high-quality attacks across diverse styles and risk categories. Our empirical evaluation demonstrates that QDRT generates attacks that are both more diverse and more effective against a wide range of target LLMs, including open-source models textttGPT-2, textttLlama-3, textttGemma-2, textttQwen2.5, and commercial models textttGPT-4.1 and textttGPT-5-Chat. This work advances the field of LLM safety by providing a systematic and effective approach to automated red-teaming, ultimately supporting the responsible deployment of LLMs. Our code is available at https://github.com/lamda-bbo/QDRT.

Key facts. Cited by 9 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 57 of its 69 references that are in the map. First posted on arXiv 8 Jun 2025.

Builds on

57 of 69 references.

Closest ancestors · 13

Same direction, newest first

  1. 2025Auto-RT: Automatic Jailbreak Strategy Exploration for Red-Teaming Large Language Models3 Jan
  2. 2024Diverse and Effective Red Teaming with Auto-generated Rewards and Multi-step Reinforcement Learning24 Dec
  3. 2024Automated Red Teaming with GOAT: the Generative Offensive Agent Tester2 Oct
  4. 2024Ferret: Faster and Effective Automated Red Teaming with Reward-Based Scoring Technique20 Aug
  5. 2024Ruby Teaming: Improving Quality Diversity Search with Memory for Automated Red Teaming17 Jun
  6. 2024Learning diverse attacks on large language models for robust red-teaming and safety tuning28 May
  7. 2024Against The Achilles' Heel: A Survey on Red Teaming for Generative Models31 Mar
  8. 2024Curiosity-driven Red-teaming for Large Language Models29 Feb
  9. 2024Rainbow Teaming: Open-Ended Generation of Diverse Adversarial Prompts26 Feb
  10. 2023Red Teaming Language Model Detectors with Language Models31 May
  11. 2023Query-Efficient Black-Box Red Teaming via Bayesian Optimization27 May
  12. 2022Red Teaming Language Models to Reduce Harms: Methods, Scaling Behaviors, and Lessons Learned23 Aug
1 more
  1. 2022Red Teaming Language Models with Language Models7 Feb

Other references · 44

  1. 2023GPT-4 Technical Reportcited by 18,396
  2. 2022Training language models to follow instructions with human feedbackcited by 15,971
  3. 2017Proximal Policy Optimization Algorithmscited by 15,215
  4. 2024The Llama 3 Herd of Modelscited by 14,715
  5. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
  6. 2024Qwen2.5 Technical Reportcited by 4,942
  7. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
  8. 2022Constitutional AI: Harmlessness from AI Feedbackcited by 3,050
  9. 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,651
  10. 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,420
  11. 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,207
  12. 2024Gemma: Open Models Based on Gemini Research and Technologycited by 916
32 more
  1. 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 799
  2. 2018Texygen: A Benchmarking Platform for Text Generation Modelscited by 491
  3. 2023"Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Modelscited by 489
  4. 2015Illuminating search spaces by mapping elitescited by 425
  5. 2021Flow Network based Generative Models for Non-Iterative Diverse Candidate Generationcited by 392
  6. 2023Safety-Tuned LLaMAs: Lessons From Improving the Safety of Large Language Models that Follow Instructionscited by 387
  7. 2020First return, then explorecited by 266
  8. 2024Jailbreak Attacks and Defenses Against Large Language Models: A Surveycited by 230
  9. 2014Robots that can adapt like animalscited by 204
  10. 2024AutoDAN-Turbo: A Lifelong Agent for Strategy Self-Exploration to Jailbreak LLMscited by 199
  11. 2023ReMax: A Simple, Effective, and Efficient Reinforcement Learning Method for Aligning Large Language Modelscited by 187
  12. 2019Build it Break it Fix it for Dialogue Safety: Robustness from Adversarial Human Attackcited by 176
  13. 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deploymentcited by 116
  14. 2017Quality and Diversity Optimization: A Unifying Modular Frameworkcited by 113
  15. 2024A Comprehensive Study of Jailbreak Attack versus Defense for Large Language Modelscited by 106
  16. 2024Open-Endedness is Essential for Artificial Superhuman Intelligencecited by 80
  17. 2020One Solution is Not All You Need: Few-Shot Extrapolation via Structured MaxEnt RLcited by 79
  18. 2021Differentiable Quality Diversitycited by 72
  19. 2024Preserving Diversity in Supervised Fine-Tuning of Large Language Modelscited by 70
  20. 2020Quality-Diversity Optimization: a novel branch of stochastic optimizationcited by 60
  21. 2020Illuminating Mario Scenes in the Latent Space of a Generative Adversarial Networkcited by 52
  22. 2022Deep Surrogate Assisted Generation of Environmentscited by 40
  23. 2021Unsupervised Behaviour Discovery with Quality-Diversity Optimisationcited by 30
  24. 2023pyribs: A Bare-Bones Python Library for Quality Diversity Optimizationcited by 30
  25. 2023Multi-Robot Coordination and Layout Design for Automated Warehousingcited by 17
  26. 2022Empirical analysis of PGA-MAP-Elites for Neuroevolution in Uncertain Domainscited by 15
  27. 2022Benchmarking Quality-Diversity Algorithms on Neuroevolution for Reinforcement Learningcited by 10
  28. 2023Quality Diversity through Human Feedback: Towards Open-Ended Diversity-Driven Optimizationcited by 10
  29. 2024Quality-Diversity Algorithms Can Provably Be Helpful for Optimizationcited by 9
  30. 2023Evolving Populations of Diverse RL Agents with MAP-Elitescited by 5
  31. 2023Diversity from Human Feedbackcited by 5
  32. 2024Quality-Diversity with Limited Resourcescited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 7.

9 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Learning-Based Automated Adversarial Red-Teaming for Robustness Evaluation of Large Language Models
  2. 2024DiveR-CT: Diversity-enhanced Red Teaming Large Language Model Assistants with Relaxing Constraints
  3. 2025RainbowPlus: Enhancing Adversarial Prompt Generation via Evolutionary Quality-Diversity Search
  4. 2025Jailbreak-Zero: A Path to Pareto Optimal Red Teaming for Large Language Models
  5. 2026RedBench: A Universal Dataset for Comprehensive Red Teaming of Large Language Models
  6. 2025RedTWIZ: Diverse LLM Red Teaming via Adaptive Attack Planning
  7. 2023Explore, Establish, Exploit: Red Teaming Language Models from Scratch
  8. 2026OpenRT: An Open-Source Red Teaming Framework for Multimodal LLMs