ReEvo: Large Language Models as Hyper-Heuristics with Reflective Evolution
Haoran Ye, Jiarui Wang, Zhiguang Cao, Federico Berto, Chuanbo Hua, Haeyeon Kim, Jinkyoo Park, Guojie Song
TL;DR
ReEvo introduces Language Hyper-Heuristics (LHHs) that use large language models to generate heuristics and pairs them with Reflective Evolution to guide search via verbal reflections. The framework uses a two-LLM agent setup (generator and reflector) within an evolutionary loop to produce code-based heuristics, achieving SOTA or competitive results across six combinatorial optimization problems and five algorithmic types with high sample efficiency. Fitness landscape analysis and black-box prompting underpin reliable evaluation, while ablations and comparisons to EoH demonstrate the value of dual-level reflections for both inference and optimization. The work highlights the potential of LHHs to broaden heuristic design, improve interpretability, and extend to real-world optimization tasks where evaluation costs are high.
Abstract
The omnipresence of NP-hard combinatorial optimization problems (COPs) compels domain experts to engage in trial-and-error heuristic design. The long-standing endeavor of design automation has gained new momentum with the rise of large language models (LLMs). This paper introduces Language Hyper-Heuristics (LHHs), an emerging variant of Hyper-Heuristics that leverages LLMs for heuristic generation, featuring minimal manual intervention and open-ended heuristic spaces. To empower LHHs, we present Reflective Evolution (ReEvo), a novel integration of evolutionary search for efficiently exploring the heuristic space, and LLM reflections to provide verbal gradients within the space. Across five heterogeneous algorithmic types, six different COPs, and both white-box and black-box views of COPs, ReEvo yields state-of-the-art and competitive meta-heuristics, evolutionary algorithms, heuristics, and neural solvers, while being more sample-efficient than prior LHHs.
