Abstract
Tools have become a mainstay of LLMs, allowing them to retrieve knowledge not in their weights, to perform tasks on the web, and even to control robots. However, most ontologies and surveys of tool-use have assumed the core challenge for LLMs is choosing the tool. Instead, we introduce a framework for tools more broadly which guides us to explore a model’s ability to detect “silent” tool errors, and reflect on how to plan. This more directly aligns with the increasingly popular use of models as tools. We provide an initial approach to failure recovery with promising results both on a controlled calculator setting and embodied agent planning.
Introduction
The current paradigm of Large Language Model (LLM) tool-use, often termed "Tool-Augmented Generation," typically assumes that if a model selects the correct tool and provides valid arguments, the tool will function perfectly. Research in this area has largely focused on handling explicit API error messages, such as syntax errors. However, real-world tools—ranging from object detectors to robotic planners—often fail "silently," returning plausible but incorrect results without an error signal.
In such scenarios, LLMs tend to "overtrust" tool outputs, incorporating false data into their reasoning chains and leading to total task failure. This paper argues that for LLMs to become reliable agents, they must act as meta-reasoners capable of detecting and recovering from these silent tool failures.
A Framework for Tool Failures
We propose a taxonomy that categorizes tool-related errors into three primary sources:
- Context ($c$): Insufficient or noisy information provided to the LLM.
- Input ($i$): The LLM provides incorrect arguments to the tool.
- Tool ($t_\theta$): The tool itself is "broken" or inaccurate despite receiving correct inputs.
To address these failures, we evaluate three in-context intervention strategies:
- Disclaimer: A simple prompt warning that tools can be incorrect.
- Confidence: Providing the LLM with a confidence score for the tool's output.
- Checklist: Providing specific criteria to verify the output (e.g., "Is the sign correct?").
Experimental Setup
The framework was tested in two distinct environments:
- Broken Calculator: A synthetic dataset of 300 math equations where errors (digit replacement, magnitude shifts, sign inversion) were programmatically injected into the tool output.
- ALFRED: A multimodal benchmark for embodied AI. We focused on detecting errors in an Object Detector (MaskRCNN) and an Action Planner (Fast Marching Method) within a simulated household environment.
Key Results and Insights
The Overtrusting Trap
Without intervention, LLMs are highly prone to accepting incorrect tool outputs. As shown in the figure below, performance drops significantly when tools are "broken" compared to a baseline where no tool is used. Models often go as far as hallucinating reasoning to justify a tool's incorrect answer.
Effectiveness of Interventions
Providing a "Checklist" of heuristics proved to be the most effective intervention in the calculator task, helping models catch errors they would otherwise ignore. Interestingly, larger models like GPT-4 and Gemini 1.5 Pro can often detect that a tool's answer is wrong even if they cannot calculate the correct answer themselves, suggesting their utility as effective supervisors.
Sensitivity to Error Types
LLMs exhibit higher sensitivity to "symbolic" deviations (e.g., sign flips or last-digit changes) than "numeric" ones (e.g., small magnitude changes). In the ALFRED tasks, models were proficient at spotting task-critical mistakes, such as a missing required object, but often became "over-skeptical," rejecting tool outputs with minor, non-critical errors.
Conclusion and Future Work
While this work establishes a foundation for detecting silent tool errors, several challenges remain. Detection is only the first step; future research must address fault assignment (identifying the cause of failure) and recovery planning (deciding whether to retry or switch tools). Additionally, scaling these evaluations to a wider variety of open-source models and more complex, real-world hardware failures will be essential for developing truly robust AI agents.
Summary updated