[论文解读] Hypothesis Search: Inductive Reasoning with Language Models
论文提出一个两阶段的假设驱动管线:提示大语言模型生成关于潜在规则的自然语言假设,然后将其实现为Python程序以解决归纳推理任务,并通过摘要总结或人工选择来筛选以控制成本。
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.
研究动机与目标
- 将归纳推理作为核心问题进行动机阐述,并识别上下文学习在处理复杂任务时的局限性。
- 引入两阶段假设管线:自然语言假设随后是程序实现。
- 探索假设缩减策略(LLM摘要与人工选择)以管理生成成本。
- 在 ARC、1D-ARC 和 SyGuS 上评估该方法以评估泛化和可扩展性。
提出的方法
- 提示一个LLM(GPT-4)生成关于转换规则的多条自然语言假设。
- 通过LLM摘要或人工注释来减少假设数量,以限制程序生成成本。
- 为每个假设生成多个Python程序,并在训练示例上执行以验证正确性。
- 应用反馈迭代,将失败结果附加到提示中以改进程序生成。
- 与直接提示基线和消融对比以量化抽象和程序表示的价值。
实验结果
研究问题
- RQ1显式的自然语言假设及其程序化实现能否在类似ARC的任务中超越直接提示的归纳推理?
- RQ2抽象(自然语言)与具体(程序化)表示在LLM的归纳推理中各自对性能有何贡献?
- RQ3假设筛选(摘要或人工选择)对整体准确性和成本有何影响?
- RQ4结果是否能在ARC、1D-ARC和SyGuS数据集间泛化?
主要发现
- 在ARC(随机40任务子集)中,直接提示的准确率为12.5%,而使用摘要假设的管线达到27.5%。
- 使用人工选择的假设,准确率提升至37.5%,与使用人工撰写假设时的表现相当,表明LLM有很强生成有用假设和实现的能力。
- 仅程序的消融得到17.5%的准确率,显示出假设引导在纯程序生成之外的价值。
- 在1D-ARC上,完整管线达到77.8%的准确率,显著高于直接提示的38.8%;仅程序也有提升(58.3%)。
- 在SyGuS(89任务)中,GPT-4在不使用假设的情况下使用8个程序和两轮反馈达到94.3%;有假设引导时为93.2%,仍然与CrossBeam的74.8%(领域特定DSL)相当竞争。
- 消融显示假设生成和可执行表示均有助于提升归纳推理性能。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。