Forest-of-Thought: Scaling Test-Time Compute for Enhancing LLM Reasoning

Zhenni Bi, Kai Han, Chuanjian Liu, Yehui Tang, Yunhe Wang
2/12/2026

No official code found. Best implementation: iamhankai/Forest-of-Thought (55 stars, last commit 2025-05-01).

Abstract

Large Language Models (LLMs) have demonstrated remarkable abilities across various language tasks, but solving complex reasoning problems remains a significant challenge. While existing methods, such as Chain-of-Thought (CoT) and Tree-of-Thought (ToT), enhance reasoning by decomposing problems or structuring prompts, they typically perform a single pass of reasoning and may fail to revisit flawed paths, compromising accuracy. To address this limitation, we propose a novel reasoning framework called Forest-of-Thought (FoT), which integrates multiple reasoning trees to leverage collective decision-making for solving complex logical problems. FoT employs sparse activation strategies to select the most relevant reasoning paths, improving both efficiency and accuracy. Additionally, we introduce a dynamic self-correction strategy that enables real-time error correction, along with consensus-guided decision-making strategies to optimize both correctness and computational resources. Experimental results demonstrate that the FoT framework, combined with these strategies, significantly enhances the reasoning capabilities of LLMs, enabling them to solve complex tasks with greater precision and efficiency. Code will be available at https://github.com/iamhankai/Forest-of-Thought.

View on arXivView PDF

Code Implementations(1)

ICML2025: Forest-of-Thought: Scaling Test-Time Compute for Enhancing LLM Reasoning

556Shell, PythonJan 7, 20251 years ago

Similar Papers

Cite this paper

@article{bi2026forestofthought,
  title  = {Forest-of-Thought: Scaling Test-Time Compute for Enhancing LLM Reasoning},
  author = {Zhenni Bi and Kai Han and Chuanjian Liu and Yehui Tang and Yunhe Wang},
  year   = {2026},
  eprint = {2412.09078},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2412.09078},
  journal = {ICML 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.09078.svg)](https://codeofpaper.com/paper/2412.09078)

Discussion