SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2501.08603 · 2025

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

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 10 functions out of this paper's own repositories and ran 8 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
zz1358m/mcts-ahd-master canonical 8 of 10
FunctionStatusWhere it lives
expand_admissible_set Ran zz1358m/mcts-ahd-master/problems/asp_constructive/eval-test.py
code served (permissive licence) · get_code("8e027db39937cf79")
file_to_string Ran zz1358m/mcts-ahd-master/utils/utils.py
code served (permissive licence) · get_code("ab6795497be8743a")
filter_traceback Ran zz1358m/mcts-ahd-master/utils/utils.py
code served (permissive licence) · get_code("16b43ab11204e083")
get_surviving_children Ran zz1358m/mcts-ahd-master/problems/asp_constructive/eval-test.py
code served (permissive licence) · get_code("fad57e630b13938d")
parent_selection Ran zz1358m/mcts-ahd-master/source/prob_rank.py
code served (permissive licence) · get_code("2dc633da234e16af")
parent_selection_e1 Ran zz1358m/mcts-ahd-master/source/prob_rank.py
code served (permissive licence) · get_code("897c0ee9458993a7")
population_management Ran zz1358m/mcts-ahd-master/source/pop_greedy.py
code served (permissive licence) · get_code("76c08218582ac748")
population_management_s1 Ran zz1358m/mcts-ahd-master/source/pop_greedy.py
code served (permissive licence) · get_code("1dab74234c91e5ae")
init_client Not yet run zz1358m/mcts-ahd-master/utils/utils.py
code served (permissive licence) · get_code("ae4884aacf541db0")
solve Not yet run zz1358m/mcts-ahd-master/problems/asp_constructive/eval-test.py
code served (permissive licence) · get_code("940f893bc7c2c6d2")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2501.08603")
get_code_for_paper("2501.08603")
have("2501.08603")

Connect an agent — have() is free.