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

大语言模型能否基于提示工程成为良好的路径规划器?缓解路径规划中的幻觉问题

Can LLM be a Good Path Planner based on Prompt Engineering? Mitigating the Hallucination for Path Planning

College of Computer Science(计算机科学学院);Sichuan Normal University(四川师范大学);School of Information and Software Engineering(信息与软件工程学院);University of Electronic Science and Technology of China(电子科技大学)

Hourui Deng, Hongjie Zhang, Jie Ou, Chaosheng Feng

AI总结:

本文提出S2RCQL模型,通过空间到关系转换、基于Q学习的路径规划算法和反向课程学习技术,缓解大语言模型在路径规划中的空间幻觉与上下文不一致幻觉,并在ERNIE-Bot 4.0上实现成功率和最优率23%--40%的提升。

摘要:

大语言模型(LLMs)中的空间推理是具身智能的基础。然而,即使在简单的迷宫环境中,LLMs在长期路径规划中仍面临挑战,主要受其空间幻觉和长期推理中的上下文不一致幻觉影响。为应对这一挑战,本研究提出了一种创新模型:空间到关系转换与课程Q学习(S2RCQL)。针对LLMs的空间幻觉,我们提出了空间到关系方法,将空间提示转换为实体关系以及表示实体关系链的路径。该方法充分挖掘了LLMs在顺序思维方面的潜力。在此基础上,我们设计了一种基于Q学习的路径规划算法,以缓解上下文不一致幻觉,从而增强LLMs的推理能力。利用状态-动作的Q值作为提示的辅助信息,我们纠正LLMs的幻觉,从而引导LLMs学习最优路径。最后,我们提出了一种基于LLMs的反向课程学习技术,以进一步缓解上下文不一致幻觉。LLMs可以通过降低任务难度快速积累成功经验,并利用这些经验处理更复杂的任务。我们基于百度自研的大语言模型ERNIE-Bot 4.0进行了全面实验。结果表明,与先进的提示工程相比,我们的S2RCQL在成功率和最优率上均实现了23%--40%的提升。

英文摘要:

Spatial reasoning in Large Language Models (LLMs) is the foundation for embodied intelligence. However, even in simple maze environments, LLMs still encounter challenges in long-term path-planning, primarily influenced by their spatial hallucination and context inconsistency hallucination by long-term reasoning. To address this challenge, this study proposes an innovative model, Spatial-to-Relational Transformation and Curriculum Q-Learning (S2RCQL). To address the spatial hallucination of LLMs, we propose the Spatial-to-Relational approach, which transforms spatial prompts into entity relations and paths representing entity relation chains. This approach fully taps the potential of LLMs in terms of sequential thinking. As a result, we design a path-planning algorithm based on Q-learning to mitigate the context inconsistency hallucination, which enhances the reasoning ability of LLMs. Using the Q-value of state-action as auxiliary information for prompts, we correct the hallucinations of LLMs, thereby guiding LLMs to learn the optimal path. Finally, we propose a reverse curriculum learning technique based on LLMs to further mitigate the context inconsistency hallucination. LLMs can rapidly accumulate successful experiences by reducing task difficulty and leveraging them to tackle more complex tasks. We performed comprehensive experiments based on Baidu's self-developed LLM: ERNIE-Bot 4.0. The results showed that our S2RCQL achieved a 23%--40% improvement in both success and optimality rates compared with advanced prompt engineering.

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

↑