TL;DR
When AI agents have to coordinate in massive teams—like managing traffic grids or robot swarms—forcing them to follow a single, shared playbook hits a ceiling fast, especially when team sizes grow beyond what they saw in training. This paper introduces ATLAS, a clever trick that takes an existing pre-trained team of agents and lets each individual (or sub-group) search for its own specialized strategy at deployment time. Without a single step of retraining and at negligible extra compute cost, ATLAS unlocks up to 45% better performance on massive, out-of-distribution teams.
What Problem Does This Paper Address?
In large Language Models, "inference-time compute"—letting a model "think" or search before answering—has been a game-changer. Multi-Agent Reinforcement Learning (MARL), where dozens or hundreds of agents must cooperate under partial visibility, is ripe for the same revolution, especially when deployed in digital or simulated systems where you can afford a few minutes to search for a great plan.
Currently, a leading method for MARL inference-time search is COMPASS. Instead of training just one behavior, COMPASS trains a continuous family of behaviors controlled by a "latent vector" $z$—think of $z$ as a dial that tunes the policy's overarching strategy. At test time, an evolutionary algorithm searches this dial to find the best strategy for the exact scenario at hand.
Here’s the catch: in multi-agent COMPASS, every single agent is handed the exact same $z$. While this keeps everyone on the same page during training, it becomes a straitjacket at test time. What if you trained a squad of 23 agents, and suddenly need to deploy 200? A single shared strategy lacks the degrees of freedom to adapt when situations get weird or massive.
Methods
Enter ATLAS (Agent-Targeted Latent Search). The authors noticed something subtle about how COMPASS policies actually work under the hood: each agent makes decisions using only its local view of the world and its assigned latent vector $z$. An agent doesn’t actually care—or even know—what $z$ its teammates are using.
ATLAS exploits this clean interface at deployment time:
- What's standard: It takes an off-the-shelf, pre-trained COMPASS checkpoint (built atop a MARL backbone called Sable) with zero modifications or retraining. It also uses standard CMA-ES—a lightweight, gradient-free evolutionary optimizer—to search for the best latent vectors based on total team reward.
- What's new: Instead of searching for a single vector $z \in \mathcal{Z}$ shared by all $N$ agents, ATLAS partitions the team into $G$ groups (all the way up to $G=N$, where every agent gets its own dial) and searches the expanded Cartesian product space $\mathcal{Z}^G$.
Because each individual agent still sees a valid "(local observation, $z$)" pair just like in training, there is no jarring distribution shift for the neural network. Instead, CMA-ES acts like a master conductor, recombining pre-learned individual behaviors into novel, complex team formations that a single shared latent could never express.
Datasets
In RL, "datasets" are interactive simulation environments. The authors evaluate across 14 scenarios spanning three cooperative, partially observable benchmarks, introducing new large-team scenarios to test extreme out-of-distribution (OOD) scaling:
- Connector: A grid world where $N$ agents must build paths to $N$ targets without blocking each other. Trained at $N=23$, tested up to $N=200$ ($8.7\times$ training scale).
- SMAX: A fast, JAX-based version of the classic StarCraft tactical combat benchmark. Trained at $N=10$ units, tested OOD on larger battles of 20 to 60 units.
- Multi-Agent Craftax-Coop: A procedurally generated, open-ended survival game (akin to 2D Minecraft) requiring long-horizon resource management for $N=3$ agents.
Key Insights and Ideas
- Zero-shot policy recombination: You don't need to train agents with independent strategies to use independent strategies at test time. Decoupling shared latents at inference time gives you a combinatorially larger policy space for free.
- Searching the right space beats searching harder: When scaling to 100 agents on Connector, giving standard COMPASS massive parallel compute (up to 256 parallel rollouts) causes it to plateau early. Its search space simply doesn't contain the right joint solution. ATLAS, conversely, keeps turning extra compute into better scores because the expanded space actually holds the winning strategies.
- True behavioral divergence: Visualizing the search trajectories (via t-SNE and PCA) reveals that ATLAS groups don't just collapse back to the same good $z$. They actively spread out into distinct corners of the latent space, pushing the team to explore wider, higher-reward regions of the environment's state space.
Key Results
Tested under a strict 300-second wall-clock budget (with 64 parallel attempts per step across 128 seeds), ATLAS ($G=N$) consistently beats COMPASS ($G=1$) and random per-agent latent sampling:
- Graceful OOD Scaling (Connector): As team size jumps from $N=30$ to $N=200$ (using an $N=23$ checkpoint), COMPASS collapses, losing 44% of its return (dropping from 0.84 to 0.47). ATLAS degrades much more gracefully (0.842 to 0.679), delivering an 18.2% relative gain at $N=100$ and a 45.4% gain at $N=200$.
- Tactical Combat (SMAX): Out-of-distribution (20–60 units), ATLAS boosts win rates by +3 to +10 percentage points over COMPASS, while also edging it out in-distribution (96% vs. 91% win rate at $N=10$).
- Complex Survival (Craftax): Even with just $N=3$ agents in-distribution, the sheer long-horizon complexity of Craftax allows ATLAS to outperform COMPASS.
Limitations and Future Work
- Struggles at tiny compute budgets: Expanding the search space from $d$ dimensions to $N \times d$ dimensions makes the optimization landscape much larger. When parallel compute capacity is tiny (e.g., population size $\lambda = 4$), CMA-ES gets overwhelmed by noisy updates, and ATLAS underperforms the simpler shared-latent COMPASS (0.59 vs. 0.65 return on 100-agent Connector, though ATLAS overtakes it by $\lambda = 16$).
- Slower convergence at $G=N$: Even with sufficient compute, optimizing hundreds of independent latents takes more steps.
- Future directions: In a 200-agent swarm, you probably don't need 200 completely unique roles—many directions in $\mathcal{Z}^N$ are redundant. The authors suggest learning or projecting onto lower-dimensional subspaces so similar agents can dynamically share latents, capturing the expressivity of $G=N$ at a fraction of the search dimensionality, alongside exploring other types of environmental distribution shifts.
Summary updated