[Paper Review] API-Bank: A Comprehensive Benchmark for Tool-Augmented LLMs
API-Bank introduces a runnable evaluation system with 73 APIs and 314 dialogues to assess LLM tool usage, plus a Multi-agent method to generate training data for a tool-augmented model (Lynx).
Recent research has demonstrated that Large Language Models (LLMs) can enhance their capabilities by utilizing external tools. However, three pivotal questions remain unanswered: (1) How effective are current LLMs in utilizing tools? (2) How can we enhance LLMs' ability to utilize tools? (3) What obstacles need to be overcome to leverage tools? To address these questions, we introduce API-Bank, a groundbreaking benchmark, specifically designed for tool-augmented LLMs. For the first question, we develop a runnable evaluation system consisting of 73 API tools. We annotate 314 tool-use dialogues with 753 API calls to assess the existing LLMs' capabilities in planning, retrieving, and calling APIs. For the second question, we construct a comprehensive training set containing 1,888 tool-use dialogues from 2,138 APIs spanning 1,000 distinct domains. Using this dataset, we train Lynx, a tool-augmented LLM initialized from Alpaca. Experimental results demonstrate that GPT-3.5 exhibits improved tool utilization compared to GPT-3, while GPT-4 excels in planning. However, there is still significant potential for further improvement. Moreover, Lynx surpasses Alpaca's tool utilization performance by more than 26 pts and approaches the effectiveness of GPT-3.5. Through error analysis, we highlight the key challenges for future research in this field to answer the third question.
Motivation & Objective
- Define design principles and evaluation criteria for tool-augmented LLMs based on user needs gathered from 500 interviews.
- Construct an evaluation system with 73 APIs and 314 annotated dialogues to test planning, retrieval, and API calling.
- Create a scalable training data generation method (Multi-agent) to produce diverse tool-use dialogues.
- Fine-tune a tool-augmented LLM (Lynx) on the API-Bank data and compare against established LLMs.
- Analyze error types to identify challenges in API usage and inform future research.
Proposed method
- Develop an executable evaluation system comprising 73 APIs and 314 tool-use dialogues with 753 API calls.
- Annotate evaluation data to assess Call, Retrieval+Call, and Plan+Retrieval+Call abilities.
- Introduce API Search to enable retrieval when APIs are unknown.
- Create a training dataset with 2,138 APIs and 1,888 dialogues (4,149 API calls) for tool augmentation.
- Propose Multi-agent data generation (five agents) to automatically produce training data with high quality and low cost.
- Fine-tune Lynx (LLaMA-7B-based) on the API-Bank training data and evaluate against multiple baselines.
Experimental results
Research questions
- RQ1How effectively do current LLMs utilize external API tools across planning, retrieval, and calling tasks?
- RQ2How can we improve LLM tool usage through data, training, and pipeline design?
- RQ3What are the main obstacles preventing reliable and scalable tool-augmented LLMs?
- RQ4How does a high-quality, diverse training dataset impact tool-augmented model performance?
Key findings
- GPT-3.5-turbo and GPT-4 show strong tool-usage capabilities relative to non-instruction-tuned models, with GPT-4 excelling at planning.
- Lynx (trained on API-Bank) outperforms Alpaca-7B by ~26 points in API Call correctness and approaches GPT-3.5, closing much of the gap to GPT-4.
- A comprehensive benchmark (API-Bank) offers the most diversity, realism, and coverage for tool-augmented LLM evaluation to date.
- Multi-agent data generation drastically reduces annotation cost (0.1 USD per dialogue) and yields high-quality training data (94% availability rate).
- Error analysis identifies primary issues as API name mismatches, false API calls, and parameter-related failures, guiding future improvements.
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.