Map Connectivity and Empirical Hardness of Grid-based Multi-Agent Pathfinding Problem

Jingyao Ren, Eric Ewing, T. K. Satish Kumar, Sven Koenig, Nora Ayanian

Abstract

Multi-Agent Pathfinding (MAPF) is a critical challenge in robotics and logistics, where the goal is to find collision-free paths for multiple agents. While optimal MAPF is NP-Hard, its practical difficulty varies significantly across different map topologies. This paper investigates the relationship between map connectivity—quantified by the second smallest eigenvalue ($\lambda_2$) of the Laplacian matrix—and empirical hardness. The authors demonstrate that poorly connected maps with bottlenecks are more likely to produce computationally expensive instances and introduce a novel map generator to create benchmarks with specific connectivity profiles.

Introduction

Multi-Agent Pathfinding (MAPF) involves finding collision-free paths for multiple agents from their respective starts to goals. While optimal MAPF is NP-Hard, its practical difficulty varies wildly: some maps with hundreds of agents are solved in seconds, while others with just a handful of agents cause solvers to stall.

The researchers aim to understand empirical hardness: what specific features of a map make it difficult for state-of-the-art solvers? Specifically, they focus on the relationship between a map’s global connectivity and the runtime of optimal solvers. By quantifying "connectivity," they seek to predict which maps will be "hard" before solving begins.

Figure 1: Examples of maps with varying connectivity ($\lambda_2$) and their corresponding empirical hardness levels.

Quantifying Connectivity via Spectral Graph Theory

The authors turn to Spectral Graph Theory to quantify connectivity. They represent a 2D grid map as a 4-connected graph $G(V, E)$ and analyze its normalized Laplacian matrix.

The key metric is $\lambda_2$ (the second smallest eigenvalue), also known as the algebraic connectivity or Fiedler value.

  • High $\lambda_2$: Indicates a well-connected graph (e.g., an open warehouse).
  • Low $\lambda_2$: Indicates a poorly connected graph with bottlenecks (e.g., a complex maze or a building with narrow corridors).

To bridge the gap between math and movement, they use Cheeger’s Inequality, which relates $\lambda_2$ to "conductance"—a measure of how easily a graph can be partitioned into two pieces by cutting a small number of edges. They provide an intuitive proof that lower conductance increases the probability of agents needing to pass through the same "choke points," thereby increasing potential conflicts.

Experimental Setup and Datasets

The study utilized several sources for its 32x32 grid maps:

  • Standard Benchmarks: Five maps from the widely used MAPF benchmark dataset.
  • Fractal Maps: Maps generated using diffusion-limited aggregation to create cave-like and maze-like structures.
  • QD-Generated Maps: A new set of 851 maps generated using Quality Diversity (QD), specifically the MAP-Elites algorithm. This allows for the evolution of maps that hit specific target $\lambda_2$ values while maintaining diversity in other features like obstacle density.

The Relationship Between Connectivity and Hardness

The research reveals several key insights into how map structure influences solver performance:

  • The "Choke Point" Correlation: Maps with small $\lambda_2$ values tend to have narrow corridors or bottlenecks. These features force agents into the same physical space, leading to a high number of "Constraint Tree" expansions in solvers like Conflict-Based Search (CBS).
  • Probabilistic Hardness: A low $\lambda_2$ doesn't guarantee a hard instance, but it makes hard instances much more frequent. Conversely, maps with high $\lambda_2$ are almost always "easy" for modern solvers.
  • Global vs. Local Sensitivity: $\lambda_2$ is a global metric. The authors discovered that small local changes—like widening a single narrow corridor by one cell—can drastically reduce solver runtime while only slightly increasing the global $\lambda_2$ value. This suggests that while $\lambda_2$ is a strong indicator, local topology also plays a critical role.

Key Results

The study evaluated four optimal solvers: LazyCBS, BCP, CBSH2-RTC, and CBSH2-RTC-CHBP. The results consistently showed:

  • Solver Performance: The hardest instances (highest runtimes) consistently clustered in the low $\lambda_2$ range.
  • Predictive Power: The number of Constraint Tree (CT) expansions—a measure of how many conflicts a solver must resolve—showed a strong correlation with low $\lambda_2$, confirming that poor connectivity directly leads to more agent-to-agent conflicts.
  • Corridor Impact: In one experiment, widening corridors in a maze changed $\lambda_2$ from $10.1 \times 10^{-5}$ to $15.4 \times 10^{-5}$ (a minor numerical shift), yet the resulting instances became significantly easier to solve.

Conclusion

While $\lambda_2$ is a powerful tool for predicting MAPF hardness, it is not a perfect predictor because it is a global average that can miss critical local bottlenecks. Future work will focus on developing hybrid reasoning models that combine global connectivity with local features, creating tunable instance generators for benchmarking, and establishing tighter theoretical bounds on the correlation between spectral properties and MAPF complexity.

Summary updated

Abstract

We present an empirical study of the relationship between map connectivity and the empirical hardness of the multi-agent pathfinding~(MAPF) problem. By analyzing the second smallest eigenvalue~(commonly known as $\lambda_2$) of the normalized Laplacian matrix of different maps, our initial study indicates that maps with smaller $\lambda_2$ tend to create more challenging instances when agents are generated uniformly randomly. Additionally, we introduce a map generator based on Quality Diversity~(QD) that is capable of producing maps with specified $\lambda_2$ ranges, offering a possible way for generating challenging MAPF instances. Despite the absence of a strict monotonic correlation with $\lambda_2$ and the empirical hardness of MAPF, this study serves as a valuable initial investigation for gaining a deeper understanding of what makes a MAPF instance hard to solve.
BibTeX
@inproceedings{ren2024map,
  author = {Jingyao Ren and Eric Ewing and T. K. Satish Kumar and Sven Koenig and Nora Ayanian},
  title = {{Map Connectivity and Empirical Hardness of Grid-based Multi-Agent Pathfinding Problem}},
  booktitle = {ICAPS},
  year = {2024},
  doi = {10.1609/icaps.v34i1.31508},
}
Figure