Picture a warehouse with hundreds of robots, each driving to its own shelf and then staying parked there. As more robots arrive, the floor fills with permanent obstacles, and a single robot parked in a narrow aisle can cut off everyone behind it. Learned decentralized planners, which train on a few dozen agents and then run unchanged on a thousand, handle this badly. The simplest fix is to treat a parked robot as a wall. That fix hits a ceiling: HiMAP stalls at 60–70% success with 512 agents on 80×80 maps.
The fix we propose rests on one observation. A parked-robot deadlock is almost never a swarm-wide problem. It is a small, local coordination problem among the parked robot and the two or three robots it blocks. Each of them must decide whether the parked robot steps aside or the others detour. We cast each deadlock as a tiny game: each player has a short list of discrete choices, and payoffs come from the learned policy's own estimate of remaining travel cost. Because the game involves only a handful of players, it can be solved exactly every timestep. The cost of coordination then grows with the size of the largest local conflict, not with swarm size, and that is what should make zero-shot scaling hold under persistent occupancy.
Core Claim
Computing equilibria in an $N$-player game is exponential in $N$. That cost is why game-theoretic interaction planners such as SE-IBR stop at two players. Mean-field methods (Markov-Nash equilibria in mean-field games, Bi-level Mean Field) avoid the cost by averaging agents into a density, but they smooth away exactly the hard, cell-level blockage a parked robot creates. We claim a third route for persistent occupancy. Build a "conflict graph" in which parked agents connect to the active agents whose shortest routes they cut, and take its connected components. Within each component, solve an identical-interest game exactly. Each agent's choices are: stay, step into one of a few nearby free cells, wait, or detour. Payoffs are the summed learned cost-to-go of the component's agents.
The interests are identical because all robots share the warehouse's objective. As a result, the best joint action is itself an equilibrium. The real decentralized difficulty is then equilibrium selection, not equilibrium existence: two agents can each pick a different good outcome and collide. Every member of a component exchanges its local view and runs the same deterministic solver with a fixed tie-break, so all members pick the same equilibrium.
The cost per step is roughly $A^{k}$, where $A$ is the per-agent choice count (about 5) and $k$ is the component size. Our testable prediction is that large-$N$ success is governed by the distribution of $k$, not by $N$. Policies trained at small $N$ should transfer whenever the large-$N$ component-size distribution stays within the range seen in training, and should fail in proportion to its tail beyond that range.
Relation to Prior Work
Four papers motivate the gap. PRIMAL adds a reward penalty for agents that block others while parked on their goals. It scales to 1,024 agents in sparse gridworlds but degrades in dense structured mazes. HiMAP imitates a classical planner and recodes finished agents as walls (Treating Completed Agents as Obstacles, TCAO). Its ablations show TCAO is essential, and its 60–70% ceiling shows TCAO is insufficient. Ensembling Prioritized Hybrid Policies resolves stay-at-target deadlocks by ranking agents with neural Q-values and adding A* guidance, reaching 100% on warehouse maps. It is tested only up to 64 agents, and its pure neural base gets 15%. Multi-Train Path Finding Revisited documents the infinite-wait failures that persistent occupancy induces in standard search.
Our proposal differs from all four in the same way. They resolve the yield decision with a reward signal, a hard rule, or a one-dimensional priority. We solve the small joint decision exactly, over the full set of displacement options.
Three papers constrain the design. Stern et al. define "target symmetries", the deadlocks where search cannot decide between detouring and displacing a parked agent. They show the ICBS solver handles only 2–22 agents on complex maps under stay-at-target rules, which rules out exact global search. Bi-level Mean Field shows that averaging over heterogeneous neighbors adds aggregation noise. We go further: a parked robot should not be averaged at all. Streaming MAPF achieves constant-time infinite-horizon planning, but only by letting agents vanish into private zones, so it sidesteps our problem.
Two papers supply methods we reuse. From Decentralized Neural Barrier Certificates we take the recipe of a small-$N$-trained, permutation-invariant policy with a per-agent safety filter (a learned control barrier function, i.e. a learned function whose sign certifies collision-freedom), which scales from 8 to 1,024 agents. We use it as the low-level executor in the continuous setting. FM3Q contributes the idea that factorized per-agent values can stand in for expensive joint payoff tables. We use per-agent learned values in the same way to fill in the local game's payoffs.
Research Program
Base policy. We first build a policy in the style of HiMAP: decentralized, with local field of view, trained by imitation on planner solutions with 4–64 agents. We add a value head that estimates each agent's remaining cost-to-go from its local observation.
Yield-game module. At inference, a parked agent checks whether its cell lies on the current shortest route of any visible active agent. This uses a breadth-first search in the local window, and the check is what forms the edges of the conflict graph. Agents in a component share observations over local communication. Each agent then enumerates the joint choices and scores them by:
- the predicted sum of value-head costs after the move, plus
- a fixed displacement charge on the parked agent.
Every agent in the component runs the same deterministic tie-break over agent identifiers, so all of them execute the same joint choice. A displaced agent returns to its goal later through the base policy.
Fallback and cap. If a component exceeds a cap $k_{\max}$ (we start at 4), it falls back to TCAO. This makes the cost bound explicit, and the fallback rate becomes a reported quantity.
Analysis. We log component sizes throughout and fit success rate against the component-size tail and against $N$ separately. This tests the core claim directly.
Continuous extension. We move to quadcopters in gym-pybullet-drones. Drones land on pads in corridor-like layouts and stay landed. The yield game runs at the level of pads and corridor segments, and choices map to waypoint goals. A neural-certificate controller trained in the manner of Qin et al. executes the waypoints. This tests whether the discrete decision survives continuous dynamics and downwash from landed or hovering neighbors. We treat this as a robustness setting, not as the main contribution.
Baselines
Naive reference. The do-nothing reference is the base imitation policy with no persistent-occupancy handling: arrived agents simply stay, and active agents see them as ordinary neighbors. It measures how much of the problem exists in the first place.
Primary learned baseline. HiMAP with TCAO, the most direct scalable competitor. It is the only cited method demonstrated at 512–1,024 agents under persistent occupancy in dense maps. Its reported figure is 60–70% success at 512 agents on 80×80 maps with 30% obstacles (HiMAP). We reimplement it on the same base network, training data and roughly 100-minute GPU budget, so that the yield module is the only difference.
Strongest structured-map baseline. EPH-style Q-value prioritization with A guidance (Ensembling Prioritized Hybrid Policies). It is the strongest existing deadlock resolver: 100% success on warehouse and den312d* up to 64 agents. Ours must match it there and then beat it as $N$ grows beyond 64, where no reported EPH result exists. Its priority ranking will be driven by our value head, so it uses the same learned signal.
PRIMAL. We report PRIMAL's blocking penalty (PRIMAL) as the reward-shaping alternative.
Ablations. Two ablations isolate the key ingredient.
- Articulation rule. A parked agent yields whenever its cell is a cut cell for some active agent's route, using a fixed nearest-free-cell choice. This keeps the trigger and removes the game.
- Local repair. The local game is replaced by an exact local planner, CBS restricted to the component, scored with true A* distances instead of learned values. This tests whether learned payoffs matter.
What counts as winning. Beating the baselines means two things:
- at least 10 points more success than TCAO at 512 and 1,024 agents on dense and warehouse maps;
- per-step compute growing with $k$ rather than $N$.
Why not just…?
Why not just make parked agents yield whenever they sit on a cut cell? This is the real threat, and it is why the articulation rule is an explicit ablation. A cut-cell rule fixes the obvious failure, a single agent sealing a corridor. It cannot resolve target symmetries (Stern et al.), where two parked agents and two active agents in adjacent aisles need a coordinated pair of moves. A fixed rule can also make two agents yield into each other. If the articulation rule matches the yield game on warehouse maps at 1,024 agents, we will report that the joint game adds nothing beyond the trigger. We expect the gap to appear specifically in components with $k \geq 3$, and we will report success stratified by $k$ to settle the question.
Why not just raise the priority of blocked agents, as EPH does? A one-dimensional priority is a cheap way to select an equilibrium. It works up to 64 agents (Ensembling Prioritized Hybrid Policies). It can only say who moves first, not where a displaced agent should go, and that "where" is the crux under persistent occupancy. The value-driven priority baseline answers this directly at 128–1,024 agents.
Why not just run local CBS repair on each conflict? Exact local repair is feasible for small components and may produce better short-term plans. It ignores the congestion beyond the window, which the learned value captures. Its runtime also varies with how hard the local search is, whereas our enumeration has a fixed cost. The local-repair ablation compares the two on success, sum of costs and worst-case per-step time. If local repair wins on every count, the contribution reduces to the decomposition-and-transfer analysis, and we will say so.
Why not just use a mean-field or attention policy? Bi-level grouping transfers from 128 to 512 agents in Battle (Bi-level Mean Field), but averaging blurs exact cell exclusion. We include a mean-field neighbor encoding in place of the yield module as an additional check.
Proposed Experiments
Discrete grids. We use the PRIMAL randomized gridworlds (10×10 to 160×160, 0–30% obstacles), the HiMAP dense maps (40×40 and 80×80, 30% obstacles), and the warehouse, den312d and random-64-64-10 maps of the MAPF benchmark set (Stern et al.), all under stay-at-target rules. All methods train on at most 64 agents and are evaluated zero-shot at 64, 128, 256, 512 and 1,024 agents. We report success rate, sum of costs, makespan, deadlock rate, yield-module fallback rate and per-step compute.
First decisive check. At fixed agent density, success should stay flat as $N$ grows from 64 to 1,024 whenever the component-size tail stays below $k_{\max}$.
Second decisive check. Across all maps and densities, a regression of success on the fraction of components above the training range should explain more variance than a regression on $N$. If $N$ explains more, the core claim is wrong.
Third decisive check. On warehouse maps with single-lane aisles, the yield game should beat both the articulation rule and TCAO, and the margin should be concentrated in $k \geq 3$ components.
Continuous setting. In gym-pybullet-drones we build landing-pad corridors with 8 to 128 drones. We report task completion and safety rate, with the low-level certificate controller trained at 8 drones. The reference point is Qin et al.'s reported safety rate near 99% at 32 agents in 3D Maze, versus roughly 92% for MADDPG-Safe (Decentralized Neural Barrier Certificates). No reported result was found on Lacuna for persistent landing occupancy in this simulator, so baselines there (certificate controller with TCAO, and with the articulation rule) will be run by us under identical training budgets.
References
- HiMAP: Learning Heuristics-Informed Policies for Large-Scale Multi-Agent Pathfinding
- Game Theoretic Planning for Self-Driving Cars in Competitive Scenarios
- Markov-Nash equilibria in mean-field games with discounted cost
- Bi-Level Mean Field: Dynamic Grouping for Large-Scale MARL
- PRIMAL: Pathfinding via Reinforcement and Imitation Multi-Agent Learning
- Ensembling Prioritized Hybrid Policies for Multi-agent Pathfinding
- Multi-Train Path Finding Revisited
- Multi-Agent Pathfinding: Definitions, Variants, and Benchmarks
- Streaming Multi-agent Pathfinding
- Learning Safe Multi-agent Control with Decentralized Neural Barrier Certificates
- FM3Q: Factorized Multi-Agent MiniMax Q-Learning for Two-Team Zero-Sum Markov Game
- Learning to Fly - a Gym Environment with PyBullet Physics for Reinforcement Learning of Multi-agent Quadcopter Control