ES-AHD: An Evolution Strategy Framework for Automatic Heuristic Design
Organizations: School of Mathematics and Statistics Guangdong University of Technology Guangzhou, China · School of Computer Science and Technology Xidian University Xi’an, China · School of Systems Science Beijing Normal University Beijing, China
Abstract
In this paper, we introduce ES-AHD, a novel framework that fundamentally integrates Evolution Strategy (ES) into Large Language Model (LLM)-driven Automatic Heuristic Design (AHD). Existing evolutionary approaches predominantly rely on random, individual-level mutation, leading to blind search and an imbalance between exploration and exploitation. To address these issues, ES-AHD introduces two core mechanisms. First, Semantic Recombination via LLMs discards traditional point-to-point reproduction. By leveraging the LLM's contextual reasoning to explicitly extract core insights from top-performing individuals, the algorithm establishes a promising semantic search direction. This transforms random code mutation into targeted, center-guided sampling inspired by ES. Second, Stochastic Covariance Adaptation via Temperature Sampling dynamically addresses the exploration-exploitation dilemma. By mapping the covariance matrix in ES to the LLM's sampling temperature, the framework employs a stochastic random walk mechanism with momentum. This approach primarily shrinks the search radius for micro-level code refinement, while retaining the critical ability to occasionally sample higher temperatures to escape semantic local optima. Ultimately, ES-AHD provides a highly directional, robust, and efficient search paradigm, significantly accelerating the generation of high-quality heuristic algorithms. The source code is available at: https://github.com/Mriya0306/ES-AHD.
Figures & tables
| Method | Train | Val20 | Val50 | Val100 |
|---|---|---|---|---|
| FunSearch [ 16 ] | -6.364 | 4.202 | 6.555 | 9.021 |
| EoH [ 15 ] | -6.345 | 4.311 | 6.697 | 9.102 |
| ReEvo [ 19 ] | -6.233 | 4.182 | 6.518 | 8.962 |
| ES-AHD | -6.209 | 4.125 | 6.449 | 8.911 |
| Instance | FunSearch [ 16 ] | EoH [ 15 ] | ReEvo [ 19 ] | ES-AHD |
|---|---|---|---|---|
| bayg29 | 12.727743 | 14.539337 | 13.354037 | 11.345756 |
| bays29 | 11.464521 | 14.814356 | 14.302805 | 8.572607 |
| berlin52 | 16.866445 | 17.367538 | 17.352315 | 13.346826 |
| bier127 | 18.324350 | 20.670233 | 17.854136 | 14.202483 |
| brazil58 | 15.755070 | 18.224388 | 15.745882 | 10.864672 |
| brg180 | 398.632479 | 593.888889 | 573.418803 | 236.794872 |
Automated Heuristic Design
Automated heuristic design creates or adapts problem-solving rules for optimization, planning, scheduling, and related search tasks.
See all 81 papers