arXiv:2611.07528cs.AINov 2026

Manuscript Offprint

arXiv:2611.07528

Goal-Branching LaCAM: Temporary Goals as Search Branches in Dense Multi-Agent Pathfinding

Stephen Chang, Daniel Harabor

Abstract

LaCAM is a search-based solver for multi-agent pathfinding (MAPF) that runs a depth-first search over joint configurations, using PIBT to generate successors and lazily adding single-agent constraints to explore alternatives. Although LaCAM is complete, it can struggle on dense, corridor-heavy instances because extracting blocking agents from deadlocks requires coordinated moves of several agents, often away from their goals, which PIBT's greedy one-step successors rarely propose and which LaCAM can only reach by enumerating constraints one agent at a time. This paper proposes Goal-Branching, where blocking agents are given temporary goals, each tried as an additional branch of LaCAM's search. We examine random and corridor-aware rules for choosing these temporary goals and show that completeness is preserved for any such rule. On dense instances (60–90% of free cells occupied) of three maze and room maps, Goal-Branching solves 89% of instances against 44% for LaCAM*, and, on instances both solve, it finds a first solution 10–14× faster on maze-32-32-2 and room-32-32-4, and nearly 200× faster in median time at 75% density on room-32-32-4. Solution cost increases by 15–22% on instances both solve, while on open maps and the full MovingAI benchmark its solutions cost no more than those of LaCAM* and it is at most 3% slower.

Code — https://github.com/Elysium8/gb-lacam2

1 Introduction

Multi-agent pathfinding (MAPF) asks for collision-free paths that move a team of agents from their start locations to their goals on a shared graph (Stern et al. 2019). It underpins applications such as automated warehouses, where hundreds of robots share narrow aisles (Wurman, D'Andrea, and Mountz 2008), and it is NP-hard to solve optimally (Yu and LaValle 2013). Many of the practically hard instances are dense ones, in which agents occupy a large fraction of the free space and must repeatedly make room for one another.

Optimal and bounded-suboptimal solvers such as CBS (Sharon et al. 2015) and EECBS (Li, Ruml, and Koenig 2021) provide quality guarantees but do not scale to large, dense instances. Scalable solvers trade these guarantees for speed, with different strengths. Rule-based planners such as PIBT (Okumura et al. 2022) compute one step at a time and handle thousands of agents, but are incomplete. Repair-based methods built on large neighbourhood search, such

as MAPF-LNS2 (Li et al. 2022) and its extensions (Wang et al. 2025), iteratively remove collisions from an initial plan and are among the strongest solvers on dense instances, often with better solution quality, but are also incomplete. LaCAM (Okumura 2023b) takes a third route, a search over joint configurations that uses PIBT to generate successors; it is complete and finds first solutions quickly at scale, though these are often costly.

LaCAM is complete, and LaCAM*, its anytime extension, is proven to converge to an optimal solution given sufficient time. However, both can struggle to solve dense instances with dead-end corridors and other bottlenecks in a reasonable time. This is because PIBT, the configuration generator underlying both solvers, often deadlocks or livelocks in such settings, and the search is then reduced to a systematic but uninformed enumeration of successors, one agent constraint at a time. Some work has augmented the configuration generator for these situations, such as the swap technique (Okumura 2023a), which resolves livelocks between pairs of agents by pulling one of them towards a branching vertex where the two can exchange places, and tie-breaking heuristics that discourage agents from blocking each other's routes (Okumura and Nagai 2025). However, these extensions only change how agents rank their moves towards fixed goals, and the swap technique handles one pair of agents at a time. Jams that require several agents to move away from their goals at once therefore still fall to the constraint search. In this paper we introduce Goal-Branching, a novel extension to LaCAM that resolves such jams directly. When PIBT's step jams, Goal-Branching uses the agents that PIBT failed to move to propose temporary goals for those blocking the way, and tries each choice as a separate branch of the search before LaCAM's own constraints. Temporary goals change where agents are heading, not the problem being solved, so the search keeps its guarantees, and the branches are cheap to generate from information PIBT already computes. Our contributions are:

  • Goal-Branching, an extension of LaCAM* that turns PIBT jams into temporary-goal branches of the search (Section 3);
  • proofs that Goal-Branching preserves completeness and eventual optimality, and leaves LaCAM* unchanged on runs without jams (Section 3.7);
  • an evaluation showing that on dense maze and room in-

stances Goal-Branching solves 89% of instances against 44% for LaCAM* and finds first solutions up to 14×14\times faster on average, and in some settings over 200×200\times faster. On open maps and the full MovingAI benchmark it is never more than 3% slower, its solutions cost no more, and it solves 41 more runs than LaCAM* (Section 4).