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

假设搜索:基于语言模型的归纳推理

Hypothesis Search: Inductive Reasoning with Language Models

Stanford University(斯坦福大学);Autodesk Research(Autodesk 研究院)

Ruocheng Wang, Eric Zelikman, Gabriel Poesia, Yewen Pu, Nick Haber, Noah D. Goodman

AI总结:

本文提出一种通过生成多层次抽象假设并转化为Python程序来提升大型语言模型归纳推理能力的方法,在ARC等基准上显著优于直接提示基线。

摘要:

归纳推理是一项核心的问题解决能力:人类能够从少量示例中识别出潜在的规律,并将其稳健地泛化到新场景中。近期的研究通过直接提示大型语言模型(LLMs)产生“上下文学习”来评估其在归纳推理任务上的表现。这种方法在简单的归纳任务上表现良好,但在诸如 Abstraction and Reasoning Corpus (ARC) 等复杂任务上表现不佳。在本研究中,我们提出通过在多个抽象层次上生成显式假设来提升 LLMs 的归纳推理能力:我们提示 LLM 用自然语言提出关于问题的多个抽象假设,随后将这些自然语言假设实现为具体的 Python 程序。这些程序可以通过在观察到的示例上运行来进行验证,并泛化到新的输入。为了缩小假设搜索空间,我们探索了过滤待实现假设集合的步骤:我们要么要求 LLM 将其总结为较小的假设集合,要么要求人工标注者选择一个子集。我们在 ARC 视觉归纳推理基准、其变体 1D-ARC、字符串转换数据集 SyGuS 以及列表转换数据集 List Functions 上验证了我们流程的有效性。在 ARC 的随机 100 个问题子集上,我们使用 LLM 摘要的自动化流程达到了 30% 的准确率,优于直接提示基线(准确率为 17%)。通过从 LLM 生成的候选项中进行选择这一最小限度的人工输入,性能被提升至 33%。我们的消融实验表明,抽象假设生成和具体程序表示均有助于 LLMs 在归纳推理任务上的表现。

英文摘要:

Inductive reasoning is a core problem-solving capacity: humans can identify underlying principles from a few examples, which robustly generalize to novel scenarios. Recent work evaluates large language models (LLMs) on inductive reasoning tasks by directly prompting them yielding "in context learning." This works well for straightforward inductive tasks but performs poorly on complex tasks such as the Abstraction and Reasoning Corpus (ARC). In this work, we propose to improve the inductive reasoning ability of LLMs by generating explicit hypotheses at multiple levels of abstraction: we prompt the LLM to propose multiple abstract hypotheses about the problem, in natural language, then implement the natural language hypotheses as concrete Python programs. These programs can be verified by running on observed examples and generalized to novel inputs. To reduce the hypothesis search space, we explore steps to filter the set of hypotheses to implement: we either ask the LLM to summarize them into a smaller set of hypotheses or ask human annotators to select a subset. We verify our pipeline's effectiveness on the ARC visual inductive reasoning benchmark, its variant 1D-ARC, string transformation dataset SyGuS, and list transformation dataset List Functions. On a random 100-problem subset of ARC, our automated pipeline using LLM summaries achieves 30% accuracy, outperforming the direct prompting baseline (accuracy of 17%). With the minimal human input of selecting from LLM-generated candidates, performance is boosted to 33%. Our ablations show that both abstract hypothesis generation and concrete program representations benefit LLMs on inductive reasoning tasks.

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

↑