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

ToolCritic: Detecting and Correcting Tool-Use Errors in Dialogue Systems

Hassan Hamad, Yingru Xu, Liang Zhao, Wenbo Yan, Narendra GyanchandaniarXiv 2025 · DOI

Introduction

As Large Language Models (LLMs) evolve from simple conversationalists into functional "agents," their ability to interact with external tools—such as APIs for booking flights, searching databases, or managing calendars—has become a critical frontier. However, tool-augmented dialogue is notoriously brittle. Models frequently suffer from "hallucinations" regarding tool outputs, call tools prematurely before gathering necessary user information, or provide incorrect arguments.

The prevailing industry approach to these failures has been intrinsic self-correction, where the model is prompted to review its own output. Research presented in "ToolCritic" suggests this approach is largely ineffective because models are often "blind" to their own logic errors. If a model is confident enough to make a mistake, it is typically confident enough to overlook it during a self-review.

The ToolCritic Framework

To address these limitations, the authors introduce ToolCritic, a specialized diagnostic framework designed to act as an external "judge." Unlike self-correction, ToolCritic employs a separate, fine-tuned model to provide an objective perspective on the assistant's tool-calling logic.

Error Taxonomy

The foundation of ToolCritic is a rigorous taxonomy of eight distinct failure modes in tool-use dialogues. These range from calling the wrong tool entirely to misinterpreting the data returned by a successful call.

Definitions of the eight tool-use error categories identified in the ToolCritic framework.

The Detection and Correction Pipeline

The ToolCritic system operates via a two-stage pipeline:

  1. Detection: A fine-tuned LLaMA 3.1 8B model (the Critic) inspects the assistant LLM's initial response. It looks for any of the eight predefined error types.
  2. Correction: If an error is detected, the Critic generates a "reasoning thought"—a nuanced piece of feedback explaining the mistake (e.g., "You called the booking API but forgot the required 'date' argument"). The assistant LLM then uses this feedback to revise its response before it is presented to the user.
The ToolCritic workflow: an external critic evaluates the initial response and triggers a revision if an error is detected.

Experimental Setup and Results

The researchers trained the Critic model using synthetic data generated by a "teacher" model (Claude 3.5 Sonnet), which intentionally injected errors into clean dialogues from the Schema-Guided Dialogue (SGD) dataset.

Performance Gains

ToolCritic was evaluated against several state-of-the-art models, including LLaMA 3.1 70B, Mistral Large 2, and Claude 3 Sonnet. The results were significant:

  • Success Rate Improvement: For Claude 3 Sonnet, the dialogue success rate jumped from 14.15% to 27.88%, representing a nearly 13% absolute increase.
  • Diagnostic Accuracy: The Critic model achieved a recall of approximately 90% on synthetic tests, successfully identifying the vast majority of injected errors.
  • Generalization: When tested on the ToolTalk dataset—which contains tool schemas not seen during training—ToolCritic demonstrated an ability to catch high-level logic errors, proving its utility beyond its specific training distribution.

Key Insights

A major finding of the study is that granularity is essential. Generic feedback like "try again" rarely helps an LLM fix a tool-use error. Instead, the model requires specific, descriptive feedback about the nature of the failure to successfully pivot. Furthermore, the study confirms that without an external critic, self-correction can sometimes degrade performance, as models may "correct" themselves into even more complex hallucinations.

Limitations and Future Outlook

While ToolCritic offers a substantial boost in reliability, it introduces increased inference costs and latency, as each turn may require multiple LLM calls. Additionally, the current framework is optimized for single tool calls per turn. Future research will likely focus on "agentic" workflows involving complex tool chaining and improving the critic's zero-shot generalization through tool description abstraction.

Summary updated

BibTeX
@misc{hamad2025toolcritic,
  author = {Hassan Hamad and Yingru Xu and Liang Zhao and Wenbo Yan and Narendra Gyanchandani},
  title = {{ToolCritic: Detecting and Correcting Tool-Use Errors in Dialogue Systems}},
  year = {2025},
  eprint = {2510.17052},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.17052},
}
Figure