arXiv:2412.14995cs.NEcs.AI2024-12AAAI被引 96

用LLM+遗传算法生成高效启发式,平衡探索与利用。

HSEvo: Elevating Automatic Heuristic Design with Diversity-Driven Harmony Search and Genetic Algorithm Using LLMs

  • 结合谐波搜索与遗传算法,动态调节多样性与收敛性。
  • 在黑箱问题上同时实现高多样性与稳定高分表现。
  • 适合想提升启发式算法设计效率的研究者参考。

自动启发式设计(AHD)在解决复杂搜索及现实世界中的NP难组合优化问题中具有重要价值。近年来,大型语言模型(LLMs)与进化计算结合,推动了基于LLM的演化程序搜索(LLM-EPS)的发展。尽管已有研究如FunSearch、EoH和ReEvo取得显著成果,但对启发式搜索空间特性理解不足,且难以在探索与利用之间取得平衡。本文提出两种多样性度量指标,分析上述方法发现:EoH多样性高但目标得分不稳定,而ReEvo虽得分优却难以有效优化多样性。针对此问题,我们提出HSEvo框架,采用自适应谐波搜索算法,在保持高多样性的同时实现良好目标性能,且成本可控。实验表明,该方法在多个黑箱任务中均表现出色,强调了平衡探索与利用及理解搜索空间的重要性。

原文摘要 · Abstract (English)

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.

启发式设计LLM-EPS进化算法多样性平衡

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。