Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

LLaMEA: A Large Language Model Evolutionary Algorithm for Automatically Generating Metaheuristics

About

Large Language Models (LLMs) such as GPT-4 have demonstrated their ability to understand natural language and generate complex code snippets. This paper introduces a novel Large Language Model Evolutionary Algorithm (LLaMEA) framework, leveraging GPT models for the automated generation and refinement of algorithms. Given a set of criteria and a task definition (the search space), LLaMEA iteratively generates, mutates and selects algorithms based on performance metrics and feedback from runtime evaluations. This framework offers a unique approach to generating optimized algorithms without requiring extensive prior expertise. We show how this framework can be used to generate novel black-box metaheuristic optimization algorithms automatically. LLaMEA generates multiple algorithms that outperform state-of-the-art optimization algorithms (Covariance Matrix Adaptation Evolution Strategy and Differential Evolution) on the five dimensional black box optimization benchmark (BBOB). The algorithms also show competitive performance on the 10- and 20-dimensional instances of the test functions, although they have not seen such instances during the automated generation process. The results demonstrate the feasibility of the framework and identify future directions for automated generation and optimization of algorithms via LLMs.

Niki van Stein, Thomas B\"ack• 2024

Related benchmarks

TaskDatasetResultRank
Pseudo-Boolean OptimizationPBO (test)
F1 (Normalized AUC)1
6
Black-box OptimizationBBOB (test)
F1 Score99.6
6
Black-box OptimizationBBOB
Rastrigin GAP0.995
5
Combinatorial OptimizationTSPLIB TSP
Performance on berlin520.03
3
Travelling Salesperson ProblemkroA100
Solution Gap (%)1.6
2
Travelling Salesperson Problemberlin52
Optimality Gap (%)3.1
2
Travelling Salesperson Problemch150
Optimality Gap82.8
2
Travelling Salesperson Problempr226
Optimality Gap (%)1.81
2
Travelling Salesperson Problempcb442
Optimality Gap (%)7.408
2
Travelling Salesperson Problemrat783
Optimality Gap12.246
2
Showing 10 of 11 rows

Other info

Follow for update