[Paper Review] UPath: Universal Planner Across Topological Heterogeneity For Grid-Based Pathfinding
UPath trains a universal correction-factor heuristic for A* that generalizes across diverse grid topologies, achieving up to 2.2x fewer expansions while keeping costs within ~3% of optimal on unseen task distributions.
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 $\unicode{x2013}$ a milestone reached for the first time by a learnable solver.
Motivation & Objective
- Motivate the need for instance-aware heuristics in grid-based pathfinding to reduce search expansions.
- Propose a train-once universal heuristic predictor that generalizes across out-of-distribution maps.
- Integrate a correction-factor heuristic with a standard A* planner without altering the search procedure.
- Evaluate generalization across a diverse, topology-rich benchmark (UPF) and compare to baselines.
Proposed method
- Define a correction-factor cf*(n) = h_oct(n) / h*(n) where h_oct is the octile heuristic and h* is the true cost-to-go from a goal-based Dijkstra pass.
- Predict a dense cf(n) map with an encoder–transformer–decoder network and long skip connections; train with a masked regression loss to learn cf*(n) for non-obstacle, non-goal cells.
- Convert predicted cf to a usable heuristic h_hat(n) = h_oct(n) / max(cf_hat(n), epsilon) for A* guidance.
- Train three models on simple procedural priors (Uniform, Beta, Beta-Figures) to encourage universality and avoid overfitting to a single topology.
- Create UPF, a 20,000-task evaluation suite across 10 topology types, to test cross-domain generalization and robustness.
Experimental results
Research questions
- RQ1Can a single neural heuristic generalize across a wide range of unseen grid topologies and distributions?
- RQ2How does a universal predictor compare to traditional A* and weighted A* as well as state-of-the-art learned planners under distribution shift?
- RQ3Does the approach scale to larger grids (e.g., 128x128) while maintaining efficiency and near-optimality?
- RQ4What design choices (e.g., skip connections, loss masking) are crucial for robust universal performance?
Key findings
- UPath reduces search expansions by up to 2.2x compared with vanilla A* on UPF tasks.
- Solved paths remain near-optimal, with costs around 3% above the optimal on average.
- Beta+Fig variant achieves the best overall trade-off with 72.63% optimal found and 101.1% cost (±4.1), Expansions 47.4% (±27.7).
- Beta variant attains the lowest expansions (45.3% ±31.9) but with a higher cost (105.1% ±16.2) and fewer optimal solutions (55.24%).
- Compared to weighted A*, higher weights reduce expansions but degrade optimality and inflate cost; TransPath performs worse on UPF due to sensitivity to evaluation distribution.
- UPath models outperform both WA* baselines and TransPath on the topology-diverse UPF benchmark, showing robust generalization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.