Skip to main content
QUICK REVIEW

[论文解读] Large Language Models can Learn Rules

Zhaocheng Zhu, Yuan Xue|arXiv (Cornell University)|Oct 10, 2023
Topic ModelingComputer Science被引用 8
一句话总结

HtT通过归纳从训练示例中学习文本规则库,并以演绎方式将其应用于改进对关系、数值和概念学习任务的推理,在不同模型中实现10–30%的绝对准确率提升。

ABSTRACT

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.

研究动机与目标

  • 明确需要显式规则知识以补充隐含LLM推理的动机。
  • 提出Hypotheses-to-Theories (HtT)以归纳并应用文本规则库。
  • 展示基于规则的演绎能够提高关系、数值与概念学习任务的准确性。
  • 证明学得的规则在不同模型和问题变体之间具有可迁移性。
  • 分析HtT的哪些方面有助于改进以及成功条件。

提出的方法

  • 归纳阶段:对每个训练样本提示LLM生成规则,并通过与真实答案的一致性来验证规则。
  • 通过覆盖率和置信度过滤规则以构建规则库(覆盖率阈值k和最小置信度阈值p)。
  • 从演绎出发的归纳:对规则生成与验证使用同一个提示设计,以减少提示工作量。
  • 演绎阶段:将学到的规则库作为先行项并置于演绎提示方法(如CoT或LtM)之前,促使LLM在推理过程中检索并应用规则。
  • 将规则库分层组织,并使用XML标记以便在无需外部检索器的情况下检索规则。
  • 在CLUTRR(关系推理)、算术(非十进制基数的数值推理)和列表函数(概念学习)上使用GPT-3.5与GPT-4进行评估。

实验结果

研究问题

  • RQ1LLM是否能够从训练示例中归纳出可用的文本规则库?
  • RQ2通过演绎引入学习到的规则库是否能提高推理准确性,相较于基线提示?
  • RQ3所归纳的规则是否可在不同模型和问题变体之间迁移?
  • RQ4哪些因素(如规则覆盖率/置信度、示例数量)推动HtT的收益?
  • RQ5HtT在关系、数值和概念学习任务上的表现如何?

主要发现

  • HtT在不同任务和模型上相对于基础提示方法,持续带来10–30个百分点的准确率提升。
  • 在符号CLUTRR上,GPT-4结合HtT较5-shot CoT提升27.2个百分点,CoT+HtT的平均准确率为48.4%,而基线CoT为21.2%。
  • 对于基数16/11/9的算术任务,HtT结合GPT-4在基线提示基础上提升最高可达21.0个百分点。
  • 在列表函数任务上,GPT-4配合HtT的平均任务准确率达56.2%,高于4-shot CoT的46.0%,而GPT-3.5从转移规则中获益显著(任务准确率34.4%)。
  • 消融研究显示大多数提升来自减少错误规则;随机规则会降低性能,突出归纳规则的价值。
  • 准确率随归纳样例数量呈对数线性增长,在所有数据集上HtT均能发现超过85%的所需规则。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。