Beyond A*: Better Planning with Transformers via Search Dynamics Bootstrapping

Lucas Lehnert, Sainbayar Sukhbaatar, DiJia Su, Qinqing Zheng, Paul Mcvay +2 more
2/21/2024
cs.AI

No official code found. Best implementation: facebookresearch/searchformer (373 stars, last commit 2024-06-11). 1 more below.

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 $A^*$ 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 $A^*$ implementation that was used for training initially. In our training method, $A^*$'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 that predict the optimal plan directly with a 5-10$\times$ smaller model size and a 10$\times$ smaller training dataset. Lastly, we demonstrate how Searchformer scales to larger and more complex decision making tasks with improved percentage of solved tasks and shortened search dynamics.

View on arXivView PDF

Code Implementations(2)

Official codebase for the paper "Beyond A* Better Planning with Transformers via Search Dynamics Bootstrapping".

37321Python, Jupyter NotebookApr 16, 20242 years agoNOASSERTION

Implementation of the "Beyond A*: Better Planning with Transformers via Search Dynamics Bootstrapping" paper (https://arxiv.org/abs/2402.14083) on the snake game.

00Nov 29, 20241 years ago

Similar Papers

Cite this paper

@article{lehnert2024beyond,
  title  = {Beyond A*: Better Planning with Transformers via Search Dynamics Bootstrapping},
  author = {Lucas Lehnert and Sainbayar Sukhbaatar and DiJia Su and Qinqing Zheng and Paul Mcvay and Michael Rabbat and Yuandong Tian},
  year   = {2024},
  eprint = {2402.14083},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.14083v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.14083.svg)](https://codeofpaper.com/paper/2402.14083)

Discussion