In cooperative multi-agent reinforcement learning (MARL), AI agents often get stuck in "local optima." They learn to follow established social norms or "blueprints" because any individual change in behavior looks like a mistake to their teammates, leading to a lower score. However, humans are masters of improvisation and can use apparent mistakes to communicate.
Consider the famous real-life example of a woman calling 911 to "order a pizza" to signal domestic violence without alerting her attacker. To a standard AI, this is just a "wrong number" error. To a human dispatcher using theory of mind, it’s a clear signal that the situation is abnormal.
Researchers have developed a new framework called Self-Explaining Deviations (SEDs) and an algorithm named IMPROVISED that gives AI this same ability. By intentionally "breaking the rules" in a way that a teammate can interpret using theory of mind, agents can signal hidden information and achieve superior outcomes in complex games.
The Mechanics of IMPROVISED
The authors formalize SEDs within the framework of Public POMDPs (Partially Observable Markov Decision Processes). They introduce IMPROVISED (IMPROVement maxImizing Self-Explaining Deviations), a planning algorithm that searches for beneficial joint deviations from a baseline policy.
The system relies on a few key components:
- The Blueprint: A common-knowledge baseline policy that all agents are assumed to follow under normal circumstances.
- The Deviation: The first mover ("Alice") takes an action that is highly unlikely under the blueprint.
- The Interpretation: The observer ("Bob") sees the deviation and uses theory of mind to reason: "Alice is rational; she wouldn't make this mistake unless she wanted me to change my behavior in response to hidden information."
- Symmetry Breaking: The algorithm uses a softmax-based response function to ensure that agents can coordinate even when multiple "good" responses exist, preventing the AI from getting confused by ties.
Standard MARL algorithms (like MAPPO or QMIX) fail in these scenarios because they only look for unilateral improvements. SEDs require multilateral deviations—both agents must change their behavior simultaneously to succeed. The IMPROVISED algorithm doesn't just try random actions; it specifically looks for deviations that a teammate can independently deduce as being beneficial.
Testing Ground: Tigers and Card Games
The researchers evaluated their approach on two main benchmarks. The first is the Trampoline-Tiger Game, a novel toy environment designed specifically to test SEDs.
In this game, Alice knows if a lever will release a tiger (90% chance) or a trampoline (10% chance). Bob controls the lever but doesn't know what's behind it. If Alice jumps without the trampoline, she crashes. If Bob pulls the lever and it's a tiger, he gets eaten. Standard MARL algorithms almost never found the optimal strategy here, converging instead to a "safe" but mediocre policy where nobody does anything. IMPROVISED, however, found the optimal SED strategy—where Alice jumps to signal the presence of a trampoline, prompting Bob to pull the lever—in 100% of runs.
The second benchmark is Hanabi, a popular cooperative card game benchmark for AI coordination. The researchers specifically looked at "finesse" plays—advanced human techniques where a player makes a move that only makes sense if another player holds a specific, unrevealed card.
Key Results: Mastering the Finesse
In Hanabi, IMPROVISED was able to successfully execute these complex finesse plays, demonstrating a sophisticated level of artificial theory of mind.
When applied to full games of Hanabi using a human-data-trained blueprint, IMPROVISED increased the average score from 17.80 to 23.54. This significantly outperformed previous search-based methods like SPARTA, which only consider unilateral moves and struggle to execute coordinated maneuvers like the finesse.
Limitations and Future Work
While IMPROVISED represents a major step forward in multi-agent coordination, the authors acknowledge two primary hurdles:
- Teammate Modeling: IMPROVISED currently requires exact knowledge of the teammate's policy. In the real world, an agent might not know exactly how its partner thinks, making "self-explanation" much harder and riskier.
- Computational Cost: The algorithm relies on expensive Monte Carlo rollouts at test time to estimate the value of deviations, which can be slow.
Future work suggests moving toward a learning-based version of IMPROVISED. By training a neural network to approximate the "value of a deviation" (the Q-function) rather than calculating it from scratch every time, researchers hope to make these improvisational agents much faster and more flexible for real-world deployment.
Summary updated