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

大语言模型能够学习规则

Large Language Models can Learn Rules

Google(谷歌公司);Université de Montréal(蒙特利尔大学);HEC Montréal(蒙特利尔高等商学院);University of Alberta(阿尔伯塔大学)

Zhaocheng Zhu, Yuan Xue, Xinyun Chen, Denny Zhou, Jian Tang, Dale Schuurmans, Hanjun Dai

AI总结:

提出Hypotheses-to-Theories (HtT)框架,通过归纳和演绎两阶段让LLM自动学习并应用规则库进行推理,解决隐式知识错误问题,在多类推理任务中准确率提升10-30%,且规则具备跨模型和问题形式的迁移能力。

摘要:

当给出少量示例和中间步骤时,大语言模型(LLMs)在各种推理任务中展现出了令人印象深刻的性能。然而,依赖 LLM 中隐式知识的提示方法,当隐式知识错误或与任务不一致时,通常会生成错误的答案。为了解决这个问题,我们提出了 Hypotheses-to-Theories (HtT),这是一个利用 LLM 学习规则库进行推理的框架。HtT 包含两个阶段:归纳阶段和演绎阶段。在归纳阶段,首先要求 LLM 在一组训练样本上生成并验证规则。将出现频率足够高且能导出正确答案的规则收集起来,形成规则库。在演绎阶段,随后提示 LLM 使用学习到的规则库执行推理,以回答测试问题。在关系推理、数值推理和概念学习问题上的实验表明,HtT 改进了现有的提示方法,准确率绝对提升了 10-30%。学习到的规则也可迁移到不同的模型以及同一问题的不同形式上。

英文摘要:

When prompted with a few examples and intermediate steps, large language models (LLMs) have demonstrated impressive performance in various reasoning tasks. However, prompting methods that rely on implicit knowledge in an LLM often generate incorrect answers when the implicit knowledge is wrong or inconsistent with the task. To tackle this problem, we present Hypotheses-to-Theories (HtT), a framework that learns a rule library for reasoning with LLMs. HtT contains two stages, an induction stage and a deduction stage. In the induction stage, an LLM is first asked to generate and verify rules over a set of training examples. Rules that appear and lead to correct answers sufficiently often are collected to form a rule library. In the deduction stage, the LLM is then prompted to employ the learned rule library to perform reasoning to answer test questions. Experiments on relational reasoning, numerical reasoning and concept learning problems show that HtT improves existing prompting methods, with an absolute gain of 10-30% in accuracy. The learned rules are also transferable to different models and to different forms of the same problem.

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

↑