Beyond A*: Better Planning with Transformers via Search Dynamics Bootstrapping
Lucas Lehnert, Sainbayar Sukhbaatar, DiJia Su, Qinqing Zheng, Paul, Mcvay, Michael Rabbat, Yuandong Tian

TL;DR
This paper introduces Searchformer, a Transformer-based model trained to predict search dynamics of A* algorithm, significantly improving planning efficiency and success rates in complex decision tasks like Sokoban.
Contribution
We propose a novel training method for Transformers to emulate A* search dynamics, enabling better generalization and efficiency in complex planning tasks.
Findings
Searchformer solves 93.7% of unseen Sokoban puzzles.
Uses up to 26.8% fewer search steps than traditional A*.
Outperforms baseline models with smaller size and less training data.
Abstract
While Transformers have enabled tremendous progress in various application settings, such architectures still trail behind traditional symbolic planners for solving complex decision making tasks. In this work, we demonstrate how to train Transformers to solve complex planning tasks. This is accomplished by training an encoder-decoder Transformer model to predict the search dynamics of the search algorithm. We fine tune this model to obtain a Searchformer, a Transformer model that optimally solves previously unseen Sokoban puzzles 93.7% of the time, while using up to 26.8% fewer search steps than the implementation that was used for training initially. In our training method, 's search dynamics are expressed as a token sequence outlining when task states are added and removed into the search tree during symbolic planning. Searchformer significantly outperforms baselines…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
Beyond A*: Better Planning with Transformers via Search Dynamics Bootstrapping (Searchformer)· youtube
Taxonomy
TopicsArtificial Intelligence in Games · AI-based Problem Solving and Planning · Advanced Database Systems and Queries
MethodsAttention Is All You Need · Linear Layer · Dense Connections · Label Smoothing · Adam · Softmax · Multi-Head Attention · Layer Normalization · Residual Connection · Absolute Position Encodings
