Presented at AAAI-23, LaCAM (Lazy Constraints Addition Search) introduces a search-based framework designed to solve the Multi-Agent Pathfinding (MAPF) problem with unprecedented speed and scalability. By combining a two-level search with "lazy" successor generation, LaCAM coordinates thousands of agents in seconds, outperforming state-of-the-art sub-optimal algorithms in both speed and reliability.
The Challenge of Multi-Agent Pathfinding
Multi-Agent Pathfinding (MAPF) involves finding collision-free paths for a fleet of agents—such as robots in an automated warehouse—from their start positions to their goals. As fleet sizes grow, the problem faces a "curse of dimensionality." Optimal MAPF solving is NP-hard, and while optimal solvers exist, they typically struggle with more than a hundred agents in real-time.
Sub-optimal solvers are faster but often fail in dense environments or lack completeness—the guarantee that a solution will be found if one exists. Modern industrial applications require algorithms that are both lightning-fast and robust enough to handle thousands of robots without failing on solvable instances.
Methodology: Two-Level Lazy Search
LaCAM addresses these challenges through a novel two-level search architecture that suppresses the exponential branching factor typically associated with multi-agent coordination.
- High-Level Search: This level explores a sequence of "configurations" (snapshots of all agent positions at a specific time step) using a Depth-First Search (DFS) approach.
- Low-Level Search: Rather than expanding every possible move for every agent simultaneously, the low-level search generates constraints lazily. It determines agent movements one by one, only adding complexity when necessary.
- Lazy Successor Generation: This is the core innovation. LaCAM uses a rule-based sub-procedure, Priority Inheritance with Backtracking (PIBT), to generate a single promising successor configuration. If that path leads to a collision or dead end, the low-level search "lazily" adds constraints to generate an alternative successor.
This hybrid approach allows the algorithm to function like a fast, reactive heuristic when paths are clear, while reverting to a rigorous, complete search when encountering complex bottlenecks.
Performance Evaluation
The authors evaluated LaCAM against standard benchmarks, including 2D grids, warehouse maps (e.g., warehouse-20-40-10-2-1), and complex game maps. They also utilized hand-crafted "gadget" maps—such as tunnels and loops—and adversarial instances designed to test the limits of search strategies in narrow corridors.
Key Insights
- Branching Factor Reduction: While a standard search for $n$ agents has a branching factor of $O(\Delta^n)$, LaCAM effectively reduces the initial branching factor to 1, expanding the search space only when required.
- Completeness and Reliability: Unlike many high-speed heuristics, LaCAM is theoretically complete. It will eventually find a solution if one exists, making it significantly more reliable for industrial deployment.
- Reinsertion Strategy: To escape local bottlenecks, LaCAM employs a "reinsertion" strategy where known configurations are placed back into the search queue rather than discarded, improving both search efficiency and solution quality.
Key Results
LaCAM demonstrates a significant leap in MAPF performance across multiple metrics:
- Extreme Scalability: The algorithm successfully solved instances with 10,000 agents on large warehouse maps in under 30 seconds. Most baseline algorithms either timed out or failed to load these instances into memory.
- Superior Success Rates: On a 32x32 grid with 20% obstacles and 400 agents, LaCAM maintained a 100% success rate with a median runtime of approximately one second. In contrast, baseline solvers like EECBS or LNS2 failed to solve the majority of these instances within a 30-second limit.
- Competitive Solution Quality: Although LaCAM is sub-optimal, its "sum-of-costs" (total travel time) remains comparable to or better than other state-of-the-art sub-optimal solvers, particularly in high-density scenarios.
Limitations and Future Work
Despite its strengths, LaCAM faces challenges in specific "adversarial" cases, such as narrow corridors where agents must swap positions. Because the high-level search is DFS-based, it can occasionally spend excessive time exploring similar but unproductive configurations in these bottlenecks.
Future research directions include improving the configuration generator (PIBT) to further enhance speed and developing an "asymptotically optimal" version of LaCAM that can eventually converge on the shortest possible paths while maintaining high performance.
Summary updated