arXiv:2412.14995 · 中英对照阅读
HSEvo: Elevating Automatic Heuristic Design with Diversity-Driven Harmony Search and Genetic Algorithm Using LLMs
中文速览
自动生成启发式算法虽然已经能解决不少复杂优化问题,但现有方法常常难以兼顾“多尝试新方案”和“把好方案继续打磨”,也不清楚搜索过程到底有多分散。研究者用代码向量表示生成的算法,并提出两种多样性指标,再据此分析 FunSearch、EoH 和 ReEvo,发现 EoH 搜索更分散却表现不稳定,ReEvo 得分不错但多样性不足。为此,他们设计了 HSEvo,把和声搜索融入大语言模型驱动的进化过程,让搜索能在探索新思路与优化已有方案之间动态平衡。实验显示,HSEvo 能同时保持较高多样性和较好的优化成绩,而且成本较低;这说明,理解并管理搜索多样性,有助于设计更可靠、更有效的自动算法生成方法。
摘要
Automatic Heuristic Design (AHD) is an active research area due to its utility in solving complex search and NP-hard combinatorial optimization problems in the real world. The recent advancements in Large Language Models (LLMs) introduce new possibilities by coupling LLMs with evolutionary computation to automatically generate heuristics, known as LLM-based Evolutionary Program Search (LLM-EPS). While previous LLM-EPS studies obtained great performance on various tasks, there is still a gap in understanding the properties of heuristic search spaces and achieving a balance between exploration and exploitation, which is a critical factor in large heuristic search spaces. In this study, we address this gap by proposing two diversity measurement metrics and perform an analysis on previous LLM-EPS approaches, including FunSearch, EoH, and ReEvo. Results on black-box AHD problems reveal that while EoH demonstrates higher diversity than FunSearch and ReEvo, its objective score is unstable. Conversely, ReEvo’s reflection mechanism yields good objective scores but fails to optimize diversity effectively. With this finding in mind, we introduce HSEvo, an adaptive LLM-EPS framework that maintains a balance between diversity and convergence with a harmony search algorithm. Through experimentation, we find that HSEvo achieved high diversity indices and good objective scores while remaining cost-effective. These results underscore the importance of balancing exploration and exploitation and understanding heuristic search spaces in designing frameworks in LLM-EPS.
术语表
- Automatic Heuristic Design (AHD)
- 自动启发式设计
- Large Language Models (LLMs)
- 大语言模型
- LLM-based Evolutionary Program Search (LLM-EPS)
- 基于大语言模型的进化程序搜索
- heuristic search space
- 启发式搜索空间
- exploration and exploitation
- 探索与利用
- diversity measurement metrics
- 多样性度量指标
- Shannon entropy
- 香农熵
- Shannon–Wiener Diversity Index (SWDI)
- 香农–维纳多样性指数
- Cumulative Diversity Index (CDI)
- 累积多样性指数
- HSEvo
- HSEvo
- harmony search algorithm
- 和声搜索算法
- evolutionary computation
- 进化计算
- evolutionary algorithm
- 进化算法
- meta-heuristic
- 元启发式算法
- Hyper-Heuristics (HHs)
- 超启发式
- Neural Combinatorial Optimization (NCO)
- 神经组合优化
- combinatorial optimization problems (COPs)
- 组合优化问题
- genetic algorithm
- 遗传算法
- island-based evolution strategy
- 岛屿式进化策略
- Chain of Thought
- 思维链
- reflection mechanism
- 反思机制
- initialization
- 初始化
- crossover
- 交叉
- mutation
- 变异
- population diversity
- 种群多样性
- objective score
- 目标函数得分
- convergence
- 收敛
- black-box AHD
- 黑盒自动启发式设计