Learning to Attack and Defend: Adaptive Red Teaming of Language Models via GRPO

Blake Bullwinkel, Eugenia Kim, Amanda Minnich, Mark Russinovich
6/8/2026
cs.CLcs.AIcs.LG
rlrlhf-rlvr-dpo

No confident code implementation found for this paper. 4 possible matches can be shown below.

Abstract

AI red teaming must continually adapt to evolving attackers and defenders. Reinforcement learning offers a promising approach to discovering novel attacks, and co-training methods can produce more robust defenders in tandem.

Show full abstract

Recent works have demonstrated the efficacy of attacker-defender co-training by applying PPO and DPO, but report that GRPO is unstable in this setting. We introduce AdvGRPO, a co-training framework that makes GRPO viable for joint attacker-defender optimization using dense multi-channel rewards and decoupled advantage normalization. Training progresses through a curriculum from single-turn to closed-loop multi-turn attacks before bootstrapping co-training, where attacker and defender models are updated in alternation. We show that our method can produce highly effective and transferable attacks and that co-trained defenders outperform baselines on safety benchmarks.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 4 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{bullwinkel2026learning,
  title  = {Learning to Attack and Defend: Adaptive Red Teaming of Language Models via GRPO},
  author = {Blake Bullwinkel and Eugenia Kim and Amanda Minnich and Mark Russinovich},
  year   = {2026},
  eprint = {2606.09701},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.09701v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.09701.svg)](https://codeofpaper.com/paper/2606.09701)

Discussion