arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.10162cs.AI
收藏

ChatLogic:将逻辑编程与大语言模型相融合以实现多步推理

ChatLogic: Integrating Logic Programming with Large Language Models for Multi-Step Reasoning

School of Computer Science University of Auckland Auckland, New Zealand

Zhongsheng Wang, Jiamou Liu, Qiming Bao, Hongfei Rong, Jingfeng Zhang

AI总结:

针对大语言模型长记忆利用不足、长交互多步推理易出错的问题,提出融合逻辑编程的ChatLogic框架,以LLM为核心控制器,通过符号化逻辑集成与符号记忆增强多步演绎推理,显著提升LLM推理性能,相关资源已开源。

摘要:

ChatGPT、GPT-4等大语言模型(LLM)已在各类生成任务中展现出出色能力,但它们的性能常因访问和利用长期记忆的局限性而受影响,尤其在长交互过程中会出现特定缺陷与偏差。本文提出ChatLogic——一款专门面向LLM推理任务的创新框架,通过整合逻辑编程提升LLM在多步演绎推理任务中的表现。在ChatLogic中,语言模型处于核心地位,充当控制器并参与系统的每个运行阶段。我们提出一种将逻辑问题转换为可与推理引擎进行符号集成的新方法,该方法利用大语言模型的情境理解与模仿能力,借助符号记忆增强多步演绎推理能力。实验结果表明,ChatLogic框架显著提升了LLM的多步推理能力。源码与数据可在https://github.com/Strong-AI-Lab/ChatLogic获取。

英文摘要:

Large language models (LLMs) such as ChatGPT and GPT-4 have demonstrated impressive capabilities in various generative tasks. However, their performance is often hampered by limitations in accessing and leveraging long-term memory, leading to specific vulnerabilities and biases, especially during long interactions. This paper introduces ChatLogic, an innovative framework specifically targeted at LLM reasoning tasks that can enhance the performance of LLMs in multi-step deductive reasoning tasks by integrating logic programming. In ChatLogic, the language model plays a central role, acting as a controller and participating in every system operation stage. We propose a novel method of converting logic problems into symbolic integration with an inference engine. This approach leverages large language models' situational understanding and imitation skills and uses symbolic memory to enhance multi-step deductive reasoning capabilities. Our results show that the ChatLogic framework significantly improves the multi-step reasoning capabilities of LLMs. The source code and data are available at \url{https://github.com/Strong-AI-Lab/ChatLogic}

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

↑