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

Zhongsheng Wang, Jiamou Liu, Qiming Bao, Hongfei Rong, Jingfeng Zhang
7/14/2024
cs.AI

Official code: Strong-AI-Lab/ChatLogic (16 stars, last commit 2023-12-17).

Abstract

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}

View on arXivView PDF

Code Implementations(1)

162Shell, PythonJul 2, 20232 years ago

Similar Papers

Cite this paper

@article{wang2024chatlogic,
  title  = {ChatLogic: Integrating Logic Programming with Large Language Models for Multi-Step Reasoning},
  author = {Zhongsheng Wang and Jiamou Liu and Qiming Bao and Hongfei Rong and Jingfeng Zhang},
  year   = {2024},
  eprint = {2407.10162},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.10162v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.10162.svg)](https://codeofpaper.com/paper/2407.10162)

Discussion