PRIMAL: Pathfinding via Reinforcement and Imitation Multi-Agent Learning

Guillaume Sartoretti, Justin H. Kerr, Yunfei Shi, Glenn Wagner, T. K. Satish Kumar, Sven Koenig, Howie Choset
Venue: IEEE Robotics and Automation Letters ・ 2019-03-06 ・ source: openalex
Additional candidateVenue IEEE Robotics and Automation LettersPublished 2019-03-06Keyword matches 2Citations 426Relevance 2full text (open-access PDF)Reading value 5/5
Provisional rating estimated from citation count, full-text availability, and summary depth.
Full text retrieved: this summary is based on full text (open-access PDF).
Multi-Agent Path FindingMAPF
In short: PRIMAL is a framework that combines reinforcement learning and imitation learning to train fully decentralized policies for online collision-free pathfinding under partial observability. It scales well in obstacle-free and lightly obstructed large worlds, but its performance deteriorates earlier in densely obstructed environments.

What is this paper about?

The paper studies multi-agent path finding, in which multiple robots must reach individual goals without colliding with one another or with obstacles. Many strong MAPF planners are centralized, and their computational cost becomes problematic beyond a few hundred agents; recomputing plans after noise or uncertainty can also take seconds to minutes. PRIMAL instead lets each agent react online from a limited local observation without performing joint search at execution time. The supplied excerpt does not establish a formal optimality or completeness guarantee for this problem formulation.

What is new compared with prior work?

The main contribution is a hybrid learning framework that extends earlier distributed multi-agent reinforcement learning with demonstrations from an expert MAPF planner. PRIMAL also combines a penalty for blocking other agents, carefully designed rewards, and environment sampling intended to expose agents to coordination-relevant situations. After training, one learned policy can be copied to any number of agents and used across different team sizes and world dimensions, rather than solving a new joint search problem at execution time. The paper therefore contributes a learned decentralized alternative to centralized online planning, not a new exact MAPF search algorithm.

What is the key technical idea?

Each agent observes local channels encoding obstacles, nearby agents, the goals of nearby agents, and its own goal when it is within the field of view. It also receives a normalized direction vector toward its goal and the corresponding distance, which supplies a general travel direction even when the goal is outside the local view. The policy network contains seven convolutional layers interleaved with max-pooling layers, followed by an LSTM, and selects one of four cardinal moves or a wait action on the grid. During training, invalid actions are filtered from the sampled action set; at test time, an invalid move becomes a wait. Agents are executed sequentially in a random order at each timestep, while learning uses value bootstrapping, a policy-gradient loss with an entropy term, expert demonstrations, and shaped rewards. All agents reaching their goals receives a positive reward, collisions receive a negative reward, and blocking is penalized when an agent prevents or substantially delays another agent.

How was it validated?

The reported simulation evaluation randomizes square-world size, obstacle density, placements, agents, and goals, and includes teams of up to 1024 agents. PRIMAL is compared with state-of-the-art MAPF planners and a velocity-based collision-avoidance approach using success rates; the excerpt also states that path lengths and planning times were examined. The authors additionally validate the learned policy in a factory mockup combining real-world and simulated robots. The supplied material does not provide the complete dataset definition, every baseline name, a full numerical results table, the number of trials, or the hardware and reproducibility details of the hybrid experiment.

What are the limitations and open questions?

In a 160-by-160 world without obstacles, centralized planners struggle once the team exceeds 100 agents because the joint configuration space grows rapidly, whereas PRIMAL handles up to 1024 agents with a near-perfect success rate. Its success rate begins to decline earlier than those of the other planners, but remains above 60 percent for the reported 512-agent cases while the other methods perform poorly. In a smaller world with very dense obstacles, all planners handle at most 64 agents, yet PRIMAL begins to struggle beyond eight agents while ODrM* handles up to 64. These results show a trade-off: decentralized local reaction and favorable execution scaling work especially well in open or lightly obstructed spaces, but limited visibility and local coordination are insufficient in severe congestion. The excerpt does not establish that PRIMAL dominates across all densities, map structures, robot dynamics, or noise models.

Detailed section summary

Background

