Evolutionary algorithms (EAs) have achieved remarkable success in tackling complex combinatorial optimization problems. However, EAs often demand carefully-designed operators with the aid of domain expertise to achieve satisfactory performance. In this work, we present the first study on large language models (LLMs) as evolutionary combinatorial optimizers. The main advantage is that it requires minimal domain knowledge and human efforts, as well as no additional training of the model. This approach is referred to as LLM-driven EA (LMEA). Specifically, in each generation of the evolutionary search, LMEA instructs the LLM to select parent solutions from current population, and perform crossover and mutation to generate offspring solutions. Then, LMEA evaluates these new solutions and include them into the population for the next generation. LMEA is equipped with a self-adaptation mechanism that controls the temperature of the LLM. This enables it to balance between exploration and exploitation and prevents the search from getting stuck in local optima. We investigate the power of LMEA on the classical traveling salesman problems (TSPs) widely used in combinatorial optimization research. Notably, the results show that LMEA performs competitively to traditional heuristics in finding high-quality solutions on TSP instances with up to 20 nodes. Additionally, we also study the effectiveness of LLM-driven crossover/mutation and the self-adaptation mechanism in evolutionary search. In summary, our results reveal the great potentials of LLMs as evolutionary optimizers for solving combinatorial problems. We hope our research shall inspire future explorations on LLM-driven EAs for complex optimization challenges.
翻译:进化算法在解决复杂组合优化问题方面取得了显著成功。然而,传统进化算法往往需要借助领域专业知识精心设计算子,才能获得令人满意的性能。本文首次提出将大型语言模型作为进化组合优化器的研究。其核心优势在于:所需领域知识和人工干预极少,且无需对模型进行额外训练。该方法被称为基于LLM的进化算法(LMEA)。具体而言,在进化搜索的每一代中,LMEA指导LLM从当前种群中选择父代解,执行交叉和变异操作生成子代解。随后,LMEA评估这些新解并将其纳入下一代种群。LMEA配备了控制LLM温度的自适应机制,使其能够平衡探索与利用,避免搜索陷入局部最优。我们在组合优化研究中广泛使用的经典旅行商问题上验证了LMEA的性能。值得注意的是,结果表明,在节点数不超过20的TSP实例上,LMEA在寻找高质量解方面与传统启发式算法具有竞争力。此外,我们还研究了LLM驱动的交叉/变异操作以及进化搜索中的自适应机制的有效性。总体而言,我们的研究揭示了LLM作为组合问题进化优化器的巨大潜力。我们希望本研究能够激发未来对基于LLM的进化算法解决复杂优化挑战的探索。