Analysis of Optimality of Large Language Models on Planning Problems

Bernd Bohnet, Michael C. Mozer, Kevin Swersky, Wil Cunningham, Aaron Parisi, Kathleen Kenealy, Noah Fiedel

TL;DR

While recent benchmarks show that Large Language Models (LLMs) can successfully solve classical AI planning problems, do they actually plan efficiently? This paper reveals that reasoning-enhanced LLMs (like Gemini 3.0 Pro) don't just find valid plans—they track theoretical optimality limits with near-perfect precision, bypassing the exponential search space explosions that cripple classical planners. By stripping away semantic clues through abstract graph-rewriting tasks, the authors demonstrate that this capability relies on a serial algorithmic simulation executed directly within the model's reasoning tokens.

What Problem Does This Paper Address?

In the LLM era, evaluations of automated planning tasks (like the classic Blocksworld domain) have focused heavily on success rates—whether a model can generate a valid plan. However, binary success/failure metrics obscure plan quality and efficiency.

Classical optimal planners (like $A^*$) guarantee the shortest possible path but suffer from exponential search space explosion as problems grow. Conversely, classical satisficing planners (like LAMA) trade optimality for speed but hit computational "hard walls" on complex tasks. This paper investigates the structural limits and optimality of LLM planners, exploring whether they perform genuine structural reasoning or merely rely on local heuristic associations and semantic shortcuts (e.g., recognizing words like "table" or "unstack").

Methods

The authors introduce a rigorous framework to analyze LLM planning through a topological lens:

  • Topological Framing ($P^*$ Isomorphism): They map Blocksworld states to a generalized Path-Star ($P^*$) graph topology, where the "Table" acts as the central root node and each vertical stack of blocks forms a disjoint branch.
  • Abstract Graph Reformulation: To eliminate semantic priors, they translate Blocksworld into an abstract graph-rewriting task. This strips away physical concepts like gravity and stacking, replacing them with abstract nodes and four atomic operations (e.g., DETACH_NODE, ATTACH_TO_ROOT).
  • Minimal Prompting: The evaluation uses a strict one-shot in-context learning (ICL) setup containing only the PDDL domain specification, a single example, and the target problem, forcing the model to rely on pure inference.
  • Inference-Time Compute Analysis: The authors extract the latent "chain-of-thought" token counts from Gemini 3.0 Pro's metadata to quantify how much internal computational effort scales with problem complexity.
Structural Isomorphism between Blocksworld and $P^*$ Topology

Datasets

The authors generated a synthetic dataset in the blocksworld-4ops domain, parameterized by the number of towers ($W$), uniform tower height range ($H$), and number of target blocks ($S$). The dataset is split into four distinct curricula designed to isolate specific complexity axes:

  1. Search Depth (High Towers): Evaluates long-horizon reasoning by retrieving a single target block ($S=1$) from a fixed width ($W=12$) while tower height ($H$) scales linearly from 8 to 1000.
  2. Harvest (Goal Blocks): Evaluates multi-subgoal sequencing. The number of goal blocks and towers scales from 4 to 220 (one goal block per tower) with a fixed height.
  3. Interleaved Harvest: Introduces intra-branch dependencies by placing two interleaved goal blocks per tower, forcing the planner to alternate between towers.
  4. Grand Challenge: Linearly scales all complexity dimensions simultaneously ($W \in [4, 90]$, $H \in [4, 50]$, $S \in [2, 20]$).

Key Insights and Ideas

  • Optimality Inversion: As structural complexity scales, classical satisficing planners systematically sacrifice plan optimality to navigate the expanding search space. Frontier LLMs do the opposite: they maintain near-perfect theoretical optimality right up until they reach a failure threshold.
  • The "Zone of Instability": Unlike classical planners that hit a hard computational cliff and fail completely, LLMs exhibit a zone of intermittent failure where they continue to solve highly complex instances perfectly when they succeed, rather than outputting degraded, suboptimal plans.
  • Serial Algorithmic Simulation: Analysis of the model's internal reasoning traces strongly supports the hypothesis that the LLM explicitly executes a step-by-step symbolic traversal. The model uses its thought tokens as a dynamic working memory buffer to maintain state and recursively query the problem structure.
  • Linear Compute Scaling: For successful plans, the model maintains a strikingly consistent linear ratio of approximately 47 thinking tokens per optimal plan step. This aligns perfectly with the Serial Scaling Hypothesis, proving that sequential decision problems cannot be shortcut by parallel computation.

Key Results

  • Bypassing Classical Limits: In the Harvest curriculum, classical planners hit a wall at roughly 25 goal blocks. Gemini 3.0 Pro successfully generated optimal plans for instances exceeding 100 goal blocks.
  • Extreme Depth Scaling: In the High Towers curriculum, Gemini 3.0 Pro tracked the optimal cost line for towers up to 308 blocks high (619 plan steps) in Blocksworld and up to 528 blocks high (989 plan steps) in the abstract graph domain.
  • Robustness to Obfuscation: The model maintained high optimality even in the abstract graph-rewriting domain, proving that its planning capability is driven by genuine topological reasoning rather than memorized physical heuristics.
Scaling Goal Blocks and Tower Height Performance

Limitations and Future Work

  • Controlled Goal Placement: To enable closed-form optimal cost computation, the study restricts goal configurations (at most one or two goals per tower). Testing arbitrary goal configurations that require complex block relocation within shared towers remains future work.
  • Model Generalization: The inference-time compute analysis was restricted to Gemini 3.0 Pro due to API metadata constraints. Evaluating whether the linear token scaling and binary success-failure transitions are universal properties of other reasoning models (like GPT-5 or DeepSeek R1) is an open direction.
  • The Retrieval Mystery: While the paper confirms a serial simulation strategy, it notes that how the model efficiently queries the correct series of blocks from an unordered text context without an exhaustive $O(N)$ scan remains an open question requiring internal attention mechanism analysis.

Summary updated

Abstract

Classic AI planning problems have been revisited in the Large Language Model (LLM) era, with a focus of recent benchmarks on success rates rather than plan efficiency. We examine the degree to which frontier models reason optimally versus relying on simple, heuristic, and possibly inefficient strategies. We focus on the Blocksworld domain involving towers of labeled blocks which have to be moved from an initial to a goal configuration via a set of primitive actions. We also study a formally equivalent task, the generalized Path-Star ($P^*$) graph, in order to isolate true topological reasoning from semantic priors. We systematically manipulate problem depth (the height of block towers), width (the number of towers), and compositionality (the number of goal blocks). Reasoning-enhanced LLMs significantly outperform traditional satisficing planners (e.g., LAMA) in complex, multi-goal configurations. Although classical search algorithms hit a wall as the search space expands, LLMs track theoretical optimality limits with near-perfect precision, even when domain-specific semantic hints are stripped away. To explain these surprising findings, we consider (and find evidence to support) two hypotheses: an active Algorithmic Simulation executed via reasoning tokens and a Geometric Memory that allows models to represent the $P^*$ topology as a navigable global geometry, effectively bypassing exponential combinatorial complexity.
BibTeX
@inproceedings{bohnet2026analysis,
  author = {Bernd Bohnet and Michael C. Mozer and Kevin Swersky and Wil Cunningham and Aaron Parisi and Kathleen Kenealy and Noah Fiedel},
  title = {{Analysis of Optimality of Large Language Models on Planning Problems}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=YzMhzSuaIn},
}
Figure