Evolution of Heuristics: Towards Efficient Automatic Algorithm Design Using Large Language Model

Fei Liu, Xialiang Tong, Mingxuan Yuan, Xi Lin, Fu Luo +3 more
2/12/2026

No official code found. Best implementation: FeiLiu36/EoH (341 stars, MIT, last commit 2026-04-17).

Abstract

Heuristics are widely used for dealing with complex search and optimization problems. However, manual design of heuristics can be often very labour extensive and requires rich working experience and knowledge. This paper proposes Evolution of Heuristic (EoH), a novel evolutionary paradigm that leverages both Large Language Models (LLMs) and Evolutionary Computation (EC) methods for Automatic Heuristic Design (AHD). EoH represents the ideas of heuristics in natural language, termed thoughts. They are then translated into executable codes by LLMs. The evolution of both thoughts and codes in an evolutionary search framework makes it very effective and efficient for generating high-performance heuristics. Experiments on three widely studied combinatorial optimization benchmark problems demonstrate that EoH outperforms commonly used handcrafted heuristics and other recent AHD methods including FunSearch. Particularly, the heuristic produced by EoH with a low computational budget (in terms of the number of queries to LLMs) significantly outperforms widely-used human hand-crafted baseline algorithms for the online bin packing problem.

View on arXivView PDF

Code Implementations(1)

FeiLiu36/EoHCommunity100%
MIT

Evolution of Heuristics

34163Python, Jupyter NotebookMar 28, 20246 months agoMIT

Similar Papers

Cite this paper

@article{liu2026evolution,
  title  = {Evolution of Heuristics: Towards Efficient Automatic Algorithm Design Using Large Language Model},
  author = {Fei Liu and Xialiang Tong and Mingxuan Yuan and Xi Lin and Fu Luo and Zhenkun Wang and Zhichao Lu and Qingfu Zhang},
  year   = {2026},
  eprint = {2401.02051},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2401.02051},
  journal = {ICML 2024 2024}
}

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

Discussion