TL;DR
Large Language Models (LLMs) are increasingly integrated with tools, but existing benchmarks for evaluating this capability are limited. ACEBench is a new, comprehensive benchmark designed to address these limitations by offering diverse scenarios, including multi-turn dialogues and imperfect instructions, and a more robust evaluation framework. This work provides a deeper understanding of LLM tool usage and its limitations.
What Problem Does This Paper Address?
LLMs have shown impressive capabilities, especially when augmented with tools for decision-making and reasoning. However, evaluating how well LLMs use these tools is challenging. Current benchmarks often suffer from:
- Limited Scenarios: They may not cover real-world multi-turn dialogues or complex interactions.
- Narrow Evaluation Dimensions: Insufficient detail on how LLMs use tools.
- High Overhead: Reliance on LLMs or actual API calls for evaluation is costly and complex.
- Lack of Robustness Testing: They often fail to assess performance with ambiguous or incomplete user instructions.
These limitations hinder a thorough understanding of LLM tool-use capabilities and their readiness for real-world deployment.
Methods
The authors introduce ACEBench, a comprehensive benchmark for evaluating LLM tool usage. ACEBench categorizes data into three main types:
- Normal: Evaluates tool usage in basic, well-defined scenarios. This includes single-turn and multi-turn dialogues, as well as scenarios with similar APIs and personalized user data.
- Special: Focuses on situations with imperfect instructions, such as missing parameters, incorrectly formatted parameters, or irrelevant queries. This tests the LLM's ability to identify and handle ambiguity.
- Agent: Simulates real-world, multi-turn dialogues through multi-agent interactions within a sandbox environment. This aims to capture the complexity of dynamic, interactive tool use.
ACEBench also incorporates a multi-stage data verification process, combining automated quality inspection with human expert review to ensure data integrity.
Datasets
The paper introduces ACEBench, a new benchmark comprising 2,000 annotated entries in both Chinese and English. The dataset is constructed using a pipeline that includes:
- API Synthesis: Generating synthetic APIs based on real-world APIs to ensure stability and coverage.
- Dialogue Construction: Using LLM-based generation for Normal and Special data, and a multi-agent pipeline for Agent data.
- Scenario Construction: Abstracting real-world scenarios for Agent data, including mobile applications, food delivery, financial services, and travel booking.
ACEBench covers 8 major API domains and 68 sub-domains, with a total of 4,538 APIs.
Key Insights and Ideas
- The Importance of "Special" Scenarios: LLMs struggle significantly with imperfect instructions. This highlights a critical gap in their ability to robustly handle real-world user inputs, which are rarely perfectly formed.
- Multi-Turn Dialogue Complexity: Evaluating LLMs in Agent scenarios (multi-turn, multi-agent) is crucial but challenging. Most current models show limited end-to-end accuracy in these complex, dynamic environments, suggesting a need for better reasoning and context management.
- Fine-tuning Trade-offs: Models fine-tuned on specific tool-use datasets can exhibit a significant performance drop on "Special" data, indicating a loss of generalization. This emphasizes the need to balance task-specific performance with broader robustness.
- Scaling Laws Apply, but Diminish: While larger models generally perform better, the performance gains tend to slow down as model size increases, suggesting diminishing returns and the need for architectural improvements beyond just scaling.
Key Results
- Overall Performance: Closed-source models like GPT-4 series generally lead, but open-source models are rapidly closing the gap.
- Special Data Performance: Many models show low accuracy on Special data, particularly for "Error Detection" and "Error Correction" tasks, indicating a weakness in handling imperfect instructions. For example, Llama-3.1-8B-Instruct has only 29.0% accuracy on incomplete instructions.
- Agent Data Performance: Most models achieve less than 50% end-to-end accuracy on Agent data tasks, highlighting the difficulty of complex, multi-turn interactions.
- Error Analysis (Normal Data): Parameter value errors are the most common issue, followed by output format errors, suggesting areas for improvement in numerical generation and adherence to syntactic rules.
- Prompting Strategies: Standardized prompts lead to the highest accuracy, underscoring the importance of clear and comprehensive instructions for LLM tool usage.
Limitations and Future Work
- Real-world Data Gap: While ACEBench aims for authenticity, a gap remains compared to actual real-world applications, which might affect evaluation accuracy in live scenarios.
- Manual Agent Scenario Construction: The current Agent scenarios are manually constructed, which limits their diversity and coverage.
- Structured JSON-style Calls: The benchmark currently supports only JSON-style function calls. Future work could extend ACEBench to include other representations like Python code or DSLs for a more comprehensive evaluation.
- Designing More Functional Scenarios: The authors are actively working on expanding the Agent Data scenarios.
Summary updated