[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-detail-763047-en":59,"doc-seo-763047-105":99,"doc-similar-763047":161},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":5,"data":60},{"doc_id":61,"user_id":62,"nickname":63,"user_avatar":64,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":66,"doc_content":67,"file_id":68,"file_url":69,"file_type":70,"file_size":71,"view_count":8,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":72,"language":73,"language_code":74,"site_id":75,"html_lang":74,"table_of_contents":76,"faqs":77,"seo_title":78,"seo_description":66,"update_tm":79,"read_time":80,"preview_page_count":19,"preview_urls":81},763047,1099523882182,"Alex Sinclair","https://ap-avatar.wpscdn.com/davatar_6f874abed73319feea01a86fa6f0fab8","Beyond A∗ - Better Planning with Transformers via Search Dynamics Bootstrapping","Transformers have advanced many applications, yet they lag symbolic planners on complex decision-making. This work trains an encoder-decoder Transformer to predict A∗ search dynamics by encoding when task states are added and removed during symbolic planning. Fine-tuning yields a Searchformer that solves previously unseen Sokoban puzzles 93.7% of the time and uses up to 26.8% fewer search steps than the original A∗ system. Searchformer also outperforms plan-only baselines and scales to larger tasks with shorter search dynamics.","arXiv :2402 . 14083v2 [ cs .AI] 26 Apr 2024  \nBeyond A∗ : Better Planning with Transformers via Search Dynamics Bootstrapping  \nLucas Lehnert 1 , Sainbayar Sukhbaatar 1 , DiJia Su 1 , Qinqing Zheng 1 , Paul Mcvay 1 , Michael Rabbat 1 , Yuandong Tian 1  \n1 FAIR at Meta  \nWhile 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 × smaller model size and a 10 × 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.  \nCorrespondence: {lucaslehnert, [yuandong}@meta.com](yuandong}@meta.com)[ ](yuandong}@meta.com)Code: [https://github.com/facebookresearch/searchformer](https://github.com/facebookresearch/searchformer)  \n1 Introduction  \nTransformer-based architectures (Vaswani et al. , 2017) have demonstrated impressive performance in different tasks, including holding conversations at the human level (Shuster et al. , 2022 ; OpenAI, 2022 , 2023 ; Touvron et al. , 2023), high-quality image understanding (Caron et al. , 2021 ; Oquab et al. , 2024 ; Assran et al. , 2023) and video generation (Singer et al. , 2023), multi-modal generation (Girdhar et al. , 2023 ; Radford et al. , 2021), and code completion (Roziere et al. , 2023 ; OpenAI, 2021) . By training these architectures on internet-scale datasets, the resulting models, such as Large Language Models (LLMs), can generalize well in real-world use cases.  \nDespite these successes, Transformer-based architectures and LLMs still struggle when it comes to solving planning and reasoning tasks. Previous studies demonstrate that LLMs fall short in multi-step planning tasks (Valmeekam et al. , 2023a,b) or when performing higher-order reasoning (Momennejad et al. , 2023 ; Fan et al. , 2020) .  \nIn recent years, various methods have been proposed to improve the performance of Transformers in these settings. One approach is to simulate the human thinking process and produce intermediate “thoughts” before outputting a response. Chain-of-Thought (CoT) prompting (Wei et al. , 2022) and the Tree-of-thoughts (ToT) method (Yao et al. , 2023) encourage the model to “think” step by step. While these techniques are often effective, they can also lead to worse performance, for example due to self-enforcing (Huang et al. , 2023) . Furthermore, techniques effective on one dataset may not work well on others due to changes in the type of reasoning involved (e.g., spatial reasoning vs. mathematical reasoning) . How to enable Transformers and LLMs to plan, solve multi-step decision making tasks, and perform reasoning still remains elusive and an active area of research.  \nOur work  \nWe demonstrate how to train Transformers to robustly solve complex planning tasks. Similar to LLMs, we train Transformers to predict the next word given a sequence of words. Our experiments use synthetically generated datasets with a synthetic language and vocabulary. Using this framework, we demonstrate how to construct training data such that the resulting model imitates the computation performed by A∗ search (Russell & Nor","cbCaig0lDMcnJOgm","https://ap.wps.com/l/cbCaig0lDMcnJOgm","pdf",1186814,21,"English","en",105,"# Introduction\n## Our work\n# Related Work","[{\"question\":\"How does Searchformer differ from plan-only Transformer models?\",\"answer\":\"Searchformer is trained to predict A∗ search dynamics, not just the optimal plan. It encodes how states are added and removed into the search tree during planning, then fine-tunes to shorten search steps while keeping optimality.\"},{\"question\":\"What performance does the model achieve on Sokoban puzzles?\",\"answer\":\"Searchformer solves 93.7% of previously unseen Sokoban test tasks and uses up to 26.8% fewer search steps than the A∗ implementation used for training.\"},{\"question\":\"What does “search dynamics bootstrapping” mean in this paper?\",\"answer\":\"The method first trains a Transformer to imitate A∗’s search process, then fine-tunes it to find an optimal plan using fewer search steps.\"}]","Beyond A∗ - Better Planning with Transformers via Search Dynamics Bootstrapping | PDF",1795997238,53,[82,86,90,95],{"page_no":8,"url":83,"width":84,"height":85},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-30/95377583285a484eb1ef1c926274c7c2.webp",983,1272,{"page_no":14,"url":87,"width":88,"height":89},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-30/6de52d175352a27a3b60da5d4a798805.webp",982,1270,{"page_no":91,"url":92,"width":93,"height":94},3,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-30/25b781a1a76581f5539f3b55af5612b1.webp",981,1269,{"page_no":19,"url":96,"width":97,"height":98},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-30/6310943f2c6af5f2176e96d150386f71.webp",980,1268,{"code":4,"msg":100,"data":101},"ok",{"site_id":75,"language":74,"slug":102,"title":65,"keywords":103,"description":66,"schema_data":104,"social_meta":156,"head_meta":158,"extra_data":160,"updated_unix":79},"beyond-a-better-planning-with-transformers-via-search-dynamics-bootstrapping","",{"@graph":105,"@context":155},[106,119,138],{"@type":107,"itemListElement":108},"BreadcrumbList",[109,113,115,117],{"item":110,"name":111,"@type":112,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":114,"name":9,"@type":112,"position":14},"https://docshare.wps.com/document/",{"item":116,"name":40,"@type":112,"position":91},"https://docshare.wps.com/document/research-report/",{"item":118,"name":65,"@type":112,"position":19},"https://docshare.wps.com/document/beyond-a-better-planning-with-transformers-via-search-dynamics-bootstrapping/763047/",{"url":118,"name":65,"@type":120,"image":121,"author":126,"headline":65,"publisher":128,"fileFormat":131,"inLanguage":74,"description":66,"dateModified":132,"datePublished":132,"encodingFormat":131,"isAccessibleForFree":133,"interactionStatistic":134},"DigitalDocument",{"url":122,"@type":123,"width":124,"height":125},"https://docshare.wps.com/thumbnails/beyond-a-better-planning-with-transformers-via-search-dynamics-bootstrapping/763047.png","ImageObject",300,407,{"name":63,"@type":127},"Person",{"url":110,"name":129,"@type":130},"DocShare","Organization","application/pdf","2026-11-30",true,{"@type":135,"interactionType":136,"userInteractionCount":8},"InteractionCounter",{"@type":137},"ViewAction",{"@type":139,"mainEntity":140},"FAQPage",[141,147,151],{"name":142,"@type":143,"acceptedAnswer":144},"How does Searchformer differ from plan-only Transformer models?","Question",{"text":145,"@type":146},"Searchformer is trained to predict A∗ search dynamics, not just the optimal plan. It encodes how states are added and removed into the search tree during planning, then fine-tunes to shorten search steps while keeping optimality.","Answer",{"name":148,"@type":143,"acceptedAnswer":149},"What performance does the model achieve on Sokoban puzzles?",{"text":150,"@type":146},"Searchformer solves 93.7% of previously unseen Sokoban test tasks and uses up to 26.8% fewer search steps than the A∗ implementation used for training.",{"name":152,"@type":143,"acceptedAnswer":153},"What does “search dynamics bootstrapping” mean in this paper?",{"text":154,"@type":146},"The method first trains a Transformer to imitate A∗’s search process, then fine-tunes it to find an optimal plan using fewer search steps.","https://schema.org",{"og:url":118,"og:type":157,"og:title":65,"og:site_name":129,"og:description":66},"article",{"robots":159,"canonical":118},"index,follow",{"doc_id":61,"site_id":75},{"list":162,"token":103},[163,169,176,182,189,195,201,207,214,221],{"doc_id":164,"doc_title":165,"file_type":70,"home_preview_img_url":166,"slug":167,"view_count":46,"category_name":40,"create_tm":168},293159,"Myers-Briggs personality classification from social media text using pre-trained language models - Journal of Universal Computer Science - vol. 28, no. 4 (2022)","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229904016858/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110799&Signature=Ny9NsMw3DeBo%2FVsNQOjtYkq7Oqk%3D","myers-briggs-personality-classification-from-social-media-text-using-pre-trained-language-models-journal-of-universal-computer-science-vol-28-no-4-2022",1789660408,{"doc_id":170,"doc_title":171,"file_type":70,"home_preview_img_url":172,"slug":173,"view_count":174,"category_name":40,"create_tm":175},84553,"Does Your ViT Still Need U-Net for Segmentation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809059969/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110799&Signature=x0mfcQm1ux4Jz0LQBgEyXaaaNKY%3D","does-your-vit-still-need-u-net-for-segmentation",33,1784196676,{"doc_id":177,"doc_title":178,"file_type":70,"home_preview_img_url":179,"slug":180,"view_count":24,"category_name":40,"create_tm":181},664774,"Decoder-Hybrid-Decoder Architecture for Efficient Reasoning with Long Generation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229983089805/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110799&Signature=iVAsKiEpGoL2Rooec1Povm0oJI4%3D","decoder-hybrid-decoder-architecture-for-efficient-reasoning-with-long-generation",1793271982,{"doc_id":183,"doc_title":184,"file_type":70,"home_preview_img_url":185,"slug":186,"view_count":187,"category_name":40,"create_tm":188},84462,"CoGenCast Coupled Autoregressive Flow Generative Framework for Time Series Forecasting","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809051037/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110799&Signature=rSodi0pFPpbhI95bOZjgvKBQRfQ%3D","cogencast-coupled-autoregressive-flow-generative-framework-for-time-series-forecasting",26,1784195783,{"doc_id":190,"doc_title":191,"file_type":70,"home_preview_img_url":192,"slug":193,"view_count":72,"category_name":40,"create_tm":194},86299,"Think Through a Bottleneck: Hourglass Reasoning for Rigorous Induction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809400567/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110799&Signature=strqPrOFxmpdK%2F2NeOC1Xcu9SkQ%3D","think-through-a-bottleneck-hourglass-reasoning-for-rigorous-induction",1784210309,{"doc_id":196,"doc_title":197,"file_type":70,"home_preview_img_url":198,"slug":199,"view_count":34,"category_name":40,"create_tm":200},339983,"TriFusion enables accurate prediction of miRNA-disease association by a trichannel fusion neural network","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229910221922/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110799&Signature=GpVFdMnFFbIL9XVhVYPotBL7D0I%3D","trifusion-enables-accurate-prediction-of-mirna-disease-association-by-a-trichannel-fusion-neural-network",1790033513,{"doc_id":202,"doc_title":203,"file_type":70,"home_preview_img_url":204,"slug":205,"view_count":52,"category_name":40,"create_tm":206},458836,"Transformer Learning in Sequence-Based Drug Design - Depends on Compound Memorization and Similarity of Sequence-Compound Pairs","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229925907848/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110799&Signature=HfTzyJyhxnZbzeNywwLEPyDw1po%3D","transformer-learning-in-sequence-based-drug-design-depends-on-compound-memorization-and-similarity-of-sequence-compound-pairs",1790754568,{"doc_id":208,"doc_title":209,"file_type":70,"home_preview_img_url":210,"slug":211,"view_count":212,"category_name":40,"create_tm":213},424775,"NITK-UoH: Tamil-Telugu Machine Translation Systems for the WMT21 - Similar Language Translation Task - Machine Translation Systems","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229922358982/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110799&Signature=VUw1VValFWWB8kj9Yg0ykE7khHM%3D","nitk-uoh-tamil-telugu-machine-translation-systems-for-the-wmt21-similar-language-translation-task-machine-translation-systems",16,1790635338,{"doc_id":215,"doc_title":216,"file_type":70,"home_preview_img_url":217,"slug":218,"view_count":219,"category_name":40,"create_tm":220},457270,"Cross-domain dynamic routing decoders for multi-domain generalization in ultrasound imaging - Research Summary","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229925576024/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110799&Signature=c5KlBEBzTMSFuq1gCFnVJGNO9IE%3D","cross-domain-dynamic-routing-decoders-for-multi-domain-generalization-in-ultrasound-imaging-research-summary",12,1790748763,{"doc_id":222,"doc_title":223,"file_type":70,"home_preview_img_url":224,"slug":225,"view_count":226,"category_name":40,"create_tm":227},83132,"EvoPlan Evolutionary Neuro-Symbolic Robot Planning with Spatio-Temporal Guarantees","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808939323/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110799&Signature=W1NMX0Afmr1g%2Bvnvwq%2B75kqjkPU%3D","evoplan-evolutionary-neuro-symbolic-robot-planning-with-spatio-temporal-guarantees",22,1784185507]