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

Zhi Zheng, Zhuoliang Xie, Zhenkun Wang, Bryan Hooi
2/14/2026

No official code found. Best implementation: zz1358m/MCTS-AHD-master (87 stars, MIT, last commit 2025-05-23).

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.

View on arXivView PDF

Code Implementations(1)

MIT

Code for [ICML2025]``Monte Carlo Tree Search for Comprehensive Exploration in LLM-Based Automatic Heuristic Design``.

8718PythonNov 30, 20241 years agoMIT

Similar Papers

Cite this paper

@article{zheng2026monte,
  title  = {Monte Carlo Tree Search for Comprehensive Exploration in LLM-Based Automatic Heuristic Design},
  author = {Zhi Zheng and Zhuoliang Xie and Zhenkun Wang and Bryan Hooi},
  year   = {2026},
  eprint = {2501.08603},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2501.08603},
  journal = {ICML 2025 2025}
}

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

Discussion