Large Language Models (LLMs) have demonstrated remarkable capabilities in "Chain of Thought" (CoT) reasoning. However, they frequently struggle with tasks requiring precise computation or up-to-date external knowledge. Traditionally, overcoming these limitations required labor-intensive prompt engineering or fine-tuning models for specific tools. The ART (Automatic Reasoning and Tool-use) framework addresses these challenges by enabling frozen LLMs to automatically decompose complex tasks and utilize external tools through a library of executable programs.
The ART Framework
ART treats reasoning as a structured, executable program. Unlike previous methods that require manual prompting for every new task, ART operates through three integrated pillars:
- Task Library: A repository of "seed" tasks (e.g., arithmetic, search-based QA) where reasoning steps are defined in a structured format. Each step serves as a node in a program that can trigger a tool call.
- Task Retrieval: When presented with a new task, ART automatically retrieves the most relevant demonstrations from its library to construct a multi-task prompt for the LLM.
- Tool Library: ART provides access to external utilities. When the LLM generates a specific tool call symbol (e.g.,
[search]or[generate code]), the framework pauses generation, executes the tool (such as a search engine or Python interpreter), integrates the result, and resumes generation.
Crucially, ART utilizes frozen LLMs (like GPT-3 or Codex), relying entirely on in-context learning and structured execution rather than expensive weight updates.
Comparative Advantages
ART distinguishes itself from existing reasoning frameworks by combining multi-step reasoning with extensible tool use and human-in-the-loop capabilities. While methods like Toolformer require fine-tuning and standard CoT is often brittle, ART provides a more flexible and interpretable approach.
Key Results and Insights
The researchers evaluated ART across diverse benchmarks, including BigBench and MMLU, yielding several significant findings:
- Performance Gains: ART improved performance over standard few-shot prompting by an average of 22 percentage points on BigBench and MMLU tasks.
- Tool Integration: The addition of external tools specifically boosted performance by 12.3 percentage points compared to ART without tools.
- Cross-Task Generalization: LLMs demonstrated the ability to generalize skills across domains. For instance, learning to use a search engine for one task allowed the model to apply that skill to solve physics problems.
- Human-in-the-Loop Efficiency: Because ART's reasoning is structured as a program, humans can easily identify and correct errors. Editing just five examples in the library led to performance jumps of over 20% on certain tasks.
Limitations and Future Work
Despite its success, ART faces challenges such as cascading errors, where a mistake in an early code generation step leads to tool failure. Additionally, the system's effectiveness is sensitive to the quality of the retrieval step. Future research will focus on expanding the tool library with specialized APIs and refining the automatic selection of demonstrations to improve robustness and reduce computational costs.
Summary updated