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

Everything of Thoughts: Defying the Law of Penrose Triangle for Thought Generation

Ruomeng Ding, Chaoyun Zhang, Lu Wang, Yong Xu, Minghua Ma, Wei Zhang, Si Qin, Saravan Rajmohan, Qingwei Lin, Dongmei Zhang

Abstract

Current Large Language Model (LLM) reasoning paradigms often face a trade-off between performance, efficiency, and flexibility—a constraint termed the "Penrose Triangle." We present "Everything of Thoughts" (XoT), a framework that integrates Monte Carlo Tree Search (MCTS) with LLMs. By offloading complex search and planning to a lightweight, task-specific MCTS module, XoT achieves superior performance on challenging state-space search tasks while requiring significantly fewer LLM inference calls than existing methods like Tree-of-Thought (ToT).

Introduction: The Penrose Triangle of LLM Reasoning

In the landscape of LLM reasoning, standard prompting techniques like Chain-of-Thought (CoT) are efficient but often fail on complex, multi-step problems. Advanced structures like Tree-of-Thought (ToT) and Graph-of-Thought (GoT) improve performance and flexibility but at a massive cost: they require dozens of expensive LLM calls to evaluate every intermediate step.

The authors identify a "Penrose Triangle" of LLM reasoning, where it is seemingly impossible to simultaneously achieve high Performance, Efficiency, and Flexibility. LLMs also struggle with "world models"—the rigid internal rules of specific domains—leading to hallucinations during long-term planning.

Comparison of thought generation paradigms, highlighting XoT's integration of MCTS and LLM.

Methodology: Collaborative MCTS and LLM Solver

XoT breaks this triangle by introducing a collaborative framework between a lightweight MCTS module and an LLM solver. Instead of the LLM performing the search, a pre-trained MCTS module (with roughly 1 million parameters) explores the problem space.

The MCTS Module and Thought Extraction

The MCTS module is guided by task-specific policy and value networks. It identifies high-probability "thought trajectories," which are then parsed into natural language and provided to the LLM as a "cognitive mapping." This allows the LLM to focus on high-level reasoning rather than low-level state search.

The MCTS-based thought inference process in XoT.

Collaborative Revision

A key feature of XoT is the feedback loop. If the LLM identifies an error in the MCTS-generated thought, it acts as a reviewer. It pinpoints the "error state," and the MCTS module re-runs its simulation from that point to provide a corrected path. This leverages the LLM's strength in error detection while offloading the heavy lifting of path generation back to the MCTS.

Experimental Evaluation

XoT was evaluated on three difficult state-space search problems:

  • Game of 24: Arithmetic challenge using four numbers.
  • 8-Puzzle: Classic 3x3 sliding tile puzzle.
  • Pocket Cube: 2x2 Rubik’s Cube requiring spatial imagination.

The evaluation used 1,362 games for Game of 24, 419 solvable 8-puzzle instances, and 1,000 Pocket Cube samples.

Key Results and Insights

XoT significantly outperformed baselines while maintaining high efficiency:

  • Superior Performance: In the Game of 24, XoT achieved 90.51% accuracy (GPT-3.5), compared to 10.22% for ToT. In the 8-Puzzle and Pocket Cube, XoT reached 95.80% and over 80% accuracy respectively, where standard methods often failed completely (0-8%).
  • Extreme Efficiency: While ToT and GoT require dozens of LLM calls, XoT consistently solved problems with an average of 1.4 to 2.3 LLM calls.
  • Externalizing the World Model: By using MCTS as an external world model, XoT "injects" domain knowledge into the LLM's prompt, preventing hallucinations common in long-term planning.

Conclusion and Future Work

XoT demonstrates that combining specialized search algorithms with general-purpose LLMs can overcome the inherent limitations of pure-prompting methods. While it requires task-specific pre-training for the MCTS module and clear reward definitions, it opens new avenues for efficient, high-performance reasoning in well-defined domains like code generation and multi-agent planning.

Summary updated

BibTeX
@inproceedings{ding2024everything,
  author = {Ruomeng Ding and Chaoyun Zhang and Lu Wang and Yong Xu and Minghua Ma and Wei Zhang and Si Qin and Saravan Rajmohan and Qingwei Lin and Dongmei Zhang},
  title = {{Everything of Thoughts: Defying the Law of Penrose Triangle for Thought Generation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.95},
}
Figure