# PRIMAL3: Pathfinding via Reinforcement and Imitation Multi-Agent Learning - Leveraging LaCAM3

Robotics.world

> Learning-based MAPF policies are cheap to run and react well to disturbances, but they tend to fail exactly where coordination is hardest: narrow corridors, bottlenecks, and dead ends, where agents…

**arXiv**: 2608.04905 · Preprint · not peer-reviewed

**Published**: 2026-08-05

**Authors**: Chengyang He, Tanishq Duhan, Gadiel Sznaier Camps, Fangyuan Wang, Yuhong Cao, Jiankai Sun, Ge Sun, Mac Schwager, Guillaume Sartoretti

## In plain words

Learning-based MAPF policies are cheap to run and react well to disturbances, but they tend to fail exactly where coordination is hardest: narrow corridors, bottlenecks, and dead ends, where agents must commit to yielding or proceeding rather than hedging between several plausible actions.

## AI summary

## Overview

**Research area:** Multi-Agent Path Finding (MAPF) — specifically learning-based (reinforcement + imitation learning) decentralized pathfinding that scales to very large agent teams, combining graph-based communication with classical search-based expert guidance and priority-based action shielding.

**Technical level:** Advanced. The paper assumes familiarity with MAPF formulations (vertex/edge collisions, one-shot vs. lifelong), graph neural networks and attention-based message passing, prioritized planning and PIBT, LaCAM/LaCAM* search, and standard RL/IL training objectives. The math is dense (directed weighted adjacency matrices, discounted overlap scores, graph-theoretic cut vertices).

**Scope (one sentence):** The paper introduces PRIMAL3, a framework that pairs a topology-aware dual-graph policy with entropy-triggered LaCAM3 expert interventions during training and a priority-aware PIBT refinement at execution, targeting failures at bottlenecks, dead ends, and persistent conflicts at scales up to city-level 100,000 agents.

## What This Paper Is About

Learning-based MAPF policies are cheap to run and react well to disturbances, but they tend to fail exactly where coordination is hardest: narrow corridors, bottlenecks, and dead ends, where agents must commit to yielding or proceeding rather than hedging between several plausible actions. The authors argue this failure comes from three gaps — local observations do not reveal map topology, uncertain policies hesitate at commitment-critical states, and collision-avoidance shielding keeps agents safe without keeping them moving.

PRIMAL3's goal is to close the gap between learned decentralized policies and strong classical solvers (LNS2, LaCAM3) by giving agents explicit topological structure, targeted expert supervision only where the policy is uncertain, and an execution-time refinement that remembers who has been waiting.

## Key Contributions

1. **Dual-graph representation.** Agents compute A* reference paths, encode motion direction at each path step, and split pairwise path overlaps into two directed weighted graphs: a *following graph* for same-direction overlaps (compatible paths) and a *conflict graph* for opposite-direction, different-direction, and stationary-blocking overlaps. Each agent then keeps one fixed conflict neighbor and one fixed following neighbor, yielding sparse, temporally stable communication graphs processed with masked attention and relative features.
2. **Topology-aware node features.** A seven-dimensional hand-crafted feature vector per agent exposes cut vertices, dead-end regions, shortest-path distances, and blocking estimates — structural information that local occupancy observations cannot reveal and that can be precomputed per map.
3. **Confidence-boosting LaCAM3 expert intervention.** Policy entropy identifies which agents are uncertain; LaCAM3 supplies confidence-triggered action interventions and label-smoothed imitation targets for those agents, added as a categorical cross-entropy loss on top of the RL objective. LaCAM3 is *not* required at inference.
4. **Priority-aware PIBT action refinement.** An execution-time shield combines persistent (waiting-time) priorities, learned coordination priorities, and distance-to-goal priorities, and preserves the policy's relative preferences when choosing fallback actions — retaining PIBT's collision-free guarantee while reducing repeated blocking and arbitrary tie-breaking.

## Main Findings

