arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2303.09014cs.CL
收藏

ART:用于大语言模型的自动多步推理和工具使用

ART: Automatic multi-step reasoning and tool-use for large language models

University of Washington(华盛顿大学);Microsoft Research(微软研究院);University of California, Irvine(加州大学欧文分校);Allen Institute of Artificial Intelligence(艾伦人工智能研究所);Meta AI

Bhargavi Paranjape, Scott Lundberg, Sameer Singh, Hannaneh Hajishirzi, Luke Zettlemoyer, Marco Tulio Ribeiro

摘要:

大语言模型(LLM)可以通过生成中间思维链(CoT)推理步骤在少量和zero-shot设置中执行复杂推理。此外,每个推理步骤可以依赖于外部工具来支持核心LLM能力之外的计算(例如搜索/运行代码)。之前关于CoT提示和工具使用的工作通常需要手工制作特定于任务的演示,并仔细编写模型生成与工具使用的交叉。我们介绍自动推理和工具使用(ART),一个框架,使用冻结LLM自动生成中间推理步骤作为一个程序。给定一个新的任务来解决,ART从任务库中选择多步推理和工具使用的演示。在测试时,无论何时调用外部工具,ART都会无缝地暂停生成,并在恢复生成之前集成它们的输出。ART在BigBench和MMLU基准测试中对看不见的任务实现了比Few-Shot提示和自动CoT更大的改进,并且在大多数这些任务上与手工制作的CoT提示的性能相匹配。ART也是可扩展的,并使人类很容易通过纠正特定任务程序中的错误或引入新工具来提高性能,我们通过以最少的人为干预大幅提高选定任务的性能来证明这一点。

英文摘要:

Large language models (LLMs) can perform complex reasoning in few- and zero-shot settings by generating intermediate chain of thought (CoT) reasoning steps. Further, each reasoning step can rely on external tools to support computation beyond the core LLM capabilities (e.g. search/running code). Prior work on CoT prompting and tool use typically requires hand-crafting task-specific demonstrations and carefully scripted interleaving of model generations with tool use. We introduce Automatic Reasoning and Tool-use (ART), a framework that uses frozen LLMs to automatically generate intermediate reasoning steps as a program. Given a new task to solve, ART selects demonstrations of multi-step reasoning and tool use from a task library. At test time, ART seamlessly pauses generation whenever external tools are called, and integrates their output before resuming generation. ART achieves a substantial improvement over few-shot prompting and automatic CoT on unseen tasks in the BigBench and MMLU benchmarks, and matches performance of hand-crafted CoT prompts on a majority of these tasks. ART is also extensible, and makes it easy for humans to improve performance by correcting errors in task-specific programs or incorporating new tools, which we demonstrate by drastically improving performance on select tasks with minimal human intervention.

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

↑