arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.18381cs.AIcs.LGcs.NE
收藏

大型语言模型作为进化策略

Large Language Models As Evolution Strategies

TU Berlin(柏林工业大学);Google DeepMind(谷歌DeepMind)

Robert Tjarko Lange, Yingtao Tian, Yujin Tang

AI总结:

本文提出 EvoLLM,通过排序种群并提示 LLM 改进均值来实现零样本黑盒重组,在 BBOB 和神经进化任务上优于基线,并可用教师轨迹微调增强。

摘要:

大型 Transformer 模型能够实现大量所谓的上下文学习算法,包括梯度下降、分类、序列补全、变换和改进。在本研究中,我们调查从未明确接触过黑盒优化任务的大型语言模型(LLM)原则上是否能够实现进化优化算法。以往工作仅关注基于语言的任务规范,而我们进一步聚焦于将 LLM 零样本应用于黑盒优化。我们提出一种新颖的提示策略:对离散化的种群成员进行由易到难排序,并要求 LLM 对均值统计量提出改进,即执行一种黑盒重组操作。实验表明,该设置可使用户获得一种基于 LLM 的进化策略,我们称之为“EvoLLM”;在合成 BBOB 函数及小型神经进化任务上,它稳定优于随机搜索和 Gaussian Hill Climbing 等基线算法。因此,LLM 可以充当“即插即用”的上下文重组算子。我们还对 LLM 的模型规模、提示策略和上下文构造进行了多项比较研究。最后,我们表明,可以利用先前收集的教师优化轨迹进行指令微调,提供教师算法信息,从而灵活提升 EvoLLM 的性能。

英文摘要:

Large Transformer models are capable of implementing a plethora of so-called in-context learning algorithms. These include gradient descent, classification, sequence completion, transformation, and improvement. In this work, we investigate whether large language models (LLMs), which never explicitly encountered the task of black-box optimization, are in principle capable of implementing evolutionary optimization algorithms. While previous works have solely focused on language-based task specification, we move forward and focus on the zero-shot application of LLMs to black-box optimization. We introduce a novel prompting strategy, consisting of least-to-most sorting of discretized population members and querying the LLM to propose an improvement to the mean statistic, i.e. perform a type of black-box recombination operation. Empirically, we find that our setup allows the user to obtain an LLM-based evolution strategy, which we call `EvoLLM', that robustly outperforms baseline algorithms such as random search and Gaussian Hill Climbing on synthetic BBOB functions as well as small neuroevolution tasks. Hence, LLMs can act as `plug-in' in-context recombination operators. We provide several comparative studies of the LLM's model size, prompt strategy, and context construction. Finally, we show that one can flexibly improve EvoLLM's performance by providing teacher algorithm information via instruction fine-tuning on previously collected teacher optimization trajectories.

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

↑