Large Language Models can Learn Rules

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Zhu, Zhaocheng, Xue, Yuan, Chen, Xinyun, Zhou, Denny, Tang, Jian, Schuurmans, Dale, Dai, Hanjun
Format: Preprint
Published: 2023
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912162347220992
author Zhu, Zhaocheng
Xue, Yuan
Chen, Xinyun
Zhou, Denny
Tang, Jian
Schuurmans, Dale
Dai, Hanjun
author_facet Zhu, Zhaocheng
Xue, Yuan
Chen, Xinyun
Zhou, Denny
Tang, Jian
Schuurmans, Dale
Dai, Hanjun
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2310_07064
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Large Language Models can Learn Rules
Zhu, Zhaocheng
Xue, Yuan
Chen, Xinyun
Zhou, Denny
Tang, Jian
Schuurmans, Dale
Dai, Hanjun
Artificial Intelligence
Computation and Language
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.
title Large Language Models can Learn Rules
topic Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2310.07064