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

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

29 Sep 2023arXiv:2309.17179archive 2025-07-28

Xidong Feng, Ziyu Wan, Muning Wen, Stephen Marcus McAleer, Ying Wen, Weinan Zhang, Jun Wang

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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2309.17179")

Code

Syntology Ran 8 of 10 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 1 ran · honoured contract; 7 ran with no contract checked.

By repository: official repository: 10 samples from 1 repository, 8 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

waterhorse1/llm_tree_search officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

10 samples harvested; 8 ran; 1 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
7ran
2unverified

Licence: 10 of the 10 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from waterhorse1/llm_tree_search. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

findattr waterhorse1/llm_tree_search/tsllm/model/utils.py official repository ran no licence file found · pointer only · 3014c0bb8d49d525 · report
get_root waterhorse1/llm_tree_search/tsllm/mcts/tree.py official repository ran no licence file found · pointer only · fddd688fc94bd20d · report
list_of_ints waterhorse1/llm_tree_search/tsllm/argparse_utils.py official repository ran · honoured contract no licence file found · pointer only · 7d1ac1a66da5f14c · report
llm_forward_ct2 waterhorse1/llm_tree_search/tsllm/llm/text_generation.py official repository ran no licence file found · pointer only · 009ec15661cc110a · report
llm_gen_ct2 waterhorse1/llm_tree_search/tsllm/llm/text_generation.py official repository ran no licence file found · pointer only · c4a9e40e388e9a76 · report
make_head waterhorse1/llm_tree_search/tsllm/model/modeling_actor_critic.py official repository ran no licence file found · pointer only · 25be1b228e07de4e · report
rhasattr waterhorse1/llm_tree_search/tsllm/model/utils.py official repository ran no licence file found · pointer only · ace162af010af5d8 · report
str2bool waterhorse1/llm_tree_search/tsllm/argparse_utils.py official repository ran no licence file found · pointer only · 0bcbc8c8dbe0be78 · report
llm_gen_with_logp_v1 waterhorse1/llm_tree_search/tsllm/llm/text_generation.py official repository unverified no licence file found · pointer only · ddc98bed6cb94d33 · report
rgetattr waterhorse1/llm_tree_search/tsllm/model/utils.py official repository unverified no licence file found · pointer only · fc2499cfa7162602 · report

Tasks

Decision MakingLanguage ModelingLanguage ModellingLarge Language Model

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Focus

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections