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

可靠的自然语言理解:结合大型语言模型与回答集编程

Reliable Natural Language Understanding with Large Language Models and Answer Set Programming

University of Texas at Dallas(德克萨斯大学达拉斯分校)

Abhiramon Rajasekharan, Yankai Zeng, Parth Padalkar, Gopal Gupta

AI总结:

提出STAR框架,结合大型语言模型与回答集编程,从文本提取谓词知识并进行可靠推理,在定性、数学及对话推理任务上显著提升性能,尤其对小模型,且输出可解释。

摘要:

人类通过从句子中提取信息(意义)、将其与现有的常识知识结合,然后进行推理以得出结论来理解语言。虽然大型语言模型(LLMs)如GPT-3和ChatGPT能够利用文本中的模式来解决各种NLP任务,但它们在需要推理的问题上表现不足。它们也无法可靠地解释针对给定问题生成的答案。为了更好地模拟人类,我们提出了STAR框架,该框架将LLMs与回答集编程(ASP)相结合。我们展示了如何利用LLMs有效地从语言中提取知识——以谓词形式表示。然后使用目标导向的ASP对该知识进行可靠推理。我们将STAR框架应用于三个需要推理的NLU任务:定性推理、数学推理和目标导向对话。我们的实验表明,STAR能够弥合NLU任务中的推理差距,带来显著的性能提升,尤其是对于较小的LLMs,即参数数量较少的LLMs。使用STAR框架开发的NLU应用也是可解释的:除了生成的谓词外,还可以为给定输出生成证明树形式的理由说明。

英文摘要:

Humans understand language by extracting information (meaning) from sentences, combining it with existing commonsense knowledge, and then performing reasoning to draw conclusions. While large language models (LLMs) such as GPT-3 and ChatGPT are able to leverage patterns in the text to solve a variety of NLP tasks, they fall short in problems that require reasoning. They also cannot reliably explain the answers generated for a given question. In order to emulate humans better, we propose STAR, a framework that combines LLMs with Answer Set Programming (ASP). We show how LLMs can be used to effectively extract knowledge -- represented as predicates -- from language. Goal-directed ASP is then employed to reliably reason over this knowledge. We apply the STAR framework to three different NLU tasks requiring reasoning: qualitative reasoning, mathematical reasoning, and goal-directed conversation. Our experiments reveal that STAR is able to bridge the gap of reasoning in NLU tasks, leading to significant performance improvements, especially for smaller LLMs, i.e., LLMs with a smaller number of parameters. NLU applications developed using the STAR framework are also explainable: along with the predicates generated, a justification in the form of a proof tree can be produced for a given output.

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

↑