[Paper Review] Evolution of Heuristics: Towards Efficient Automatic Algorithm Design Using Large Language Model
The paper presents AEL, an automatic algorithm design framework that evolves guided local search GLS algorithms for the TSP by combining evolutionary computation with a large language model, achieving near-perfect gaps on small instances and strong performance on larger ones without human intervention.
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.
Motivation & Objective
- Motivate the need for automatic algorithm design to reduce reliance on human-crafted heuristics.
- Demonstrate AEL as a framework that couples evolutionary computation with large language models to design algorithms at the code-level.
- Show that an AEL-designed GLS outperforms human-designed GLS across multiple TSP benchmarks.
- Highlight the potential for rapid, human-free development of competitive metaheuristics.
Proposed method
- Propose and implement AEL, which evolves algorithms via LLM-assisted creation, crossover, and mutation within an evolutionary framework.
- Represent each algorithm as: (i) natural-language description, (ii) a Python function update_edge_distance, (iii) a fitness value against a baseline.
- Use greedy initialization and 1,000-iteration evaluation to assess fitness against Concorde.
- Update the guide distance matrix in GLS via the evolved algorithm during perturbation steps.
- Utilize prompt engineering to guide the LLM in initialization, crossover, and mutation to generate diverse, high-quality algorithms.
- Run the whole process on TSP100 instances with 64 random instances for fitness evaluation (average gap).
Experimental results
Research questions
- RQ1Can an LLM-assisted evolutionary framework automatically design competitive GLS variants for TSP?
- RQ2Does AEL achieve superior performance and generalization compared to human-designed GLS and neural solvers across multiple TSP distributions?
- RQ3What is the impact of prompting strategy and mutation/crossover design on the quality and diversity of evolved algorithms?
Key findings
- AEL evolves elite GLS algorithms in about two days with no human intervention or model training.
- The evolved AEL-GLS achieves a 0% gap on TSP20 and TSP50, and a 0.032% gap on TSP100 within 1,000 iterations.
- AEL-GLS outperforms state-of-the-art human-designed GLS variants and several neural solvers in average gap and running time.
- On TSPLib instances, AEL-GLS outperforms neural solvers and GLS algorithms, with significant gap reductions.
- The approach demonstrates a new paradigm where LLMs guide the evolution of optimization algorithms rather than serving as standalone solvers.
- Generalization across problem sizes is strong, with the TSP100-evolved algorithm achieving 0% gap on smaller sizes (TSP20, TSP50).
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.