Reliable Reasoning Beyond Natural Language

LLM LNJR KR / KRR Neural-Symbolic
尽管具有语言能力,但大型语言模型(LLMs)在可靠和灵活推理方面经常存在局限性。为了解决这个问题,我们提出了一种神经符号方法,促使LLMs从问题陈述中提取和编码所有相关信息作为逻辑代码语句,然后使用逻辑编程语言(Prolog)进行显式演绎推理的迭代计算。我们的方法显著提高了LLMs在标准数学推理基准测试GSM8k和BIG-bench数据集的Navigate数据集上的性能。此外,我们还介绍了一个新的数据集,非线性推理(NLR)数据集,包括55个独特的单词问题,针对LLMs的下一个令牌预测范例的缺点,并要求进行复杂的非线性推理,但只需要基本算术技能来解决。我们的研究结果表明,Prolog的集成使LLMs能够在NLR数据集上实现高性能,即使是最先进的语言模型(包括GPT4)也无法仅使用文本解决。
Despite their linguistic competence, Large Language models (LLMs) often exhibit limitations in their ability to reason reliably and flexibly. To address this, we propose a neurosymbolic approach that prompts LLMs to extract and encode all relevant information from a problem statement as logical code statements, and then use a logic programming language (Prolog) to conduct the iterative computations of explicit deductive reasoning. Our approach significantly enhances the performance of LLMs on the standard mathematical reasoning benchmark, GSM8k, and the Navigate dataset from the BIG-bench dataset. Additionally, we introduce a novel dataset, the Non-Linear Reasoning (NLR) dataset, consisting of 55 unique word problems that target the shortcomings of the next token prediction paradigm of LLMs and require complex non-linear reasoning but only basic arithmetic skills to solve. Our findings demonstrate that the integration of Prolog enables LLMs to achieve high performance on the NLR dataset, which even the most advanced language models (including GPT4) fail to solve using text only.
许愿