Papers › Monte Carlo Tree Search for Comprehensive Exploration in LLM-Based Automatic Heuristic Design

Monte Carlo Tree Search for Comprehensive Exploration in LLM-Based Automatic Heuristic Design

15 Jan 2025arXiv:2501.08603archive 2025-07-28

Zhi Zheng, Zhuoliang Xie, Zhenkun Wang, Bryan Hooi

Handcrafting heuristics for solving complex optimization tasks (e.g., route planning and task allocation) is a common practice but requires extensive domain knowledge. Recently, Large Language Model (LLM)-based automatic heuristic design (AHD) methods have shown promise in generating high-quality heuristics without manual interventions. Existing LLM-based AHD methods employ a population to maintain a fixed number of top-performing LLM-generated heuristics and introduce evolutionary computation (EC) to iteratively enhance the population. However, these population-based procedures cannot fully develop the potential of each heuristic and are prone to converge into local optima. To more comprehensively explore the space of heuristics, this paper proposes to use Monte Carlo Tree Search (MCTS) for LLM-based heuristic evolution. The proposed MCTS-AHD method organizes all LLM-generated heuristics in a tree structure and can better develop the potential of temporarily underperforming heuristics. In experiments, MCTS-AHD delivers significantly higher-quality heuristics on various complex tasks. Our code is available.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

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="2501.08603")

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: 8 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.

zz1358m/mcts-ahd-master officialmentioned in papermentioned on GitHubMIT 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; 0 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

8ran
2unverified

Licence: 0 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 zz1358m/mcts-ahd-master. “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.

expand_admissible_set zz1358m/mcts-ahd-master/problems/asp_constructive/eval-test.py official repository ran MIT (permissive) · 8e027db39937cf79 · report
file_to_string zz1358m/mcts-ahd-master/utils/utils.py official repository ran MIT (permissive) · ab6795497be8743a · report
filter_traceback zz1358m/mcts-ahd-master/utils/utils.py official repository ran fingerprinted MIT (permissive) · 16b43ab11204e083 · report
get_surviving_children zz1358m/mcts-ahd-master/problems/asp_constructive/eval-test.py official repository ran MIT (permissive) · fad57e630b13938d · report
parent_selection zz1358m/mcts-ahd-master/source/prob_rank.py official repository ran fingerprinted MIT (permissive) · 2dc633da234e16af · report
parent_selection_e1 zz1358m/mcts-ahd-master/source/prob_rank.py official repository ran fingerprinted MIT (permissive) · 897c0ee9458993a7 · report
population_management zz1358m/mcts-ahd-master/source/pop_greedy.py official repository ran MIT (permissive) · 76c08218582ac748 · report
population_management_s1 zz1358m/mcts-ahd-master/source/pop_greedy.py official repository ran MIT (permissive) · 1dab74234c91e5ae · report
init_client zz1358m/mcts-ahd-master/utils/utils.py official repository unverified MIT (permissive) · ae4884aacf541db0 · report
solve zz1358m/mcts-ahd-master/problems/asp_constructive/eval-test.py official repository unverified MIT (permissive) · 940f893bc7c2c6d2 · report

Tasks

Combinatorial OptimizationLanguage ModelingLanguage ModellingLarge Language Model

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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