TL;DR
Imagine trying to play a pickup basketball game where your teammates are strangers, their playstyles change every match, and you don't even know how many of them are on your side until tip-off. That is N-agent ad hoc teamwork (NAHT). Existing AI methods learn this by trial and error in the real environment, taking tens of millions of steps. LION (Learning on Imagined Observations) flips the script by learning a "world model" from the controlled agents' own eyes, allowing them to practice and master teamwork in their imagination—reaching the performance of standard baselines in 52× to 123× fewer environment steps.
What Problem Does This Paper Address?
In real-world multi-agent systems—like warehouse robots from different vendors sharing a floor—an AI rarely acts completely alone, nor does it control every agent in the room. In N-agent ad hoc teamwork (NAHT), a learner controls a subteam of $N$ agents that must coordinate with each other and adapt on the fly to $M - N$ uncontrolled teammates whose policies are unknown and can change every episode.
The standard approach, POAM (Policy Optimization with Agent Modeling), uses a model-free reinforcement learning algorithm (IPPO) paired with an explicit encoder-decoder that tries to reconstruct the unknown teammates' behavior. Because it is model-free, POAM can only learn what works by trying actions directly in the environment. When team sizes and teammate types are resampled every episode, the number of real-world interactions required explodes—often into the tens of millions.
The authors ask: Can we bring model-based reinforcement learning (world models) to NAHT, without needing a separate, explicit model for the unknown teammates?
Methods
LION adapts MARIE, a multi-agent world model originally built for fully controlled teams, to the messy reality of NAHT.
Here is what is standard vs. new:
- The World Model (Standard MARIE): A vector-quantized autoencoder tokenizes each agent's local observations, a causal transformer predicts future observation tokens, rewards, and episode endings, and a Perceiver aggregates information across agents during training.
- Controlled-Only Streams (New): Instead of feeding the world model the global state or the uncontrolled teammates' observations and actions, LION strips them out. The Perceiver aggregates only over the $N$ controlled agents, and the replay buffer dynamically groups minibatches by the current subteam size $N$.
- Implicit Teammate Modeling (New): Because the uncontrolled teammates are not explicitly modeled, they are folded into the environment's dynamics. To accurately predict what the controlled agents will see next, the world model is forced to implicitly learn how the teammates behave from their visible effects.
- Learning in Imagination: For every 100 real environment transitions collected, LION updates the world model and then runs 3,000 short, 15-step imagined rollouts (45,000 imagined transitions). The PPO actor-critic policy is trained exclusively on these imagined trajectories. At execution time, the world model is discarded, and agents act using only their own local observations.
Datasets
LION is evaluated on the StarCraft Multi-Agent Challenge (SMAC), specifically the 3s_vs_5z map, where 3 allied Stalkers face 5 enemy Zealots (with a 250-step episode limit).
At the start of every episode, the number of uncontrolled teammates is drawn uniformly from $\{1, 2\}$, and their policies are sampled from a pre-existing pool of five self-play algorithms: IPPO, MAPPO, QMIX, VDN, and IQL. No new benchmarks are introduced.
Key Insights and Ideas
- You don't need explicit teammate labels to model teammates: Even though LION never sees the teammates' internal states or labels, a linear probe on the frozen world model's latent state can decode the teammate's algorithm type within the first 10–15 steps of an episode—far above a randomly initialized model baseline.
- The gain comes from imagination, not a better representation: Interestingly, the world model's latent state is not more decodable than the raw 15-frame observation stack it compresses. This proves that LION's massive efficiency boost comes from reusing experience in imagination, rather than extracting a superior teammate representation.
- Short rollouts prevent "teammate averaging": Because the world model marginalizes over possible teammate behaviors at every step, long imagined rollouts would blur different teammate styles together. Keeping imagined rollouts short (15 steps) avoids this drift.
Key Results
- Massive Sample Efficiency: On
3s_vs_5z, LION reaches a mean return of ~18.3 within 400k environment steps—a level POAM only reaches after ~13 million steps. Across 50% to 80% of POAM's final return (20.33), LION requires 52× to 123× fewer environment steps (e.g., 63k vs. 7.76M steps for 50%; 221k vs. 11.57M steps for 80%). - Zero-Shot Generalization to Unseen Teammates: When deployed against teammates trained with a completely different random seed (which exhibit incompatible coordination conventions), LION's return is unchanged: 18.31 ± 0.60 against training teammates vs. 18.30 ± 0.59 against unseen teammates.
Limitations and Future Work
- Compute vs. Samples: LION trades environment interactions for GPU compute. It uses roughly 25× more compute per environment step than POAM (taking ~12 hours for 400k steps on an RTX 3090, compared to ~24 hours for 20M steps of POAM).
- Single Map & Sparse Rewards: Results are limited to
3s_vs_5zand a fixed 400k-step budget (leaving asymptotic performance open). A preliminary test on a predator-prey task failed to learn, likely because sparse collision rewards cause the world model's reward head to collapse to zero. - Future Directions: The authors suggest testing on SMACv2 (which randomizes unit types and start positions, preventing open-loop memorization), conditioning the actor directly on the world model's latent state at execution, and testing generalization to unseen subteam sizes ($N - k$).
Summary updated