Evolution of Heuristics: Towards Efficient Automatic Algorithm Design Using LLMs
The paper examines the novel approach termed Evolution of Heuristics (EoH), which synergistically combines LLMs and Evolutionary Computation (EC) to advance Automatic Heuristic Design (AHD). EoH aims to reduce the complexity and computational cost associated with heuristic development for combinatorial optimization problems. This method is particularly pertinent given the tedious nature of manual heuristic design, which necessitates considerable human intuition and experience.
EoH introduces a paradigm where heuristic ideas, or "thoughts," are represented through linguistic descriptions generated by LLMs, then translated into executable code. The coevolution of these thoughts and codes offers a dynamic framework that surpasses existing AHD methods. Five evolution operators are integrated into EoH to efficiently search for novel heuristics, optimizing the heuristic development process akin to human designers.
The paper presents comprehensive experimental evaluations on three benchmarks: the online bin packing problem, the traveling salesman problem (TSP), and the flow shop scheduling problem (FSSP). Results showcase EoH's superior ability to design competitive heuristics using approximately 0.1% of the computational budget required by previous methods. These heuristics outperform many traditional metaheuristics, achieving optimal or near-optimal solutions, particularly noted by a 0% gap for TSP20 and TSP50 and a 0.23% gap for FSSP instances.
Further analysis compares hand-crafted heuristics, such as first-fit and best-fit, and results from concurrent frameworks like FunSearch, underscoring EoH’s efficiency. Notably, EoH identifies superior heuristics on the online bin packing problem with significantly fewer LLM queries compared to FunSearch.
The implications of EoH extend beyond practical algorithm design efficiency, offering a robust framework adaptable across diverse domains without necessitating extensive computational resources or domain expertise. The theoretical underpinnings of EoH suggest possible refinements in heuristic research and evolution, fostering advancements in AI-driven optimization tasks.
In conclusion, EoH demonstrates a promising shift in automated algorithm design, fostering reproducibility and accessibility by publishing its source code. The approach not only mitigates the challenges associated with heuristic design but extends the possibilities for AI's role in efficiently solving complex optimization problems. Future developments may focus on refining prompt strategies and exploring broader applications of EoH across different optimization paradigms, thus contributing significantly to the evolution of metaheuristic methodologies.