Quality-Diversity Red-Teaming: Automated Generation of High-Quality and Diverse Attackers for Large Language Models
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
- 2025Auto-RT: Automatic Jailbreak Strategy Exploration for Red-Teaming Large Language Models3 Jan
- 2024Diverse and Effective Red Teaming with Auto-generated Rewards and Multi-step Reinforcement Learning24 Dec
- 2024Automated Red Teaming with GOAT: the Generative Offensive Agent Tester2 Oct
- 2024Ferret: Faster and Effective Automated Red Teaming with Reward-Based Scoring Technique20 Aug
- 2024Ruby Teaming: Improving Quality Diversity Search with Memory for Automated Red Teaming17 Jun
- 2024Learning diverse attacks on large language models for robust red-teaming and safety tuning28 May
- 2024Against The Achilles' Heel: A Survey on Red Teaming for Generative Models31 Mar
- 2024Curiosity-driven Red-teaming for Large Language Models29 Feb
- 2024Rainbow Teaming: Open-Ended Generation of Diverse Adversarial Prompts26 Feb
- 2023Red Teaming Language Model Detectors with Language Models31 May
- 2023Query-Efficient Black-Box Red Teaming via Bayesian Optimization27 May
- 2022Red Teaming Language Models to Reduce Harms: Methods, Scaling Behaviors, and Lessons Learned23 Aug
1 more
Other references · 44
- 2023GPT-4 Technical Reportcited by 18,396
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2017Proximal Policy Optimization Algorithmscited by 15,215
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2024Qwen2.5 Technical Reportcited by 4,942
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
- 2022Constitutional AI: Harmlessness from AI Feedbackcited by 3,050
- 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,651
- 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,420
- 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,207
- 2024Gemma: Open Models Based on Gemini Research and Technologycited by 916
32 more
- 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 799
- 2018Texygen: A Benchmarking Platform for Text Generation Modelscited by 491
- 2023"Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Modelscited by 489
- 2015Illuminating search spaces by mapping elitescited by 425
- 2021Flow Network based Generative Models for Non-Iterative Diverse Candidate Generationcited by 392
- 2023Safety-Tuned LLaMAs: Lessons From Improving the Safety of Large Language Models that Follow Instructionscited by 387
- 2020First return, then explorecited by 266
- 2024Jailbreak Attacks and Defenses Against Large Language Models: A Surveycited by 230
- 2014Robots that can adapt like animalscited by 204
- 2024AutoDAN-Turbo: A Lifelong Agent for Strategy Self-Exploration to Jailbreak LLMscited by 199
- 2023ReMax: A Simple, Effective, and Efficient Reinforcement Learning Method for Aligning Large Language Modelscited by 187
- 2019Build it Break it Fix it for Dialogue Safety: Robustness from Adversarial Human Attackcited by 176
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deploymentcited by 116
- 2017Quality and Diversity Optimization: A Unifying Modular Frameworkcited by 113
- 2024A Comprehensive Study of Jailbreak Attack versus Defense for Large Language Modelscited by 106
- 2024Open-Endedness is Essential for Artificial Superhuman Intelligencecited by 80
- 2020One Solution is Not All You Need: Few-Shot Extrapolation via Structured MaxEnt RLcited by 79
- 2021Differentiable Quality Diversitycited by 72
- 2024Preserving Diversity in Supervised Fine-Tuning of Large Language Modelscited by 70
- 2020Quality-Diversity Optimization: a novel branch of stochastic optimizationcited by 60
- 2020Illuminating Mario Scenes in the Latent Space of a Generative Adversarial Networkcited by 52
- 2022Deep Surrogate Assisted Generation of Environmentscited by 40
- 2021Unsupervised Behaviour Discovery with Quality-Diversity Optimisationcited by 30
- 2023pyribs: A Bare-Bones Python Library for Quality Diversity Optimizationcited by 30
- 2023Multi-Robot Coordination and Layout Design for Automated Warehousingcited by 17
- 2022Empirical analysis of PGA-MAP-Elites for Neuroevolution in Uncertain Domainscited by 15
- 2022Benchmarking Quality-Diversity Algorithms on Neuroevolution for Reinforcement Learningcited by 10
- 2023Quality Diversity through Human Feedback: Towards Open-Ended Diversity-Driven Optimizationcited by 10
- 2024Quality-Diversity Algorithms Can Provably Be Helpful for Optimizationcited by 9
- 2023Evolving Populations of Diverse RL Agents with MAP-Elitescited by 5
- 2023Diversity from Human Feedbackcited by 5
- 2024Quality-Diversity with Limited Resourcescited by 1
Built on by
Citing papers per year: 2025: 2; 2026: 7.
9 papers.
- 2026Persona Generators: Generating Diverse Synthetic Personas for Arbitrary Contextscited by 6
- 2026AgenticRed: Evolving Agentic Systems for Red-Teamingcited by 5
- 2025TEAR: Temporal-aware Automated Red-teaming for Text-to-Video Modelscited by 3
- 2026Agent Hacks Agent: Autoresearch for Production-Agent Red-Teamingcited by 2
- 2025Soft Quality-Diversity Optimizationcited by 1
- 2026Belief-Guided Inference Control for Large Language Model Services via Verifiable Observationscited by 1
- 2026Quality-Diversity Optimization as Multi-Objective Optimizationcited by 0
- 2026Quality-Diversity Stress Tests for Process Reward Models:What Archive Coverage Can and Cannot Certifycited by 0
- 2026X-AgentRed: Red-Teaming Personal Agents in Evolving Multi-Service Ecosystemscited by 0
- 2026X-AgentRed: Red-Teaming Personal Agents in Evolving Multi-Service Ecosystems9 Oct 2026
- 2026Quality-Diversity Stress Tests for Process Reward Models:What Archive Coverage Can and Cannot Certify8 Aug 2026
- 2026Agent Hacks Agent: Autoresearch for Production-Agent Red-Teaming13 Jul 2026
- 2026Belief-Guided Inference Control for Large Language Model Services via Verifiable Observations30 Apr 2026
- 2026Persona Generators: Generating Diverse Synthetic Personas for Arbitrary Contexts3 Feb 2026
- 2026Quality-Diversity Optimization as Multi-Objective Optimization31 Jan 2026
- 2026AgenticRed: Evolving Agentic Systems for Red-Teaming20 Jan 2026
- 2025Soft Quality-Diversity Optimization30 Nov 2025
- 2025TEAR: Temporal-aware Automated Red-teaming for Text-to-Video Models26 Nov 2025
Similar, not cited
Close in wording, no citation either way
- 2025Learning-Based Automated Adversarial Red-Teaming for Robustness Evaluation of Large Language Models
- 2024DiveR-CT: Diversity-enhanced Red Teaming Large Language Model Assistants with Relaxing Constraints
- 2025RainbowPlus: Enhancing Adversarial Prompt Generation via Evolutionary Quality-Diversity Search
- 2025Jailbreak-Zero: A Path to Pareto Optimal Red Teaming for Large Language Models
- 2026RedBench: A Universal Dataset for Comprehensive Red Teaming of Large Language Models
- 2025RedTWIZ: Diverse LLM Red Teaming via Adaptive Attack Planning
- 2023Explore, Establish, Exploit: Red Teaming Language Models from Scratch
- 2026OpenRT: An Open-Source Red Teaming Framework for Multimodal LLMs