TL;DR
When reasoning models generate long Chains of Thought (CoT), we often assume they are "thinking harder" about difficult problems. By training transformers from scratch on verifiable A* search traces, this paper demonstrates that intermediate token length does not reliably track problem complexity. Instead, reasoning length reflects how far an input is from the model's training distribution—often causing models to generate tens of thousands of tokens and fail on trivial, obstacle-free tasks.
What Problem Does This Paper Address?
Recent reasoning models (such as DeepSeek-R1) generate extended sequences of intermediate reasoning tokens before delivering a final answer. The standard intuition is inference-time scaling: harder problems naturally require more intermediate computation ("thinking time").
However, post-training methods (like supervised fine-tuning or reinforcement learning with reward-on-answer) rarely optimize the intermediate tokens for computational proportionality; rewards are tied almost entirely to final-answer correctness. The authors investigate whether intermediate token sequence length genuinely reflects problem difficulty, or if the apparent adaptivity is simply an artifact of the generative process.
Methods
To isolate and inspect the mechanics of reasoning traces, the authors adopted a controlled "model organism" approach:
- Explicit Ground Truth: Rather than evaluating ambiguous natural language benchmarks, the authors trained models on grid-based pathfinding ($30 \times 30$ mazes). The reasoning process was formulated as linearized A* search traces logging node exploration (
create x y cG cHandclose x y cG cH) followed by an action plan. - Verifiable Complexity: Problem difficulty was operationalized directly as the exact number of operations (and corresponding trace length) executed by A* to find an optimal solution.
- Trained from Scratch: To eliminate pre-training confounds, they trained an empty, randomly initialized decoder-only transformer (adapted from Qwen2.5-0.5B, reduced to ~380M parameters with a custom 944-token vocabulary and a 32,000-token context window) for 255,000 steps.
Problem: Start (18, 11) -> Goal (15, 12) + Maze Walls
│
▼
[Model Traces A* Search]: close 18 11 c0 c4 create 17 11 c1 c3 ... (up to 32k tokens)
│
▼
[Final Plan]: plan 18 11 plan 17 11 ... plan 15 12
Datasets
- Training Set: 500,000 synthetic mazes generated using Wilson’s algorithm, which produces uniform spanning trees on grid graphs (acyclic).
- Evaluation Sets:
- Held-out Wilson Mazes: 1,000 in-distribution mazes.
- Out-of-Distribution (OOD) Mazes: 1,000 mazes each from Kruskal's algorithm, randomized Depth-First Search (DFS), Drunkard’s Walk (cave-like layouts with loops), and Searchformer-style random obstacles.
- Free-Space Mazes: 100 trivial test instances with outer walls but completely empty interiors, representing the simplest possible pathfinding tasks.
Key Insights and Ideas
- The Illusion of Adaptive Computation: On held-out Wilson mazes, generated trace lengths loosely align with ground-truth A* trace lengths. However, this is driven by approximate memory/recall from the training distribution, not dynamic problem-adaptive calculation.
- Distributional Distance Dictates Trace Length: When tested on structurally different maze families (e.g., Searchformer-style mazes with cycles), the correlation between intermediate token length and true problem complexity disappears entirely.
- Overthinking the Trivial: When given obstacle-free grids that require straight-line navigation, the model often generates thousands of exploratory tokens—sometimes running until hitting the 32,000-token maximum context window—and still fails to solve the task.
- Critique of "Reasoning Efficiency" Metrics: Treating CoT token count as a direct proxy for "thinking effort" is misleading. Consequently, optimization frameworks designed to compress reasoning chains may be built on flawed assumptions.
Key Results
- In-Distribution Performance: On 1,000 held-out Wilson mazes, the model achieved 80% accuracy in outputting valid optimal plans.
- Free-Space Failure: On the 100 simplest "free-space" tasks, the model successfully solved only 5 out of 100 instances. Instead of executing short, direct paths, it generated wildly disproportionate reasoning traces or exhausted the 32k context limit without producing an answer.
- OOD Trace Decoupling: Across Kruskal, DFS, Drunkard, and Searchformer benchmarks, scatter plots of model trace length versus true A* trace length showed that intermediate token counts fluctuated independently of the actual problem difficulty.
Limitations and Future Work
- Domain Specificity: The study relies on a small model organism (~380M parameters) trained strictly on 2D grid pathfinding; findings may not translate identically to multi-billion-parameter general LLMs.
- Algorithmic Traces vs. Natural Language: The model was trained purely via imitation of linearized A* search rather than reinforcement learning using policy gradients (e.g., GRPO on natural language and code).
- Future Work: The authors emphasize the need to study whether frontier reasoning models (e.g., DeepSeek-R1, OpenAI o1) exhibit similar distributional sensitivity and trace-length decoupling when pushed outside their training distributions.
Summary updated