[论文解读] Beyond A*: Better Planning with Transformers via Search Dynamics Bootstrapping
本文训练 Transformer 模型以模仿并提升 A* 搜索,通过将 A* 的执行轨迹记录为训练数据,生成 Searchformer,能够在较少的搜索步数下实现高最优性的规划任务解决能力,在迷宫和 Sokoban 领域超过传统的 A*。
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$ imes$ smaller model size and a 10$ imes$ 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.
研究动机与目标
- 激励对超越传统符号化搜索的改进规划的需求。
- 提出一种方法,通过利用搜索动力学来教导 Transformer 模型模仿并最终超越 A*。
- 证明以搜索增强序列为特征的数据高效训练方案能够为未见任务提供稳健的规划。
提出的方法
- 引入搜索动力学自举:先训练一个 Transformer 来模仿 A* 的执行轨迹,然后微调以在更少的搜索步中找到最优规划。
- 将 A* 的搜索动力学编码为令牌序列(prompt、trace、plan),并训练一个编码器-解码器 Transformer(RoPE 增强)来预测这些序列。
- 通过在迷宫导航和 Sokoban 中对随机创建的任务运行 A*,生成合成数据集,包含确定性和非确定性 A* 变体。
- 创建两种训练变体:搜索增强序列(<prompt><trace><plan>)和仅解序列(<prompt><plan>)。
- 应用类似专家迭代的微调(自举)以在保持最优规划的前提下逐步缩短搜索动力学,产生一个搜索比 A* 少的模型。
- 使用 exact-match、any-optimal-64 和 SWC 指标进行评估,并测量平均搜索动力学长度和 ILR(Improved Length Ratio)相对于 A* 的变化。
实验结果
研究问题
- RQ1Transformer 模型是否可以从合成轨迹中模仿 A* 规划器的搜索动力学?
- RQ2用搜索动力学进行训练是否比传统 A* 在迷宫和 Sokoban 任务中实现更少的搜索步且规划更好?
- RQ3迭代自举(Searchformer)是否还能在保持最优性的前提下进一步缩短搜索轨迹的长度?
- RQ4模型规模、数据制度(低数据 vs 高数据)和任务难度如何影响 solution-only 与 search-augmented 训练的性能?
主要发现
- Searchformer 解决 Sokoban 测试任务的比例为 93.7%,平均搜索动力学比 A* 少 26.8%。
- 搜索增强模型在低数据情境下优于仅解模型,并且在更难任务上具有更好的扩展性。
- 在训练数据有限的情况下,较小的参数化搜索增强模型往往胜过更大规模的仅解模型。
- 对搜索动力学进行自举能够在三次改进步骤内降低轨迹的平均长度,收敛于更短的序列,同时保持最优规划。
- 包含 A* 执行轨迹实现数据高效学习,并在规划性能上优于仅预测最终计划。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。