arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.09985cs.AIcs.LG
收藏

一种利用语言模型加速 A* 搜索的训练数据配方

A Training Data Recipe to Accelerate A* Search with Language Models

Nanyang Technological University(南洋理工大学);University of California, Los Angeles(加利福尼亚大学洛杉矶分校)

Devaansh Gupta, Boyang Li

AI总结:

本文针对 LLM 启发式学习的训练数据选择问题,发现 A* 与 LLM 都重视近目标节点,并据此提出数据选择分布,在三个规划领域实现最高 15 倍迭代减少和 5 倍搜索加速。

摘要:

将大型语言模型(LLM)与 A* 等启发式搜索算法相结合,有望增强 LLM 推理并实现可扩展的推断。为了加速训练并降低计算需求,我们研究了用于 LLM 启发式学习训练数据的核心集选择问题。现有的启发式函数学习方法很少考虑搜索算法与机器学习模型之间的相互作用。在本工作中,我们通过实证将 A* 搜索算法的需求与 LLM 在该任务上进行泛化的需求分离开来。令人惊讶的是,我们发现二者的需求存在重叠:A* 要求在靠近目标的搜索节点上作出更准确的预测,而 LLM 也需要同一组节点以实现有效泛化。基于这些洞见,我们推导得出一种用于学习基于 LLM 的启发式函数的数据选择分布。在迷宫导航、推箱子和滑块拼图三个经典规划领域中,我们的技术将找到解所需的迭代次数最多减少了 15 倍,搜索的实际运行时间最高加速 5 倍。代码库位于 https://github.com/devaansh100/a_star。

英文摘要:

Combining Large Language Models (LLMs) with heuristic search algorithms like A* holds the promise of enhanced LLM reasoning and scalable inference. To accelerate training and reduce computational demands, we investigate the coreset selection problem for the training data of LLM heuristic learning. Few methods to learn the heuristic functions consider the interaction between the search algorithm and the machine learning model. In this work, we empirically disentangle the requirements of A* search algorithm from the requirements of the LLM to generalise on this task. Surprisingly, we find an overlap between their requirements; A* requires more accurate predictions on search nodes near the goal, and LLMs need the same set of nodes for effective generalisation. With these insights, we derive a data-selection distribution for learning LLM-based heuristics. On three classical planning domains, maze navigation, Sokoban and sliding tile puzzles, our technique reduces the number of iterations required to find the solutions by up to 15x, with a wall-clock speed-up of search up to 5x. The codebase is at https://github.com/devaansh100/a_star.

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

↑