paper-with-me

Papers

Transformers Can Navigate Mazes With Multi-Step Prediction

2024-12-06 · Niklas Nolte, Ouail Kitouni, Adina Williams, Mike Rabbat, Mark Ibrahim

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

📄 PDF Abstract BibTeX arXiv:2412.05117

Code (1)

facebookresearch/maze_navigation_MLMU 공식 구현 pytorch

Tasks

GPULanguage ModelingLanguage ModellingNavigatePrediction

Similar Papers 제목 키워드 기반

Learning to Navigate in Complex Environments

2016-11-11 · Piotr Mirowski, Razvan Pascanu, Fabio Viola, Hubert Soyer 외

Learning to navigate in complex environments with dynamic elements is an important milestone in developing AI agents. In this work we formulate the navigation question as a reinforcement learning problem and show that da…

Depth EstimationDepth PredictionGeneral ClassificationNavigate+3

Evaluating Long-Term Memory in 3D Mazes

2022-10-24 · Jurgis Pasukonis, Timothy Lillicrap, Danijar Hafner

Intelligent agents need to remember salient information to reason in partially-observed environments. For example, agents with a first-person view should remember the positions of relevant objects even if they go out of …

Navigatereinforcement-learningReinforcement LearningReinforcement Learning (RL)

Learning to Navigate in Mazes with Novel Layouts using Abstract Top-down Maps

2024-12-16 · Linfeng Zhao, Lawson L. S. Wong

Learning navigation capabilities in different environments has long been one of the major challenges in decision-making. In this work, we focus on zero-shot navigation ability using given abstract $2$-D top-down maps. Li…

Decision MakingModel-based Reinforcement LearningMulti-Task LearningNavigate

MazeEval: A Benchmark for Testing Sequential Decision-Making in Language Models

2025-07-27 · Hafsteinn Einarsson arxiv

As Large Language Models (LLMs) increasingly power autonomous agents in robotics and embodied AI, understanding their spatial reasoning capabilities becomes crucial for ensuring reliable real-world deployment. Despite ad…

Spatial Reasoning

Video Models Reason Early: Exploiting Plan Commitment for Maze Solving

2026-03-31 · Kaleb Newman, Tyler Zhu, Olga Russakovsky arxiv

Video diffusion models exhibit emergent reasoning capabilities like solving mazes and puzzles, yet little is understood about how they reason during generation. We take a first step towards understanding this and study t…