- **Outperforms learning-based baselines:** PRIMAL3 "substantially outperforms state-of-the-art learning-based baselines" across random and maze maps. Specific success-rate and runtime figures are not reported in the provided text (the experimental sections are truncated).
- **Narrows the gap to classical solvers:** On random maps, PRIMAL3 reaches success rates comparable to state-of-the-art search-based solvers LNS2 and LaCAM3, which the authors describe as substantially narrowing the long-standing gap between learning-based and classical MAPF.
- **Ultra-large scale:** The framework scales to city-level instances with up to 100,000 agents.
- **Sim-to-real feasibility:** Real-world multi-robot experiments demonstrate deployment on physical robotic systems is feasible.
- **Components validated individually:** Ablation studies confirm the individual contributions of the proposed components (dual-graph representation, LaCAM3-guided intervention, priority-aware PIBT refinement). Ablation numbers are not reported in the provided text.
- **Diagnosis of prior shielding:** The paper argues that PIBT shields reinitialized each timestep lose delay history, letting some agents be blocked repeatedly, and that passing only a discrete action to the shield discards the policy's relative preferences — motivating the persistent/learned/distance-aware priority combination.
- **Diagnosis of path-overlap communication:** Path overlap alone determines *who* should communicate but not *how* heterogeneous information should be processed; homogeneous aggregation under parameter sharing blurs compatible (follow) versus competing (conflict) relations.

## Methodology in Plain English

The approach has three cooperating pieces.

**Representation.** Each agent first computes a plain A* path to its goal. Because those paths are padded to equal length and each step is labeled with a direction (stay, right, up, left, down), the system can compare every pair of paths cell by cell. Where two agents' paths touch and they move the same way, that's a *following* relation; where they touch and move in opposite or mismatched directions, or one is sitting still, that's a *conflict*. Conflicts are weighted — stationary blocking counts most (5), head-on encounters count 1, non-opposite mismatches count 0.5 — and earlier overlaps count more than distant ones, with conflicts discounted gently (0.9) so agents react early, and following relations discounted sharply (0.5) so only immediate cooperation matters. Rather than passing dense matrices to the network, each agent locks onto one best conflict partner and one best following partner and keeps them until that interaction dissolves. On top of this, each agent carries seven hand-built numbers describing the local map's structure: whether it is standing on a cut vertex (removing it would disconnect the free space), whether it is in a dead-end corridor, how far it has left to go, and how much it is currently blocking others.

**Training.** Agents learn with reinforcement learning, but the policy's own entropy acts as a self-diagnostic. When an agent is genuinely unsure among several actions, LaCAM3 is consulted for that state, supplying the expert's action as an intervention and as a smoothed imitation label. When the policy is already confident, it is left alone to explore. The result is expert guidance spent only where it matters.

**Execution.** Independent agents may propose conflicting actions, so a modified PIBT shield resolves them. Unlike standard shields, its priorities carry memory across timesteps (how long an agent has been waiting), blend in a learned priority and goal distance, and when an agent must be deflected, the shield picks among alternatives according to the policy's own preferences rather than an arbitrary tie-break. LaCAM3 never runs at deployment.

## Why This Matters

**Impact on research.** The paper reframes learned MAPF communication from "who should talk" to "what kind of relation is this," and reframes expert imitation from uniform behavior cloning to entropy-triggered, targeted supervision. Both are transferable design patterns beyond MAPF — any decentralized multi-robot policy with bottleneck-structured coordination could adopt them. Achieving success rates comparable to LNS2 and LaCAM3 on random maps while remaining a reactive, decentralized policy is a meaningful shift in the learning-versus-search debate.

**Real-world applications:**

- Automated warehouses and fulfillment centers, where hundreds to thousands of robots share narrow aisles and must resolve contention without deadlock.
- Traffic management and intersection coordination for autonomous vehicle fleets in constrained road topologies.
- Large-scale drone or robot swarm logistics, where centralized joint planning becomes infeasible at the 100,000-agent scale the paper targets.
- Search-and-rescue or exploration in maze-like and corridor-heavy structures such as collapsed buildings or subterranean environments.

