Algorithm Evolution Using Large Language Model
Fei Liu, Xialiang Tong, Mingxuan Yuan, Qingfu Zhang
TL;DR
The paper tackles the problem of automatic optimization-algorithm design by introducing Algorithm Evolution using Large Language Model (AEL), which uses an evolutionary framework to automatically generate optimization algorithms via LLMs without domain-model training. AEL represents each algorithm as an individual and evolves a population through initialization, selection, crossover, mutation, and population management, demonstrated on a constructive heuristic for the Traveling Salesman Problem. Results show that AEL-generated algorithms outperform hand-crafted greedy baselines and LLM-prompted algorithms, with GPT-4-based runs offering the strongest performance and better generalization than a trained domain model. This approach reduces the need for expert knowledge and domain modeling, while exhibiting scalability across problem sizes, and opens avenues for integrating more advanced optimization frameworks and multi-objective extensions.
Abstract
Optimization can be found in many real-life applications. Designing an effective algorithm for a specific optimization problem typically requires a tedious amount of effort from human experts with domain knowledge and algorithm design skills. In this paper, we propose a novel approach called Algorithm Evolution using Large Language Model (AEL). It utilizes a large language model (LLM) to automatically generate optimization algorithms via an evolutionary framework. AEL does algorithm-level evolution without model training. Human effort and requirements for domain knowledge can be significantly reduced. We take constructive methods for the salesman traveling problem as a test example, we show that the constructive algorithm obtained by AEL outperforms simple hand-crafted and LLM-generated heuristics. Compared with other domain deep learning model-based algorithms, these methods exhibit excellent scalability across different problem sizes. AEL is also very different from previous attempts that utilize LLMs as search operators in algorithms.
