TL;DR
Training AI agents to seamlessly cooperate with total strangers—a problem known as zero-shot coordination—usually requires complex, brittle algorithms. Surprisingly, off-the-shelf frontier coding agents (LLMs paired with standard coding tools) shatter state-of-the-art benchmarks simply by writing game-playing strategies as Python code and refining them via trial-and-error. Even better, they can read human rulebooks in plain English and bake those conventions directly into neural networks, bridging a massive gap in human-AI teamwork.
What Problem Does This Paper Address?
Imagine showing up to a pickup basketball game. You’ve never met your teammates, yet you instantly coordinate passes and defense. In multi-agent reinforcement learning (MARL), this is called Zero-Shot Coordination (ZSC): independently trained agents must cooperate at test time without prior communication.
Standard self-play—where agents train solely against copies of themselves—fails miserably here. Self-play agents invent bizarre, hyper-specific "secret handshakes" that rack up high scores together, but cause total confusion when paired with an outsider. Existing ZSC fixes try to break these arbitrary habits using environment symmetries or simulated partner populations, but they struggle on newer, harder benchmarks like Overcooked V2 and Yokai, and can't adapt on the fly. Furthermore, traditional ZSC ignores a very human habit: agreeing on a set of conventions before playing (like saying, "I'll play goalie," or agreeing on hint rules in card games).
Methods
Instead of inventing a new reinforcement learning algorithm, the authors hand the problem to coding agents—frontier LLMs (such as GPT-6 Astra and Claude Fable 5.1) hooked up to standard coding harnesses (like Codex and Claude Code) inside a sandboxed workspace.
- Iterative Code Policies: Rather than prompting an LLM to pick moves during a live game (which is slow and expensive), the coding agent is given 2 hours to write a Python program that acts as the decentralized player policy. It runs self-play rollouts on a GPU, reads the scores and error traces, logs hypotheses in an experiment ledger, and iteratively debugs and refines its code to maximize compatibility with unseen partners. At test time, this pure Python policy executes rapidly with zero LLM calls.
- Natural Language Conventions & Hybrid RL: To handle pre-agreed human strategies, the authors simply drop a text document of human rules into the agent's workspace. However, pure Python code struggles to track super-long, complex histories of play in games like Hanabi. To get the best of both worlds, the authors introduce a hybrid method: they train a recurrent neural network via self-play, adding an auxiliary imitation loss that nudges the network to match the actions of the LLM's Python policy. The code acts as a "convention guide," while deep RL supplies the heavy-duty memory.
Datasets
Because this is reinforcement learning, evaluation happens across interactive cooperative game environments rather than static datasets, alongside human-derived bot benchmarks:
- Overcooked V2: A chaotic kitchen-simulation benchmark testing asymmetric roles and online convention formation. The authors also introduce two brand-new, open-ended layouts (Block Grid and Pipeline Cook) to ensure models aren't just coasting on memorized pretraining data.
- Yokai: A cooperative memory and deduction card game tested across 9-card and 16-card setups (with both perfect and imperfect memory).
- Hanabi + Human Proxies: A cooperative card game where you can see everyone's cards except your own. Agents are given an offline adaptation of the community-standard "H-Group Level 1" human strategy guide and tested against AH2AC2 bots (neural nets trained on over 147,000 human-played games) and the Will-Hanabi bot (a community-built bot hardcoded to follow H-Group rules).
Key Insights and Ideas
- Scale and iteration beat algorithmic complexity: Earlier studies claimed LLMs were terrible at ZSC. It turns out they just lacked frontier reasoning scale and an iterative coding loop. Given a runtime to test hypotheses, coding agents naturally write policies that model partner behavior, signal intentions, and adapt mid-game. They even spontaneously coded up "dummy" partner bots in their workspace to stress-test their own cross-play robustness!
- It’s genuine reasoning, not memorization: When quizzed on Overcooked V2, GPT-6 Astra couldn't name a single one of the six benchmark layouts—yet its generated code crushed every specialized ZSC baseline on them, as well as on the two newly invented layouts.
- Cross-species AI cooperation works: Policies written by completely different model families (e.g., pairing OpenAI's Astra with Anthropic's Fable) coordinate remarkably well together, proving they converge on intuitive, mutually intelligible strategies.
Key Results
The primary metric here is Inter-Seed Cross-Play (IXP)—pairing agents from completely independent runs (with differently worded prompts) to see if they can cooperate.
- Overcooked V2: Coding agents achieve state-of-the-art IXP across all six layouts. On the Test-time Wide layout (which forces agents to figure out conventions on the fly), traditional baselines score negative returns (-30 for Self-Play) or barely scrape by (23 for Fictitious Co-Play), whereas Claude Fable 5.1 hits 218.
- Yokai: In the 9-card imperfect-memory setting, traditional Other-Play scores 0.0, while Claude Fable 5.1 reaches 6.9 IXP, beating the illustrative human-human baseline of 5.7. In the 16-card setting, IPPO scores 0.0, while Astra and Fable both hit 8.0 IXP.
- Hanabi: Standard RL baselines fail to play with the human-convention Will-Hanabi bot (scoring 3.96–5.56 out of 25). Given the H-Group text guide, Fable's Python policy jumps to 20.25. The Hybrid (Astra) method pushes this to 21.97 (exceeding the bot's own self-play score of 21.05!) and achieves the highest score (21.75) against the human-trained AH2AC2 bots, while maintaining elite self-play (24.28).
Limitations and Future Work
- Long-horizon bottlenecks for pure code: Writing explicit belief-updating rules in Python hits a ceiling in complex games like Hanabi, where pure code policies trail deep RL in raw self-play—requiring the neural hybrid approach to close the gap.
- Frontier-only club: Weaker models achieve noticeably lower cross-play scores, meaning this emergent ZSC magic is currently restricted to top-tier, compute-heavy frontier models.
- Pretraining entanglement & real-world safety: While memorization was ruled out, models still benefit from a human-like "common sense" absorbed during pretraining—disentangling that exact contribution is left for future work. Finally, the authors emphasize that beating human-proxy bots in simulated card games does not guarantee safe or effective coordination with real humans in physical, real-world environments.
Summary updated