Learning to Attack and Defend: Adaptive Red Teaming of Language Models via GRPO
About
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. 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.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Safety Evaluation | HarmBench | ASR0.9 | 153 | |
| Safety Evaluation | WildGuard (test) | -- | 27 | |
| Safety Evaluation | DAN | -- | 26 | |
| Benign Compliance | WJB (WildJailbreak) | Compliance Rate72.8 | 15 | |
| Adversarial Attack | HarmBench standard behaviors | ASR91 | 13 | |
| Adversarial Attack | AdvBench (held-out split) | ASR90 | 13 | |
| Benign Compliance | XSTest | Comply Score91.6 | 12 | |
| Jailbreak Attack | AdvBench (held-out) | ASR69.1 | 9 | |
| Jailbreak Attack | HarmBench standard behaviors | ASR61 | 9 | |
| Instruction Following | IFBench | Utility Score33.3 | 5 |