Learning a Priority Ordering for Prioritized Planning in Multi-Agent Path Finding

Shuyang Zhang, Jiaoyang Li, Taoan Huang, Sven Koenig, Bistra Dilkina

Introduction

Multi-Agent Path Finding (MAPF) is a fundamental problem in robotics and logistics, requiring a fleet of agents to reach their respective goals without colliding. While optimal solutions are NP-hard to compute, Prioritized Planning (PP) offers a computationally efficient alternative. In PP, agents are assigned a priority and planned sequentially; each agent treats the paths of higher-priority predecessors as dynamic obstacles.

However, the performance of PP is highly sensitive to the chosen priority ordering. A suboptimal sequence can lead to unnecessarily long paths or "deadlocks," where a solution exists but cannot be found because a lower-priority agent is blocked by the fixed paths of others.

The impact of priority ordering on solution quality and solvability. Different runs of PP on the same instance yield a wide range of costs or fail to find a solution entirely.

Methodology: Learning to Rank

To move beyond brittle, hand-crafted heuristics like "longest distance first," this research introduces a machine-learning framework designed to predict high-quality priority orderings.

Feature Engineering

The model utilizes 26 features per agent to capture the complexity of the environment and agent interactions:

  • Geometric Features: Manhattan and graph distances to goals.
  • Flexibility Metrics: Properties of Multi-value Decision Diagrams (MDDs) that quantify the number of available path options at each timestep.
  • Conflict Analysis: Counts of potential vertex, edge, and "cardinal" conflicts with other agents.

Model Architectures

Two primary models were developed:

  1. ML-T (Total Ordering): Learns to predict a full priority list based on the single best-performing run identified during data collection.
  2. ML-P (Partial Ordering): A more sophisticated approach that learns pairwise relationships. It only enforces an order between two agents if reversing that order significantly impacts the total solution cost, allowing the model to ignore irrelevant interactions between distant agents.

Stochastic Ranking and Restarts

Rather than relying on a single deterministic output, the system employs Stochastic Ranking. The ML model outputs scores that are converted into probabilities via a Softmax function. This enables a Random Restart strategy: if an initial priority order fails to produce a solution, the system samples a new order based on the learned probabilities, significantly increasing robustness.

Experimental Evaluation

The framework was tested against standard MAPF benchmarks, including random grids, room-based maps, mazes, and large-scale game environments.

Performance comparison (solution rank) across six benchmark maps. ML-P consistently achieves the best (lowest) rank across various agent densities.

Key Results

  • Superior Success Rates: In challenging environments like the "maze" map with 130 agents, traditional heuristics (e.g., LH) managed only a 12% success rate. In contrast, the ML-P model with random restarts achieved a 52% success rate within the same time constraints.
  • Efficiency: On "room" maps with 100 agents, ML-P found solutions in an average of 0.70 seconds, whereas traditional heuristics often took over 12 seconds or failed.
  • Solution Quality: The learned models consistently produced paths with a lower "sum-of-costs" (total travel time) compared to both random and greedy heuristic assignments.

Discussion and Future Work

The results demonstrate that learning partial orderings (ML-P) is more effective than total orderings (ML-T), as it avoids over-fitting to noise in instances where agent priorities are independent. The synergy between ML-guided probabilities and stochastic restarts provides a powerful balance between the speed of a learned model and the search-based robustness required for complex MAPF instances.

Future research will focus on improving generalization to entirely unseen map geometries and developing models that can adapt to varying agent densities without retraining.

Summary updated

BibTeX
@inproceedings{zhang2022learning,
  author = {Shuyang Zhang and Jiaoyang Li and Taoan Huang and Sven Koenig and Bistra Dilkina},
  title = {{Learning a Priority Ordering for Prioritized Planning in Multi-Agent Path Finding}},
  booktitle = {SOCS},
  year = {2022},
  doi = {10.1609/socs.v15i1.21769},
}
Figure