arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.20132cs.NEcs.AI
收藏

LLaMEA:一种用于自动生成元启发式算法的大语言模型进化算法

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

Leiden University(莱顿大学);Leiden Institute of Advanced Computer Science (LIACS)(莱顿高级计算机科学研究所(LIACS))

Niki van Stein, Thomas Bäck

AI总结:

本文提出 LLaMEA 框架,利用 GPT 模型迭代地生成、变异和选择算法,自动设计出在 BBOB 基准上优于最先进算法的黑盒元启发式优化算法,证明了 LLM 自动生成与优化算法的可行性。

摘要:

诸如 GPT-4 这样的大语言模型(LLMs)已经展示了其理解自然语言和生成复杂代码片段的能力。本文引入了一种新颖的大语言模型进化算法(LLaMEA)框架,利用 GPT 模型来实现算法的自动生成与优化。给定一组标准和任务定义(即搜索空间),LLaMEA 基于性能指标和运行时评估反馈,迭代地生成、变异和选择算法。该框架提供了一种独特的方法来生成优化算法,而无需广泛的先验专业知识。我们展示了如何使用该框架自动生成新颖的黑盒元启发式优化算法。LLaMEA 生成的多个算法在五维黑盒优化基准(BBOB)上优于最先进的优化算法(协方差矩阵自适应进化策略和差分进化)。这些算法在测试函数的 10 维和 20 维实例上也表现出有竞争力的性能,尽管在自动生成过程中它们并未见过此类实例。结果证明了该框架的可行性,并指明了通过 LLMs 进行算法自动生成与优化的未来方向。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