**Industry relevance.** Because LaCAM3 is used only during training, deployed systems need no centralized solver at runtime — attractive for fleets with limited onboard compute and unreliable communication. The topology features are precomputed per map, and the communication graph is sparse (one conflict plus one following neighbor per agent), which suits bandwidth-constrained real robots. The persistent-priority shield addresses a practical field complaint: safe but livelocked fleets.

## Future Directions

- **Full quantitative characterization.** The provided content omits the results tables; the natural next step is understanding how the success-rate and runtime curves behave across agent densities and map types relative to LNS2 and LaCAM3, and where the learned policy still degrades.
- **Extending beyond one-shot MAPF.** The paper explicitly restricts itself to classical one-shot MAPF. Lifelong MAPF, MAPF with kinematic constraints, and the closed-loop/finite-horizon formulations it cites (FICO, ACCBS) remain open — the persistent-priority mechanism seems a natural fit for lifelong settings.
- **Removing A* reference paths.** The whole dual-graph construction depends on individually optimal A* paths and on their overlap. What happens when reference paths are myopic or misleading in highly constrained maps, and can the graph be built from learned intent instead?
- **Scaling the real-world validation.** Real-robot experiments are described as demonstrating feasibility; a systematic study of how the shield and communication scheme behave under sensing noise, communication dropout, and kinematic limits on physical hardware would establish deployment readiness.

## Target Audience

Robotics and multi-agent systems researchers already working on MAPF or learned coordination policies; graduate students who need a clear articulation of why bottleneck and dead-end states break decentralized learned planners; and practitioners building large robot fleets in warehouses, traffic systems, or swarms who want a deployable policy that needs no centralized solver at inference. Readers without background in graph neural networks, PIBT, or LaCAM search will find the methodology section demanding.

## Authors’ abstract

We present PRIMAL3, an ultra-large-scale learning-based framework for multi-agent pathfinding (MAPF) that integrates reinforcement learning, topology-aware communication, LaCAM3-guided training, and PIBT-based action refinement. PRIMAL3 targets failures at topologically critical states, where agents must coordinate decisively around bottlenecks, dead ends, and persistent conflicts. Each agent is represented using features derived from cut vertices, dead-end regions,…

[The full abstract on arXiv](https://arxiv.org/abs/2608.04905)

[Read the original paper](https://arxiv.org/abs/2608.04905)

## Related papers

- [ScaffoldM3C: A Multimodal Sequential Monte Carlo Framework for Generative Stable Construction Planning](https://robotics.world/paper/scaffoldm3c-a-multimodal-sequential-monte-carlo-framework-for-2610.00487) 2026-09-30 · cs.RO · Also by Chengyang He, Gadiel Sznaier Camps +2
- [Search-Aided Joint Agent-Environment Reinforcement Learning for Robust Lifelong Multi-Agent Path Finding with Rotations](https://robotics.world/paper/search-aided-joint-agent-environment-reinforcement-learning-for-robust-2608.05588) 2026-08-06 · cs.RO · Also by Guillaume Sartoretti, Tanishq Duhan
- [Planner-Conditioned Diffusion for Coordinated Multi-Agent Exploration](https://robotics.world/paper/planner-conditioned-diffusion-for-coordinated-multi-agent-exploration-2608.16229) 2026-08-17 · cs.RO · Also by Guillaume Sartoretti, Tanishq Duhan
- [EmbodiedSWE: Coding Agents for Long Horizon Dexterous Robotics](https://robotics.world/paper/embodiedswe-coding-agents-for-long-horizon-dexterous-robotics-2609.27308) 2026-09-23 · cs.RO · Also by Jiankai Sun, Mac Schwager
- [RoboFoundry: System-as-Policy Evolution for Self-Learning Embodied Agents](https://robotics.world/paper/robofoundry-system-as-policy-evolution-for-self-learning-embodied-agents-2609.32862) 2026-09-26 · cs.RO · Also by Chengyang He, Guillaume Sartoretti

---

Canonical: https://robotics.world/paper/primal3-pathfinding-via-reinforcement-and-imitation-multi-agent-2608.04905