MAPF is a core capability for deployments such as aerial swarms, warehouse automation, and factory robots. Centralized search methods can produce high-quality solutions but scale poorly because the joint state space grows with the number of agents. Decoupled, velocity-based, and priority-based approaches reduce search complexity, but can encounter collisions, deadlocks, livelocks, or dependencies on communication and global information. PRIMAL addresses this setting by learning a reusable decentralized policy rather than repeatedly solving a large joint planning problem.

Limitations of prior work

The target setting is a partially observable grid world in which agents must move to assigned goals while avoiding static obstacles and other agents. Noise and uncertainty motivate online replanning, but a centralized planner that needs seconds or minutes for each computation may be unsuitable for real deployments. Individual shortest paths are not enough because agents can block one another or create cyclic waiting behavior. The supplied excerpt does not specify a formal objective combining success, path length, makespan, and optimality, so those guarantees should not be inferred.

Technical highlights

The action space consists of moving one cell in one of four cardinal directions or staying still. Training uses valid-action filtering, a blocking penalty of negative two in practice, a completion reward of positive twenty, and a rule that prevents returning to the previous cell during training to reduce oscillation; collisions also receive negative two. Environment sizes are selected from 10, 40, and 70, with 10-sized worlds twice as likely, while obstacle density is sampled from a triangular distribution between zero and 50 percent with its peak at 33 percent. The reported discount factor is 0.95, the episode length is 256, and the batch size is 128. For larger test worlds, capping the goal-distance input at 75 substantially improves performance.

Experiments

An ablation removes environment sampling, blocking penalties, or imitation learning one at a time. The excerpt reports that each removal either makes learning unstable or leads to a worse policy, supporting the claim that all three components are important for the presented training procedure. Large randomized worlds include 80-by-80 and 160-by-160 cases, and a factory mockup combines physical and simulated robots. The supplied evidence does not state the complete number of episodes, random seeds, confidence intervals, hardware configuration, or the detailed setup of the physical robots.

Results

PRIMAL performs best in the reported obstacle-free large-world scenario and slightly outperforms the other planners in low-obstacle-density worlds. In the dense-obstacle scenario it is strongly outperformed and starts failing beyond eight agents, showing that its favorable scaling is not uniform across environments. The excerpt reports per-step, per-agent future computation below 0.1 seconds on a standard GPU and below 0.2 seconds on a CPU, but it does not fully define the measurement protocol. The reported 512-agent success rate remains above 60 percent, and the 1024-agent open-world result is described as near-perfect, but the excerpt does not give the complete underlying measurements.

Conclusion

PRIMAL demonstrates that reinforcement learning and imitation learning can be combined with reward shaping, blocking penalties, and targeted environment sampling to learn implicit coordination for decentralized MAPF. The policy can react online and be replicated across team sizes, providing a promising execution-time alternative to centralized joint planning in large, open environments. Its evidence is strongest for scalability and success in obstacle-free or lightly obstructed settings, not for universal MAPF performance or formal solution guarantees.

Limitations and open problems

A limited field of view makes it difficult for an agent to identify the cause of a penalty or reason about distant bottlenecks, such as a long hallway ending in a dead end. Dense obstacles and frequent agent-agent interactions expose failures that local policies do not resolve reliably, and the paper does not provide quantitative robustness results for unknown dynamic obstacles, sensor noise, or distribution shifts. It also does not establish optimality, completeness, or broad sim-to-real guarantees from the supplied excerpt. The authors identify combining PRIMAL with a complete planner as future work, aiming to retain fast decentralized planning while addressing difficult cases.

Why it matters to MAPF researchers

For deployments that need frequent replanning for many robots, a policy copied across agents can avoid the repeated cost of centralized joint search. The work is important as a demonstration that expert demonstrations and reinforcement learning can be combined to produce implicit coordination under partial observability. Its contrasting open-space and dense-obstacle results are also useful evidence that scalability and local decision making do not remove the fundamental difficulty of congestion. PRIMAL is therefore best viewed as a complementary learned component, rather than a complete replacement for all MAPF planners.

Who should read this paper

This paper is suitable for MAPF and MAPD researchers studying scalable decentralized execution, partially observable online planning, multi-agent reinforcement learning, or imitation learning from expert planners. It is especially relevant to readers interested in policy reuse across team sizes, reward shaping, environment sampling, and ablations of coordination mechanisms. Readers requiring exact optimality, completeness, or strong performance guarantees in dense environments should treat the supplied results as limited evidence and consult the full paper before drawing such conclusions.