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

Zhi Zheng, Zhuoliang Xie, Zhenkun Wang, Bryan Hooi

arXiv:2501.08603 · 2026-07-27 공개 · arXiv · PDF

llm-based monte-carlo-tree-search population-based optimization-tasks route-planning evolutionary-computation automatic-heuristic-design heuristic-design

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.

한국어 요약

한 줄 요약

MCTS-AHD는 LLM 기반 자동 휴리스틱 설계에서 MCTS를 도입해 휴리스틱 공간을 종합적으로 탐색하는 새로운 방법이다.

핵심 기여도

핵심 아이디어

기존 LLM 기반 AHD 방법은 진화적 계산(Evolutionary Computation, EC)을 사용하여 상위 성능 휴리스틱만 유지하는 방식으로, 하위 성능 휴리스틱은 초기에 제거된다. 이는 휴리스틱 공간을 제한적으로 탐색하게 만들고, 지역 최적해에 갇히는 경향이 있다. MCTS-AHD는 이러한 문제를 해결하기 위해 Monte Carlo Tree Search(MCTS)를 도입하여, 모든 휴리스틱을 트리 구조로 관리하고, 하위 성능 휴리스틱도 LLM 기반 진화를 통해 개선할 수 있도록 한다. MCTS의 progressive widening 기법과 tree-special prompt 전략을 통해 휴리스틱 진화를 유도하며, exploration-decay 기법과 thought-alignment 절차를 추가로 제안하여 탐색 효율성을 높인다.

기술적 접근법

주요 결과

의의 및 한계

MCTS-AHD는 기존 EC 기반 AHD 방법의 지역 최적해에 갇히는 문제를 해결하고, 휴리스틱 공간을 종합적으로 탐색할 수 있는 새로운 접근법을 제시한다. 트리 구조와 MCTS 알고리즘의 결합은 LLM 기반 휴리스틱 진화의 유연성과 효율성을 동시에 향상시킨다. 그러나 MCTS-AHD는 수렴 속도가 느리다는 한계가 있으며, 향후 MCTS와 EC를 결합한 하이브리드 방법을 고려할 필요가 있다. 또한, 실험은 특정 데이터셋과 LLM 모델에 제한되어 있어, 다양한 도메인에서의 일반화 가능성 검증이 필요하다.

실용적 활용

MCTS-AHD는 복잡한 최적화 문제(예: TSP, KP, BO)에서 수작업 휴리스틱 대체 및 휴리스틱 설계 자동화에 활용 가능하다. 로봇, 제조, 물류, 자원 할당 등 다양한 산업 분야에서 실시간 최적화 알고리즘 설계에 적용할 수 있으며, 전문 지식 없이도 높은 품질의 휴리스틱을 생성할 수 있어 연구 및 산업 현장 모두에서 유용하다.