Abstract
This study investigates whether providing Large Language Models (LLMs) with an external environment for state tracking can mitigate performance degradation in complex deterministic games. Using the Tower of Hanoi as a benchmark, we evaluate Claude 3.7 Sonnet and DeepSeek R1/V3.1 in both one-shot and agentic settings. Our findings reveal a persistent "reasoning collapse" as complexity increases, regardless of external state tracking. Models frequently enter repetitive loops and diverge from optimal policies, suggesting that current "emergent reasoning" may be a form of sophisticated pattern matching rather than robust dynamic problem-solving.
Introduction
Recent advancements in "Large Reasoning Models" (LRMs) have sparked debate over whether their problem-solving capabilities represent genuine reasoning or sophisticated state tracking. While these models excel at simple tasks, their performance often drops precipitously as puzzle complexity increases. This paper explores whether this failure stems from an inability to maintain internal state representations or a deeper architectural limitation in reasoning. By providing models with an external environment interface, we isolate the reasoning component from the state-tracking burden.
Methodology
The researchers employed the Tower of Hanoi puzzle, a classic benchmark where difficulty scales exponentially with the number of disks. Two primary interaction modes were compared:
- Baseline (One-shot): The model is required to generate the complete solution sequence in a single output.
- Agentic Framework: The model interacts with an external environment step-by-step. It executes moves via tool calls, receives the updated state, and determines the next action.
To quantify decision-making quality, the study used LLM-Parameterized Policy Analysis. Jensen-Shannon Divergence (JSD) was calculated to measure how model choices diverged from an optimal agent and a random agent.
Experimental Results
The study evaluated Claude 3.7 Sonnet (including its "thinking" mode) and DeepSeek V3.1/R1 on puzzles ranging from 1 to 8 disks.
The Performance Collapse
Contrary to expectations, external state tracking did not prevent performance collapse. In fact, for some models, the agentic framework led to failure at lower complexity levels than the one-shot baseline. For instance, Claude 3.7's success rate in the agentic setting dropped to zero at 6 disks, while DeepSeek V3.1 showed significant degradation starting at just 4 disks.
Behavioral Patterns and "Looping"
A critical finding was the high frequency of deterministic loops. As complexity increased, models often returned to the same state repeatedly, even with access to their move history. At the 8-disk level, the "loop rate" reached nearly 100% for both model families in the agentic setting. This behavior suggests that models are not learning from immediate feedback but are instead "locked" into high-probability behavioral modes learned during training.
Discussion and Conclusion
The results indicate that the "reasoning" observed in current LLMs is brittle. The divergence from optimal policies as search spaces grow suggests that these models rely heavily on pattern matching rather than dynamic search or logic. When a problem deviates from the training distribution or exceeds a certain complexity threshold, the models fall into maladaptive "modes."
Limitations
This research is limited to the Tower of Hanoi and two specific model families. Future work should investigate whether these findings generalize to non-deterministic games or more open-ended reasoning tasks. Additionally, exploring advanced search techniques like beam search or majority voting could provide further insights into breaking these failure modes.
Summary updated