Alphazero-like Tree-Search can Guide Large Language Model Decoding and Training

Xidong Feng, Ziyu Wan, Muning Wen, Ying Wen, Weinan Zhang +1 more
2/12/2026

Official code: waterhorse1/LLM_Tree_Search (286 stars, last commit 2024-05-26).

Abstract

Recent works like Tree-of-Thought (ToT) and Reasoning via Planning (RAP) aim to augment the reasoning capabilities of LLMs by using tree-search algorithms to guide multi-step reasoning. These methods rely on prompting a pre-trained model to serve as a value function and focus on problems with low search depth. As a result, these methods will not work in domains where the pre-trained LLM does not have enough knowledge to serve as an effective value function or in domains that require long-horizon planning. To address these limitations, we present an AlphaZero-like tree-search learning framework for LLMs (termed TS-LLM), systematically illustrating how tree-search with a learned value function can guide LLM decoding. TS-LLM distinguishes itself in two key ways. (1) Leveraging a learned value function and AlphaZero-like algorithms, our approach can be generally adaptable to a wide range of tasks, language models of any size, and tasks of varying search depths. (2) Our approach can guide LLMs during both inference and training, iteratively improving the LLM. Empirical results across reasoning, planning, alignment, and decision-making tasks show that TS-LLM outperforms existing approaches and can handle trees with a depth of 64.

View on arXivView PDF

Code Implementations(1)

(ICML 2024) Alphazero-like Tree-Search can guide large language model decoding and training

28630Shell, PythonSep 29, 20232 years ago

Similar Papers

Cite this paper

@article{feng2026alphazerolike,
  title  = {Alphazero-like Tree-Search can Guide Large Language Model Decoding and Training},
  author = {Xidong Feng and Ziyu Wan and Muning Wen and Ying Wen and Weinan Zhang and Jun Wang},
  year   = {2026},
  eprint = {2309.17179},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2309.17179},
  journal = {ICML 2023 2023}
}

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/2309.17179.svg)](https://codeofpaper.com/paper/2309.17179)

Discussion