Safety Alignment of LMs via Non-cooperative Games
Anselm Paulus, Ilia Kulikov, Brandon Amos, Rémi Munos, Ivan Evtimov, Kamalika Chaudhuri, Arman Zharmagambetov
TL;DR
AdvGame develops a non-cooperative Attacker–Defender framework for safety alignment of language models, trained online with pairwise preferences to avoid reward hacking. By jointly optimizing an Attacker and a Defender, the Defender achieves improved safety and maintained utility, while the Attacker evolves into a strong red-teaming agent capable of probing target models. The approach relies on pairwise judges, faithfulness constraints, and KL regularization, and it offers MD/IPO-MD variants that stabilize training through EMA-based off-policy data. Experiments show AdvGame-DPO-MD and AdvGame-IPO-MD provide superior balance across safety, compliance, and utility and exhibit robustness to adaptive attacks, compared to baselines like Self-RedTeam and GRPO. This work suggests game-theoretic, non-zero-sum learning can yield practical improvements for secure and useful LM deployment, with future work extending reward models and attack modalities.
Abstract
Ensuring the safety of language models (LMs) while maintaining their usefulness remains a critical challenge in AI alignment. Current approaches rely on sequential adversarial training: generating adversarial prompts and fine-tuning LMs to defend against them. We introduce a different paradigm: framing safety alignment as a non-zero-sum game between an Attacker LM and a Defender LM trained jointly via online reinforcement learning. Each LM continuously adapts to the other's evolving strategies, driving iterative improvement. Our method uses a preference-based reward signal derived from pairwise comparisons instead of point-wise scores, providing more robust supervision and potentially reducing reward hacking. Our RL recipe, AdvGame, shifts the Pareto frontier of safety and utility, yielding a Defender LM that is simultaneously more helpful and more resilient to adversarial attacks. In addition, the resulting Attacker LM converges into a strong, general-purpose red-teaming agent that can be directly deployed to probe arbitrary target models.
