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

用大型语言模型演化代码

Evolving Code with A Large Language Model

MIT CSAIL(麻省理工学院计算机科学与人工智能实验室)

Erik Hemberg, Stephen Moskal, Una-May O'Reilly

AI总结:

本文提出LLM GP,一种利用大型语言模型的提示与序列补全能力重新设计演化算子的形式化遗传编程算法,并给出演示实现,探讨其设计要点与科学挑战。

摘要:

使用大型语言模型(LLMs)来演化代码的算法最近才出现在遗传编程(GP)领域。我们提出LLM GP,这是一种形式化的、基于LLM的演化算法,旨在演化代码。与GP类似,它使用演化算子,但这些算子的设计和实现与GP截然不同,因为它们借助LLM,利用提示以及LLM预训练的模式匹配和序列补全能力。我们还展示了LLM GP的一个演示级变体,并公开了其代码。通过涵盖从形式化到动手实践的算法,我们讨论了设计和LLM使用方面的考虑,以及将LLM用于遗传编程时出现的科学挑战。

英文摘要:

Algorithms that use Large Language Models (LLMs) to evolve code arrived on the Genetic Programming (GP) scene very recently. We present LLM GP, a formalized LLM-based evolutionary algorithm designed to evolve code. Like GP, it uses evolutionary operators, but its designs and implementations of those operators radically differ from GP's because they enlist an LLM, using prompting and the LLM's pre-trained pattern matching and sequence completion capability. We also present a demonstration-level variant of LLM GP and share its code. By addressing algorithms that range from the formal to hands-on, we cover design and LLM-usage considerations as well as the scientific challenges that arise when using an LLM for genetic programming.

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

↑