[Paper Review] TPTU: Large Language Model-based AI Agents for Task Planning and Tool Usage
The paper presents a structured framework for LLM-based AI agents to perform task planning and tool usage (TPTU), introduces one-step and sequential agents, and evaluates multiple LLMs on planning and tool-use tasks with detailed empirical results.
With recent advancements in natural language processing, Large Language Models (LLMs) have emerged as powerful tools for various real-world applications. Despite their prowess, the intrinsic generative abilities of LLMs may prove insufficient for handling complex tasks which necessitate a combination of task planning and the usage of external tools. In this paper, we first propose a structured framework tailored for LLM-based AI Agents and discuss the crucial capabilities necessary for tackling intricate problems. Within this framework, we design two distinct types of agents (i.e., one-step agent and sequential agent) to execute the inference process. Subsequently, we instantiate the framework using various LLMs and evaluate their Task Planning and Tool Usage (TPTU) abilities on typical tasks. By highlighting key findings and challenges, our goal is to provide a helpful resource for researchers and practitioners to leverage the power of LLMs in their AI applications. Our study emphasizes the substantial potential of these models, while also identifying areas that need more investigation and improvement.
Motivation & Objective
- Propose a structured framework to evaluate TPTU abilities of open-source LLMs.
- Design two agent types (one-step and sequential) to study inference strategies.
- Instantiate the framework with diverse LLMs and assess planning and tool-usage performance.
- Identify weaknesses of LLM-based agents to guide future research.
Proposed method
- Define a six-component AI Agent framework: Task Instruction, Designed Prompt, Tool Set, LLM, Intermediate Output, Final Answer.
- Introduce two agent architectures: One-step Agent (TPTU-OA) and Sequential Agent (TPTU-SA).
- Evaluate planning capabilities, including tool order and subtask descriptions, using tailored prompts.
- Assess tool usage across a defined set of 12 tools (e.g., SQL generator, Python generator, weather query, translator, etc.).
- Test multiple LLMs (ChatGPT, Claude, InternLM, Ziya, ChatGLM, Chinese-Alpaca-Plus, etc.).
- Analyze results to identify strengths, weaknesses, and effects of prompt design on planning and tool usage.
Experimental results
Research questions
- RQ1How well can TPTU-OA and TPTU-SA plan the order in which tools are used?
- RQ2Can LLM-based agents generate accurate tool-subtask pairs and operate with unrelated tools?
- RQ3How do different LLMs perform on SQL and mathematical/code generation within the TPTU framework?
- RQ4What are the main strengths and weaknesses of LLM-based AI agents for task planning and tool usage?
Key findings
- Tool-order planning accuracy varies by model, with some achieving 100% in certain setups (e.g., ChatGPT and Claude in Table 3).
- Plan-and-subtask-generation methods show accuracy declines when generating tool orders with subtask descriptions, but unity tool-subtask pair prompts improve performance (notably a 52.9% gain cited for unified format).
- Sequential agents (TPTU-SA) generally outperform one-step agents (TPTU-OA) for high-performing LLMs across evaluations.
- The framework enables discrimination against unrelated tools through well-designed prompts, indicating effective tool selection.
- Single-tool SQL generation shows high accuracy for some models (e.g., ChatGPT 90%, Claude 100%, InternLM 90%), with notable cross-model variation in other cases.
- Complex SQL and mathematical code generation results vary by model and prompting approach (direct-guidance vs. CoT), highlighting model-dependent strengths.
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.