A multi-algorithm pathfinding method: Exploiting performance variations for enhanced efficiency

Aya Kherrour, Marco Robol, Marco Roveri, Paolo GiorginiAnn. Math. Artif. Intell 2025

Abstract

Pathfinding is a critical component in robotics, autonomous navigation, and gaming. While numerous algorithms exist, their performance varies significantly depending on environmental constraints. This paper introduces an automated selection framework that utilizes machine learning to identify the optimal pathfinding algorithm for a given grid map. By analyzing empirical performance data and employing a hybrid feature extraction approach—combining handcrafted spatial metrics with Convolutional Neural Network (CNN) features—the proposed system achieves high accuracy in predicting memory usage and solving time, moving beyond a "one-size-fits-all" approach.

Introduction

Standard pathfinding algorithms like A and Dijkstra are industry staples, but specialized variants such as D Lite or ARA* often offer superior performance under specific conditions. However, selecting the "best" algorithm remains difficult because performance is highly sensitive to domain features like obstacle density, map dimensions, and the distance between start and goal points. Most comparative studies are limited to narrow, controlled scenarios, leaving a gap in understanding how complex environmental factors dictate algorithmic efficiency. This research addresses this gap by developing an automated selector that identifies the right tool for the job based on the specific layout of the environment.

Methodology

The research was conducted in two primary phases:

1. Empirical Evaluation

The authors performed a comprehensive "stress test" on six heuristic search algorithms: D, D Lite, LPA, LRTA, RTAA, and ARA. These were evaluated across 27 distinct environmental configurations, varying grid sizes, obstacle densities, and start-goal distances to map out the strengths and weaknesses of each.

2. Automated Selection Framework

Using the empirical data, Random Forest (RF) models were trained to predict the most efficient algorithm for unseen maps. The models utilized three types of feature sets:

  • Handcrafted Grid Features: Basic spatial metrics including height, width, obstacle density, and Euclidean distance.
  • CNN-Extracted Features: High-level structural patterns extracted via a pre-trained VGG16 network to capture complex layouts like corridors or dead ends.
  • Hybrid Approach: A combination of both handcrafted and CNN features to leverage both explicit spatial facts and implicit structural patterns.

The study utilized custom random grids for initial analysis and the standard MAPF Benchmark Dataset for training, encompassing 800 instances across various real-world map types.

Key Insights and Performance Analysis

The empirical analysis revealed distinct "personalities" among the algorithms. For instance, RTAA emerged as a speed specialist, while D Lite proved to be the most memory-efficient in large-scale environments. ARA*** was found to be most effective in smaller grids with short distances.

Correlation heatmap between grid features and performance metrics, showing strong links between grid size and memory consumption.

A significant finding was the dominance of start-goal distance over other factors. As shown in Figure 4, while obstacle density has a relatively low correlation with performance, grid size and start-goal distance are highly correlated with memory usage and solving time.

Heatmap illustrating the near-perfect correlation between start-goal distance and path length.

In some scenarios, the correlation between start-goal distance and path length reached 1.00 (Figure 6), confirming it as the primary driver of pathfinding complexity, often outweighing the impact of obstacle density.

Results

The predictive models demonstrated varying levels of success based on the target metric:

  • Memory Consumption: Achieved 84% accuracy using simple grid features, indicating that memory requirements are highly predictable based on map dimensions.
  • Solving Time: The hybrid (Grid + CNN) model reached 78% accuracy, proving that structural layout significantly influences computational overhead.
  • Path Length: This metric was the most challenging to predict (52% accuracy), primarily because multiple algorithms often produce identical optimal paths, leading to frequent "ties" in the classification task.

Conclusion and Future Work

The study successfully demonstrates that a hybrid machine learning approach can effectively navigate the trade-offs between different pathfinding algorithms. However, the current work is limited to static environments. Future research will focus on dynamic environments with moving obstacles and explore the impact of algorithmic "lookahead" parameters on selection accuracy. Additionally, the authors plan to extend this framework to continuous, non-grid-based spaces.

Summary updated

BibTeX
@article{kherrour2025multi,
  author = {Aya Kherrour and Marco Robol and Marco Roveri and Paolo Giorgini},
  title = {{A multi-algorithm pathfinding method: Exploiting performance variations for enhanced efficiency}},
  journal = {Ann. Math. Artif. Intell},
  year = {2025},
  doi = {10.1007/s10472-024-09957-3},
}
Figure