mlsanityData to 14 Oct 2026

Active Attacks: Red-teaming LLMs via Adaptive Environments

arXiv 2509.21947 ↗First posted 26 Sep 2025cs.LG cs.AIcited by 7

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

  1. 2024Ruby Teaming: Improving Quality Diversity Search with Memory for Automated Red Teaming17 Jun
  2. 2024Learning diverse attacks on large language models for robust red-teaming and safety tuning28 May
  3. 2024Curiosity-driven Red-teaming for Large Language Models29 Feb
  4. 2024Rainbow Teaming: Open-Ended Generation of Diverse Adversarial Prompts26 Feb
  5. 2022Red Teaming Language Models with Language Models7 Feb

Other references · 30

  1. 2017Proximal Policy Optimization Algorithmscited by 15,215
  2. 2014Explaining and Harnessing Adversarial Examplescited by 7,364
  3. 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,415
  4. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
  5. 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,651
  6. 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,255
  7. 2024Refusal in Language Models Is Mediated by a Single Directioncited by 1,032
  8. 2021Ethical and social risks of harm from Language Modelscited by 966
  9. 2023AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Modelscited by 785
  10. 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 722
  11. 2024JailbreakBench: An Open Robustness Benchmark for Jailbreaking Large Language Modelscited by 536
  12. 2023XSTest: A Test Suite for Identifying Exaggerated Safety Behaviours in Large Language Modelscited by 505
18 more
  1. 2023SmoothLLM: Defending Large Language Models Against Jailbreaking Attackscited by 469
  2. 2021Flow Network based Generative Models for Non-Iterative Diverse Candidate Generationcited by 392
  3. 2023Safety-Tuned LLaMAs: Lessons From Improving the Safety of Large Language Models that Follow Instructionscited by 387
  4. 2021GFlowNet Foundationscited by 290
  5. 2017Automated Curriculum Learning for Neural Networkscited by 257
  6. 2022Trajectory balance: Improved credit assignment in GFlowNetscited by 251
  7. 2024OR-Bench: An Over-Refusal Benchmark for Large Language Modelscited by 244
  8. 2017Bridging the Gap Between Value and Policy Based Reinforcement Learningcited by 182
  9. 2019Build it Break it Fix it for Dialogue Safety: Robustness from Adversarial Human Attackcited by 176
  10. 2024Robust Prompt Optimization for Defending Language Models Against Jailbreaking Attackscited by 156
  11. 2025LLMs Encode Harmfulness and Refusal Separatelycited by 88
  12. 2024Defending LLMs against Jailbreaking Attacks via Backtranslationcited by 70
  13. 2024Semantic Mirror Jailbreak: Genetic Algorithm Based Jailbreak Prompts Against Open-source LLMscited by 53
  14. 2024When LLM Meets DRL: Advancing Jailbreaking Efficiency via DRL-guided Searchcited by 47
  15. 2024Defending Jailbreak Prompts via In-Context Adversarial Gamecited by 29
  16. 2024Adaptive teachers for amortized samplerscited by 23
  17. 2024HarmAug: Effective Data Augmentation for Knowledge Distillation of Safety Guard Modelscited by 19
  18. 2024LLMs Can Defend Themselves Against Jailbreaking in a Practical Manner: A Vision Papercited by 10

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 7.

7 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Adaptive Instruction Composition for Automated LLM Red-Teaming
  2. 2023Attack Prompt Generation for Red Teaming and Defending Large Language Models
  3. 2025Red-Bandit: Test-Time Adaptation for LLM Red-Teaming via Bandit-Guided LoRA Experts
  4. 2025Automatic LLM Red Teaming
  5. 2024Diverse and Effective Red Teaming with Auto-generated Rewards and Multi-step Reinforcement Learning
  6. 2024Recent advancements in LLM Red-Teaming: Techniques, Defenses, and Ethical Considerations
  7. 2025Quality-Diversity Red-Teaming: Automated Generation of High-Quality and Diverse Attackers for Large Language Models
  8. 2025Learning-Based Automated Adversarial Red-Teaming for Robustness Evaluation of Large Language Models