# Summary: 2026-07-20_09-06-15Z_PlanningwithTransformers_ChainofComputationandStru.md Saved: 2026-07-24 00:14 Source: 2026-07-20_09-06-15Z_PlanningwithTransformers_ChainofComputationandStru.md Model: None --- ## Summary The paper highlights a discrepancy between the theoretical claim that transformers are Turing‑complete and their limited ability to solve planning tasks, proposing Chain of Computation (COC) as a solution. COC embeds a transformer‑based language model inside an iterative loop that uses a Structured Context Window (SCW) to perform pattern matching, world modeling, and arithmetic within a constant‑size context. Experiments demonstrate that even small models trained from scratch can achieve success rates above 99.89 % on classic planning benchmarks such as BlocksWorld and the Pancake puzzle, while also solving Tower of Hanoi instances with up to twenty disks. ## Key Contributions - **Chain of Computation (COC) architecture**: A transformer LM is placed inside an iterative loop that leverages a Structured Context Window for pattern‑matching, world modeling, and arithmetic operations. - **Empirical success on planning tasks**: The COC framework enables small LMs to reach >99.89 % accuracy on BlocksWorld and the Pancake puzzle with only a few training instances per domain. - **Analysis of Tower of Hanoi failures and scalability**: Failure cases are traced to arithmetic errors or unseen tokens; COC can solve TOH problems up to 20 disks (≈1 million actions) using either symbolic arithmetic support or a deterministic pushdown automaton formulation for the SCW. ## Methodology The authors construct an append‑only Structured Context Window that functions like a Turing‑machine tape, allowing the LM to select which segment of the window is active at each planning step. Within this loop the transformer predicts the next action by matching patterns in its context, updates a world model, and carries out arithmetic on the selected tokens. Training proceeds with a minimal set of domain examples; evaluation consists of standard benchmark suites (BlocksWorld, Pancake puzzle, Tower of Hanoi). ## Results The COC system achieves success rates exceeding 99.89 % on BlocksWorld and the Pancake puzzle despite limited training data. For Tower of Hanoi, it solves instances with twenty disks requiring over one million actions, a task that would be infeasible for conventional planners. Moreover, the approach reduces required training examples by either (1) providing symbolic support for arithmetic or (2) employing a deterministic pushdown automaton to enforce the SCW’s structure. ## Significance This work bridges the gap between transformers’ theoretical computational power and their practical planning performance, showing that structured context windows can unlock reliable, low‑data learning of complex policies. By enabling small models to handle tasks previously thought to require massive data or specialized architectures, COC offers a scalable pathway for integrating reasoning into language models without sacrificing efficiency. ## Related Concepts Transformers, Chain of Computation (COC), Structured Context Window (SCW), Turing completeness, Planning problems, BlocksWorld, Pancake puzzle, Tower of Hanoi, symbolic arithmetic support, pushdown automaton (PDA).