Reasoning Effort and Problem Complexity: A Scaling Analysis in LLMs

Benjamin Estermann, Roger Wattenhofer

TL;DR

Recent "reasoning-enhanced" LLMs spend compute at test time by generating internal thinking tokens, but how does this effort scale as tasks become more complex? By benchmarking models on the infinitely scalable Tents logic puzzle, this paper demonstrates that while thinking tokens scale linearly for small problems, models hit a hard complexity wall (failing entirely past grid size 100) where reasoning effort stagnates or drops—a phenomenon hinting at a breakdown in logical coherence.

What Problem Does This Paper Address?

New frontier models (such as OpenAI's o3-mini and DeepSeek-R1) leverage test-time compute by generating thousands of hidden reasoning tokens before answering. However, little is known about how this "reasoning effort" physically scales as problem difficulty increases. Does the model spend proportionally more compute on harder problems, or do current training paradigms hit fundamental scaling bottlenecks? Measuring this requires a task that can scale arbitrarily without memorization artifacts in the training data, allowing researchers to study extrapolative algorithmic reasoning.

Methods

The authors evaluate reasoning models using the Tents puzzle (popularized by Simon Tatham’s Portable Puzzle Collection and the PUZZLES benchmark):

  • Problem Setup: Given an $N \times M$ grid with trees and row/column constraints, place tents such that each tent is orthogonally adjacent to a unique tree and no two tents touch (even diagonally). Notably, the puzzle has a known linear-time algorithmic solution.
  • One-Shot Evaluation: Puzzles are presented textually as 2D arrays with border constraints in a zero-shot/one-shot format. Models must output the solved board in JSON format without external code execution.
  • Complexity Metric: Problem size is defined by the grid area ($\text{rows} \times \text{columns}$), evaluated primarily at the "easy" setting across sizes up to 400.
  • Models Tested: OpenAI o3-mini (at low, medium, and high reasoning effort settings), DeepSeek-R1, Gemini 2.0 Flash Thinking, and Qwen/QwQ-32B-Preview.

Datasets

  • Tents Puzzle Generator: Built on Simon Tatham’s puzzle suite and the synthetic logic engine from the PUZZLES benchmark (Estermann et al., 2024).
  • No standard text datasets or model fine-tuning were used; the generated instances test extrapolation on algorithmic tasks unlikely to be memorized during pretraining.

Key Insights and Ideas

  • Linear Scaling on Solvable Regimes: For puzzles the models can actually solve, reasoning tokens increase roughly linearly with problem size ($R^2 \approx 0.83$ for o3-mini medium and $R^2 \approx 0.67$ for DeepSeek-R1). DeepSeek-R1 consistently uses more tokens than o3-mini for the same puzzle size, but their scaling slopes are remarkably similar.
  • The "Frustration" Ceiling: Reasoning tokens do not scale indefinitely. In o3-mini, reasoning tokens peak around size 100 ($10 \times 10$ grid) and then paradoxically decrease or plateau as puzzle sizes grow further (up to 400). Beyond this threshold, the model gives up or truncates its search rather than scaling up compute to match difficulty.
  • A Hard Limit Across All Models: Despite Tents being solvable in linear time, no tested model could solve a puzzle larger than size 100.
  • Effort vs. Efficiency Trade-off: Configuring o3-mini to "high" reasoning effort extends solvability to larger grids (up to $10 \times 10$), but it introduces severe token overhead on small, trivial puzzles that were already solvable with "low" effort.

Key Results

  • Success Horizons:
  • o3-mini was the top performer, achieving high success rates up to size $\sim 80$ (and isolated successes up to 100 with high reasoning effort).
  • DeepSeek-R1 and Gemini 2.0 Flash Thinking followed, solving problems up to size $\sim 60-80$.
  • Qwen/QwQ-32B-Preview suffered severe degradation on grids larger than size 20–25 ($R^2 = 0.087$ fit to reasoning tokens).
  • Token Usage Dynamics: On o3-mini (medium), token usage scaled from roughly 2,000 tokens on size 20 grids to over 20,000 tokens near size 80 before dropping off on larger, unresolvable instances.

Limitations and Future Work

  • Single Puzzle Class: The study focuses exclusively on the Tents puzzle under specific difficulty presets; scaling dynamics might differ on puzzles belonging to other algorithmic complexity classes (e.g., NP-complete constraints).
  • Token Opacity: Gemini 2.0 Flash Thinking does not disclose thinking token counts, forcing the authors to use response latency as an imperfect proxy.
  • Future Directions: Expanding the evaluation across the broader PUZZLES benchmark to analyze different algorithmic structures, testing recent reasoning-length pruning methods, and optimizing prompt/scratchpad formulations to prevent premature truncation on out-of-distribution problem sizes.

Summary updated

BibTeX
@inproceedings{estermann2025reasoning,
  author = {Benjamin Estermann and Roger Wattenhofer},
  title = {{Reasoning Effort and Problem Complexity: A Scaling Analysis in LLMs}},
  booktitle = {LLM Reason and Plan @ ICLR},
  year = {2025},
  url = {https://openreview.net/forum?id=wfybjqEmx5},
}
Figure