TransPath: Learning Heuristics for Grid-Based Pathfinding via Transformers
Daniil E. Kirilenko, Anton Andreychuk, Aleksandr Panov, Konstantin S. Yakovlev
Abstract
Heuristic search algorithms, e.g. A*, are the commonly used tools for pathfinding on grids, i.e. graphs of regular structure that are widely employed to represent environments in robotics, video games, etc. Instance-independent heuristics for grid graphs, e.g. Manhattan distance, do not take the obstacles into account, and thus the search led by such heuristics performs poorly in obstacle-rich environments. To this end, we suggest learning the instance-dependent heuristic proxies that are supposed to notably increase the efficiency of the search. The first heuristic proxy we suggest to learn is the correction factor, i.e. the ratio between the instance-independent cost-to-go estimate and the perfect one (computed offline at the training phase). Unlike learning the absolute values of the cost-to-go heuristic function, which was known before, learning the correction factor utilizes the knowledge of the instance-independent heuristic. The second heuristic proxy is the path probability, which indicates how likely the grid cell is lying on the shortest path. This heuristic can be employed in the Focal Search framework as the secondary heuristic, allowing us to preserve the guarantees on the bounded sub-optimality of the solution. We learn both suggested heuristics in a supervised fashion with the state-of-the-art neural networks containing attention blocks (transformers). We conduct a thorough empirical evaluation on a comprehensive dataset of planning tasks, showing that the suggested techniques i) reduce the computational effort of the A* up to a factor of 4x while producing the solutions, whose costs exceed those of the optimal solutions by less than 0.3% on average; ii) outperform the competitors, which include the conventional techniques from the heuristic search, i.e. weighted A*, as well as the state-of-the-art learnable planners.
The project web-page is: https://airi-institute.github.io/TransPath/.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 6b13dabb-9c19-4426-8e96-cc8fb41f2b40Cited by top-tier papers5
- GraphMP: Graph Neural Network-based Motion Planning with Efficient Graph SearchXiao Zang, Miao Yin, Jinqi Xiao, Saman A. Zonouz et al.NeurIPS 2023 · 17 citations
- Learning Admissible Heuristics for A*: Theory and PracticeEhsan Futuhi, Nathan R. SturtevantICLR 2026 · 3 citations
- Contrastive Diffusion Guidance for Spatial Inverse ProblemsSattwik Basu, Chaitanya Amballa, Zhongweiyang Xu, Jorge Vanco Sampedro et al.ICLR 2026 · 2 citations
- DAA*: Deep Angular a Star for Image-based Path PlanningZhiwei XuICCV 2025 · 1 citation
- Learning to Plan Like the Human Brain via Visuospatial Perception and Semantic-Episodic Synergistic Decision-MakingTianyuan Jia, Ziyu Li, Qing Li, Xiuxing Li et al.NeurIPS 2025
Builds on5
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
- Planning with Diffusion for Flexible Behavior SynthesisMichael Janner, Yilun Du, Joshua B. Tenenbaum, Sergey LevineICML 2022 · 1,115 citations
- Differentiation of Blackbox Combinatorial SolversMarin Vlastelica Pogancic, Anselm Paulus, Vít Musil, Georg Martius et al.ICLR 2020 · 341 citations
- Path Planning using Neural A* SearchRyo Yonetani, Tatsunori Taniai, Mohammadamin Barekatain, Mai Nishimura et al.ICML 2021 · 134 citations
- New Results in Bounded-Suboptimal SearchMaximilian Fickert, Tianyi Gu, Wheeler RumlAAAI 2022 · 9 citations
Related papers
- Optimize Planning Heuristics to Rank, not to Estimate Cost-to-GoalLeah Chrestien, Stefan Edelkamp, Antonín Komenda, Tomás PevnýNeurIPS 2023 · 17 citations
- Learning Heuristic Functions for HTN PlanningDaniel HöllerAAAI 2026
- Subgoal-Guided Policy Heuristic Search with Learned SubgoalsJake Tuero, Michael Buro, Levi LelisICML 2025
- Policy-Guided Heuristic Search with GuaranteesLaurent Orseau, Levi H. S. LelisAAAI 2021 · 30 citations
- Sample Complexity of Learning Heuristic Functions for Greedy-Best-First and A* SearchShinsaku Sakaue, Taihei OkiNeurIPS 2022 · 8 citations
