[Paper Review] Large Language Models as Tool Makers
LATM enables LLMs to first create reusable Python tools (tool making) with a powerful model, then solve tasks using a cheaper model (tool using), achieving comparable performance with reduced cost. It also introduces a dispatcher for streaming task handling.
Recent research has highlighted the potential of large language models (LLMs) to improve their problem-solving capabilities with the aid of suitable external tools. In our work, we further advance this concept by introducing a closed-loop framework, referred to as LLMs A s Tool Makers (LATM), where LLMs create their own reusable tools for problem-solving. Our approach consists of two phases: 1) tool making: an LLM acts as the tool maker that crafts tools for a set of tasks. 2) tool using: another LLM acts as the tool user, which applies the tool built by the tool maker for problem-solving. On the problem-solving server side, tool-making enables continual tool generation and caching as new requests emerge. This framework enables subsequent requests to access cached tools via their corresponding APIs, enhancing the efficiency of task resolution. Recognizing that tool-making requires more sophisticated capabilities, we assign this task to a powerful, albeit resource-intensive, model. Conversely, the simpler tool-using phase is delegated to a lightweight model. This strategic division of labor allows the once-off cost of tool-making to be spread over multiple instances of tool-using, significantly reducing average costs while maintaining strong performance. Furthermore, our method offers a functional cache through the caching and reuse of tools, which stores the functionality of a class of requests instead of the natural language responses from LLMs, thus extending the applicability of the conventional cache mechanism. We evaluate our approach across various complex reasoning tasks, including Big-Bench tasks. With GPT-4 as the tool maker and GPT-3.5 as the tool user, LATM demonstrates performance equivalent to using GPT-4 for both roles, but with a significantly reduced inference cost.
Motivation & Objective
- Motivate reducing reliance on pre-existing tools by enabling LLMs to generate their own reusable tools for diverse tasks.
- Propose a closed-loop LATM architecture with a tool-maker and a tool-user, plus a dispatcher for streaming data.
- Show that tool-made functionality can be reused across instances to improve efficiency and cost-effectiveness.
- Demonstrate that a high-capacity tool maker (e.g., GPT-4) can produce tools enabling a lightweight tool user (e.g., GPT-3.5 Turbo) to match or exceed performance at lower cost.
Proposed method
- Two-stage LATM pipeline: tool making (generate Python function tools) and tool using (apply tools to tasks).
- Tool making uses a powerful model to propose, verify, and wrap generic Python tools from demonstrations (programming by example).
- Tool verification creates unit tests to validate tools; failures trigger retries and corrections.
- Tool using employs a lighter model to apply the wrapped tools via in-context function calls and optional postprocessing.
- A dispatcher handles streaming data by routing to existing tools or triggering new tool creation for unseen tasks.

Experimental results
Research questions
- RQ1Can LLMs generate generic, reusable tool functions that solve new tasks beyond the demonstrations they were trained on?
- RQ2Does separating tool making (high-capacity) from tool using (low-cost) maintain or improve performance while reducing runtime cost?
- RQ3Can a dispatcher effectively manage streaming task arrivals by reusing tools or initiating tool-making for unseen tasks?
- RQ4To what extent do tools improve performance of lightweight models on complex reasoning tasks?
- RQ5What are the capacity requirements and cost implications of the tool-maker vs tool-user models across tasks?
Key findings
- A high-capacity tool maker (GPT-4) can generate reusable Python tools for various tasks, which a lighter tool user (GPT-3.5 Turbo or GPT-4) can apply.
- LATM with a tool made by GPT-4 and used by GPT-3.5 Turbo achieves performance on par with using GPT-4 for both stages while reducing inference cost.
- LatM significantly improves several Big-Bench style tasks compared to Chain-of-Thought prompting, especially when using a lightweight tool user for cost efficiency.
- The dispatcher enables on-the-fly tool creation and usage in streaming settings with high accuracy in tool identification and new task triggering.
- A capacity analysis shows tool-making benefits from stronger models for harder tasks, while tool-using with GPT-3.5 Turbo offers favorable cost-performance trade-offs.

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.