MAGIC: A co-evolutionary adversarial game for robust LLM safetyMAGIC: A Co-Evolving Attacker-Defender Adversarial Game for Robust LLM Safety
Researchers propose the MAGIC framework, which models LLM safety alignment as an asymmetric adversarial game between an attacker and a defender, and uses multi-round multi-agent reinforcement learning to let both sides co-evolve. The attacker agent learns to iteratively rewrite original queries into deceptive prompts, while the defender agent simultaneously optimizes its policy to recognize and refuse such inputs. The authors claim that attackers with initial reasoning ability evolve previously unseen compositional strategies through iterative reinforcement learning, and the paper also theoretically analyzes more robust game equilibria and derives safety guarantees. Experiments show that the framework achieves higher defense success rates without harming model usefulness, and the code is open-sourced on GitHub.