arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2601.19622cs.AImath.OC
收藏

算法提示增强用于高效基于LLM的A*搜索启发式设计

Algorithmic Prompt-Augmentation for Efficient LLM-Based Heuristic Design for A* Search

Karlsruhe Institute of Technology(卡尔斯鲁厄理工学院);TU Dortmund University(多特蒙德技术大学)

Thomas Bömer, Nico Koltermann, Max Disselnmeyer, Bastian Amberg, Anne Meyer

AI总结:

本文提出A-CEoH算法,通过提示增强策略自动设计A*搜索的启发函数,提升启发式质量并优于专家设计。

摘要:

启发函数对于树搜索算法如A*的性能至关重要,其准确性和效率直接影响搜索结果。传统上,此类启发式方法需要人工设计,需要大量专业知识。近年来,大语言模型(LLMs)和进化框架的进步为自动设计启发式方法提供了可能。在本文中,我们扩展了启发式进化(EoH)框架,以研究A*搜索的自动引导启发式生成。我们引入了一种新的领域无关的提示增强策略,将A*代码纳入提示中以利用上下文学习,称为算法-上下文EoH(A-CEoH)。为了评估A-CEoH的有效性,我们研究了两个问题领域:单元负载预装箱问题(UPMP),一个来自仓库物流的细分问题,以及经典的滑动拼图问题(SPP)。我们的计算实验表明,A-CEoH可以显著提高生成启发式方法的质量,甚至优于专家设计的启发式方法。

英文摘要:

Heuristic functions are essential to the performance of tree search algorithms such as A*, where their accuracy and efficiency directly impact search outcomes. Traditionally, such heuristics are handcrafted, requiring significant expertise. Recent advances in large language models (LLMs) and evolutionary frameworks have opened the door to automating heuristic design. In this paper, we extend the Evolution of Heuristics (EoH) framework to investigate the automated generation of guiding heuristics for A* search. We introduce a novel domain-agnostic prompt augmentation strategy that includes the A* code into the prompt to leverage in-context learning, named Algorithmic - Contextual EoH (A-CEoH). To evaluate the effectiveness of A-CeoH, we study two problem domains: the Unit-Load Pre-Marshalling Problem (UPMP), a niche problem from warehouse logistics, and the classical sliding puzzle problem (SPP). Our computational experiments show that A-CEoH can significantly improve the quality of the generated heuristics and even outperform expert-designed heuristics.

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

↑