arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2407.11373cs.CLcs.AI
收藏

超越自然语言的可靠推理

Reliable Reasoning Beyond Natural Language

University of California, Berkeley(加州大学伯克利分校)

Nasim Borazjanizadeh, Steven T. Piantadosi

AI总结:

本文提出神经符号推理方法,通过整合Prolog引擎,解决LLMs在非线性推理任务中的不足,提升推理能力和准确性。

摘要:

尽管具有语言能力,大型语言模型(LLMs)在可靠和灵活推理方面常常遇到困难。为了识别这些不足,我们引入了非线性推理(NLR)数据集,这是一个包含55个独特、手工设计的问题集,旨在针对LLMs的顺序预测范式和自然语言本质上线性性质所产生的推理瓶颈。NLR任务需要迭代更新、回溯和在多个并行思考链上进行推理,但仅需基本算术即可解决。为了解决这些限制,我们提出了一种神经符号推理方法,将Prolog,一个符号推理引擎,整合到LLMs的推理管道中。这种分工将LLM的任务从迭代计算转变为推断所有信息,无论是显性的还是隐含的,通过常识推断,并将其编码为逻辑代码。我们的方法在GSM8k和BIG-bench Navigate基准测试中实现了大规模和稳健的性能提升,并在NLR问题上实现了接近完美的准确率,即使在变量相互依赖性增加时仍能保持稳健。

英文摘要:

Despite their linguistic competence, Large Language Models (LLMs) often struggle to reason reliably and flexibly. To identify these shortcomings, we introduce the Non-Linear Reasoning (NLR) dataset, a collection of 55 unique, hand-designed problems that target reasoning bottlenecks arising from the sequential prediction paradigm of LLMs and the inherently linear nature of natural language. NLR tasks require iterative updates, backtracking, and reasoning across multiple parallel chains of thought but only basic arithmetic to solve. To address these limitations, we propose a neurosymbolic reasoning approach that integrates Prolog, a symbolic reasoning engine, into the inference pipeline of LLMs. This division of labor shifts the LLM's task from iterative computations to inferring all information, explicit or implied through common sense, and encoding it as logical code. Our method yields large and robust performance gains across the GSM8k and BIG-bench Navigate benchmarks and achieves near-perfect accuracy on NLR problems, maintaining robustness even as variable interdependence - the number of other variables on which the value of a single variable depends - increases.

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

↑