arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2412.03250cs.NE
收藏

控制大型语言模型中的变异以实现算法的高效进化

Controlling the Mutation in Large Language Models for the Efficient Evolution of Algorithms

Haoran Yin, Anna V. Kononova, Thomas Bäck, Niki van Stein

AI总结:

针对 LLM 进化算法中变异不可控的问题,本文提出基于重尾幂律分布的动态变异提示,以自适应调节变异率,并在 GPT-4o 上验证其可提升 LLaMEA 的收敛速度与适应性。

摘要:

大型语言模型(LLM)与进化计算(EC)的融合为自动化设计元启发式算法引入了一种颇具前景的范式。然而,现有框架(例如大型语言模型进化算法 LLaMEA)往往缺乏对变异机制的精确控制,导致解空间探索效率低下,并可能出现次优收敛。本文受遗传算法理论启发,提出了一种在 LLM 驱动的进化框架内进行变异控制的新方法。具体而言,我们提出了动态变异提示,其可自适应调节变异率,并利用重尾幂律分布来平衡探索与利用。使用 GPT-3.5-turbo 和 GPT-4o 模型开展的实验表明,GPT-3.5-turbo 无法遵守特定的变异指令,而 GPT-4o 能够基于经提示工程设计的动态提示调整其变异。进一步实验显示,在使用 GPT-4o 时,引入这些动态变异率可以提升 LLaMEA 的收敛速度和适应性。本工作为在代码优化任务中更好地控制基于 LLM 的变异奠定了起点,并为自动化元启发式设计的进一步发展铺平了道路。

英文摘要:

The integration of Large Language Models (LLMs) with evolutionary computation (EC) has introduced a promising paradigm for automating the design of metaheuristic algorithms. However, existing frameworks, such as the Large Language Model Evolutionary Algorithm (LLaMEA), often lack precise control over mutation mechanisms, leading to inefficiencies in solution space exploration and potentially suboptimal convergence. This paper introduces a novel approach to mutation control within LLM-driven evolutionary frameworks, inspired by theory of genetic algorithms. Specifically, we propose dynamic mutation prompts that adaptively regulate mutation rates, leveraging a heavy-tailed power-law distribution to balance exploration and exploitation. Experiments using GPT-3.5-turbo and GPT-4o models demonstrate that GPT-3.5-turbo fails to adhere to the specific mutation instructions, while GPT-4o is able to adapt its mutation based on the prompt engineered dynamic prompts. Further experiments show that the introduction of these dynamic rates can improve the convergence speed and adaptability of LLaMEA, when using GPT-4o. This work sets the starting point for better controlled LLM-based mutations in code optimization tasks, paving the way for further advancements in automated metaheuristic design.

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

↑