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

Large language models (LLMs), such as GPT-4 have demonstrated their ability to understand natural language and generate complex code snippets. This article introduces a novel LLM 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 closed box metaheuristic optimization algorithms for box-constrained, continuous optimization problems automatically. LLaMEA generates multiple algorithms that outperform state-of-the-art optimization algorithms (covariance matrix adaptation evolution strategy and differential evolution) on the 5-D closed box optimization benchmark (BBOB). The algorithms also show competitive performance on the 10- and 20-D 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.

Authors

Institutions

Publication Details

Journal
IEEE Transactions on Evolutionary Computation
Published
2024-11-13
DOI
https://doi.org/10.1109/tevc.2024.3497793
Citations
38
Primary Topic
Software Engineering Techniques and Practices
Type
article
Field-Weighted Citation Impact
29.61
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

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

Bas van Stein, Thomas Bäck
38 citations
IEEE Transactions on Evolutionary Computation
Software Engineering Techniques and Practices
29.61
article

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

Bas van Stein, Thomas Bäck
article en
38 citations

Abstract

Large language models (LLMs), such as GPT-4 have demonstrated their ability to understand natural language and generate complex code snippets. This article introduces a novel LLM 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 closed box metaheuristic optimization algorithms for box-constrained, continuous optimization problems automatically. LLaMEA generates multiple algorithms that outperform state-of-the-art optimization algorithms (covariance matrix adaptation evolution strategy and differential evolution) on the 5-D closed box optimization benchmark (BBOB). The algorithms also show competitive performance on the 10- and 20-D 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.

IEEE Transactions on Evolutionary ComputationVol. 29(2)
Leiden University (NL)
Openalex Percentile: Top 0%
Software Engineering Techniques and Practices
29.61
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

LLaMEA: A Large Language Model Evolutionary Algorithm for Automatically Generating Metaheuristics — Bas van Stein, Thomas Bäck · IEEE Transactions on Evolutionary Computation (2024) | TGRS Research Map | TGRS