NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Enhancing Tool Learning in Large Language Models with Hierarchical Error Checklists

Yue Cui, Liuyi Yao, Shuchang Tao, Weijie Shi, Yaliang Li, Bolin Ding, Xiaofang Zhou

Introduction

While Large Language Models (LLMs) have demonstrated remarkable reasoning capabilities, their ability to interact with external environments through "tool calling" remains a significant bottleneck. A primary challenge is "parameter mis-filling," where a model correctly identifies the necessary tool but fails to provide accurate arguments, such as missing required fields or using incorrect data formats.

Existing approaches often rely on iterative execution feedback, where models learn from real-world API error messages. However, this method is frequently costly, slow, and unstable. This paper introduces HiTEC, a framework that shifts the focus from reactive trial-and-error to proactive error prevention using hierarchical checklists.

The HiTEC Framework

The core innovation of this research is the Hierarchical Tool Error Checklist (HiTEC). Rather than treating all tool-calling errors as generic failures, HiTEC categorizes them into two distinct levels:

  1. Global Error Checklist: This level identifies eight universal failure modes applicable across most tools, including "Wrong Tool Name," "Missing Required Parameter," and "Invalid Output Format."
  2. Local Error Checklist: This level addresses tool-specific nuances, such as unique parameter constraints or contextual requirements specific to a single API (e.g., a specific timestamp format for a weather service).
The HiTEC framework overview, illustrating the generation of Global and Local Error Checklists and their application in ICL and fine-tuning.

Implementation Strategies

The authors propose two primary methods for deploying these checklists:

HiTEC-ICL (In-Context Learning)

This tuning-free approach embeds the Global Error Checklist directly into the model's initial prompt. If the model fails to generate a valid call, a second conversational round is initiated where the Local Error Checklist is introduced, prompting the model to self-correct based on specific tool requirements.

HiTEC-KTO (Kahneman-Tversky Optimization)

For a more permanent performance boost, the framework uses checklists to generate a dataset of "negative examples" (incorrect tool calls). These are used to fine-tune the model using KTO, a preference-based optimization method. The authors specifically selected KTO over the more common Direct Preference Optimization (DPO) because tool-calling errors often involve very subtle token differences. KTO’s asymmetric weighting handles these "near-miss" examples more effectively than DPO, which can suffer from vanishing gradients in such scenarios.

Experimental Results

The framework was evaluated across five public benchmarks, including API-Bank, Tool-Alpaca, and Nexus Raven. To support fine-tuning, the authors also introduced the PTC (Pairwise Tool-Calling) Dataset, derived from the xlam-function-calling-60k corpus.

Key findings include:

  • Significant Accuracy Gains: HiTEC improved parameter-filling accuracy by up to 42% over vanilla baselines.
  • Error Reduction: Visual analysis of error distributions shows that HiTEC-ICL and HiTEC-KTO substantially reduce the frequency of almost all common error types.
  • Small Model Empowerment: HiTEC allows smaller models to punch above their weight. For instance, a fine-tuned Qwen2.5-1.5B model outperformed much larger specialized baselines. On the complex Nexus Raven benchmark, Llama3-8B’s F1 score improved from 17% to over 58% using HiTEC-ICL.
  • Resilience: In multi-turn interactions, HiTEC-KTO demonstrated superior robustness, preventing the error cascades that typically cause baseline models to fail.
Comparison of error distributions between the vanilla model and HiTEC-enhanced versions, showing a significant reduction in total errors across various categories.

Conclusion

HiTEC demonstrates that structured, symbolic knowledge in the form of checklists can effectively substitute for expensive real-world trial-and-error. While the current framework requires some manual effort for checklist curation, it provides a clear path toward more reliable and cost-efficient tool use in LLMs. Future work will focus on automating the generation of these checklists by monitoring real-world tool logs to identify emerging error patterns without human intervention.

Summary updated

BibTeX
@inproceedings{cui2025enhancing,
  author = {Yue Cui and Liuyi Yao and Shuchang Tao and Weijie Shi and Yaliang Li and Bolin Ding and Xiaofang Zhou},
  title = {{Enhancing Tool Learning in Large Language Models with Hierarchical Error Checklists}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure