[Paper Review] ART: Automatic multi-step reasoning and tool-use for large language models
ART automatically generates multi-step reasoning programs with integrated tool use for unseen tasks, improving performance over few-shot prompting and Auto-CoT while remaining extensible and human-editable.
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.
Motivation & Objective
- Enable zero-shot or few-shot decomposition of new tasks into multi-step reasoning with tool use.
- Leverage a task library to retrieve demonstrations and guide the LLM in constructing reasoning programs.
- Integrate external tools (search, code execution) into the reasoning process and resume generation after tool outputs.
- Demonstrate cross-task generalization on BigBench, MMLU, and related tool-use benchmarks, with emphasis on arithmetic and algorithmic tasks.
- Show how human feedback and tool/library updates can further boost performance without re-training the LLM.
Proposed method
- Retrieve related task demonstrations from a structured task library to form few-shot prompts.
- Represent decompositions as programs with sub-steps and tool calls using a Beurer-Kellner inspired grammar (PeG).
- Pause generation at tool calls, execute the tool, then resume generation with tool output integrated.
- Use a tool library (search, code execution) to provide external computations within the reasoning flow.
- Allow optional human edits to task or tool libraries to inject corrections or add new tools, without model fine-tuning.
- Evaluate using frozen LLMs (InstructGPT) and a code tool (Codex) across BigBench, MMLU, and QA tasks.
Experimental results
Research questions
- RQ1Can a frozen LLM decompose unseen tasks into multi-step reasoning with automatic tool use by leveraging demonstrations from a task library?
- RQ2Do integrated tool calls within the reasoning chain yield measurable gains over baseline prompting and auto-generated CoT on complex tasks?
- RQ3How does ART perform on cross-task transfer benchmarks (BigBench, MMLU) without task-specific supervision for decomposition or tool use?
- RQ4To what extent can human-in-the-loop edits to task/tool libraries further improve performance without model finetuning?
Key findings
- ART consistently matches or outperforms automatically generated CoT on 32/34 BigBench and all MMLU tasks, by an average of over 22 percentage points.
- Tool use improves test-time performance by an average of over 12.3 percentage points compared to no-tools baselines.
- ART improves over direct few-shot prompting by 10.8 percentage points on average across unseen BigBench and MMLU tasks.
- On 12 tasks with human feedback, ART surpasses the best-known GPT-3 results by an average of over 20 percentage points.
- ART enables easy human intervention by updating the task and tool libraries, enabling targeted improvements with minimal human effort.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.