TL;DR
The paper introduces LaGAT, a hybrid multi-agent pathfinding (MAPF) framework that integrates a lightweight graph attention network (MAGAT+) as a neural heuristic inside a leading search-based planner (LaCAM). By combining map-specific fine-tuning with a novel deadlock detection fallback mechanism, LaGAT breaks through the existing Pareto frontier, outperforming both purely search-based and purely learning-based methods in highly dense, congested environments.
What Problem Does This Paper Address?
Multi-Agent Pathfinding (MAPF) is the problem of finding collision-free paths for a team of robots moving through a shared environment, such as an automated warehouse. As robot density increases, finding near-optimal paths in real-time becomes incredibly difficult.
Currently, the field is split into two paradigms:
- Search-based planners (e.g., LaCAM): Reliable, scalable, and theoretically complete (guaranteed to find a solution if one exists), but often highly suboptimal in crowded spaces because they rely on myopic, hand-crafted heuristics.
- Learning-based policies (e.g., GNNs or Transformers): Excellent at learning complex local agent interactions, but they lack completeness guarantees, scale poorly to massive agent counts, and frequently suffer from deadlocks or livelocks.
Prior attempts to build hybrid systems—using neural networks to guide classical search—have historically underperformed. They suffered from slow neural network inference speeds and model inaccuracies that degraded search performance, leading prominent benchmarks to conclude that learned MAPF components perform worse than simple rule-based heuristics. This paper aims to overturn that narrative.
Methods
LaGAT achieves its breakthrough by pairing a carefully optimized neural architecture with a robust search framework. The pipeline consists of four distinct stages:
- MAGAT+ Architecture: The authors enhanced the standard Message-Aware Graph Attention Network (MAGAT) by stacking three attention layers (instead of one) to enable wider inter-agent communication. They also added edge features (relative positions and Manhattan distances between agents) and encoded normalized "cost-to-go" values directly into the local field-of-view observations.
- Pre-train and Fine-tune Strategy: MAGAT+ is first pre-trained via imitation learning on a large dataset of expert trajectories generated by
lacam3. Crucially, the model is then fine-tuned on the specific target map layout using a smaller dataset with high agent densities. This map-specific specialization mimics real-world applications like warehouses, where map layouts remain static. - Deterministic Search Guidance: Instead of sampling actions probabilistically (which introduces suboptimality), LaGAT uses MAGAT+ predictions deterministically to sort agent movement preferences inside LaCAM's core configuration generator (PIBT).
- Deadlock Detection & Override: To safeguard against imperfect neural predictions, LaGAT tracks the short-term state history of each agent. If an agent begins to oscillate or gets stuck in a livelock, the system dynamically overrides the neural policy for that specific agent, falling back to a standard, non-learned heuristic to guarantee algorithm completeness.
Datasets
- Pre-training Dataset: 21,000 synthetic instances generated using the POGEMA toolkit. The dataset consists of 80% maze-like environments and 20% random obstacle layouts, with map sizes ranging from $17 \times 17$ to $21 \times 21$ and containing 16, 24, or 32 agents.
- Fine-tuning Dataset: 1,000 map-specific instances generated on target evaluation maps, featuring significantly higher agent densities (32, 48, 64, and 80 agents).
- Evaluation Benchmarks: Standard MAPF benchmarks including Warehouse, Room, Maze (and their dense variants), alongside large-scale maps like ost003d ($194 \times 194$).
Key Insights and Ideas
- The Power of Map-Wise Specialization: General-purpose neural policies often struggle with the structural nuances of specific maps. Fine-tuning a compact model on the target environment allows it to specialize effectively without requiring massive parameter counts.
- Imitation Learning Can Outperform the Teacher: In dense scenarios, search-based planners like
lacam3struggle to find high-quality paths within tight real-time constraints (e.g., 30 seconds). However, because MAGAT+ is trained on optimal data from low-density settings, it learns generalized coordination rules that allow it to successfully guide search in high-density settings where the teacher itself would time out. - The "Safety Valve" is Essential: Purely neural guidance inevitably hits edge cases. The inclusion of a deterministic deadlock detection mechanism that rolls back search nodes and strips away neural guidance on-the-fly is what makes the hybrid approach viable and complete.
Key Results
LaGAT redefines the state-of-the-art speed-quality tradeoff in dense multi-agent environments:
- Model Efficiency: Standalone, MAGAT+ achieves success rates comparable to massive state-of-the-art models like MAPF-GPT, despite using only 760K parameters (vs. up to 85M parameters for MAPF-GPT). When implemented in C++, MAGAT+ boasts an inference time of $\le 5\text{ ms}$ for 128 agents, making it fast enough for real-time search integration.
- Solution Quality: In dense environments (Warehouse, Room, Maze), LaGAT consistently delivers significantly higher-quality initial solutions and better final solutions (measured by sum-of-costs) within a 30-second deadline compared to
lacam3. - Ablation Validation: Ablation experiments confirmed that removing any single component—pre-training, fine-tuning, the neural model itself, deadlock detection, or the search mechanism—drastically harms either the success rate or the solution quality.
Limitations and Future Work
- Sparse and Large Maps: LaGAT's advantages do not extend to large, sparse maps (like ost003d). In these environments, classical planners already find near-optimal solutions instantly, meaning the neural inference overhead of LaGAT provides little to no practical benefit.
- Local vs. Global Awareness: Because MAGAT+ relies on a decentralized policy with a local field of view and limited communication range, its local nature can lead to suboptimality on massive maps where global routing awareness is critical. Future work will focus on addressing these scalability constraints for larger environments.
Summary updated