NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Chain of Thoughtlessness: An Analysis of CoT in Planning

Kaya Stechly, Karthik Valmeekam, Subbarao Kambhampati · DOI

Introduction

Since the introduction of Chain of Thought (CoT) prompting, the AI community has largely embraced the idea that providing "thought traces" allows Large Language Models (LLMs) to learn procedures and reasoning logic in-context. However, much of the evidence for this capability stems from static benchmarks, such as math word problems, which often lack a systematic way to scale difficulty. This raises a fundamental question: are LLMs actually executing logic-based algorithms, or are they simply mimicking the surface-level patterns of the examples provided?

This paper investigates whether LLMs can truly generalize a procedure—specifically a planning algorithm—to "out-of-distribution" problems. By testing state-of-the-art models on scalable planning tasks, the researchers demonstrate that CoT improvements are often the result of narrow pattern matching rather than generalizable reasoning. As problem complexity increases beyond the scope of the prompt examples, model performance tends to collapse.

Methodology

The Blocksworld Case Study

The researchers utilized Blocksworld, a classic domain in AI planning where an agent must move blocks from an initial state to a specific goal configuration. To ensure rigorous evaluation, natural language plans generated by the models were translated back into PDDL (Planning Domain Definition Language) and verified using a formal validator (VAL).

Prompt Granularity

A key component of the study was the analysis of Prompt Granularity. The authors developed five levels of prompts to test how the specificity of instructions affected model performance:

  1. Zero-Shot CoT: The baseline "Let's think step by step" approach.
  2. Progression Proof: A general PDDL-style proof of plan correctness.
  3. Universal Algorithm: A domain-specific but general strategy applicable to any Blocksworld problem.
  4. Stacking Prompt: A prompt specific to a narrow subclass (e.g., moving blocks from a table into a single stack).
  5. Lexicographic Stacking: The most specific version, where blocks are always stacked in alphabetical order.

These prompts were tested against GPT-4, GPT-4-Turbo, and Claude-3-Opus, with the number of blocks scaling from 3 to 20 to observe where the "reasoning" broke down.

Scalable Synthetic Benchmarks

Beyond Blocksworld, the authors created scalable versions of three common CoT tasks to verify their findings:

  • CoinFlip: Tracking the state of a coin after multiple flips.
  • Last Letter Concatenation: Joining the last letters of a string of names.
  • Multi-step Arithmetic: Simplifying nested mathematical expressions.

Key Insights and Analysis

The Generalization Gap

The study identified a distinct "sweet spot" for CoT. LLMs perform admirably when the query is syntactically similar to the prompt examples. However, as the problem size ($n$) grows beyond the examples shown, accuracy drops precipitously. This suggests that the models are not internalizing the underlying algorithm, but are instead performing a form of linearized subgraph matching—a sophisticated pattern lookup that fails when the problem graph becomes too large.

The Specificity Tradeoff

Meaningful gains from CoT only appeared when prompts were "exceedingly specific" to a narrow problem class. For instance, in the "Table-to-Stack" task, moving from a highly specific "Stacking Prompt" to a more general "Universal Algorithm" caused GPT-4-Turbo's performance to drop from 40.6% to 37.1%, and Claude-3-Opus to drop from 24.5% to 15.7%. This implies that for an LLM to solve a problem, a human must provide a prompt so tailored that it nearly defeats the purpose of using a general-purpose reasoner.

Syntactic Mimicry vs. Semantic Logic

In tasks like letter concatenation, CoT improved the style of the output (e.g., the model produced the correct number of letters) but failed to maintain the correct logic as string length increased. The models learned the "look" of a correct answer without mastering the "how" of the procedure.

Results and Limitations

Performance Collapse

On the "Table-to-Stack" Blocksworld task, GPT-4’s accuracy with a specific CoT prompt was approximately 59% for small instances. However, as the number of blocks increased toward 20, accuracy for all tested models trended toward zero. The only exception was the CoinFlip domain, which maintained >90% accuracy up to 31 steps. The authors attribute this to the extreme simplicity of parity tracking, which requires minimal compositional reasoning compared to planning.

The Labor Burden

The findings highlight a significant "human-in-the-loop" cost. If CoT requires highly engineered, problem-specific traces to function, the human labor required to generate those examples may outweigh the benefits of the LLM's assistance.

Conclusion

The researchers conclude that current transformer architectures may be fundamentally limited in their ability to achieve true algorithmic generalization. They implore the AI community to move away from static benchmarks and toward scalable, rigorous evaluations that can distinguish between genuine reasoning and sophisticated pattern matching. Future work is required to determine if any prompting strategy can induce true generalization or if a fundamental architectural shift is necessary.

Summary updated

BibTeX
@inproceedings{stechly2024chain,
  author = {Kaya Stechly and Karthik Valmeekam and Subbarao Kambhampati},
  title = {{Chain of Thoughtlessness: An Analysis of CoT in Planning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=kPBEAZU5Nm},
}
Figure