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 Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
5 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Path Planning using Neural A Search cites Differentiation of Blackbox Combinatorial Solvers
- Contrastive Diffusion Guidance for Spatial Inverse Problems cites Path Planning using Neural A Search
- GraphMP: Graph Neural Network-based Motion Planning with Efficient Graph Search cites Path Planning using Neural A Search
- GraphMP: Graph Neural Network-based Motion Planning with Efficient Graph Search cites Differentiation of Blackbox Combinatorial Solvers
- Learning to Plan Like the Human Brain via Visuospatial Perception and Semantic-Episodic Synergistic Decision-Making cites Path Planning using Neural A Search
- Learning to Plan Like the Human Brain via Visuospatial Perception and Semantic-Episodic Synergistic Decision-Making cites GraphMP: Graph Neural Network-based Motion Planning with Efficient Graph Search
- DAA: Deep Angular a Star for Image-based Path Planning cites Path Planning using Neural A Search
- DAA: Deep Angular a Star for Image-based Path Planning cites Differentiation of Blackbox Combinatorial Solvers
- DAA: Deep Angular a Star for Image-based Path Planning cites GraphMP: Graph Neural Network-based Motion Planning with Efficient Graph Search
- Learning Admissible Heuristics for A: Theory and Practice cites Path Planning using Neural A Search
Cited 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
- A Training Data Recipe to Accelerate A* Search with Language ModelsDevaansh Gupta, Boyang LiEMNLP Findings 2024 · 1 citation
- 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
