English

UPath: Universal Planner Across Topological Heterogeneity For Grid-Based Pathfinding

Machine Learning 2026-03-02 v1 Artificial Intelligence

Abstract

The performance of search algorithms for grid-based pathfinding, e.g. A*, critically depends on the heuristic function that is used to focus the search. Recent studies have shown that informed heuristics that take the positions/shapes of the obstacles into account can be approximated with the deep neural networks. Unfortunately, the existing learning-based approaches mostly rely on the assumption that training and test grid maps are drawn from the same distribution (e.g., city maps, indoor maps, etc.) and perform poorly on out-of-distribution tasks. This naturally limits their application in practice when often a universal solver is needed that is capable of efficiently handling any problem instance. In this work, we close this gap by designing an universal heuristic predictor: a model trained once, but capable of generalizing across a full spectrum of unseen tasks. Our extensive empirical evaluation shows that the suggested approach halves the computational effort of A* by up to a factor of 2.2, while still providing solutions within 3% of the optimal cost on average altogether on the tasks that are completely different from the ones used for training \unicodex2013\unicode{x2013} a milestone reached for the first time by a learnable solver.

Keywords

Cite

@article{arxiv.2602.23789,
  title  = {UPath: Universal Planner Across Topological Heterogeneity For Grid-Based Pathfinding},
  author = {Aleksandr Ananikian and Daniil Drozdov and Konstantin Yakovlev},
  journal= {arXiv preprint arXiv:2602.23789},
  year   = {2026}
}
R2 v1 2026-07-01T10:55:13.004Z