mlsanityData to 14 Oct 2026

Planning with Transformers: Chain of Computation and Structured Context Windows

arXiv 2607.17710 ↗First posted 20 Jul 2026cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Large Language Models (LLMs) have had a remarkable impact across many areas of machine learning. However, recent studies have shown that they struggle to reliably solve planning problems, particularly when compared with classical planners. Even with recent advances in reasoning-oriented models, the extent to which LLMs can genuinely perform planning remains an open question. At the same time, theoretical results have shown that transformers, the core architecture underlying modern LLMs, are Turing-complete. In this work, we investigate this apparent gap between the theoretical computational power of LLMs and their empirical planning performance. We propose Chain of Computation (COC), a computational architecture that places a transformer-based LM inside an iterative loop and leverages its strength as a pattern-matching system. COC uses a Structured Context Window (SCW) as external memory, allowing the model to access only the portion of the accumulated context required at each planning step and thereby maintain an approximately constant input size. Within this architecture, the LM learns the planning policy and world model and performs the arithmetic operations required during planning. We show that relatively small LMs trained from scratch can learn planning procedures from a small number of training instances and generalize to unseen problems, achieving success rates above 99% on BlocksWorld and the Pancake puzzle. We further show that COC can be formulated as a pushdown automaton (PDA). This formulation can solve Tower of Hanoi (TOH) instances with up to 20 disks and enables the planner to execute the depth-first search (DFS) algorithm. Theoretically, we characterize how the accumulation of irrelevant context increases planning failure probability under the standard full-context setup and how the SCW mitigates this effect.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 61 of its 74 references that are in the map. First posted on arXiv 20 Jul 2026.

Builds on

61 of 74 references.

References · 61

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2023GPT-4 Technical Reportcited by 18,396
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  4. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  5. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  6. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  7. 2016Gaussian Error Linear Units (GELUs)cited by 3,502
  8. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  9. 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,211
  10. 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,918
  11. 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,465
  12. 2020Shortcut Learning in Deep Neural Networkscited by 1,969
38 more
  1. 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,807
  2. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,737
  3. 2024Qwen2.5-Coder Technical Reportcited by 1,203
  4. 2023BloombergGPT: A Large Language Model for Financecited by 939
  5. 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 886
  6. 2023Reasoning with Language Model is Planning with World Modelcited by 861
  7. 2023Faith and Fate: Limits of Transformers on Compositionalitycited by 503
  8. 2023On the Planning Abilities of Large Language Models : A Critical Investigationcited by 312
  9. 2025The Illusion of Thinking: Understanding the Strengths and Limitations of Reasoning Models via the Lens of Problem Complexitycited by 302
  10. 2024Chain of Thought Empowers Transformers to Solve Inherently Serial Problemscited by 260
  11. 2023Looped Transformers as Programmable Computerscited by 237
  12. 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 199
  13. 2021Thinking Like Transformerscited by 184
  14. 2024Stream of Search (SoS): Learning to Search in Languagecited by 145
  15. 2022Training Language Models with Memory Augmentationcited by 113
  16. 2024Looped Transformers for Length Generalizationcited by 99
  17. 2023Algorithm of Thoughts: Enhancing Exploration of Ideas in Large Language Modelscited by 92
  18. 2023Navigation with Large Language Models: Semantic Guesswork as a Heuristic for Planningcited by 89
  19. 2020On the Computational Power of Transformers and its Implications in Sequence Modelingcited by 85
  20. 2023Auto-Regressive Next-Token Predictors are Universal Learnerscited by 67
  21. 2023SayCanPay: Heuristic Planning with Large Language Models using Learnable Domain Knowledgecited by 49
  22. 2023Can Large Language Models be Good Path Planners? A Benchmark and Investigation on Spatial-temporal Reasoningcited by 49
  23. 2023Memory Augmented Large Language Models are Computationally Universalcited by 47
  24. 2024LLM-A*: Large Language Model Enhanced Incremental Heuristic Search on Path Planningcited by 45
  25. 2024On the Prospects of Incorporating Large Language Models (LLMs) in Automated Planning and Scheduling (APS)cited by 40
  26. 2024ACPBench: Reasoning about Action, Change, and Planningcited by 39
  27. 2025LLMs as Planning Formalizers: A Survey for Leveraging Large Language Models to Construct Automated Planning Modelscited by 38
  28. 2023Understanding the Capabilities of Large Language Models for Automated Planningcited by 34
  29. 2024Thought of Search: Planning with Language Models Through The Lens of Efficiencycited by 32
  30. 2024Mastering Board Games by External and Internal Planning with Language Modelscited by 31
  31. 2024Universal Length Generalization with Turing Programscited by 25
  32. 2025DAST: Context-Aware Compression in LLMs via Dynamic Allocation of Soft Tokenscited by 22
  33. 2024Exploring and Benchmarking the Planning Capabilities of Large Language Modelscited by 19
  34. 2025Constant Bit-size Transformers Are Turing Completecited by 19
  35. 2025Classical Planning with LLM-Generated Heuristics: Challenging the State of the Art with Python Codecited by 18
  36. 2025LLMs Can Plan Only If We Tell Themcited by 15
  37. 2025Trading-R1: Financial Trading with LLM Reasoning via Reinforcement Learningcited by 15
  38. 2025Autoencoding-Free Context Compression for LLMs via Contextual Semantic Anchorscited by 14

50 most cited of 61 All 61 (JSON)

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2024ALPINE: Unveiling the Planning Capability of Autoregressive Learning in Language Models
  2. 2026Language Models as Higher-Order Planning Formalizers
  3. 2025From Next Token Prediction to (STRIPS) World Models
  4. 2025Large Language Models for Planning: A Comprehensive and Systematic Survey
  5. 2026Towards Reliable and Robust LLM Planning: Symbolic Feedback-Driven Iterative Self-Refinement Framework
  6. 2025An Extensive Evaluation of PDDL Capabilities in off-the-shelf LLMs
  7. 2025Language Models For Generalised PDDL Planning: Synthesising Sound and Programmatic Policies
  8. 2023Leveraging Pre-trained Large Language Models to Construct and Utilize World Models for Model-based Task Planning