[论文解读] Algorithm Evolution Using Large Language Model
本论文提出了 Algorithm Evolution using Large Language Model (AEL),一种利用大型语言模型自动设计优化算法的进化框架,在 TSP 构造启发式算法上进行了验证。AEL 在手工设计的贪心方法与领域训练模型之上具有更好的泛化性,且在问题规模上的表现更具鲁棒性。
Optimization can be found in many real-life applications. Designing an effective algorithm for a specific optimization problem typically requires a tedious amount of effort from human experts with domain knowledge and algorithm design skills. In this paper, we propose a novel approach called Algorithm Evolution using Large Language Model (AEL). It utilizes a large language model (LLM) to automatically generate optimization algorithms via an evolutionary framework. AEL does algorithm-level evolution without model training. Human effort and requirements for domain knowledge can be significantly reduced. We take constructive methods for the salesman traveling problem as a test example, we show that the constructive algorithm obtained by AEL outperforms simple hand-crafted and LLM-generated heuristics. Compared with other domain deep learning model-based algorithms, these methods exhibit excellent scalability across different problem sizes. AEL is also very different from previous attempts that utilize LLMs as search operators in algorithms.
研究动机与目标
- 通过将 LLMs 集成到用于自动算法设计的进化框架中,减少人工专家在算法设计中的工作量。
- 在构造性 TSP 启发式上证明 AEL,以创建具有竞争力、可扩展的算法。
- 将 AEL 与人工设计、领域训练、以及直接由 LLM 生成的算法进行对比,以评估性能与泛化能力。
提出的方法
- 将每个算法表示为一个进化个体,该个体由自然语言描述、预定义代码块和一个适应度值组成。
- 使用一个进化循环进行初始化、选择、通过 LLM 提示进行交叉、通过 LLM 提示进行变异,以及种群管理以进化算法。
- 对 LLM 进行提示工程,生成新算法或修改现有算法,设置约束以促进多样性和适应问题格式化的要求。
- 在一批问题实例上评估每个候选算法以计算适应度(对求解器的平均差距),覆盖多实例而非单个实例。
- 与基线的人类设计贪心算法、领域模型(神经求解器)以及直接指令的 LLM 生成算法进行比较。
实验结果
研究问题
- RQ1一个利用 LLM 的进化框架是否能够为组合问题(如 TSP)自动设计出具竞争力的优化算法?
- RQ2与人工设计的启发式方法、领域模型求解器以及直接的 LLM 提示相比,AEL 在解质量和跨问题规模的泛化方面表现如何?
- RQ3使用更先进的 LLM(如 GPT-4)对进化算法的质量与鲁棒性有何影响?
主要发现
- AEL 在所有测试规模上始终优于手工设计的贪心启发式方法。
- AEL 显示出比领域训练模型更好的泛化性,尤其在较大实例上。
- 直接提示 LLM 设计算法的效果不如 AEL,且 GPT-4 有时引入过多随机性。
- 最佳的 AEL 衍生算法整合了多因素评分(距离、平均距离与离散度)并设定阈值以避免糟糕选择,从而显著缩短路径长度。
- 基于 GPT-4 的 AEL 在 AEL 框架内通常优于基于 GPT-3.5-turbo 的。
- 在 20 至 1000 规模的 TSP 中,AEL 的 GPT-4 相对于其他方法获得了最小的平均差距。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。