Enhancing Tool Learning in Large Language Models with Hierarchical Error Checklists
About
Large language models (LLMs) have significantly advanced natural language processing, particularly through the integration of external tools and APIs. However, their effectiveness is frequently hampered by parameter mis-filling during tool calling. In this paper, we propose the Hierarchical Tool Error Checklist (HiTEC) framework to systematically diagnose and mitigate tool-calling errors without relying on extensive real-world interactions. HiTEC introduces a two-tiered approach: a global error checklist that identifies common, cross-tool issues, and a local error checklist that targets tool-specific and contextual failures. Building on this structure, we propose two deployments: HiTEC-In Context Learning (HiTEC-ICL) and HiTEC-Kahneman-Tversky Optimization (HiTEC-KTO). HiTEC-ICL embeds the global checklist in the initial prompts and leverages a two-round conversational interaction to dynamically refine parameter handling, while HiTEC-KTO generates high-quality negative examples to drive fine-tuning via preference-based optimization. Extensive experiments across five public datasets demonstrate that our framework significantly improves parameter-filling accuracy and tool-calling success rates compared to baseline methods.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Tool Calling | API-Bank L-1 | F1 Name Match94.99 | 46 | |
| Tool Calling | Tool-Alpaca | Tool Name Accuracy91.17 | 31 | |
| Tool Calling | Seal-Tools Single-Tool | Name Match Score98.14 | 30 | |
| Tool Calling | API-Bank L-2 | Name Match F190.42 | 25 | |
| Tool Calling | Nexus Raven | Score (Name)94.84 | 16 | |
| Tool Calling | F1 Average | Tool Call Name F191.37 | 16 | |
| Tool Calling | API-Bank L-1 v1 (test) | F1 Score90.78 | 12 | |
| Tool Calling | API-Bank L-2 v1 (test) | F1 Name Match88 | 12 | |
| Tool Calling | Tool-Alpaca v1 (test) | F1 Name87.63 | 12 | |
| Tool Calling | Seal-Tools Single-Tool v1 (test) | F1 Name98.14 | 12 |