How language models extrapolate outside the training data: A case study in Textualized Gridworld
Not on the map. Why?
Abstract (arXiv)
Language models' ability to extrapolate learned behaviors to novel, more complex environments beyond their training scope is highly unknown. This study introduces a path planning task in a textualized Gridworld to probe language models' extrapolation capabilities. We show that conventional approaches, including next token prediction and Chain of Thought (CoT) finetuning, fail to extrapolate in larger, unseen environments. Inspired by human cognition and dual process theory, we propose cognitive maps for path planning, a novel CoT framework that simulates humanlike mental representations. Our experiments show that cognitive maps not only enhance extrapolation to unseen environments but also exhibit humanlike characteristics through structured mental simulation and rapid adaptation. Our finding that these cognitive maps require specialized training schemes and cannot be induced through simple prompting opens up important questions about developing general-purpose cognitive maps in language models. Our comparison with exploration-based methods further illuminates the complementary strengths of offline planning and online exploration.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Builds on 31 of its 54 references that are in the map. First posted on arXiv 21 Jun 2024.
Builds on
31 of 54 references.
References · 31
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 5,045
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,211
- 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 886
- 2023Reasoning with Language Model is Planning with World Modelcited by 861
- 2023Language Agent Tree Search Unifies Reasoning Acting and Planning in Language Modelscited by 574
- 2023Faith and Fate: Limits of Transformers on Compositionalitycited by 503
19 more
- 2022LLM-Planner: Few-Shot Grounded Planning for Embodied Agents with Large Language Modelscited by 462
- 2024TravelPlanner: A Benchmark for Real-World Planning with Language Agentscited by 392
- 2023Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspectivecited by 294
- 2024From Explicit CoT to Implicit CoT: Learning to Internalize CoT Step by Stepcited by 235
- 2024Chain-of-Thought Reasoning Without Promptingcited by 210
- 2022The Parallelism Tradeoff: Limitations of Log-Precision Transformerscited by 193
- 2018To understand deep learning we need to understand kernel learningcited by 187
- 2019On the Inductive Bias of Neural Tangent Kernelscited by 177
- 2023Implicit Chain of Thought Reasoning via Knowledge Distillationcited by 176
- 2023The CoT Collection: Improving Zero-shot and Few-shot Learning of Language Models via Chain-of-Thought Fine-Tuningcited by 108
- 2020The Neural Tangent Kernel in High Dimensions: Triple Descent and a Multi-Scale Theory of Generalizationcited by 101
- 2024Beyond A*: Better Planning with Transformers via Search Dynamics Bootstrappingcited by 90
- 2024Transformers Can Do Arithmetic with the Right Embeddingscited by 78
- 2023Evaluating Cognitive Maps and Planning in Large Language Models with CogEvalcited by 77
- 2021Learning in High Dimension Always Amounts to Extrapolationcited by 66
- 2023Evaluating Spatial Understanding of Large Language Modelscited by 66
- 2024On Limitations of the Transformer Architecturecited by 63
- 2024Advancing Spatial Reasoning in Large Language Models: An In-Depth Evaluation and Enhancement Using the StepGame Benchmarkcited by 27
- 2021Extrapolation Frameworks in Cognitive Psychology Suitable for Study of Image Classification Modelscited by 4
Built on by
Citing papers per year: 2025: 2; 2026: 5.
7 papers.
- 2025Generalizing from SIMPLE to HARD Visual Reasoning: Can We Mitigate Modality Imbalance in VLMs?cited by 14
- 2025Dyna-Think: Synergizing Reasoning, Acting, and World Model Simulation in AI Agentscited by 14
- 2026Mind the Gap Between Spatial Reasoning and Acting! Step-by-Step Evaluation of Agents With Spatial-Gymcited by 1
- 2026LLMs for Text-Based Exploration and Navigation Under Partial Observabilitycited by 1
- 2026TSLM: Tree-Structured Language Modeling for Divergent Thinkingcited by 0
- 2026Distributed Zeroth-Order Policy Gradient for Networked Multi-agent Reinforcement Learning from Human Feedbackcited by 0
- 2026Steered Generation via Gradient-Based Optimization on Sparse Query Featurescited by 0
- 2026Steered Generation via Gradient-Based Optimization on Sparse Query Features21 May 2026
- 2026Distributed Zeroth-Order Policy Gradient for Networked Multi-agent Reinforcement Learning from Human Feedback15 May 2026
- 2026Mind the Gap Between Spatial Reasoning and Acting! Step-by-Step Evaluation of Agents With Spatial-Gym10 Apr 2026
- 2026LLMs for Text-Based Exploration and Navigation Under Partial Observability10 Mar 2026
- 2026TSLM: Tree-Structured Language Modeling for Divergent Thinking30 Jan 2026
- 2025Dyna-Think: Synergizing Reasoning, Acting, and World Model Simulation in AI Agents31 May 2025
- 2025Generalizing from SIMPLE to HARD Visual Reasoning: Can We Mitigate Modality Imbalance in VLMs?5 Jan 2025
Similar, not cited
Close in wording, no citation either way
- 2025Cognitive Maps in Language Models: A Mechanistic Analysis of Spatial Planning
- 2025MazeEval: A Benchmark for Testing Sequential Decision-Making in Language Models
- 2026A Close Look At World Model Recovery In Supervised Fine-Tuned LLM Planners
- 2022Few-shot Subgoal Planning with Language Models
- 2025Do Large Language Models Have a Planning Theory of Mind? Evidence from MindGames: a Multi-Step Persuasion Task
- 2026Extracting Search Trees from LLM Reasoning Traces Reveals Myopic Planning
- 2025On the Limits of Innate Planning in Large Language Models
- 2023Chain-of-Symbol Prompting Elicits Planning in Large Langauge Models