Transformers可以通过多步预测来导航迷宫
Transformers Can Navigate Mazes With Multi-Step Prediction
AI总结:
研究显式多步预测目标MLM-U如何提升transformers在迷宫导航中的长期规划能力,发现其相比标准下一token预测在性能、4倍样本效率、2倍收敛速度及扩展性上均显著占优。
摘要:
尽管transformers在语言建模中取得了显著成功,但被训练用于预测序列中下一个token的transformers在长期规划方面仍存在困难。这种局限性在需要预见力以提前规划多步的任务中尤为明显,例如迷宫导航。然而,标准的下一单token预测目标并没有提供明确的机制来提前预测多步——或回顾迄今为止所走的路径。因此,在这项工作中,我们研究了显式地预测多步(向前和向后)是否能改善transformers的迷宫导航能力。我们在完全相同的设置下,从头训练参数匹配的transformers,使其在标准下一token预测和MLM-U(一种显式向前和向后预测多步的目标)下导航不同类型和大小的迷宫。我们发现,与标准的下一token预测相比,MLM-U在各种迷宫类型和复杂度下都大幅提升了transformers导航迷宫的能力。我们还发现,在GPU训练小时数方面,MLM-U训练的样本效率提高了4倍,收敛速度提高了2倍。最后,对于更复杂的迷宫,我们发现MLM-U受益于扩展到更大的transformers。值得注意的是,我们发现使用MLM-U训练的transformers优于使用A*搜索轨迹的额外监督训练的、更大的基于下一token预测的transformers。我们希望这些发现能强调学习目标在提升transformers长期规划能力方面的前景。代码可在https://github.com/facebookresearch/maze_navigation_MLMU找到。
英文摘要:
Despite their remarkable success in language modeling, transformers trained to predict the next token in a sequence struggle with long-term planning. This limitation is particularly evident in tasks requiring foresight to plan multiple steps ahead such as maze navigation. The standard next single token prediction objective, however, offers no explicit mechanism to predict multiple steps ahead - or revisit the path taken so far. Consequently, in this work we study whether explicitly predicting multiple steps ahead (and backwards) can improve transformers' maze navigation. We train parameter-matched transformers from scratch, under identical settings, to navigate mazes of varying types and sizes with standard next token prediction and MLM-U, an objective explicitly predicting multiple steps ahead and backwards. We find that MLM-U considerably improves transformers' ability to navigate mazes compared to standard next token prediction across maze types and complexities. We also find MLM-U training is 4x more sample efficient and converges 2x faster in terms of GPU training hours relative to next token training. Finally, for more complex mazes we find MLM-U benefits from scaling to larger transformers. Remarkably, we find transformers trained with MLM-U outperform larger transformers trained with next token prediction using additional supervision from A* search traces. We hope these findings underscore the promise of learning objectives to advance transformers' capacity for long-term planning. The code can be found at https://github.com/facebookresearch/maze_navigation_MLMU
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。