Active Attacks: Red-teaming LLMs via Adaptive Environments
On the map: LLM safety and security → Prompt injection and agent security
Abstract (arXiv)
We address the challenge of generating diverse attack prompts for large language models (LLMs) that elicit harmful behaviors (e.g., insults, sexual content) and are used for safety fine-tuning. Rather than relying on manual prompt engineering, attacker LLMs can be trained with reinforcement learning (RL) to automatically generate such prompts using only a toxicity classifier as a reward. However, capturing a wide range of harmful behaviors is a significant challenge that requires explicit diversity objectives. Existing diversity-seeking RL methods often collapse to limited modes: once high-reward prompts are found, exploration of new regions is discouraged. Inspired by the active learning paradigm that encourages adaptive exploration, we introduce textitActive Attacks, a novel RL-based red-teaming algorithm that adapts its attacks as the victim evolves. By periodically safety fine-tuning the victim LLM with collected attack prompts, rewards in exploited regions diminish, which forces the attacker to seek unexplored vulnerabilities. This process naturally induces an easy-to-hard exploration curriculum, where the attacker progresses beyond easy modes toward increasingly difficult ones. As a result, Active Attacks uncovers a wide range of local attack modes step by step, and their combination achieves wide coverage of the multi-mode distribution. Active Attacks, a simple plug-and-play module that seamlessly integrates into existing RL objectives, unexpectedly outperformed prior RL-based methods -- including GFlowNets, PPO, and REINFORCE -- by improving cross-attack success rates against GFlowNets, the previous state-of-the-art, from 0.07% to 31.28% (a relative gain greater than 400 ×) with only a 6% increase in computation. Our code is publicly available hrefhttps://github.com/dbsxodud-11/activeattackshere.
Key facts. Cited by 7 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 35 of its 46 references that are in the map. First posted on arXiv 26 Sep 2025.
Builds on
35 of 46 references.
Closest ancestors · 5
Same direction, newest first
- 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
- 2024Curiosity-driven Red-teaming for Large Language Models29 Feb
- 2024Rainbow Teaming: Open-Ended Generation of Diverse Adversarial Prompts26 Feb
- 2022Red Teaming Language Models with Language Models7 Feb
Other references · 30
- 2017Proximal Policy Optimization Algorithmscited by 15,215
- 2014Explaining and Harnessing Adversarial Examplescited by 7,364
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,415
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
- 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,651
- 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,255
- 2024Refusal in Language Models Is Mediated by a Single Directioncited by 1,032
- 2021Ethical and social risks of harm from Language Modelscited by 966
- 2023AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Modelscited by 785
- 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 722
- 2024JailbreakBench: An Open Robustness Benchmark for Jailbreaking Large Language Modelscited by 536
- 2023XSTest: A Test Suite for Identifying Exaggerated Safety Behaviours in Large Language Modelscited by 505
18 more
- 2023SmoothLLM: Defending Large Language Models Against Jailbreaking Attackscited by 469
- 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
- 2021GFlowNet Foundationscited by 290
- 2017Automated Curriculum Learning for Neural Networkscited by 257
- 2022Trajectory balance: Improved credit assignment in GFlowNetscited by 251
- 2024OR-Bench: An Over-Refusal Benchmark for Large Language Modelscited by 244
- 2017Bridging the Gap Between Value and Policy Based Reinforcement Learningcited by 182
- 2019Build it Break it Fix it for Dialogue Safety: Robustness from Adversarial Human Attackcited by 176
- 2024Robust Prompt Optimization for Defending Language Models Against Jailbreaking Attackscited by 156
- 2025LLMs Encode Harmfulness and Refusal Separatelycited by 88
- 2024Defending LLMs against Jailbreaking Attacks via Backtranslationcited by 70
- 2024Semantic Mirror Jailbreak: Genetic Algorithm Based Jailbreak Prompts Against Open-source LLMscited by 53
- 2024When LLM Meets DRL: Advancing Jailbreaking Efficiency via DRL-guided Searchcited by 47
- 2024Defending Jailbreak Prompts via In-Context Adversarial Gamecited by 29
- 2024Adaptive teachers for amortized samplerscited by 23
- 2024HarmAug: Effective Data Augmentation for Knowledge Distillation of Safety Guard Modelscited by 19
- 2024LLMs Can Defend Themselves Against Jailbreaking in a Practical Manner: A Vision Papercited by 10
Built on by
Citing papers per year: 2026: 7.
7 papers.
- 2026Self-Improvement of Large Language Models: A Technical Overview and Future Outlookcited by 5
- 2026Proteus: A Self-Evolving Red Team for Agent Skill Ecosystemscited by 2
- 2026Stable-GFlowNet: Toward Diverse and Robust LLM Red-Teaming via Contrastive Trajectory Balancecited by 1
- 2026Co-Evolution in Agentic Systems: Toward Self-Directed Evolution Beyond Human Designcited by 1
- 2026GFlowPO: Generative Flow Network as a Language Model Prompt Optimizercited by 0
- 2026Jailbreaking for the Average Jane: Choosing Optimal Jailbreaks via Bandit Algorithms for Automatically Enhanced Queriescited by 0
- 2026PyINE: A Framework for Scalable Elicitation and Oversight via Code Executioncited by 0
- 2026PyINE: A Framework for Scalable Elicitation and Oversight via Code Execution3 Oct 2026
- 2026Co-Evolution in Agentic Systems: Toward Self-Directed Evolution Beyond Human Design10 Aug 2026
- 2026Jailbreaking for the Average Jane: Choosing Optimal Jailbreaks via Bandit Algorithms for Automatically Enhanced Queries25 Jun 2026
- 2026Proteus: A Self-Evolving Red Team for Agent Skill Ecosystems12 May 2026
- 2026Stable-GFlowNet: Toward Diverse and Robust LLM Red-Teaming via Contrastive Trajectory Balance1 May 2026
- 2026Self-Improvement of Large Language Models: A Technical Overview and Future Outlook26 Mar 2026
- 2026GFlowPO: Generative Flow Network as a Language Model Prompt Optimizer3 Feb 2026
Similar, not cited
Close in wording, no citation either way
- 2026Adaptive Instruction Composition for Automated LLM Red-Teaming
- 2023Attack Prompt Generation for Red Teaming and Defending Large Language Models
- 2025Red-Bandit: Test-Time Adaptation for LLM Red-Teaming via Bandit-Guided LoRA Experts
- 2025Automatic LLM Red Teaming
- 2024Diverse and Effective Red Teaming with Auto-generated Rewards and Multi-step Reinforcement Learning
- 2024Recent advancements in LLM Red-Teaming: Techniques, Defenses, and Ethical Considerations
- 2025Quality-Diversity Red-Teaming: Automated Generation of High-Quality and Diverse Attackers for Large Language Models
- 2025Learning-Based Automated Adversarial Red-Teaming for Robustness Evaluation of Large Language Models