mlsanityData to 14 Oct 2026

How language models extrapolate outside the training data: A case study in Textualized Gridworld

arXiv 2406.15275 ↗First posted 21 Jun 2024cs.CLcited by 7

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

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  3. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  4. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  5. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
  6. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
  7. 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 5,045
  8. 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,211
  9. 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 886
  10. 2023Reasoning with Language Model is Planning with World Modelcited by 861
  11. 2023Language Agent Tree Search Unifies Reasoning Acting and Planning in Language Modelscited by 574
  12. 2023Faith and Fate: Limits of Transformers on Compositionalitycited by 503
19 more
  1. 2022LLM-Planner: Few-Shot Grounded Planning for Embodied Agents with Large Language Modelscited by 462
  2. 2024TravelPlanner: A Benchmark for Real-World Planning with Language Agentscited by 392
  3. 2023Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspectivecited by 294
  4. 2024From Explicit CoT to Implicit CoT: Learning to Internalize CoT Step by Stepcited by 235
  5. 2024Chain-of-Thought Reasoning Without Promptingcited by 210
  6. 2022The Parallelism Tradeoff: Limitations of Log-Precision Transformerscited by 193
  7. 2018To understand deep learning we need to understand kernel learningcited by 187
  8. 2019On the Inductive Bias of Neural Tangent Kernelscited by 177
  9. 2023Implicit Chain of Thought Reasoning via Knowledge Distillationcited by 176
  10. 2023The CoT Collection: Improving Zero-shot and Few-shot Learning of Language Models via Chain-of-Thought Fine-Tuningcited by 108
  11. 2020The Neural Tangent Kernel in High Dimensions: Triple Descent and a Multi-Scale Theory of Generalizationcited by 101
  12. 2024Beyond A*: Better Planning with Transformers via Search Dynamics Bootstrappingcited by 90
  13. 2024Transformers Can Do Arithmetic with the Right Embeddingscited by 78
  14. 2023Evaluating Cognitive Maps and Planning in Large Language Models with CogEvalcited by 77
  15. 2021Learning in High Dimension Always Amounts to Extrapolationcited by 66
  16. 2023Evaluating Spatial Understanding of Large Language Modelscited by 66
  17. 2024On Limitations of the Transformer Architecturecited by 63
  18. 2024Advancing Spatial Reasoning in Large Language Models: An In-Depth Evaluation and Enhancement Using the StepGame Benchmarkcited by 27
  19. 2021Extrapolation Frameworks in Cognitive Psychology Suitable for Study of Image Classification Modelscited by 4

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 5.

7 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Cognitive Maps in Language Models: A Mechanistic Analysis of Spatial Planning
  2. 2025MazeEval: A Benchmark for Testing Sequential Decision-Making in Language Models
  3. 2026A Close Look At World Model Recovery In Supervised Fine-Tuned LLM Planners
  4. 2022Few-shot Subgoal Planning with Language Models
  5. 2025Do Large Language Models Have a Planning Theory of Mind? Evidence from MindGames: a Multi-Step Persuasion Task
  6. 2026Extracting Search Trees from LLM Reasoning Traces Reveals Myopic Planning
  7. 2025On the Limits of Innate Planning in Large Language Models
  8. 2023Chain-of-Symbol Prompting Elicits Planning in Large Langauge Models