Introduction
In multi-agent reinforcement learning (MARL), training agents to be robust to a variety of partner behaviors is a significant challenge. While adversarial training is a standard approach in zero-sum games like Chess or Go, it often fails in cooperative or general-sum environments. In these settings, a standard adversary tasked with minimizing a teammate's score often resorts to "self-sabotage"—acting irrationally or ending the game prematurely to ensure the teammate fails, even at the cost of its own reward. Such "suicidal" behavior provides little educational value for the learning agent, as it fails to represent the functional, diverse strategies a human or a different AI partner might employ.
This paper introduces Rationality-preserving Policy Optimization (RPO) and the Rational Policy Gradient (RPG) algorithm. These methods ensure that adversarial agents remain "rational"—meaning they must always act optimally for at least one possible partner—thereby forcing the discovery of robust and non-trivial strategies.
The Problem: The Self-Sabotage Loop
In general-sum games, such as the kitchen-coordination benchmark Overcooked, the goal is for agents to work together to maximize a shared reward. If we introduce an adversary to find weaknesses in a "victim" agent's policy, the adversary quickly learns that the easiest way to lower the victim's score is to simply stop moving or block the goal.
This behavior is irrational because it destroys the adversary's own potential utility. More importantly, it creates a useless training signal. A victim agent trained against a partner that simply stands still does not learn how to adapt to different coordination conventions; it merely learns to ignore a broken partner. The core challenge is incentivizing an agent to be a difficult partner without allowing it to become a suicidal one.
Methodology
To address this, the authors propose a two-part framework:
1. Rationality-preserving Policy Optimization (RPO)
RPO is a mathematical formalism that adds a constraint to the adversarial objective. It mandates that an agent’s policy must be a "best response" to at least one possible partner policy. This constraint ensures the agent is always attempting to maximize its own utility, effectively preventing it from taking actions that are purely self-destructive just to spite a teammate.
2. Rational Policy Gradient (RPG)
To implement RPO, the authors introduce the RPG algorithm, which utilizes "manipulator" agents and higher-order gradients:
- Base Agents: These agents train to maximize their own rewards against a partner.
- Manipulators: The manipulator uses opponent shaping to guide the base agent's learning process. By calculating the gradient of the base agent's learning step (higher-order gradients), the manipulator "tricks" the base agent into adopting a specific rational policy that is adversarial to the victim.
This framework was used to extend five existing algorithms, including AD-RPG (for generating diverse populations) and AT-RPG (for robust adversarial training).
Experimental Evaluation
The researchers evaluated RPG across four distinct multi-agent environments:
- Matrix Games: Testing fundamental game-theoretic behaviors in simple payoff grids.
- Overcooked: A coordination benchmark where agents must navigate kitchen layouts to serve soup.
- STORM: A grid-world game involving coin collection, used here to test robustness in partially observable settings.
- Hanabi: A complex card game requiring deep signaling and coordination under uncertainty.
Key Insights
- Functional Diversity vs. Sabotage: Previous diversity-seeking algorithms often achieved "diversity" by having agents fail in different ways. RPG demonstrates that true diversity should stem from finding different functional ways to solve a task that are mutually incompatible (e.g., one agent expects a clockwise rotation while another expects counter-clockwise).
- The Rational Adversary as a Teacher: In Overcooked, RPG adversaries do not simply quit; they adopt efficient but "clashing" conventions. This forces the victim agent to learn how to adapt to various high-performing but different partner styles.
- Stabilizing Learning Dynamics: The lookahead nature of RPG’s higher-order gradients helps stabilize learning in games with unstable equilibria, such as Rock-Paper-Scissors.
Results
- Robustness in Overcooked: In the "Forced Coordination" layout, agents trained with AD-RPG achieved near-perfect scores when paired with any other partner in their population. Standard Self-Play (SP) agents, by contrast, were brittle and failed when paired with any partner other than their specific training counterpart.
- Identifying Rational Flaws: In STORM, standard adversarial policies (AP) immediately learned to sabotage the game, resulting in zero reward. AP-RPG successfully identified "rational" adversarial examples—policies that still pursued coins but did so in a way that confused and hindered the victim.
- Cross-Play Performance: In both Hanabi and Overcooked, RPG-based agents consistently outperformed state-of-the-art baselines (such as CoMeDi) in cross-play scenarios, where agents are paired with partners they did not encounter during training.
Limitations and Future Work
While effective, RPG introduces significant computational overhead. Because it relies on higher-order gradients (the gradient of a gradient), AD-RPG is approximately three times slower than standard adversarial diversity methods. Additionally, estimating these gradients from samples can be noisy, necessitating large batch sizes to maintain stability.
Finally, while RPG enforces rationality in practice, the authors note the lack of a formal proof that the algorithm will converge to a truly rational strategy in every possible environment. Future research may focus on integrating more efficient "first-order" opponent shaping techniques to reduce the computational burden while maintaining the benefits of rational adversarial training.
Summary updated