arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.03492cs.AIcs.CL

自动定理证明器助力提升大语言模型推理能力

Automated Theorem Provers Help Improve Large Language Model Reasoning

School of Computer Science, Australian National University(澳大利亚国立大学计算机科学学院);Data61, CSIRO(联邦科学与工业研究组织Data61)

Lachlan McGinness, Peter Baumgartner

AI总结:

本文提出一种神经符号方法,利用一阶逻辑自动定理证明器自动纠正大语言模型在逻辑推理中的翻译错误,从而显著提升其在PRONTOQA基准上的推理准确性。

摘要:

在本文中,我们展示了逻辑编程系统和一阶逻辑自动定理证明器(ATPs)如何提高大语言模型(LLMs)在逻辑推理任务上的准确性,其中基线性能由LLM直接求解给出。我们首先使用PRONTOQA基准评估LLM在压路机问题上的推理表现。我们展示了一种神经符号架构如何提高准确性:在该架构中,LLM仅作为前端,将给定问题翻译成形式逻辑语言,然后调用自动推理引擎进行求解。然而,这一方法的关键在于LLM翻译的正确性。为了评估翻译正确性,我们其次定义了一个包含句法错误类别和语义错误类别的框架。我们实现了该框架,并用它来识别LLM在基准领域中所犯的错误。基于这些发现,我们第三扩展了我们的方法,使其具备自动纠正句法错误和语义错误的能力。对于语义错误纠正,我们集成了一阶逻辑自动定理证明器,这是我们的主要且新颖的贡献。我们证明该方法显著减少了语义错误,并进一步提高了LLM逻辑推理的准确性。

英文摘要:

In this paper we demonstrate how logic programming systems and Automated first-order logic Theorem Provers (ATPs) can improve the accuracy of Large Language Models (LLMs) for logical reasoning tasks where the baseline performance is given by direct LLM solutions. We first evaluate LLM reasoning on steamroller problems using the PRONTOQA benchmark. We show how accuracy can be improved with a neuro-symbolic architecture where the LLM acts solely as a front-end for translating a given problem into a formal logic language and an automated reasoning engine is called for solving it. However, this approach critically hinges on the correctness of the LLM translation. To assess this translation correctness, we secondly define a framework of syntactic and semantic error categories. We implemented the framework and used it to identify errors that LLMs make in the benchmark domain. Based on these findings, we thirdly extended our method with capabilities for automatically correcting syntactic and semantic errors. For semantic error correction we integrate first-order logic ATPs, which is our main and novel contribution. We demonstrate that this approach reduces semantic errors significantly and further increases the accurracy of LLM logical reasoning.

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

↑